{"openapi":"3.1.0","info":{"title":"API Reference","version":"1.0.0"},"paths":{"/v1/start":{"post":{"operationId":"start","summary":"Start instance","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:GetInstanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"instance_type":{"$ref":"#/components/schemas/type_:DeploymentConfigInstanceType"},"timeout_hours":{"type":"number","format":"double","minimum":0.01,"maximum":24},"blocked_domains":{"type":"array","items":{"type":"string"}},"resolution":{"type":"array","items":{"type":"integer"}}}}}}}}},"/v1/instance/{instance_id}":{"get":{"operationId":"get","summary":"Get instance by ID","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:GetInstanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instances":{"get":{"operationId":"get_instances","summary":"List all instances","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/type_:GetInstanceResponse"}}}}}}}},"/v1/auth_states":{"get":{"operationId":"get_auth_states","summary":"List all browser authentication states","parameters":[{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/type_:AuthStateResponse"}}}}}}}},"/v1/instance/{instance_id}/screenshot":{"post":{"operationId":"instance_screenshot","summary":"Take screenshot","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:InstanceScreenshotResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/stream_url":{"get":{"operationId":"instance_get_stream_url","summary":"Get stream URL","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:InstanceGetStreamUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/computer":{"post":{"operationId":"instance_computer","summary":"Run computer actions","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:ComputerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_instance:Request"}}}}}},"/v1/instance/{instance_id}/bash":{"post":{"operationId":"instance_bash","summary":"Run bash actions","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:BashResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"command":{"type":"string"},"session":{"type":"integer"},"restart":{"type":"boolean"},"list_sessions":{"type":"boolean"},"check_session":{"type":"integer"},"timeout":{"type":"number","format":"double"}}}}}}}},"/v1/instance/{instance_id}/edit":{"post":{"operationId":"instance_edit","summary":"Run edit actions","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:EditResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"command":{"$ref":"#/components/schemas/type_instance:Command"},"path":{"type":"string"},"file_text":{"type":"string"},"view_range":{"type":"array","items":{"type":"integer"}},"old_str":{"type":"string"},"new_str":{"type":"string"},"insert_line":{"type":"integer"}},"required":["command","path"]}}}}}},"/v1/instance/{instance_id}/file":{"post":{"operationId":"instance_file","summary":"Run file actions","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:FileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"command":{"type":"string"},"path":{"type":"string"},"content":{"type":"string"},"mode":{"type":"string"},"encoding":{"type":"string"},"view_range":{"type":"array","items":{"type":"integer"}},"recursive":{"type":"boolean"},"src":{"type":"string"},"dst":{"type":"string"},"old_str":{"type":"string"},"new_str":{"type":"string"},"line":{"type":"integer"},"text":{"type":"string"},"lines":{"type":"array","items":{"type":"integer"}},"all_occurrences":{"type":"boolean"},"pattern":{"type":"string"},"case_sensitive":{"type":"boolean"},"line_numbers":{"type":"boolean"}},"required":["command"]}}}}}},"/v1/instance/{instance_id}/upload":{"post":{"operationId":"instance_upload","summary":"Upload a file to the instance","description":"Upload a file to the instance.","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"path":{"type":"string"}},"required":["file","path"]}}}}}},"/v1/instance/{instance_id}/stop":{"post":{"operationId":"instance_stop","summary":"Stop instance","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:StopInstanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/pause":{"post":{"operationId":"instance_pause","summary":"Pause instance","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:StopInstanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/resume":{"post":{"operationId":"instance_resume","summary":"Resume instance","tags":["instance"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"timeout_hours","in":"query","required":false,"schema":{"type":"number","format":"double","default":1}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:GetInstanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/browser/start":{"post":{"operationId":"browser_start","summary":"Start browser","tags":["browser"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:StartBrowserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/browser/cdp_url":{"get":{"operationId":"browser_get_cdp_url","summary":"Get CDP URL","tags":["browser"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:BrowserGetCdpUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/browser/current_url":{"get":{"operationId":"browser_get_current_url","summary":"Get current URL","tags":["browser"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:BrowserGetCurrentUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/browser/save_auth":{"post":{"operationId":"browser_save_auth","summary":"Save browser authentication state","tags":["browser"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:SaveBrowserAuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/browser/modify_auth":{"post":{"operationId":"browser_modify_auth","summary":"Modify browser authentication state","tags":["browser"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"auth_state_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:ModifyBrowserAuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/browser/authenticate":{"post":{"operationId":"browser_authenticate","summary":"Authenticate browser using saved state","tags":["browser"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"auth_state_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:BrowserAuthenticateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/browser/stop":{"post":{"operationId":"browser_stop","summary":"Stop browser","tags":["browser"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:StopBrowserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/code/execute":{"post":{"operationId":"code_execute","summary":"Execute code without notebook","tags":["code"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"description":"Any type"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"kernel_name":{"type":"string","default":"python3"},"timeout":{"type":"integer"}},"required":["code"]}}}}}},"/v1/instance/{instance_id}/notebook/kernels":{"get":{"operationId":"notebook_list_kernels","summary":"List available notebook kernels","tags":["notebook"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/type_:KernelInfo"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/notebook/create":{"post":{"operationId":"notebook_create","summary":"Create new notebook","tags":["notebook"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:Notebook"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"kernel_name":{"type":"string","default":"python3"}},"required":["name"]}}}}}},"/v1/instance/{instance_id}/notebook/{notebook_id}":{"get":{"operationId":"notebook_get","summary":"Get notebook by ID","tags":["notebook"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"notebook_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:Notebook"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/notebook/{notebook_id}/delete":{"post":{"operationId":"notebook_delete","summary":"Delete notebook","tags":["notebook"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"notebook_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}}},"/v1/instance/{instance_id}/notebook/{notebook_id}/cell":{"post":{"operationId":"notebook_add_cell","summary":"Add cell to notebook","tags":["notebook"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"notebook_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:NotebookCell"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/type_:CellType"},"content":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["type","content"]}}}}}},"/v1/instance/{instance_id}/notebook/{notebook_id}/cell/{cell_id}/execute":{"post":{"operationId":"notebook_execute_cell","summary":"Execute notebook cell","tags":["notebook"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"notebook_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cell_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:NotebookCell"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:ExecuteCellRequest"}}}}}},"/v1/instance/{instance_id}/notebook/{notebook_id}/execute":{"post":{"operationId":"notebook_execute","summary":"Execute all cells in notebook","tags":["notebook"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"notebook_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/type_:NotebookCell"}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:ExecuteCellRequest"}}}}}},"/v1/instance/{instance_id}/env":{"get":{"operationId":"env_get","summary":"Get environment variables","tags":["env"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:EnvGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}}},"post":{"operationId":"env_set","summary":"Set environment variables","tags":["env"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:EnvResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"variables":{"type":"object","additionalProperties":{"type":"string"}}},"required":["variables"]}}}}}},"/v1/instance/{instance_id}/env/delete":{"post":{"operationId":"env_delete","summary":"Delete environment variables","tags":["env"],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:EnvResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/type_:HTTPValidationError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}}},"required":["keys"]}}}}}}},"servers":[{"url":"https://api.scrapybara.com","description":"Production"}],"components":{"schemas":{"type_:DeploymentConfigInstanceType":{"type":"string","enum":["ubuntu","browser","windows"],"title":"DeploymentConfigInstanceType"},"type_:GetInstanceResponseInstanceType":{"type":"string","enum":["ubuntu","browser","windows"],"title":"GetInstanceResponseInstanceType"},"type_:Status":{"type":"string","enum":["deploying","running","paused","terminated","error","warm_pool"],"title":"Status"},"type_:GetInstanceResponse":{"type":"object","properties":{"id":{"type":"string"},"launch_time":{"type":"string","format":"date-time"},"instance_type":{"$ref":"#/components/schemas/type_:GetInstanceResponseInstanceType"},"status":{"$ref":"#/components/schemas/type_:Status"},"resolution":{"type":"array","items":{"type":"integer"}}},"required":["id","launch_time","instance_type","status"],"title":"GetInstanceResponse"},"type_:ValidationErrorLocItem":{"oneOf":[{"type":"string"},{"type":"integer"}],"title":"ValidationErrorLocItem"},"type_:ValidationError":{"type":"object","properties":{"loc":{"type":"array","items":{"$ref":"#/components/schemas/type_:ValidationErrorLocItem"}},"msg":{"type":"string"},"type":{"type":"string"}},"required":["loc","msg","type"],"title":"ValidationError"},"type_:HTTPValidationError":{"type":"object","properties":{"detail":{"type":"array","items":{"$ref":"#/components/schemas/type_:ValidationError"}}},"title":"HTTPValidationError"},"type_:AuthStateResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id"],"title":"AuthStateResponse"},"type_:InstanceScreenshotResponse":{"type":"object","properties":{"base64_image":{"type":"string"}},"required":["base64_image"],"title":"InstanceScreenshotResponse"},"type_:InstanceGetStreamUrlResponse":{"type":"object","properties":{"stream_url":{"type":"string"}},"required":["stream_url"],"title":"InstanceGetStreamUrlResponse"},"type_:Button":{"type":"string","enum":["left","right","middle","back","forward"],"title":"Button"},"type_:ClickMouseActionClickType":{"type":"string","enum":["down","up","click"],"title":"ClickMouseActionClickType"},"type_instance:Request":{"oneOf":[{"type":"object","properties":{"action":{"type":"string","enum":["move_mouse"],"description":"Discriminator value: move_mouse"},"coordinates":{"type":"array","items":{"type":"integer"}},"hold_keys":{"type":"array","items":{"type":"string"}},"screenshot":{"type":"boolean"}},"required":["action","coordinates"]},{"type":"object","properties":{"action":{"type":"string","enum":["click_mouse"],"description":"Discriminator value: click_mouse"},"button":{"$ref":"#/components/schemas/type_:Button"},"click_type":{"$ref":"#/components/schemas/type_:ClickMouseActionClickType"},"coordinates":{"type":"array","items":{"type":"integer"}},"num_clicks":{"type":"integer"},"hold_keys":{"type":"array","items":{"type":"string"}},"screenshot":{"type":"boolean"}},"required":["action","button"]},{"type":"object","properties":{"action":{"type":"string","enum":["drag_mouse"],"description":"Discriminator value: drag_mouse"},"path":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"hold_keys":{"type":"array","items":{"type":"string"}},"screenshot":{"type":"boolean"}},"required":["action","path"]},{"type":"object","properties":{"action":{"type":"string","enum":["scroll"],"description":"Discriminator value: scroll"},"coordinates":{"type":"array","items":{"type":"integer"}},"delta_x":{"type":"number","format":"double"},"delta_y":{"type":"number","format":"double"},"hold_keys":{"type":"array","items":{"type":"string"}},"screenshot":{"type":"boolean"}},"required":["action"]},{"type":"object","properties":{"action":{"type":"string","enum":["press_key"],"description":"Discriminator value: press_key"},"keys":{"type":"array","items":{"type":"string"}},"duration":{"type":"number","format":"double"},"screenshot":{"type":"boolean"}},"required":["action","keys"]},{"type":"object","properties":{"action":{"type":"string","enum":["type_text"],"description":"Discriminator value: type_text"},"text":{"type":"string"},"hold_keys":{"type":"array","items":{"type":"string"}},"screenshot":{"type":"boolean"}},"required":["action","text"]},{"type":"object","properties":{"action":{"type":"string","enum":["wait"],"description":"Discriminator value: wait"},"duration":{"type":"number","format":"double"},"screenshot":{"type":"boolean"}},"required":["action","duration"]},{"type":"object","properties":{"action":{"type":"string","enum":["take_screenshot"],"description":"Discriminator value: take_screenshot"}},"required":["action"]},{"type":"object","properties":{"action":{"type":"string","enum":["get_cursor_position"],"description":"Discriminator value: get_cursor_position"}},"required":["action"]}],"discriminator":{"propertyName":"action"},"title":"Request"},"type_:ComputerResponse":{"type":"object","properties":{"output":{"type":"string"},"error":{"type":"string"},"base64_image":{"type":"string"},"system":{"type":"string"}},"description":"Response model for computer actions.","title":"ComputerResponse"},"type_:BashResponse":{"type":"object","properties":{"output":{"type":"string"},"error":{"type":"string"},"base64_image":{"type":"string"},"system":{"type":"string"}},"description":"Response model for bash actions.","title":"BashResponse"},"type_instance:Command":{"type":"string","enum":["view","create","str_replace","insert","undo_edit"],"title":"Command"},"type_:EditResponse":{"type":"object","properties":{"output":{"type":"string"},"error":{"type":"string"},"base64_image":{"type":"string"},"system":{"type":"string"}},"description":"Response model for edit actions.","title":"EditResponse"},"type_:FileResponse":{"type":"object","properties":{"output":{"type":"string"},"error":{"type":"string"},"base64_image":{"type":"string"},"system":{"type":"string"}},"description":"Response model for file actions.","title":"FileResponse"},"type_:UploadResponse":{"type":"object","properties":{"filename":{"type":"string"},"path":{"type":"string"},"media_type":{"type":"string"}},"required":["filename","path"],"description":"Response model for file uploads.","title":"UploadResponse"},"type_:StopInstanceResponse":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"],"title":"StopInstanceResponse"},"type_:StartBrowserResponse":{"type":"object","properties":{"cdp_url":{"type":"string"}},"required":["cdp_url"],"title":"StartBrowserResponse"},"type_:BrowserGetCdpUrlResponse":{"type":"object","properties":{"cdp_url":{"type":"string"}},"required":["cdp_url"],"title":"BrowserGetCdpUrlResponse"},"type_:BrowserGetCurrentUrlResponse":{"type":"object","properties":{"current_url":{"type":"string"}},"required":["current_url"],"title":"BrowserGetCurrentUrlResponse"},"type_:SaveBrowserAuthResponse":{"type":"object","properties":{"status":{"type":"string"},"auth_state_id":{"type":"string"},"name":{"type":"string"}},"required":["status","auth_state_id"],"title":"SaveBrowserAuthResponse"},"type_:ModifyBrowserAuthResponse":{"type":"object","properties":{"status":{"type":"string"},"auth_state_id":{"type":"string"},"name":{"type":"string"}},"required":["status","auth_state_id"],"title":"ModifyBrowserAuthResponse"},"type_:BrowserAuthenticateResponse":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"],"title":"BrowserAuthenticateResponse"},"type_:StopBrowserResponse":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"],"title":"StopBrowserResponse"},"type_:KernelInfo":{"type":"object","properties":{"name":{"type":"string"},"display_name":{"type":"string"},"language":{"type":"string"}},"required":["name","display_name","language"],"title":"KernelInfo"},"type_:CellType":{"type":"string","enum":["code","markdown","raw"],"title":"CellType"},"type_:NotebookCell":{"type":"object","properties":{"id":{"type":"string"},"type":{"$ref":"#/components/schemas/type_:CellType"},"content":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"outputs":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}},"execution_count":{"type":"integer"}},"required":["id","type","content"],"title":"NotebookCell"},"type_:Notebook":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"kernel_name":{"type":"string"},"cells":{"type":"array","items":{"$ref":"#/components/schemas/type_:NotebookCell"}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["id","name","kernel_name","cells"],"title":"Notebook"},"type_:ExecuteCellRequest":{"type":"object","properties":{"timeout":{"type":"integer"}},"title":"ExecuteCellRequest"},"type_:EnvGetResponse":{"type":"object","properties":{"variables":{"type":"object","additionalProperties":{"type":"string"}}},"required":["variables"],"title":"EnvGetResponse"},"type_:EnvResponse":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}},"required":["status","message"],"title":"EnvResponse"}},"securitySchemes":{"default":{"type":"apiKey","in":"header","name":"x-api-key"}}}}