id_task:str=Field(default=None,title="Task ID",description="id of the task to get progress for")
id_live_preview:int=Field(default=-1,title="Live preview image ID",description="id of last received last preview image")
classProgressResponse(BaseModel):
active:bool=Field(title="Whether the task is being worked on right now")
queued:bool=Field(title="Whether the task is in queue")
completed:bool=Field(title="Whether the task has already finished")
progress:float=Field(default=None,title="Progress",description="The progress with a range of 0 to 1")
eta:float=Field(default=None,title="ETA in secs")
live_preview:str=Field(default=None,title="Live preview image",description="Current live preview; a data: uri")
id_live_preview:int=Field(default=None,title="Live preview image ID",description="Send this together with next request to prevent receiving same image")
textinfo:str=Field(default=None,title="Info text",description="Info text used by WebUI.")