{"openapi":"3.1.0","info":{"title":"Remote Agent Console","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/install":{"get":{"summary":"Install Page","operationId":"install_page_install_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/install/windows.exe":{"get":{"summary":"Windows Installer","operationId":"windows_installer_install_windows_exe_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/install/ubuntu.py":{"get":{"summary":"Ubuntu Installer","operationId":"ubuntu_installer_install_ubuntu_py_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/install/ubuntu.zip":{"get":{"summary":"Ubuntu Bundle","operationId":"ubuntu_bundle_install_ubuntu_zip_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Healthz Healthz Get"}}}}}}},"/api/auth/session":{"get":{"summary":"Session Status","operationId":"session_status_api_auth_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Session Status Api Auth Session Get"}}}}}}},"/api/auth/login":{"post":{"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login Api Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Logout Api Auth Logout Post"}}}}}}},"/api/agent/enroll":{"post":{"summary":"Enroll Device","description":"Automatically enroll devices; only explicit Reject blocks execution.\n\nRetain credential bindings across Remove so running Agents can reconnect\nwithout changing their protocol or losing identity and in-flight results.","operationId":"enroll_device_api_agent_enroll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentBody"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Enroll Device Api Agent Enroll Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/heartbeat":{"post":{"summary":"Agent Heartbeat","operationId":"agent_heartbeat_api_agent_heartbeat_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeartbeatBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Heartbeat Api Agent Heartbeat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/devices/{device_id}/approve":{"post":{"summary":"Approve Device","operationId":"approve_device_api_admin_devices__device_id__approve_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Device Api Admin Devices  Device Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/devices/{device_id}/reject":{"post":{"summary":"Reject Device","operationId":"reject_device_api_admin_devices__device_id__reject_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Device Api Admin Devices  Device Id  Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/devices/{device_id}/revoke":{"post":{"summary":"Revoke Device","operationId":"revoke_device_api_admin_devices__device_id__revoke_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Device Api Admin Devices  Device Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/devices/{device_id}/remove":{"post":{"summary":"Remove Device","operationId":"remove_device_api_admin_devices__device_id__remove_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Device Api Admin Devices  Device Id  Remove Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/devices/{device_id}/retire":{"post":{"summary":"Retire Device","description":"Revoke this UID's credential for device offboarding; never issue a host command.","operationId":"retire_device_api_admin_devices__device_id__retire_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retire Device Api Admin Devices  Device Id  Retire Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/devices/{device_id}/uninstall":{"post":{"summary":"Queue Uninstall","operationId":"queue_uninstall_api_admin_devices__device_id__uninstall_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Queue Uninstall Api Admin Devices  Device Id  Uninstall Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devices":{"get":{"summary":"List Devices","operationId":"list_devices_api_devices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Devices Api Devices Get"}}}}}}},"/api/jobs":{"get":{"summary":"List Jobs","operationId":"list_jobs_api_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Jobs Api Jobs Get"}}}}}},"post":{"summary":"Queue Job","operationId":"queue_job_api_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobBody"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Queue Job Api Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/demo/jobs/{job_id}/simulate":{"post":{"summary":"Simulate Demo","operationId":"simulate_demo_api_demo_jobs__job_id__simulate_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Simulate Demo Api Demo Jobs  Job Id  Simulate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/jobs/claim":{"post":{"summary":"Claim Operation","operationId":"claim_operation_api_agent_jobs_claim_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Claim Operation Api Agent Jobs Claim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent/jobs/result":{"post":{"summary":"Report Operation","operationId":"report_operation_api_agent_jobs_result_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResultBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Operation Api Agent Jobs Result Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ClaimBody":{"properties":{"device_id":{"type":"string","maxLength":64,"minLength":8,"pattern":"^[A-Za-z0-9-]+$","title":"Device Id"},"active_job_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Active Job Ids"}},"type":"object","required":["device_id"],"title":"ClaimBody"},"EnrollmentBody":{"properties":{"device_id":{"type":"string","maxLength":64,"minLength":8,"pattern":"^[A-Za-z0-9-]+$","title":"Device Id"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"os":{"type":"string","maxLength":512,"minLength":1,"title":"Os"},"device_token":{"type":"string","maxLength":256,"minLength":32,"title":"Device Token"}},"type":"object","required":["device_id","name","os","device_token"],"title":"EnrollmentBody"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeartbeatBody":{"properties":{"device_id":{"type":"string","maxLength":64,"minLength":8,"pattern":"^[A-Za-z0-9-]+$","title":"Device Id"}},"type":"object","required":["device_id"],"title":"HeartbeatBody"},"JobBody":{"properties":{"device_id":{"type":"string","maxLength":128,"minLength":1,"title":"Device Id"},"shell":{"type":"string","pattern":"^(operation|cmd|powershell|bash)$","title":"Shell"},"command":{"type":"string","maxLength":4096,"minLength":1,"title":"Command"}},"type":"object","required":["device_id","shell","command"],"title":"JobBody"},"JobResultBody":{"properties":{"device_id":{"type":"string","maxLength":64,"minLength":8,"pattern":"^[A-Za-z0-9-]+$","title":"Device Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"},"action":{"type":"string","maxLength":4096,"minLength":1,"title":"Action"},"status":{"type":"string","enum":["completed","failed"],"title":"Status"},"stdout":{"type":"string","maxLength":8192,"title":"Stdout","default":""},"stderr":{"type":"string","maxLength":8192,"title":"Stderr","default":""},"exit_code":{"type":"integer","maximum":2147483647.0,"minimum":-2147483648.0,"title":"Exit Code"}},"type":"object","required":["device_id","job_id","action","status","exit_code"],"title":"JobResultBody"},"LoginBody":{"properties":{"password":{"type":"string","maxLength":512,"minLength":1,"title":"Password"}},"type":"object","required":["password"],"title":"LoginBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}