[SKY-6] Backend: Enable 2FA code detection without TOTP credentials (#4786)
This commit is contained in:
@@ -172,6 +172,10 @@ class WorkflowRun(BaseModel):
|
||||
sequential_key: str | None = None
|
||||
ai_fallback: bool | None = None
|
||||
code_gen: bool | None = None
|
||||
# 2FA verification code waiting state fields
|
||||
waiting_for_verification_code: bool = False
|
||||
verification_code_identifier: str | None = None
|
||||
verification_code_polling_started_at: datetime | None = None
|
||||
|
||||
queued_at: datetime | None = None
|
||||
started_at: datetime | None = None
|
||||
@@ -226,6 +230,10 @@ class WorkflowRunResponseBase(BaseModel):
|
||||
browser_address: str | None = None
|
||||
script_run: ScriptRunResponse | None = None
|
||||
errors: list[dict[str, Any]] | None = None
|
||||
# 2FA verification code waiting state fields
|
||||
waiting_for_verification_code: bool = False
|
||||
verification_code_identifier: str | None = None
|
||||
verification_code_polling_started_at: datetime | None = None
|
||||
|
||||
|
||||
class WorkflowRunWithWorkflowResponse(WorkflowRunResponseBase):
|
||||
|
||||
@@ -3019,6 +3019,10 @@ class WorkflowService:
|
||||
browser_address=workflow_run.browser_address,
|
||||
script_run=workflow_run.script_run,
|
||||
errors=errors,
|
||||
# 2FA verification code waiting state fields
|
||||
waiting_for_verification_code=workflow_run.waiting_for_verification_code,
|
||||
verification_code_identifier=workflow_run.verification_code_identifier,
|
||||
verification_code_polling_started_at=workflow_run.verification_code_polling_started_at,
|
||||
)
|
||||
|
||||
async def clean_up_workflow(
|
||||
|
||||
Reference in New Issue
Block a user