Core Data Documentation

Data boundaries shared by core consumers; no API/runtime dependencies.

class bedrock_server_manager.core.data.PlayerRecord(*, name: str, xuid: str)
model_config = {'allow_inf_nan': False, 'extra': 'forbid', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.core.data.SummaryRecord(*, players_available: bool = True, name: str, status: str, version: str, player_count: Annotated[int, Ge(ge=0)], players: list[PlayerRecord])
model_config = {'allow_inf_nan': False, 'extra': 'forbid', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.core.data.ProcessRecord(*, pid: Annotated[int, Gt(gt=0)], cpu_percent: Annotated[float, Ge(ge=0)], memory_mb: Annotated[float, Ge(ge=0)], uptime: str)
model_config = {'allow_inf_nan': False, 'extra': 'forbid', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.core.data.ExternalRecord(**extra_data: Any)

Preserve Minecraft extensions while validating known fields and JSON.

model_config = {'allow_inf_nan': False, 'extra': 'allow', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.core.data.AllowlistEntry(*, name: Annotated[str, MinLen(min_length=1)], xuid: str | None = None, ignoresPlayerLimit: bool = False, **extra_data: Any)
model_config = {'allow_inf_nan': False, 'extra': 'allow', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.core.data.PermissionEntry(*, xuid: Annotated[str, MinLen(min_length=1)], permission: Literal['visitor', 'member', 'operator'], name: str | None = None, **extra_data: Any)
model_config = {'allow_inf_nan': False, 'extra': 'allow', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.core.data.ManifestHeader(*, uuid: Annotated[str, MinLen(min_length=1)], version: Annotated[list[Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0)])]], MinLen(min_length=3), MaxLen(max_length=3)], name: Annotated[str, MinLen(min_length=1)], **extra_data: Any)
model_config = {'allow_inf_nan': False, 'extra': 'allow', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.core.data.ManifestModule(*, type: str | None = None, description: str | None = None, **extra_data: Any)
model_config = {'allow_inf_nan': False, 'extra': 'allow', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.core.data.SubpackRecord(*, folder_name: Annotated[str, MinLen(min_length=1)], name: str | None = None, memory_tier: Annotated[int | None, Ge(ge=0)] = None, **extra_data: Any)
classmethod normalize_memory_tier(value: object) → object

Map Minecraft’s field to BSM’s existing public field name.

model_config = {'allow_inf_nan': False, 'extra': 'allow', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.core.data.ManifestRecord(*, header: ~bedrock_server_manager.core.data.ManifestHeader, modules: ~typing.Annotated[list[~bedrock_server_manager.core.data.ManifestModule], ~annotated_types.MinLen(min_length=1)], subpacks: list[~bedrock_server_manager.core.data.SubpackRecord] = <factory>, **extra_data: ~typing.Any)
model_config = {'allow_inf_nan': False, 'extra': 'allow', 'hide_input_in_errors': True, 'revalidate_instances': 'always', 'strict': True, 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].