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

28 lines
536 B
Python

from infrastructure.msgspec_fastapi import AppStruct
class PlaybackSessionResponse(AppStruct):
play_session_id: str
item_id: str
class StartPlaybackRequest(AppStruct):
play_session_id: str | None = None
class JellyfinPlaybackUrlResponse(AppStruct):
url: str
seekable: bool
playSessionId: str
class ProgressReportRequest(AppStruct):
play_session_id: str
position_seconds: float
is_paused: bool = False
class StopReportRequest(AppStruct):
play_session_id: str
position_seconds: float