@lootlog/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"battlelog.js","names":[],"sources":["../src/generated/battlelog.ts"],"sourcesContent":["/**\n * Generated by orval 🍺\n * Do not edit manually.\n * Battle Log API\n * The Battle Log API documentation\n * OpenAPI spec version: 1.0\n */\nimport { battlelogFetch } from '../mutators';\nexport interface BattleCreatedResponseDtoOutput {\n battleId: string;\n}\n\nexport type CreateBattleDtoEventsItemPartyMembers = {[key: string]: {\n id: number;\n account: number;\n nick: string;\n icon: string;\n commander?: number;\n}};\n\nexport type CreateBattleDtoEventsItemParty = {\n members: CreateBattleDtoEventsItemPartyMembers;\n};\n\nexport type CreateBattleDtoEventsItemFW = {[key: string]: {\n originalId: number;\n name: string;\n lvl: number;\n prof: string;\n icon: string;\n team: number;\n}};\n\nexport type CreateBattleDtoEventsItemF = {\n m?: string[];\n endBattle?: number;\n init?: string;\n auto?: string;\n w?: CreateBattleDtoEventsItemFW;\n};\n\nexport type CreateBattleDtoEventsItemMatchSummaryDailyStage = {\n id: number;\n points_cur: number;\n points_max: number;\n points_step: number;\n rewards_last: number;\n rewards_cur: number;\n rewards_max: number;\n};\n\nexport type CreateBattleDtoEventsItemMatchSummary = {\n difficulty_rank: number;\n result: number;\n rating_delta: number;\n opponent_lvl: number;\n opponent_oplvl: number;\n opponent_rating: number;\n rating: number;\n status: number;\n placement_cur?: number;\n placement_max?: number;\n points_gained?: number;\n daily_stage?: CreateBattleDtoEventsItemMatchSummaryDailyStage;\n};\n\nexport type CreateBattleDtoEventsItem = {\n party?: CreateBattleDtoEventsItemParty;\n f: CreateBattleDtoEventsItemF;\n ev?: number;\n match_summary?: CreateBattleDtoEventsItemMatchSummary;\n matchmaking_state?: number;\n};\n\nexport interface CreateBattleDto {\n accountId: string;\n characterId: string;\n /**\n * @minLength 1\n * @maxLength 128\n */\n submissionId?: string;\n world: string;\n matchmaking?: boolean;\n /** @minItems 1 */\n events: CreateBattleDtoEventsItem[];\n}\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsTopDamageDealer = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsTopTank = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsBestEfficiency = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsCriticalMaster = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsEvasionExpert = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsShieldWall = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsDamagePerTurn = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsMostActive = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsLegendaryWarrior = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattlesListResponseDtoOutputBattlesItemStatisticsUntouchable = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\nexport type BattlesListResponseDtoOutputBattlesItemStatistics = {\n /** @nullable */\n topDamageDealer: BattlesListResponseDtoOutputBattlesItemStatisticsTopDamageDealer;\n /** @nullable */\n topTank: BattlesListResponseDtoOutputBattlesItemStatisticsTopTank;\n /** @nullable */\n bestEfficiency: BattlesListResponseDtoOutputBattlesItemStatisticsBestEfficiency;\n /** @nullable */\n criticalMaster: BattlesListResponseDtoOutputBattlesItemStatisticsCriticalMaster;\n /** @nullable */\n evasionExpert: BattlesListResponseDtoOutputBattlesItemStatisticsEvasionExpert;\n /** @nullable */\n shieldWall: BattlesListResponseDtoOutputBattlesItemStatisticsShieldWall;\n /** @nullable */\n damagePerTurn: BattlesListResponseDtoOutputBattlesItemStatisticsDamagePerTurn;\n /** @nullable */\n mostActive: BattlesListResponseDtoOutputBattlesItemStatisticsMostActive;\n /** @nullable */\n legendaryWarrior: BattlesListResponseDtoOutputBattlesItemStatisticsLegendaryWarrior;\n /** @nullable */\n untouchable: BattlesListResponseDtoOutputBattlesItemStatisticsUntouchable;\n};\n\nexport type BattlesListResponseDtoOutputBattlesItemWarriorsItemSpellsUsedMap = {[key: string]: number};\n\nexport type BattlesListResponseDtoOutputBattlesItemWarriorsItem = {\n id: string;\n battleId: string;\n originalId: string;\n name: string;\n lvl: number;\n prof: string;\n icon: string;\n team: number;\n turns: number;\n turnsLost: number;\n steps: number;\n normalAttacks: number;\n spellsUsed: number;\n spellsUsedMap: BattlesListResponseDtoOutputBattlesItemWarriorsItemSpellsUsedMap;\n isDead: boolean;\n surrendered: boolean;\n fled: boolean;\n maxHp: number;\n damageDealt: number;\n distanceDamage: number;\n meleeDamage: number;\n auxiliaryDamage: number;\n fireDamage: number;\n frostDamage: number;\n lightningDamage: number;\n thirdAttDamage: number;\n damageDealtAfterDefensive: number;\n damageDealtAfterDefensivePercentage: number;\n damageTaken: number;\n distanceDamageTaken: number;\n meleeDamageTaken: number;\n auxiliaryDamageTaken: number;\n fireDamageTaken: number;\n frostDamageTaken: number;\n lightningDamageTaken: number;\n thirdAttDamageTaken: number;\n flatDamageTaken: number;\n rageDamageDealt: number;\n trueDamageDealt: number;\n trueDamageTaken: number;\n stigmaDamageDealt: number;\n stigmaDamageTaken: number;\n passiveHealing: number;\n activeHealing: number;\n armorPierces: number;\n criticalHits: number;\n reducedArmor: number;\n reducedPoisonResistance: number;\n magicResistanceDestroyed: number;\n evasions: number;\n attacksEvaded: number;\n counters: number;\n fastArrows: number;\n blocks: number;\n attacksBlocked: number;\n blockedDamage: number;\n woundDamageTaken: number;\n poisonDamageTaken: number;\n injureDamageTaken: number;\n injures: number;\n critWoundDamageTaken: number;\n firePassiveDamageTaken: number;\n lightningPassiveDamageTaken: number;\n destroyedEnergy: number;\n destroyedMana: number;\n regeneratedEnergy: number;\n regeneratedMana: number;\n reflectedDamage: number;\n reflectedDamageTaken: number;\n legbons: number;\n legbonCurse: number;\n legbonCleanse: number;\n legbonLastheal: number;\n legbonLasthealValue: number;\n legbonGlare: number;\n legbonHolytouch: number;\n legbonHolytouchValue: number;\n legbonCritredValue: number;\n legbonFacadeValue: number;\n legbonPunctureValue: number;\n legbonVerycrit: number;\n legbonAnguish: number;\n legbonAnguishDamageTaken: number;\n ph: number;\n};\n\nexport type BattlesListResponseDtoOutputBattlesItem = {\n id: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n createdAt: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n updatedAt: string;\n public: boolean;\n userId: string;\n accountId: string;\n characterId: string;\n world: string;\n duration: number;\n type: string;\n winner: string;\n loser: string;\n winningTeam: number;\n losingTeam: number;\n honorPoints: number;\n hasFlee: boolean;\n matchmaking: boolean;\n statistics: BattlesListResponseDtoOutputBattlesItemStatistics;\n /** @nullable */\n difficultyRank: number | null;\n /** @nullable */\n result: number | null;\n /** @nullable */\n ratingDelta: number | null;\n /** @nullable */\n opponentLvl: number | null;\n /** @nullable */\n opponentOplvl: number | null;\n /** @nullable */\n opponentRating: number | null;\n /** @nullable */\n rating: number | null;\n /** @nullable */\n status: number | null;\n /** @nullable */\n pointsGained: number | null;\n /** @nullable */\n placementCur: number | null;\n /** @nullable */\n placementMax: number | null;\n /** @nullable */\n dailyStageId: number | null;\n /** @nullable */\n dailyPointsCur: number | null;\n /** @nullable */\n dailyPointsMax: number | null;\n /** @nullable */\n dailyPointsStep: number | null;\n /** @nullable */\n dailyRewardsLast: number | null;\n /** @nullable */\n dailyRewardsCur: number | null;\n /** @nullable */\n dailyRewardsMax: number | null;\n warriors: BattlesListResponseDtoOutputBattlesItemWarriorsItem[];\n};\n\nexport type BattlesListResponseDtoOutputPagination = {\n size: number;\n hasNext: boolean;\n hasPrev: boolean;\n nextCursor?: string;\n previousCursor?: string;\n total?: number;\n};\n\nexport type BattlesListResponseDtoOutputMetaPerformance = {\n queryTime: number;\n countTime?: number;\n totalItems?: number;\n estimatedTotal?: boolean;\n};\n\nexport type BattlesListResponseDtoOutputMeta = {\n performance: BattlesListResponseDtoOutputMetaPerformance;\n};\n\nexport interface BattlesListResponseDtoOutput {\n battles: BattlesListResponseDtoOutputBattlesItem[];\n pagination: BattlesListResponseDtoOutputPagination;\n meta: BattlesListResponseDtoOutputMeta;\n}\n\nexport type BattleCharactersResponseDtoOutputCharactersItem = {\n id: string;\n name: string;\n world: string;\n icon: string;\n};\n\nexport interface BattleCharactersResponseDtoOutput {\n characters: BattleCharactersResponseDtoOutputCharactersItem[];\n}\n\nexport interface BattleAnalyticsResponseDtoOutput {\n totalBattles: number;\n wins: number;\n losses: number;\n winRatio: number;\n totalPH: number;\n}\n\nexport interface AbyssSeasonResponseDtoOutput {\n id: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n startedAt: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n endedAt: string;\n totalBattles: number;\n wins: number;\n losses: number;\n winRate: number;\n totalRatingDelta: number;\n /** @nullable */\n peakRating: number | null;\n /** @nullable */\n totalPointsGained: number | null;\n}\n\nexport type CombatProfileResponseDtoOutputSummary = {\n totalBattles: number;\n wins: number;\n losses: number;\n winRate: number;\n totalPH: number;\n totalRatingDelta: number;\n avgTurns: number;\n avgDuration: number;\n damagePerTurn: number;\n mitigationRate: number;\n controlRate: number;\n};\n\nexport type CombatProfileResponseDtoOutputDamageMixItem = {\n key: string;\n label: string;\n value: number;\n share: number;\n};\n\nexport type CombatProfileResponseDtoOutputMitigationMixItem = {\n key: string;\n label: string;\n value: number;\n share: number;\n};\n\nexport type CombatProfileResponseDtoOutputSpellUsageItem = {\n spell: string;\n /** @nullable */\n skillId: number | null;\n casts: number;\n share: number;\n};\n\nexport type CombatProfileResponseDtoOutputMatchupByProfessionItem = {\n prof: string;\n wins: number;\n losses: number;\n totalBattles: number;\n winRate: number;\n};\n\nexport type CombatProfileResponseDtoOutputPhTrendItem = {\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n date: string;\n value: number;\n cumulativeValue: number;\n battleId: string;\n};\n\nexport type CombatProfileResponseDtoOutputRatingTrendItem = {\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n date: string;\n value: number;\n cumulativeValue: number;\n battleId: string;\n};\n\nexport type CombatProfileResponseDtoOutputHighlightsItem = {\n battleId: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n createdAt: string;\n type: string;\n label: string;\n value: number;\n};\n\nexport interface CombatProfileResponseDtoOutput {\n summary: CombatProfileResponseDtoOutputSummary;\n damageMix: CombatProfileResponseDtoOutputDamageMixItem[];\n mitigationMix: CombatProfileResponseDtoOutputMitigationMixItem[];\n spellUsage: CombatProfileResponseDtoOutputSpellUsageItem[];\n matchupByProfession: CombatProfileResponseDtoOutputMatchupByProfessionItem[];\n phTrend: CombatProfileResponseDtoOutputPhTrendItem[];\n ratingTrend: CombatProfileResponseDtoOutputRatingTrendItem[];\n highlights: CombatProfileResponseDtoOutputHighlightsItem[];\n}\n\nexport interface ProfessionWinRateResponseDtoOutput {\n prof: string;\n wins: number;\n losses: number;\n totalBattles: number;\n winRate: number;\n}\n\nexport type HeadToHeadPaginatedResponseDtoOutputRecordsItemLastBattleResult = typeof HeadToHeadPaginatedResponseDtoOutputRecordsItemLastBattleResult[keyof typeof HeadToHeadPaginatedResponseDtoOutputRecordsItemLastBattleResult];\n\n\nexport const HeadToHeadPaginatedResponseDtoOutputRecordsItemLastBattleResult = {\n won: 'won',\n lost: 'lost',\n flee: 'flee',\n} as const;\n\nexport type HeadToHeadPaginatedResponseDtoOutputRecordsItemLastBattleUserWarrior = {\n name: string;\n lvl: number;\n prof: string;\n icon: string;\n fireDamage: number;\n frostDamage: number;\n lightningDamage: number;\n poisonDamageTaken: number;\n woundDamageTaken: number;\n critWoundDamageTaken: number;\n};\n\nexport type HeadToHeadPaginatedResponseDtoOutputRecordsItemLastBattleOpponentWarrior = {\n name: string;\n lvl: number;\n prof: string;\n icon: string;\n fireDamage: number;\n frostDamage: number;\n lightningDamage: number;\n poisonDamageTaken: number;\n woundDamageTaken: number;\n critWoundDamageTaken: number;\n};\n\nexport type HeadToHeadPaginatedResponseDtoOutputRecordsItem = {\n opponentId: string;\n opponentName: string;\n opponentIcon: string;\n opponentProf: string;\n opponentLvl: number;\n lastBattleResult: HeadToHeadPaginatedResponseDtoOutputRecordsItemLastBattleResult;\n lastBattleUserWarrior: HeadToHeadPaginatedResponseDtoOutputRecordsItemLastBattleUserWarrior;\n lastBattleOpponentWarrior: HeadToHeadPaginatedResponseDtoOutputRecordsItemLastBattleOpponentWarrior;\n wins: number;\n losses: number;\n totalBattles: number;\n winRate: number;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n lastBattleDate: string;\n totalRatingDelta?: number;\n avgRatingDelta?: number;\n};\n\nexport type HeadToHeadPaginatedResponseDtoOutputPagination = {\n size: number;\n hasNext: boolean;\n hasPrev: boolean;\n nextCursor?: string;\n previousCursor?: string;\n total?: number;\n};\n\nexport type HeadToHeadPaginatedResponseDtoOutputMetaPerformance = {\n queryTime: number;\n countTime?: number;\n totalItems?: number;\n estimatedTotal?: boolean;\n};\n\nexport type HeadToHeadPaginatedResponseDtoOutputMeta = {\n performance: HeadToHeadPaginatedResponseDtoOutputMetaPerformance;\n};\n\nexport interface HeadToHeadPaginatedResponseDtoOutput {\n records: HeadToHeadPaginatedResponseDtoOutputRecordsItem[];\n pagination: HeadToHeadPaginatedResponseDtoOutputPagination;\n meta: HeadToHeadPaginatedResponseDtoOutputMeta;\n}\n\nexport type StreakResponseDtoOutputCurrentType = typeof StreakResponseDtoOutputCurrentType[keyof typeof StreakResponseDtoOutputCurrentType];\n\n\nexport const StreakResponseDtoOutputCurrentType = {\n wins: 'wins',\n losses: 'losses',\n none: 'none',\n} as const;\n\nexport type StreakResponseDtoOutputCurrent = {\n type: StreakResponseDtoOutputCurrentType;\n count: number;\n};\n\nexport type StreakResponseDtoOutputLongest = {\n wins: number;\n losses: number;\n};\n\nexport interface StreakResponseDtoOutput {\n current: StreakResponseDtoOutputCurrent;\n longest: StreakResponseDtoOutputLongest;\n}\n\n/**\n * @nullable\n */\nexport type BattleDurationStatsResponseDtoOutputFastest = {\n duration: number;\n battleId: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleDurationStatsResponseDtoOutputLongest = {\n duration: number;\n battleId: string;\n} | null;\n\nexport interface BattleDurationStatsResponseDtoOutput {\n avgWinDuration: number;\n avgLossDuration: number;\n /** @nullable */\n fastest: BattleDurationStatsResponseDtoOutputFastest;\n /** @nullable */\n longest: BattleDurationStatsResponseDtoOutputLongest;\n}\n\nexport interface PhGrowthDataPointResponseDtoOutput {\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n date: string;\n ph: number;\n cumulativePh: number;\n battleId: string;\n}\n\nexport interface RatingGrowthDataPointResponseDtoOutput {\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n date: string;\n ratingDelta: number;\n rating: number;\n battleId: string;\n}\n\nexport interface RatingDeltaByOpponentResponseDtoOutput {\n opponentId: string;\n opponentName: string;\n opponentIcon: string;\n opponentProf: string;\n opponentLvl: number;\n totalRatingDelta: number;\n wins: number;\n losses: number;\n totalBattles: number;\n avgRatingDelta: number;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n lastBattleDate: string;\n}\n\nexport type PlayerVsPlayerPaginatedResponseDtoOutputBattlesItemUserWarrior = {\n name: string;\n lvl: number;\n prof: string;\n icon: string;\n fireDamage: number;\n frostDamage: number;\n lightningDamage: number;\n poisonDamageTaken: number;\n woundDamageTaken: number;\n critWoundDamageTaken: number;\n};\n\nexport type PlayerVsPlayerPaginatedResponseDtoOutputBattlesItemOpponentWarrior = {\n name: string;\n lvl: number;\n prof: string;\n icon: string;\n fireDamage: number;\n frostDamage: number;\n lightningDamage: number;\n poisonDamageTaken: number;\n woundDamageTaken: number;\n critWoundDamageTaken: number;\n};\n\nexport type PlayerVsPlayerPaginatedResponseDtoOutputBattlesItem = {\n battleId: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n createdAt: string;\n duration: number;\n winner: string;\n loser: string;\n hasFlee: boolean;\n matchmaking: boolean;\n /** @nullable */\n ratingDelta: number | null;\n /** @nullable */\n userRating: number | null;\n /** @nullable */\n opponentRating: number | null;\n userWarrior: PlayerVsPlayerPaginatedResponseDtoOutputBattlesItemUserWarrior;\n opponentWarrior: PlayerVsPlayerPaginatedResponseDtoOutputBattlesItemOpponentWarrior;\n};\n\nexport type PlayerVsPlayerPaginatedResponseDtoOutputPagination = {\n size: number;\n hasNext: boolean;\n hasPrev: boolean;\n nextCursor?: string;\n previousCursor?: string;\n total?: number;\n};\n\nexport type PlayerVsPlayerPaginatedResponseDtoOutputMetaPerformance = {\n queryTime: number;\n totalItems?: number;\n};\n\nexport type PlayerVsPlayerPaginatedResponseDtoOutputMeta = {\n performance: PlayerVsPlayerPaginatedResponseDtoOutputMetaPerformance;\n};\n\nexport interface PlayerVsPlayerPaginatedResponseDtoOutput {\n battles: PlayerVsPlayerPaginatedResponseDtoOutputBattlesItem[];\n pagination: PlayerVsPlayerPaginatedResponseDtoOutputPagination;\n meta: PlayerVsPlayerPaginatedResponseDtoOutputMeta;\n}\n\nexport type BattleWarriorsSearchResponseDtoOutputWarriorsItem = {\n name: string;\n icon: string;\n prof: string;\n lvl: number;\n};\n\nexport interface BattleWarriorsSearchResponseDtoOutput {\n warriors: BattleWarriorsSearchResponseDtoOutputWarriorsItem[];\n}\n\nexport interface BattleUserWorldsResponseDtoOutput {\n worlds: string[];\n}\n\nexport type BattleTimelineResponseDtoOutputTimelineItemHpByWarrior = {[key: string]: number};\n\nexport type BattleTimelineResponseDtoOutputTimelineItemTeamHp = {[key: string]: number};\n\nexport type BattleTimelineResponseDtoOutputTimelineItemTeamHpDelta = {[key: string]: number};\n\nexport type BattleTimelineResponseDtoOutputTimelineItemDeltasByWarrior = {[key: string]: {\n damageDealt: number;\n damageTaken: number;\n healingDone: number;\n healingReceived: number;\n mitigation: number;\n resourceDelta: number;\n resourcePressure: number;\n energyPressure: number;\n manaPressure: number;\n absorbGained: number;\n absorbSpent: number;\n magicAbsorbGained: number;\n magicAbsorbSpent: number;\n controlApplied: number;\n controlTaken: number;\n}};\n\nexport type BattleTimelineResponseDtoOutputTimelineItemDeltas = {\n damage: number;\n healing: number;\n mitigation: number;\n resourcePressure: number;\n energyPressure: number;\n manaPressure: number;\n byWarrior: BattleTimelineResponseDtoOutputTimelineItemDeltasByWarrior;\n};\n\nexport type BattleTimelineResponseDtoOutputTimelineItemCumulative = {[key: string]: {\n damageDealt: number;\n damageTaken: number;\n healingDone: number;\n healingReceived: number;\n mitigation: number;\n resourceDelta: number;\n resourcePressure: number;\n energyPressure: number;\n manaPressure: number;\n absorbGained: number;\n absorbSpent: number;\n magicAbsorbGained: number;\n magicAbsorbSpent: number;\n controlApplied: number;\n controlTaken: number;\n}};\n\nexport type BattleTimelineResponseDtoOutputTimelineItemActionsItem = {\n actionType: string;\n param: string;\n category: string;\n /** @nullable */\n actorId: string | null;\n /** @nullable */\n targetId: string | null;\n value: number;\n handled: boolean;\n};\n\nexport type BattleTimelineResponseDtoOutputTimelineItem = {\n turn: number;\n /** @nullable */\n attackerId: string | null;\n /** @nullable */\n defenderId: string | null;\n /** @nullable */\n attackerHpPercentage: number | null;\n /** @nullable */\n defenderHpPercentage: number | null;\n hpByWarrior: BattleTimelineResponseDtoOutputTimelineItemHpByWarrior;\n teamHp: BattleTimelineResponseDtoOutputTimelineItemTeamHp;\n teamHpDelta: BattleTimelineResponseDtoOutputTimelineItemTeamHpDelta;\n deltas: BattleTimelineResponseDtoOutputTimelineItemDeltas;\n cumulative: BattleTimelineResponseDtoOutputTimelineItemCumulative;\n actions: BattleTimelineResponseDtoOutputTimelineItemActionsItem[];\n flags: string[];\n labels: string[];\n significanceScore: number;\n reason: string;\n};\n\nexport type BattleTimelineResponseDtoOutputWarriorsItemSpellsUsedMap = {[key: string]: number};\n\nexport type BattleTimelineResponseDtoOutputWarriorsItem = {\n id: string;\n battleId: string;\n originalId: string;\n name: string;\n lvl: number;\n prof: string;\n icon: string;\n team: number;\n turns: number;\n turnsLost: number;\n steps: number;\n normalAttacks: number;\n spellsUsed: number;\n spellsUsedMap: BattleTimelineResponseDtoOutputWarriorsItemSpellsUsedMap;\n isDead: boolean;\n surrendered: boolean;\n fled: boolean;\n maxHp: number;\n damageDealt: number;\n distanceDamage: number;\n meleeDamage: number;\n auxiliaryDamage: number;\n fireDamage: number;\n frostDamage: number;\n lightningDamage: number;\n thirdAttDamage: number;\n damageDealtAfterDefensive: number;\n damageDealtAfterDefensivePercentage: number;\n damageTaken: number;\n distanceDamageTaken: number;\n meleeDamageTaken: number;\n auxiliaryDamageTaken: number;\n fireDamageTaken: number;\n frostDamageTaken: number;\n lightningDamageTaken: number;\n thirdAttDamageTaken: number;\n flatDamageTaken: number;\n rageDamageDealt: number;\n trueDamageDealt: number;\n trueDamageTaken: number;\n stigmaDamageDealt: number;\n stigmaDamageTaken: number;\n passiveHealing: number;\n activeHealing: number;\n armorPierces: number;\n criticalHits: number;\n reducedArmor: number;\n reducedPoisonResistance: number;\n magicResistanceDestroyed: number;\n evasions: number;\n attacksEvaded: number;\n counters: number;\n fastArrows: number;\n blocks: number;\n attacksBlocked: number;\n blockedDamage: number;\n woundDamageTaken: number;\n poisonDamageTaken: number;\n injureDamageTaken: number;\n injures: number;\n critWoundDamageTaken: number;\n firePassiveDamageTaken: number;\n lightningPassiveDamageTaken: number;\n destroyedEnergy: number;\n destroyedMana: number;\n regeneratedEnergy: number;\n regeneratedMana: number;\n reflectedDamage: number;\n reflectedDamageTaken: number;\n legbons: number;\n legbonCurse: number;\n legbonCleanse: number;\n legbonLastheal: number;\n legbonLasthealValue: number;\n legbonGlare: number;\n legbonHolytouch: number;\n legbonHolytouchValue: number;\n legbonCritredValue: number;\n legbonFacadeValue: number;\n legbonPunctureValue: number;\n legbonVerycrit: number;\n legbonAnguish: number;\n legbonAnguishDamageTaken: number;\n ph: number;\n};\n\nexport interface BattleTimelineResponseDtoOutput {\n battleId: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n generatedAt: string;\n timeline: BattleTimelineResponseDtoOutputTimelineItem[];\n warriors: BattleTimelineResponseDtoOutputWarriorsItem[];\n}\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsTopDamageDealer = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsTopTank = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsBestEfficiency = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsCriticalMaster = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsEvasionExpert = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsShieldWall = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsDamagePerTurn = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsMostActive = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsLegendaryWarrior = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\n/**\n * @nullable\n */\nexport type BattleResponseDtoOutputStatisticsUntouchable = {\n warriorId: string;\n name: string;\n value: number;\n formattedValue?: string;\n} | null;\n\nexport type BattleResponseDtoOutputStatistics = {\n /** @nullable */\n topDamageDealer: BattleResponseDtoOutputStatisticsTopDamageDealer;\n /** @nullable */\n topTank: BattleResponseDtoOutputStatisticsTopTank;\n /** @nullable */\n bestEfficiency: BattleResponseDtoOutputStatisticsBestEfficiency;\n /** @nullable */\n criticalMaster: BattleResponseDtoOutputStatisticsCriticalMaster;\n /** @nullable */\n evasionExpert: BattleResponseDtoOutputStatisticsEvasionExpert;\n /** @nullable */\n shieldWall: BattleResponseDtoOutputStatisticsShieldWall;\n /** @nullable */\n damagePerTurn: BattleResponseDtoOutputStatisticsDamagePerTurn;\n /** @nullable */\n mostActive: BattleResponseDtoOutputStatisticsMostActive;\n /** @nullable */\n legendaryWarrior: BattleResponseDtoOutputStatisticsLegendaryWarrior;\n /** @nullable */\n untouchable: BattleResponseDtoOutputStatisticsUntouchable;\n};\n\nexport type BattleResponseDtoOutputWarriorsItemSpellsUsedMap = {[key: string]: number};\n\nexport type BattleResponseDtoOutputWarriorsItem = {\n id: string;\n battleId: string;\n originalId: string;\n name: string;\n lvl: number;\n prof: string;\n icon: string;\n team: number;\n turns: number;\n turnsLost: number;\n steps: number;\n normalAttacks: number;\n spellsUsed: number;\n spellsUsedMap: BattleResponseDtoOutputWarriorsItemSpellsUsedMap;\n isDead: boolean;\n surrendered: boolean;\n fled: boolean;\n maxHp: number;\n damageDealt: number;\n distanceDamage: number;\n meleeDamage: number;\n auxiliaryDamage: number;\n fireDamage: number;\n frostDamage: number;\n lightningDamage: number;\n thirdAttDamage: number;\n damageDealtAfterDefensive: number;\n damageDealtAfterDefensivePercentage: number;\n damageTaken: number;\n distanceDamageTaken: number;\n meleeDamageTaken: number;\n auxiliaryDamageTaken: number;\n fireDamageTaken: number;\n frostDamageTaken: number;\n lightningDamageTaken: number;\n thirdAttDamageTaken: number;\n flatDamageTaken: number;\n rageDamageDealt: number;\n trueDamageDealt: number;\n trueDamageTaken: number;\n stigmaDamageDealt: number;\n stigmaDamageTaken: number;\n passiveHealing: number;\n activeHealing: number;\n armorPierces: number;\n criticalHits: number;\n reducedArmor: number;\n reducedPoisonResistance: number;\n magicResistanceDestroyed: number;\n evasions: number;\n attacksEvaded: number;\n counters: number;\n fastArrows: number;\n blocks: number;\n attacksBlocked: number;\n blockedDamage: number;\n woundDamageTaken: number;\n poisonDamageTaken: number;\n injureDamageTaken: number;\n injures: number;\n critWoundDamageTaken: number;\n firePassiveDamageTaken: number;\n lightningPassiveDamageTaken: number;\n destroyedEnergy: number;\n destroyedMana: number;\n regeneratedEnergy: number;\n regeneratedMana: number;\n reflectedDamage: number;\n reflectedDamageTaken: number;\n legbons: number;\n legbonCurse: number;\n legbonCleanse: number;\n legbonLastheal: number;\n legbonLasthealValue: number;\n legbonGlare: number;\n legbonHolytouch: number;\n legbonHolytouchValue: number;\n legbonCritredValue: number;\n legbonFacadeValue: number;\n legbonPunctureValue: number;\n legbonVerycrit: number;\n legbonAnguish: number;\n legbonAnguishDamageTaken: number;\n ph: number;\n};\n\nexport interface BattleResponseDtoOutput {\n id: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n createdAt: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n updatedAt: string;\n public: boolean;\n userId: string;\n accountId: string;\n characterId: string;\n world: string;\n duration: number;\n type: string;\n winner: string;\n loser: string;\n winningTeam: number;\n losingTeam: number;\n honorPoints: number;\n hasFlee: boolean;\n matchmaking: boolean;\n statistics: BattleResponseDtoOutputStatistics;\n /** @nullable */\n difficultyRank: number | null;\n /** @nullable */\n result: number | null;\n /** @nullable */\n ratingDelta: number | null;\n /** @nullable */\n opponentLvl: number | null;\n /** @nullable */\n opponentOplvl: number | null;\n /** @nullable */\n opponentRating: number | null;\n /** @nullable */\n rating: number | null;\n /** @nullable */\n status: number | null;\n /** @nullable */\n pointsGained: number | null;\n /** @nullable */\n placementCur: number | null;\n /** @nullable */\n placementMax: number | null;\n /** @nullable */\n dailyStageId: number | null;\n /** @nullable */\n dailyPointsCur: number | null;\n /** @nullable */\n dailyPointsMax: number | null;\n /** @nullable */\n dailyPointsStep: number | null;\n /** @nullable */\n dailyRewardsLast: number | null;\n /** @nullable */\n dailyRewardsCur: number | null;\n /** @nullable */\n dailyRewardsMax: number | null;\n warriors: BattleResponseDtoOutputWarriorsItem[];\n}\n\nexport interface UpdateBattleDto {\n public: boolean;\n}\n\nexport interface BattleDeletedResponseDtoOutput {\n message: string;\n}\n\nexport type BattleRawResponseDtoOutputRawDataEventsItemActionsItem = {\n actionType: string;\n param: string;\n};\n\nexport type BattleRawResponseDtoOutputRawDataEventsItem = {\n /** @nullable */\n attackerId: string | null;\n /** @nullable */\n defenderId: string | null;\n /** @nullable */\n attackerHpPercentage: number | null;\n /** @nullable */\n defenderHpPercentage: number | null;\n actions: BattleRawResponseDtoOutputRawDataEventsItemActionsItem[];\n};\n\nexport type BattleRawResponseDtoOutputRawData = {\n accountId: string;\n characterId: string;\n world: string;\n events: BattleRawResponseDtoOutputRawDataEventsItem[];\n sourceEvents?: unknown[];\n};\n\nexport interface BattleRawResponseDtoOutput {\n battleId: string;\n /** @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$ */\n timestamp: string;\n rawData: BattleRawResponseDtoOutputRawData;\n}\n\nexport type BattlesControllerCreateBattle400Message = string | ({\n path: (string | number | 'Infinity' | '-Infinity' | 'NaN')[];\n message: string;\n})[];\n\nexport type BattlesControllerCreateBattle400StatusCode = typeof BattlesControllerCreateBattle400StatusCode[keyof typeof BattlesControllerCreateBattle400StatusCode];\n\n\nexport const BattlesControllerCreateBattle400StatusCode = {\n NUMBER_400: 400,\n} as const;\n\nexport type BattlesControllerCreateBattle400 = {\n error: string;\n message: BattlesControllerCreateBattle400Message;\n statusCode: BattlesControllerCreateBattle400StatusCode;\n};\n\nexport type BattlesControllerCreateBattle401 = {\n message: string;\n};\n\nexport type BattlesControllerCreateBattle403 = {\n message: string;\n};\n\nexport type BattlesControllerCreateBattle429 = {\n message: string;\n};\n\nexport type BattlesControllerGetDashboardBattlesParams = {\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 100\n */\nsize?: number;\nsortOrder?: BattlesControllerGetDashboardBattlesSortOrder;\nincludeTotal?: boolean;\nworld?: string;\ntype?: BattlesControllerGetDashboardBattlesTypeItem[];\nuserId?: string;\npublic?: boolean;\ncharacterId?: string[];\nsearch?: string;\nresult?: BattlesControllerGetDashboardBattlesResultItem[];\nph?: boolean;\nmatchmaking?: boolean;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\n/**\n * @minimum 1\n * @maximum 1000\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 1000\n */\nmaxLevel?: number;\n};\n\nexport type BattlesControllerGetDashboardBattlesSortOrder = typeof BattlesControllerGetDashboardBattlesSortOrder[keyof typeof BattlesControllerGetDashboardBattlesSortOrder];\n\n\nexport const BattlesControllerGetDashboardBattlesSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetDashboardBattlesTypeItem = typeof BattlesControllerGetDashboardBattlesTypeItem[keyof typeof BattlesControllerGetDashboardBattlesTypeItem];\n\n\nexport const BattlesControllerGetDashboardBattlesTypeItem = {\n solo: 'solo',\n group: 'group',\n} as const;\n\nexport type BattlesControllerGetDashboardBattlesResultItem = typeof BattlesControllerGetDashboardBattlesResultItem[keyof typeof BattlesControllerGetDashboardBattlesResultItem];\n\n\nexport const BattlesControllerGetDashboardBattlesResultItem = {\n won: 'won',\n lost: 'lost',\n flee: 'flee',\n} as const;\n\nexport type BattlesControllerGetDashboardBattles401 = {\n message: string;\n};\n\nexport type BattlesControllerGetDashboardBattles403 = {\n message: string;\n};\n\nexport type BattlesControllerGetDashboardBattles429 = {\n message: string;\n};\n\nexport type BattlesControllerGetUserCharacters401 = {\n message: string;\n};\n\nexport type BattlesControllerGetUserCharacters403 = {\n message: string;\n};\n\nexport type BattlesControllerGetUserCharacters429 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleAnalyticsParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetBattleAnalyticsPeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\nph?: boolean;\nmatchmaking?: boolean;\n};\n\nexport type BattlesControllerGetBattleAnalyticsPeriod = typeof BattlesControllerGetBattleAnalyticsPeriod[keyof typeof BattlesControllerGetBattleAnalyticsPeriod];\n\n\nexport const BattlesControllerGetBattleAnalyticsPeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n} as const;\n\nexport type BattlesControllerGetBattleAnalytics401 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleAnalytics403 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleAnalytics429 = {\n message: string;\n};\n\nexport type BattlesControllerGetAbyssSeasonsParams = {\ncharacterId: string;\nworld?: string;\n};\n\nexport type BattlesControllerGetAbyssSeasons401 = {\n message: string;\n};\n\nexport type BattlesControllerGetAbyssSeasons403 = {\n message: string;\n};\n\nexport type BattlesControllerGetAbyssSeasons429 = {\n message: string;\n};\n\nexport type BattlesControllerGetCombatProfileParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetCombatProfilePeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nsize?: number;\nsortBy?: BattlesControllerGetCombatProfileSortBy;\nsortOrder?: BattlesControllerGetCombatProfileSortOrder;\nincludeTotal?: boolean;\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminBattles?: number;\nph?: boolean;\nmatchmaking?: boolean;\n};\n\nexport type BattlesControllerGetCombatProfilePeriod = typeof BattlesControllerGetCombatProfilePeriod[keyof typeof BattlesControllerGetCombatProfilePeriod];\n\n\nexport const BattlesControllerGetCombatProfilePeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n all: 'all',\n} as const;\n\nexport type BattlesControllerGetCombatProfileSortBy = typeof BattlesControllerGetCombatProfileSortBy[keyof typeof BattlesControllerGetCombatProfileSortBy];\n\n\nexport const BattlesControllerGetCombatProfileSortBy = {\n wins: 'wins',\n losses: 'losses',\n totalBattles: 'totalBattles',\n winRate: 'winRate',\n lastBattleDate: 'lastBattleDate',\n totalRatingDelta: 'totalRatingDelta',\n avgRatingDelta: 'avgRatingDelta',\n} as const;\n\nexport type BattlesControllerGetCombatProfileSortOrder = typeof BattlesControllerGetCombatProfileSortOrder[keyof typeof BattlesControllerGetCombatProfileSortOrder];\n\n\nexport const BattlesControllerGetCombatProfileSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetCombatProfile401 = {\n message: string;\n};\n\nexport type BattlesControllerGetCombatProfile403 = {\n message: string;\n};\n\nexport type BattlesControllerGetCombatProfile429 = {\n message: string;\n};\n\nexport type BattlesControllerGetProfessionWinRateParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetProfessionWinRatePeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nsize?: number;\nsortBy?: BattlesControllerGetProfessionWinRateSortBy;\nsortOrder?: BattlesControllerGetProfessionWinRateSortOrder;\nincludeTotal?: boolean;\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminBattles?: number;\nph?: boolean;\nmatchmaking?: boolean;\n};\n\nexport type BattlesControllerGetProfessionWinRatePeriod = typeof BattlesControllerGetProfessionWinRatePeriod[keyof typeof BattlesControllerGetProfessionWinRatePeriod];\n\n\nexport const BattlesControllerGetProfessionWinRatePeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n all: 'all',\n} as const;\n\nexport type BattlesControllerGetProfessionWinRateSortBy = typeof BattlesControllerGetProfessionWinRateSortBy[keyof typeof BattlesControllerGetProfessionWinRateSortBy];\n\n\nexport const BattlesControllerGetProfessionWinRateSortBy = {\n wins: 'wins',\n losses: 'losses',\n totalBattles: 'totalBattles',\n winRate: 'winRate',\n lastBattleDate: 'lastBattleDate',\n totalRatingDelta: 'totalRatingDelta',\n avgRatingDelta: 'avgRatingDelta',\n} as const;\n\nexport type BattlesControllerGetProfessionWinRateSortOrder = typeof BattlesControllerGetProfessionWinRateSortOrder[keyof typeof BattlesControllerGetProfessionWinRateSortOrder];\n\n\nexport const BattlesControllerGetProfessionWinRateSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetProfessionWinRate401 = {\n message: string;\n};\n\nexport type BattlesControllerGetProfessionWinRate403 = {\n message: string;\n};\n\nexport type BattlesControllerGetProfessionWinRate429 = {\n message: string;\n};\n\nexport type BattlesControllerGetHeadToHeadParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetHeadToHeadPeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nsize?: number;\nsortBy?: BattlesControllerGetHeadToHeadSortBy;\nsortOrder?: BattlesControllerGetHeadToHeadSortOrder;\nincludeTotal?: boolean;\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminBattles?: number;\nph?: boolean;\nmatchmaking?: boolean;\n};\n\nexport type BattlesControllerGetHeadToHeadPeriod = typeof BattlesControllerGetHeadToHeadPeriod[keyof typeof BattlesControllerGetHeadToHeadPeriod];\n\n\nexport const BattlesControllerGetHeadToHeadPeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n all: 'all',\n} as const;\n\nexport type BattlesControllerGetHeadToHeadSortBy = typeof BattlesControllerGetHeadToHeadSortBy[keyof typeof BattlesControllerGetHeadToHeadSortBy];\n\n\nexport const BattlesControllerGetHeadToHeadSortBy = {\n wins: 'wins',\n losses: 'losses',\n totalBattles: 'totalBattles',\n winRate: 'winRate',\n lastBattleDate: 'lastBattleDate',\n totalRatingDelta: 'totalRatingDelta',\n avgRatingDelta: 'avgRatingDelta',\n} as const;\n\nexport type BattlesControllerGetHeadToHeadSortOrder = typeof BattlesControllerGetHeadToHeadSortOrder[keyof typeof BattlesControllerGetHeadToHeadSortOrder];\n\n\nexport const BattlesControllerGetHeadToHeadSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetHeadToHead401 = {\n message: string;\n};\n\nexport type BattlesControllerGetHeadToHead403 = {\n message: string;\n};\n\nexport type BattlesControllerGetHeadToHead429 = {\n message: string;\n};\n\nexport type BattlesControllerGetCurrentStreakParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetCurrentStreakPeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nsize?: number;\nsortBy?: BattlesControllerGetCurrentStreakSortBy;\nsortOrder?: BattlesControllerGetCurrentStreakSortOrder;\nincludeTotal?: boolean;\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminBattles?: number;\nph?: boolean;\nmatchmaking?: boolean;\n};\n\nexport type BattlesControllerGetCurrentStreakPeriod = typeof BattlesControllerGetCurrentStreakPeriod[keyof typeof BattlesControllerGetCurrentStreakPeriod];\n\n\nexport const BattlesControllerGetCurrentStreakPeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n all: 'all',\n} as const;\n\nexport type BattlesControllerGetCurrentStreakSortBy = typeof BattlesControllerGetCurrentStreakSortBy[keyof typeof BattlesControllerGetCurrentStreakSortBy];\n\n\nexport const BattlesControllerGetCurrentStreakSortBy = {\n wins: 'wins',\n losses: 'losses',\n totalBattles: 'totalBattles',\n winRate: 'winRate',\n lastBattleDate: 'lastBattleDate',\n totalRatingDelta: 'totalRatingDelta',\n avgRatingDelta: 'avgRatingDelta',\n} as const;\n\nexport type BattlesControllerGetCurrentStreakSortOrder = typeof BattlesControllerGetCurrentStreakSortOrder[keyof typeof BattlesControllerGetCurrentStreakSortOrder];\n\n\nexport const BattlesControllerGetCurrentStreakSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetCurrentStreak401 = {\n message: string;\n};\n\nexport type BattlesControllerGetCurrentStreak403 = {\n message: string;\n};\n\nexport type BattlesControllerGetCurrentStreak429 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleDurationParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetBattleDurationPeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nsize?: number;\nsortBy?: BattlesControllerGetBattleDurationSortBy;\nsortOrder?: BattlesControllerGetBattleDurationSortOrder;\nincludeTotal?: boolean;\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminBattles?: number;\nph?: boolean;\nmatchmaking?: boolean;\n};\n\nexport type BattlesControllerGetBattleDurationPeriod = typeof BattlesControllerGetBattleDurationPeriod[keyof typeof BattlesControllerGetBattleDurationPeriod];\n\n\nexport const BattlesControllerGetBattleDurationPeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n all: 'all',\n} as const;\n\nexport type BattlesControllerGetBattleDurationSortBy = typeof BattlesControllerGetBattleDurationSortBy[keyof typeof BattlesControllerGetBattleDurationSortBy];\n\n\nexport const BattlesControllerGetBattleDurationSortBy = {\n wins: 'wins',\n losses: 'losses',\n totalBattles: 'totalBattles',\n winRate: 'winRate',\n lastBattleDate: 'lastBattleDate',\n totalRatingDelta: 'totalRatingDelta',\n avgRatingDelta: 'avgRatingDelta',\n} as const;\n\nexport type BattlesControllerGetBattleDurationSortOrder = typeof BattlesControllerGetBattleDurationSortOrder[keyof typeof BattlesControllerGetBattleDurationSortOrder];\n\n\nexport const BattlesControllerGetBattleDurationSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetBattleDuration401 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleDuration403 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleDuration429 = {\n message: string;\n};\n\nexport type BattlesControllerGetPhGrowthParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetPhGrowthPeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nsize?: number;\nsortBy?: BattlesControllerGetPhGrowthSortBy;\nsortOrder?: BattlesControllerGetPhGrowthSortOrder;\nincludeTotal?: boolean;\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminBattles?: number;\nph?: boolean;\nmatchmaking?: boolean;\n};\n\nexport type BattlesControllerGetPhGrowthPeriod = typeof BattlesControllerGetPhGrowthPeriod[keyof typeof BattlesControllerGetPhGrowthPeriod];\n\n\nexport const BattlesControllerGetPhGrowthPeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n all: 'all',\n} as const;\n\nexport type BattlesControllerGetPhGrowthSortBy = typeof BattlesControllerGetPhGrowthSortBy[keyof typeof BattlesControllerGetPhGrowthSortBy];\n\n\nexport const BattlesControllerGetPhGrowthSortBy = {\n wins: 'wins',\n losses: 'losses',\n totalBattles: 'totalBattles',\n winRate: 'winRate',\n lastBattleDate: 'lastBattleDate',\n totalRatingDelta: 'totalRatingDelta',\n avgRatingDelta: 'avgRatingDelta',\n} as const;\n\nexport type BattlesControllerGetPhGrowthSortOrder = typeof BattlesControllerGetPhGrowthSortOrder[keyof typeof BattlesControllerGetPhGrowthSortOrder];\n\n\nexport const BattlesControllerGetPhGrowthSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetPhGrowth401 = {\n message: string;\n};\n\nexport type BattlesControllerGetPhGrowth403 = {\n message: string;\n};\n\nexport type BattlesControllerGetPhGrowth429 = {\n message: string;\n};\n\nexport type BattlesControllerGetRatingGrowthParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetRatingGrowthPeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nsize?: number;\nsortBy?: BattlesControllerGetRatingGrowthSortBy;\nsortOrder?: BattlesControllerGetRatingGrowthSortOrder;\nincludeTotal?: boolean;\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminBattles?: number;\nph?: boolean;\nmatchmaking?: boolean;\n};\n\nexport type BattlesControllerGetRatingGrowthPeriod = typeof BattlesControllerGetRatingGrowthPeriod[keyof typeof BattlesControllerGetRatingGrowthPeriod];\n\n\nexport const BattlesControllerGetRatingGrowthPeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n all: 'all',\n} as const;\n\nexport type BattlesControllerGetRatingGrowthSortBy = typeof BattlesControllerGetRatingGrowthSortBy[keyof typeof BattlesControllerGetRatingGrowthSortBy];\n\n\nexport const BattlesControllerGetRatingGrowthSortBy = {\n wins: 'wins',\n losses: 'losses',\n totalBattles: 'totalBattles',\n winRate: 'winRate',\n lastBattleDate: 'lastBattleDate',\n totalRatingDelta: 'totalRatingDelta',\n avgRatingDelta: 'avgRatingDelta',\n} as const;\n\nexport type BattlesControllerGetRatingGrowthSortOrder = typeof BattlesControllerGetRatingGrowthSortOrder[keyof typeof BattlesControllerGetRatingGrowthSortOrder];\n\n\nexport const BattlesControllerGetRatingGrowthSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetRatingGrowth401 = {\n message: string;\n};\n\nexport type BattlesControllerGetRatingGrowth403 = {\n message: string;\n};\n\nexport type BattlesControllerGetRatingGrowth429 = {\n message: string;\n};\n\nexport type BattlesControllerGetRatingDeltaByOpponentParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetRatingDeltaByOpponentPeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nsize?: number;\nsortBy?: BattlesControllerGetRatingDeltaByOpponentSortBy;\nsortOrder?: BattlesControllerGetRatingDeltaByOpponentSortOrder;\nincludeTotal?: boolean;\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminBattles?: number;\nph?: boolean;\nmatchmaking?: boolean;\n};\n\nexport type BattlesControllerGetRatingDeltaByOpponentPeriod = typeof BattlesControllerGetRatingDeltaByOpponentPeriod[keyof typeof BattlesControllerGetRatingDeltaByOpponentPeriod];\n\n\nexport const BattlesControllerGetRatingDeltaByOpponentPeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n all: 'all',\n} as const;\n\nexport type BattlesControllerGetRatingDeltaByOpponentSortBy = typeof BattlesControllerGetRatingDeltaByOpponentSortBy[keyof typeof BattlesControllerGetRatingDeltaByOpponentSortBy];\n\n\nexport const BattlesControllerGetRatingDeltaByOpponentSortBy = {\n wins: 'wins',\n losses: 'losses',\n totalBattles: 'totalBattles',\n winRate: 'winRate',\n lastBattleDate: 'lastBattleDate',\n totalRatingDelta: 'totalRatingDelta',\n avgRatingDelta: 'avgRatingDelta',\n} as const;\n\nexport type BattlesControllerGetRatingDeltaByOpponentSortOrder = typeof BattlesControllerGetRatingDeltaByOpponentSortOrder[keyof typeof BattlesControllerGetRatingDeltaByOpponentSortOrder];\n\n\nexport const BattlesControllerGetRatingDeltaByOpponentSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetRatingDeltaByOpponent401 = {\n message: string;\n};\n\nexport type BattlesControllerGetRatingDeltaByOpponent403 = {\n message: string;\n};\n\nexport type BattlesControllerGetRatingDeltaByOpponent429 = {\n message: string;\n};\n\nexport type BattlesControllerGetPlayerVsPlayerBattlesParams = {\ncharacterId?: string;\nworld?: string;\nperiod?: BattlesControllerGetPlayerVsPlayerBattlesPeriod;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminLevel?: number;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nmaxLevel?: number;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nstartDate?: string;\n/**\n * @pattern ^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$\n */\nendDate?: string;\ncursor?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nsize?: number;\nsortBy?: BattlesControllerGetPlayerVsPlayerBattlesSortBy;\nsortOrder?: BattlesControllerGetPlayerVsPlayerBattlesSortOrder;\nincludeTotal?: boolean;\nsearch?: string;\n/**\n * @minimum 1\n * @maximum 9007199254740991\n */\nminBattles?: number;\nph?: boolean;\nmatchmaking?: boolean;\nopponentId: string;\nexcludeBattleId?: string;\n};\n\nexport type BattlesControllerGetPlayerVsPlayerBattlesPeriod = typeof BattlesControllerGetPlayerVsPlayerBattlesPeriod[keyof typeof BattlesControllerGetPlayerVsPlayerBattlesPeriod];\n\n\nexport const BattlesControllerGetPlayerVsPlayerBattlesPeriod = {\n '24h': '24h',\n '3d': '3d',\n '7d': '7d',\n '14d': '14d',\n '30d': '30d',\n '90d': '90d',\n '180d': '180d',\n all: 'all',\n} as const;\n\nexport type BattlesControllerGetPlayerVsPlayerBattlesSortBy = typeof BattlesControllerGetPlayerVsPlayerBattlesSortBy[keyof typeof BattlesControllerGetPlayerVsPlayerBattlesSortBy];\n\n\nexport const BattlesControllerGetPlayerVsPlayerBattlesSortBy = {\n wins: 'wins',\n losses: 'losses',\n totalBattles: 'totalBattles',\n winRate: 'winRate',\n lastBattleDate: 'lastBattleDate',\n totalRatingDelta: 'totalRatingDelta',\n avgRatingDelta: 'avgRatingDelta',\n} as const;\n\nexport type BattlesControllerGetPlayerVsPlayerBattlesSortOrder = typeof BattlesControllerGetPlayerVsPlayerBattlesSortOrder[keyof typeof BattlesControllerGetPlayerVsPlayerBattlesSortOrder];\n\n\nexport const BattlesControllerGetPlayerVsPlayerBattlesSortOrder = {\n asc: 'asc',\n desc: 'desc',\n} as const;\n\nexport type BattlesControllerGetPlayerVsPlayerBattles401 = {\n message: string;\n};\n\nexport type BattlesControllerGetPlayerVsPlayerBattles403 = {\n message: string;\n};\n\nexport type BattlesControllerGetPlayerVsPlayerBattles429 = {\n message: string;\n};\n\nexport type BattlesControllerSearchWarriorsParams = {\nq: string;\n};\n\nexport type BattlesControllerSearchWarriors401 = {\n message: string;\n};\n\nexport type BattlesControllerSearchWarriors403 = {\n message: string;\n};\n\nexport type BattlesControllerSearchWarriors429 = {\n message: string;\n};\n\nexport type BattlesControllerGetUserWorlds401 = {\n message: string;\n};\n\nexport type BattlesControllerGetUserWorlds403 = {\n message: string;\n};\n\nexport type BattlesControllerGetUserWorlds429 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleTimelinePathParameters = {\n battleId: string,\n }\nexport type BattlesControllerGetBattleTimeline401 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleTimeline403 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleTimeline429 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattlePathParameters = {\n battleId: string,\n }\nexport type BattlesControllerGetBattle401 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattle403 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattle429 = {\n message: string;\n};\n\nexport type BattlesControllerUpdateBattlePathParameters = {\n battleId: string,\n }\nexport type BattlesControllerUpdateBattle400Message = string | ({\n path: (string | number | 'Infinity' | '-Infinity' | 'NaN')[];\n message: string;\n})[];\n\nexport type BattlesControllerUpdateBattle400StatusCode = typeof BattlesControllerUpdateBattle400StatusCode[keyof typeof BattlesControllerUpdateBattle400StatusCode];\n\n\nexport const BattlesControllerUpdateBattle400StatusCode = {\n NUMBER_400: 400,\n} as const;\n\nexport type BattlesControllerUpdateBattle400 = {\n error: string;\n message: BattlesControllerUpdateBattle400Message;\n statusCode: BattlesControllerUpdateBattle400StatusCode;\n};\n\nexport type BattlesControllerUpdateBattle401 = {\n message: string;\n};\n\nexport type BattlesControllerUpdateBattle403 = {\n message: string;\n};\n\nexport type BattlesControllerUpdateBattle429 = {\n message: string;\n};\n\nexport type BattlesControllerDeleteBattlePathParameters = {\n battleId: string,\n }\nexport type BattlesControllerDeleteBattle401 = {\n message: string;\n};\n\nexport type BattlesControllerDeleteBattle403 = {\n message: string;\n};\n\nexport type BattlesControllerDeleteBattle429 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleRawDataPathParameters = {\n battleId: string,\n }\nexport type BattlesControllerGetBattleRawData401 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleRawData403 = {\n message: string;\n};\n\nexport type BattlesControllerGetBattleRawData429 = {\n message: string;\n};\n\nexport type PublicBattlesControllerGetPublicBattlePathParameters = {\n battleId: string,\n }\nexport type PublicBattlesControllerGetPublicBattle401 = {\n message: string;\n};\n\nexport type PublicBattlesControllerGetPublicBattle403 = {\n message: string;\n};\n\nexport type PublicBattlesControllerGetPublicBattle429 = {\n message: string;\n};\n\nexport type PublicBattlesControllerGetPublicBattleRawPathParameters = {\n battleId: string,\n }\nexport type PublicBattlesControllerGetPublicBattleRaw401 = {\n message: string;\n};\n\nexport type PublicBattlesControllerGetPublicBattleRaw403 = {\n message: string;\n};\n\nexport type PublicBattlesControllerGetPublicBattleRaw429 = {\n message: string;\n};\n\nexport type PublicBattlesControllerGetPublicBattleTimelinePathParameters = {\n battleId: string,\n }\nexport type PublicBattlesControllerGetPublicBattleTimeline401 = {\n message: string;\n};\n\nexport type PublicBattlesControllerGetPublicBattleTimeline403 = {\n message: string;\n};\n\nexport type PublicBattlesControllerGetPublicBattleTimeline429 = {\n message: string;\n};\n\nexport const getBattlesControllerCreateBattleUrl = () => {\n\n\n\n\n return `/battles`\n}\n\n/**\n * @summary Create a battle\n */\nexport const battlesControllerCreateBattle = async (createBattleDto: CreateBattleDto, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleCreatedResponseDtoOutput> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Array.isArray(h)) return Object.fromEntries(h);\n return h;\n };\nreturn battlelogFetch<BattleCreatedResponseDtoOutput>(getBattlesControllerCreateBattleUrl(),\n {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(createBattleDto)\n }\n);}\n\n\n\nexport const getBattlesControllerGetDashboardBattlesUrl = (params?: BattlesControllerGetDashboardBattlesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n const explodeParameters = [\"type\",\"characterId\",\"result\"];\n\n if (Array.isArray(value) && explodeParameters.includes(key)) {\n value.forEach((v) => {\n normalizedParams.append(key, v === null ? 'null' : String(v));\n });\n return;\n }\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me?${stringifiedParams}` : `/battles/@me`\n}\n\n/**\n * @summary Get authenticated user battles\n */\nexport const battlesControllerGetDashboardBattles = async (params?: BattlesControllerGetDashboardBattlesParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattlesListResponseDtoOutput> => {\n\n return battlelogFetch<BattlesListResponseDtoOutput>(getBattlesControllerGetDashboardBattlesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetUserCharactersUrl = () => {\n\n\n\n\n return `/battles/@me/characters`\n}\n\n/**\n * @summary Get authenticated user battle characters\n */\nexport const battlesControllerGetUserCharacters = async ( options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleCharactersResponseDtoOutput> => {\n\n return battlelogFetch<BattleCharactersResponseDtoOutput>(getBattlesControllerGetUserCharactersUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetBattleAnalyticsUrl = (params?: BattlesControllerGetBattleAnalyticsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/analytics?${stringifiedParams}` : `/battles/@me/analytics`\n}\n\n/**\n * @summary Get authenticated user battle analytics\n */\nexport const battlesControllerGetBattleAnalytics = async (params?: BattlesControllerGetBattleAnalyticsParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleAnalyticsResponseDtoOutput> => {\n\n return battlelogFetch<BattleAnalyticsResponseDtoOutput>(getBattlesControllerGetBattleAnalyticsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetAbyssSeasonsUrl = (params: BattlesControllerGetAbyssSeasonsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/abyss/seasons?${stringifiedParams}` : `/battles/@me/abyss/seasons`\n}\n\n/**\n * @summary Get authenticated user Abyss seasons\n */\nexport const battlesControllerGetAbyssSeasons = async (params: BattlesControllerGetAbyssSeasonsParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<AbyssSeasonResponseDtoOutput[]> => {\n\n return battlelogFetch<AbyssSeasonResponseDtoOutput[]>(getBattlesControllerGetAbyssSeasonsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetCombatProfileUrl = (params?: BattlesControllerGetCombatProfileParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/statistics/combat-profile?${stringifiedParams}` : `/battles/@me/statistics/combat-profile`\n}\n\n/**\n * @summary Get combat profile statistics\n */\nexport const battlesControllerGetCombatProfile = async (params?: BattlesControllerGetCombatProfileParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<CombatProfileResponseDtoOutput> => {\n\n return battlelogFetch<CombatProfileResponseDtoOutput>(getBattlesControllerGetCombatProfileUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetProfessionWinRateUrl = (params?: BattlesControllerGetProfessionWinRateParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/statistics/profession-win-rate?${stringifiedParams}` : `/battles/@me/statistics/profession-win-rate`\n}\n\n/**\n * @summary Get profession win rate statistics\n */\nexport const battlesControllerGetProfessionWinRate = async (params?: BattlesControllerGetProfessionWinRateParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<ProfessionWinRateResponseDtoOutput[]> => {\n\n return battlelogFetch<ProfessionWinRateResponseDtoOutput[]>(getBattlesControllerGetProfessionWinRateUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetHeadToHeadUrl = (params?: BattlesControllerGetHeadToHeadParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/statistics/head-to-head?${stringifiedParams}` : `/battles/@me/statistics/head-to-head`\n}\n\n/**\n * @summary Get head-to-head statistics\n */\nexport const battlesControllerGetHeadToHead = async (params?: BattlesControllerGetHeadToHeadParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<HeadToHeadPaginatedResponseDtoOutput> => {\n\n return battlelogFetch<HeadToHeadPaginatedResponseDtoOutput>(getBattlesControllerGetHeadToHeadUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetCurrentStreakUrl = (params?: BattlesControllerGetCurrentStreakParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/statistics/streak?${stringifiedParams}` : `/battles/@me/statistics/streak`\n}\n\n/**\n * @summary Get current battle streak statistics\n */\nexport const battlesControllerGetCurrentStreak = async (params?: BattlesControllerGetCurrentStreakParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<StreakResponseDtoOutput> => {\n\n return battlelogFetch<StreakResponseDtoOutput>(getBattlesControllerGetCurrentStreakUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetBattleDurationUrl = (params?: BattlesControllerGetBattleDurationParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/statistics/duration?${stringifiedParams}` : `/battles/@me/statistics/duration`\n}\n\n/**\n * @summary Get battle duration statistics\n */\nexport const battlesControllerGetBattleDuration = async (params?: BattlesControllerGetBattleDurationParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleDurationStatsResponseDtoOutput> => {\n\n return battlelogFetch<BattleDurationStatsResponseDtoOutput>(getBattlesControllerGetBattleDurationUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetPhGrowthUrl = (params?: BattlesControllerGetPhGrowthParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/statistics/ph-growth?${stringifiedParams}` : `/battles/@me/statistics/ph-growth`\n}\n\n/**\n * @summary Get PH growth statistics\n */\nexport const battlesControllerGetPhGrowth = async (params?: BattlesControllerGetPhGrowthParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<PhGrowthDataPointResponseDtoOutput[]> => {\n\n return battlelogFetch<PhGrowthDataPointResponseDtoOutput[]>(getBattlesControllerGetPhGrowthUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetRatingGrowthUrl = (params?: BattlesControllerGetRatingGrowthParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/statistics/rating-growth?${stringifiedParams}` : `/battles/@me/statistics/rating-growth`\n}\n\n/**\n * @summary Get rating growth statistics\n */\nexport const battlesControllerGetRatingGrowth = async (params?: BattlesControllerGetRatingGrowthParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<RatingGrowthDataPointResponseDtoOutput[]> => {\n\n return battlelogFetch<RatingGrowthDataPointResponseDtoOutput[]>(getBattlesControllerGetRatingGrowthUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetRatingDeltaByOpponentUrl = (params?: BattlesControllerGetRatingDeltaByOpponentParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/statistics/rating-delta-by-opponent?${stringifiedParams}` : `/battles/@me/statistics/rating-delta-by-opponent`\n}\n\n/**\n * @summary Get rating delta by opponent statistics\n */\nexport const battlesControllerGetRatingDeltaByOpponent = async (params?: BattlesControllerGetRatingDeltaByOpponentParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<RatingDeltaByOpponentResponseDtoOutput[]> => {\n\n return battlelogFetch<RatingDeltaByOpponentResponseDtoOutput[]>(getBattlesControllerGetRatingDeltaByOpponentUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetPlayerVsPlayerBattlesUrl = (params: BattlesControllerGetPlayerVsPlayerBattlesParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/statistics/player-vs-player?${stringifiedParams}` : `/battles/@me/statistics/player-vs-player`\n}\n\n/**\n * @summary Get player-vs-player battles\n */\nexport const battlesControllerGetPlayerVsPlayerBattles = async (params: BattlesControllerGetPlayerVsPlayerBattlesParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<PlayerVsPlayerPaginatedResponseDtoOutput> => {\n\n return battlelogFetch<PlayerVsPlayerPaginatedResponseDtoOutput>(getBattlesControllerGetPlayerVsPlayerBattlesUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerSearchWarriorsUrl = (params: BattlesControllerSearchWarriorsParams,) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : String(value))\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/battles/@me/warriors/search?${stringifiedParams}` : `/battles/@me/warriors/search`\n}\n\n/**\n * @summary Search warriors for authenticated user\n */\nexport const battlesControllerSearchWarriors = async (params: BattlesControllerSearchWarriorsParams, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleWarriorsSearchResponseDtoOutput> => {\n\n return battlelogFetch<BattleWarriorsSearchResponseDtoOutput>(getBattlesControllerSearchWarriorsUrl(params),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetUserWorldsUrl = () => {\n\n\n\n\n return `/battles/@me/worlds`\n}\n\n/**\n * @summary Get worlds used by authenticated user battles\n */\nexport const battlesControllerGetUserWorlds = async ( options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleUserWorldsResponseDtoOutput> => {\n\n return battlelogFetch<BattleUserWorldsResponseDtoOutput>(getBattlesControllerGetUserWorldsUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetBattleTimelineUrl = ({ battleId }: BattlesControllerGetBattleTimelinePathParameters,) => {\n\n\n\n\n return `/battles/${battleId}/timeline`\n}\n\n/**\n * @summary Get computed battle timeline\n */\nexport const battlesControllerGetBattleTimeline = async ({ battleId }: BattlesControllerGetBattleTimelinePathParameters, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleTimelineResponseDtoOutput> => {\n\n return battlelogFetch<BattleTimelineResponseDtoOutput>(getBattlesControllerGetBattleTimelineUrl({ battleId }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetBattleUrl = ({ battleId }: BattlesControllerGetBattlePathParameters,) => {\n\n\n\n\n return `/battles/${battleId}`\n}\n\n/**\n * @summary Get a single battle\n */\nexport const battlesControllerGetBattle = async ({ battleId }: BattlesControllerGetBattlePathParameters, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleResponseDtoOutput> => {\n\n return battlelogFetch<BattleResponseDtoOutput>(getBattlesControllerGetBattleUrl({ battleId }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerUpdateBattleUrl = ({ battleId }: BattlesControllerUpdateBattlePathParameters,) => {\n\n\n\n\n return `/battles/${battleId}`\n}\n\n/**\n * @summary Update battle visibility\n */\nexport const battlesControllerUpdateBattle = async ({ battleId }: BattlesControllerUpdateBattlePathParameters,\n updateBattleDto: UpdateBattleDto, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleResponseDtoOutput> => {\n\n const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {\n if (!h) return {};\n if (h instanceof Headers) return Object.fromEntries(h.entries());\n if (Array.isArray(h)) return Object.fromEntries(h);\n return h;\n };\nreturn battlelogFetch<BattleResponseDtoOutput>(getBattlesControllerUpdateBattleUrl({ battleId }),\n {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },\n body: JSON.stringify(updateBattleDto)\n }\n);}\n\n\n\nexport const getBattlesControllerDeleteBattleUrl = ({ battleId }: BattlesControllerDeleteBattlePathParameters,) => {\n\n\n\n\n return `/battles/${battleId}`\n}\n\n/**\n * @summary Delete a battle\n */\nexport const battlesControllerDeleteBattle = async ({ battleId }: BattlesControllerDeleteBattlePathParameters, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleDeletedResponseDtoOutput> => {\n\n return battlelogFetch<BattleDeletedResponseDtoOutput>(getBattlesControllerDeleteBattleUrl({ battleId }),\n {\n ...options,\n method: 'DELETE'\n\n\n }\n);}\n\n\n\nexport const getBattlesControllerGetBattleRawDataUrl = ({ battleId }: BattlesControllerGetBattleRawDataPathParameters,) => {\n\n\n\n\n return `/battles/${battleId}/raw`\n}\n\n/**\n * @summary Get raw battle payload\n */\nexport const battlesControllerGetBattleRawData = async ({ battleId }: BattlesControllerGetBattleRawDataPathParameters, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleRawResponseDtoOutput> => {\n\n return battlelogFetch<BattleRawResponseDtoOutput>(getBattlesControllerGetBattleRawDataUrl({ battleId }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPublicBattlesControllerGetPublicBattleUrl = ({ battleId }: PublicBattlesControllerGetPublicBattlePathParameters,) => {\n\n\n\n\n return `/battles/public/${battleId}`\n}\n\n/**\n * @summary Get a public battle\n */\nexport const publicBattlesControllerGetPublicBattle = async ({ battleId }: PublicBattlesControllerGetPublicBattlePathParameters, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleResponseDtoOutput> => {\n\n return battlelogFetch<BattleResponseDtoOutput>(getPublicBattlesControllerGetPublicBattleUrl({ battleId }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPublicBattlesControllerGetPublicBattleRawUrl = ({ battleId }: PublicBattlesControllerGetPublicBattleRawPathParameters,) => {\n\n\n\n\n return `/battles/public/${battleId}/raw`\n}\n\n/**\n * @summary Get raw payload for a public battle\n */\nexport const publicBattlesControllerGetPublicBattleRaw = async ({ battleId }: PublicBattlesControllerGetPublicBattleRawPathParameters, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleRawResponseDtoOutput> => {\n\n return battlelogFetch<BattleRawResponseDtoOutput>(getPublicBattlesControllerGetPublicBattleRawUrl({ battleId }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n\n\n\nexport const getPublicBattlesControllerGetPublicBattleTimelineUrl = ({ battleId }: PublicBattlesControllerGetPublicBattleTimelinePathParameters,) => {\n\n\n\n\n return `/battles/public/${battleId}/timeline`\n}\n\n/**\n * @summary Get computed timeline for a public battle\n */\nexport const publicBattlesControllerGetPublicBattleTimeline = async ({ battleId }: PublicBattlesControllerGetPublicBattleTimelinePathParameters, options?: Parameters<typeof battlelogFetch>[1]): Promise<BattleTimelineResponseDtoOutput> => {\n\n return battlelogFetch<BattleTimelineResponseDtoOutput>(getPublicBattlesControllerGetPublicBattleTimelineUrl({ battleId }),\n {\n ...options,\n method: 'GET'\n\n\n }\n);}\n"],"mappings":";;;;;;;;;AAigBA,MAAa,kEAAkE;CAC7E,KAAK;CACL,MAAM;CACN,MAAM;AACR;AA4EA,MAAa,qCAAqC;CAChD,MAAM;CACN,QAAQ;CACR,MAAM;AACR;AAopBA,MAAa,6CAA6C,EACxD,YAAY,IACd;AA6DA,MAAa,gDAAgD;CAC3D,KAAK;CACL,MAAM;AACR;AAKA,MAAa,+CAA+C;CAC1D,MA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ACH,QAAQ;CAGV,CACF;AAAE;AAIF,MAAa,mDAAmD,EAAE,eAAyE;CAKzI,OAAO,mBAAmB,SAAS;AACrC;;;;AAKA,MAAa,4CAA4C,OAAO,EAAE,YAAqE,YAAwF;CAE7N,OAAO,eAA2C,gDAAgD,EAAE,SAAS,CAAC,GAC9G;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE;AAIF,MAAa,wDAAwD,EAAE,eAA8E;CAKnJ,OAAO,mBAAmB,SAAS;AACrC;;;;AAKA,MAAa,iDAAiD,OAAO,EAAE,YAA0E,YAA6F;CAE5O,OAAO,eAAgD,qDAAqD,EAAE,SAAS,CAAC,GACxH;EACE,GAAG;EACH,QAAQ;CAGV,CACF;AAAE"}
@@ -0,0 +1,12 @@
1
+ import { n as ApiServiceConfig } from "./transport-BHbtsYo_.js";
2
+ //#region src/index.d.ts
3
+ export type LootlogApiOptions = {
4
+ apiKey: string;
5
+ environment?: "production" | "development";
6
+ fetch?: ApiServiceConfig["fetch"];
7
+ baseUrls?: Partial<Record<"main" | "activity" | "battlelog" | "search", string>>;
8
+ };
9
+ /** Configure the generated HTTP functions. Returns an idempotent cleanup function. */
10
+ export declare function configureLootlogApi(options: LootlogApiOptions): () => void;
11
+ //#endregion
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;YAKY;EACV;EACA;EACA,QAAQ;EACR,WAAW,QACT;;;wBAKY,oBAAoB,SAAS"}
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ import { t as configureApiClients } from "./transport-CIfewyM7.js";
2
+ //#region src/index.ts
3
+ /** Configure the generated HTTP functions. Returns an idempotent cleanup function. */
4
+ function configureLootlogApi(options) {
5
+ if (!options.apiKey.trim()) throw new TypeError("apiKey must not be empty");
6
+ const prefix = options.environment === "development" ? "dev-" : "";
7
+ const configuration = (service) => ({
8
+ baseUrl: options.baseUrls?.[service] ?? `https://${prefix}${service === "main" ? "api" : service}.lootlog.pl`,
9
+ credentials: "omit",
10
+ fetch: options.fetch,
11
+ getHeaders: () => ({ "X-Api-Key": options.apiKey })
12
+ });
13
+ return configureApiClients({
14
+ main: configuration("main"),
15
+ activity: configuration("activity"),
16
+ battlelog: configuration("battlelog"),
17
+ search: configuration("search")
18
+ });
19
+ }
20
+ //#endregion
21
+ export { configureLootlogApi };
22
+
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n configureApiClients,\n type ApiServiceConfig,\n} from \"@lootlog/client/transport\";\n\nexport type LootlogApiOptions = {\n apiKey: string;\n environment?: \"production\" | \"development\";\n fetch?: ApiServiceConfig[\"fetch\"];\n baseUrls?: Partial<\n Record<\"main\" | \"activity\" | \"battlelog\" | \"search\", string>\n >;\n};\n\n/** Configure the generated HTTP functions. Returns an idempotent cleanup function. */\nexport function configureLootlogApi(options: LootlogApiOptions): () => void {\n if (!options.apiKey.trim()) throw new TypeError(\"apiKey must not be empty\");\n const prefix = options.environment === \"development\" ? \"dev-\" : \"\";\n\n const configuration = (\n service: \"main\" | \"activity\" | \"battlelog\" | \"search\",\n ): ApiServiceConfig => ({\n baseUrl:\n options.baseUrls?.[service] ??\n `https://${prefix}${service === \"main\" ? \"api\" : service}.lootlog.pl`,\n credentials: \"omit\",\n fetch: options.fetch,\n getHeaders: () => ({ \"X-Api-Key\": options.apiKey }),\n });\n\n return configureApiClients({\n main: configuration(\"main\"),\n activity: configuration(\"activity\"),\n battlelog: configuration(\"battlelog\"),\n search: configuration(\"search\"),\n });\n}\n"],"mappings":";;;AAeA,SAAgB,oBAAoB,SAAwC;CAC1E,IAAI,CAAC,QAAQ,OAAO,KAAK,GAAG,MAAM,IAAI,UAAU,0BAA0B;CAC1E,MAAM,SAAS,QAAQ,gBAAgB,gBAAgB,SAAS;CAEhE,MAAM,iBACJ,aACsB;EACtB,SACE,QAAQ,WAAW,YACnB,WAAW,SAAS,YAAY,SAAS,QAAQ,QAAQ;EAC3D,aAAa;EACb,OAAO,QAAQ;EACf,mBAAmB,EAAE,aAAa,QAAQ,OAAO;CACnD;CAEA,OAAO,oBAAoB;EACzB,MAAM,cAAc,MAAM;EAC1B,UAAU,cAAc,UAAU;EAClC,WAAW,cAAc,WAAW;EACpC,QAAQ,cAAc,QAAQ;CAChC,CAAC;AACH"}