Character Models# Character Models
character
Classes:
-
AscensionMaterial–Represents a material required for character ascension.
-
Birthday–Represents a character's birthday.
-
Character–Represents a character summary.
-
CharacterBaseStat–Represents a base stat of a character and its growth type.
-
CharacterCV–Represents character voice actor information for a specific language.
-
CharacterDetail–Represents detailed information about a character.
-
CharacterInfo–Represents detailed character information like title, story, affiliation, and CVs.
-
CharacterPromote–Represents a character promotion (ascension) level.
-
CharacterPromoteMaterial–Represents a material required for character promotion (ascension).
-
CharacterPromoteStat–Represents a stat bonus gained from character promotion (ascension).
-
CharacterUpgrade–Represents the upgrade details (stats and promotions) of a character.
-
Constellation–Represents a character constellation.
-
Talent–Represents a character talent.
-
TalentExtraLevel–Represents an extra talent level granted by a constellation.
-
TalentUpgrade–Represents a specific level upgrade for a talent.
-
TalentUpgradeItem–Represents an item required for talent upgrades.
AscensionMaterial
pydantic-model
Birthday
pydantic-model
Character
pydantic-model
Represents a character summary.
Attributes:
-
id(str) –The character's unique ID (as a string).
-
rarity(int) –The character's rarity rank (4 or 5).
-
name(str) –The character's name.
-
element(Element) –The character's element.
-
weapon_type(WeaponType) –The type of weapon the character uses.
-
icon(str) –The icon URL for the character.
-
birthday(Birthday) –The character's birthday.
-
release(datetime | None) –The date and time the character was released (optional).
-
route(str) –The route identifier for the character.
-
beta(bool) –Whether the character data is considered beta/unreleased.
-
special_stat(SpecialStat | str) –The specialized stat gained through ascension (e.g., Crit Rate, Pyro DMG Bonus).
-
region(str) –The region the character is associated with.
Fields:
-
id(str) -
rarity(int) -
name(str) -
element(Element) -
weapon_type(WeaponType) -
icon(str) -
birthday(Birthday) -
release(datetime | None) -
route(str) -
beta(bool) -
special_stat(SpecialStat | str) -
region(str)
Validators:
-
__convert_element→element -
_convert_icon_url→icon -
_convert_birthday→birthday -
_convert_release→release -
__convert_special_stat→special_stat
CharacterBaseStat
pydantic-model
Represents a base stat of a character and its growth type.
Attributes:
-
prop_type(str) –The identifier string for the stat (e.g., "FIGHT_PROP_BASE_HP").
-
init_value(float) –The initial value of the stat at level 1.
-
growth_type(str) –The identifier string for the stat's growth curve (e.g., "GROW_CURVE_HP_S4").
Fields:
-
prop_type(str) -
init_value(float) -
growth_type(str)
CharacterCV
pydantic-model
CharacterDetail
pydantic-model
Represents detailed information about a character.
Attributes:
-
id(str) –The character's unique ID (as a string).
-
rarity(int) –The character's rarity rank (4 or 5).
-
name(str) –The character's name.
-
element(Element) –The character's element.
-
weapon_type(WeaponType) –The type of weapon the character uses.
-
icon(str) –The icon URL for the character.
-
birthday(Birthday) –The character's birthday.
-
release(datetime | None) –The date and time the character was released (optional).
-
route(str) –The route identifier for the character.
-
info(CharacterInfo) –Detailed profile information (title, story, CVs, etc.).
-
upgrade(CharacterUpgrade) –Information about the character's stats and ascension progression.
-
ascension_materials(list[AscensionMaterial]) –A list of materials required for ascension.
-
talents(list[Talent]) –A list of the character's talents (active and passive).
-
constellations(list[Constellation]) –A list of the character's constellations.
-
beta(bool) –Whether the character data is considered beta/unreleased.
-
special_stat(SpecialStat | str) –The specialized stat gained through ascension (e.g., Crit Rate, Pyro DMG Bonus).
-
region(str) –The region the character is associated with.
Fields:
-
id(str) -
rarity(int) -
name(str) -
element(Element) -
weapon_type(WeaponType) -
icon(str) -
birthday(Birthday) -
release(datetime | None) -
route(str) -
info(CharacterInfo) -
upgrade(CharacterUpgrade) -
ascension_materials(list[AscensionMaterial]) -
talents(list[Talent]) -
constellations(list[Constellation]) -
beta(bool) -
special_stat(SpecialStat | str) -
region(str)
Validators:
-
_convert_icon_url→icon -
_convert_birthday→birthday -
_convert_ascension_materials→ascension_materials -
_convert_talents→talents -
_convert_constellations→constellations -
_convert_release→release -
__convert_special_stat→special_stat -
__convert_element→element
CharacterInfo
pydantic-model
Represents detailed character information like title, story, affiliation, and CVs.
Attributes:
-
title(str) –The character's title (e.g., "Spark Knight").
-
detail(str) –The character's story or profile description.
-
constellation(str) –The name of the character's constellation.
-
native(str) –The character's affiliation or origin (e.g., "Mondstadt").
-
cv(list[CharacterCV]) –A list of voice actor information for different languages.
Fields:
Validators:
-
_convert_cv→cv
CharacterPromote
pydantic-model
Represents a character promotion (ascension) level.
Attributes:
-
promote_level(int) –The ascension phase number (e.g., 1 for first ascension).
-
unlock_max_level(int) –The maximum character level unlocked after this promotion.
-
cost_items(list[CharacterPromoteMaterial] | None) –A list of materials required for this promotion (optional).
-
add_stats(list[CharacterPromoteStat] | None) –A list of stat bonuses granted by this promotion (optional).
-
required_player_level(int | None) –The minimum Adventure Rank required for this promotion (optional).
-
coin_cost(int | None) –The Mora cost for this promotion (optional).
Fields:
-
promote_level(int) -
unlock_max_level(int) -
cost_items(list[CharacterPromoteMaterial] | None) -
add_stats(list[CharacterPromoteStat] | None) -
required_player_level(int | None) -
coin_cost(int | None)
Validators:
-
_convert_cost_items→cost_items -
_convert_add_stats→add_stats
CharacterPromoteMaterial
pydantic-model
CharacterPromoteStat
pydantic-model
CharacterUpgrade
pydantic-model
Represents the upgrade details (stats and promotions) of a character.
Attributes:
-
base_stats(list[CharacterBaseStat]) –A list of the character's base stats and their growth types.
-
promotes(list[CharacterPromote]) –A list of promotion (ascension) levels and their details.
Fields:
Constellation
pydantic-model
Represents a character constellation.
Attributes:
-
name(str) –The name of the constellation.
-
description(str) –The description of the constellation's effect.
-
extra_level(TalentExtraLevel | None) –Information about extra talent levels granted by this constellation (optional).
-
icon(str) –The icon URL for the constellation.
Fields:
-
name(str) -
description(str) -
extra_level(TalentExtraLevel | None) -
icon(str)
Validators:
-
_convert_extra_level→extra_level -
_convert_icon_url→icon
Talent
pydantic-model
Represents a character talent.
Attributes:
-
type(TalentType) –The type of talent (Normal, Skill, Ultimate, Passive).
-
name(str) –The name of the talent.
-
description(str) –The base description of the talent.
-
icon(str) –The icon URL for the talent.
-
upgrades(list[TalentUpgrade] | None) –A list of upgrade details for each level (optional, usually for active talents).
-
cooldown(float | None) –The cooldown time in seconds (optional).
-
cost(int | None) –The energy cost (optional, usually for Ultimate).
Fields:
-
type(TalentType) -
name(str) -
description(str) -
icon(str) -
upgrades(list[TalentUpgrade] | None) -
cooldown(float | None) -
cost(int | None)
Validators:
TalentExtraLevel
pydantic-model
Represents an extra talent level granted by a constellation.
Attributes:
-
talent_type(ExtraLevelType) –The type of talent that gets the extra level (Normal, Skill, Ultimate).
-
extra_level(int) –The number of extra levels granted.
Fields:
TalentUpgrade
pydantic-model
Represents a specific level upgrade for a talent.
Attributes:
-
level(int) –The target level of the upgrade.
-
cost_items(list[TalentUpgradeItem] | None) –A list of items required for this upgrade level (optional).
-
mora_cost(int | None) –The Mora cost for this upgrade level (optional).
-
description(list[str]) –A list of strings describing the talent's effect at this level.
-
params(list[int | float]) –A list of numerical parameters associated with the talent's effect at this level.
Fields:
-
level(int) -
cost_items(list[TalentUpgradeItem] | None) -
mora_cost(int | None) -
description(list[str]) -
params(list[int | float])
Validators:
-
__stringify_descriptions→description -
_convert_cost_items→cost_items