mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
28 lines
499 B
Python
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]
|