Files
musicseerr/backend/api/v1/schemas/common.py
T
2026-04-03 15:53:00 +01:00

38 lines
718 B
Python

from typing import Literal
from models.common import ServiceStatus as ServiceStatus
from infrastructure.msgspec_fastapi import AppStruct
GenreArtistMap = dict[str, str | None]
class IntegrationStatus(AppStruct):
listenbrainz: bool
jellyfin: bool
lidarr: bool
youtube: bool
lastfm: bool
navidrome: bool = False
youtube_api: bool = False
class StatusReport(AppStruct):
status: Literal["ok", "degraded", "error"]
services: dict[str, ServiceStatus]
class LastFmTagSchema(AppStruct):
name: str
url: str | None = None
class StatusMessageResponse(AppStruct):
status: str
message: str
class VerifyConnectionResponse(AppStruct):
valid: bool
message: str