Files
romm/backend/endpoints/responses/firmware.py
2024-05-05 13:25:46 -04:00

28 lines
499 B
Python

from pydantic import BaseModel
from typing_extensions import TypedDict
class FirmwareSchema(BaseModel):
id: int
file_name: str
file_name_no_tags: str
file_name_no_ext: str
file_extension: str
file_path: str
file_size_bytes: int
full_path: str
is_verified: bool
crc_hash: str
md5_hash: str
sha1_hash: str
class Config:
from_attributes = True
class AddFirmwareResponse(TypedDict):
uploaded: int
firmware: list[FirmwareSchema]