update: firmware and provisioning now supports bootloader and partition tables
This commit is contained in:
@@ -30,13 +30,30 @@ class FirmwareListResponse(BaseModel):
|
||||
|
||||
|
||||
class FirmwareMetadataResponse(BaseModel):
|
||||
"""Returned by both /latest and /{version}/info endpoints."""
|
||||
"""Returned by both /latest and /{version}/info endpoints.
|
||||
|
||||
Two orthogonal axes:
|
||||
channel — the release track the device is subscribed to
|
||||
("stable" | "beta" | "development")
|
||||
Firmware validates this matches the channel it requested.
|
||||
update_type — the urgency of THIS release, set by the publisher
|
||||
("optional" | "mandatory" | "emergency")
|
||||
Firmware reads mandatory/emergency booleans derived from this.
|
||||
|
||||
Additional firmware-compatible fields:
|
||||
size — binary size in bytes (firmware reads "size", not "size_bytes")
|
||||
mandatory — True when update_type is mandatory or emergency
|
||||
emergency — True only when update_type is emergency
|
||||
"""
|
||||
hw_type: str
|
||||
channel: str
|
||||
channel: str # release track — firmware validates this
|
||||
version: str
|
||||
size_bytes: int
|
||||
size: int # firmware reads "size"
|
||||
size_bytes: int # kept for admin-panel consumers
|
||||
sha256: str
|
||||
update_type: UpdateType
|
||||
update_type: UpdateType # urgency enum — for admin panel display
|
||||
mandatory: bool # derived: update_type in (mandatory, emergency)
|
||||
emergency: bool # derived: update_type == emergency
|
||||
min_fw_version: Optional[str] = None
|
||||
download_url: str
|
||||
uploaded_at: str
|
||||
|
||||
Reference in New Issue
Block a user