{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/api/v2/admin/ip_filtering":{"put":{"tags":["admin"],"summary":"Toggle Ip Filtering","operationId":"toggle_ip_filtering_api_v2_admin_ip_filtering_put","parameters":[{"name":"enabled","in":"query","required":true,"schema":{"type":"boolean","title":"Enabled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin"],"summary":"Get Ip Filtering","operationId":"get_ip_filtering_api_v2_admin_ip_filtering_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/agents/{agent_id}/files/root":{"get":{"tags":["agents"],"summary":"Read File Root","operationId":"read_file_root_api_v2_agents__agent_id__files_root_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/files/{uid}":{"get":{"tags":["agents"],"summary":"Read File","operationId":"read_file_api_v2_agents__agent_id__files__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentFile"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/{uid}/tags":{"post":{"tags":["agents","tasks"],"summary":"Add Tag","operationId":"add_tag_api_v2_agents__agent_id__tasks__uid__tags_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/{uid}/tags/{tag_id}":{"put":{"tags":["agents","tasks"],"summary":"Update Tag","operationId":"update_tag_api_v2_agents__agent_id__tasks__uid__tags__tag_id__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agents","tasks"],"summary":"Delete Tag","operationId":"delete_tag_api_v2_agents__agent_id__tasks__uid__tags__tag_id__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/tasks":{"get":{"tags":["agents","tasks"],"summary":"Read Tasks All Agents","operationId":"read_tasks_all_agents_api_v2_agents_tasks_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"include_full_input","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Full Input"}},{"name":"include_original_output","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Original Output"}},{"name":"include_output","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Output"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AgentTaskOrderOptions","default":"id"}},{"name":"order_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"desc"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentTaskStatus"},{"type":"null"}],"title":"Status"}},{"name":"agents","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Agents"}},{"name":"users","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Users"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^[^:]+:[^:]+$"}},{"type":"null"}],"title":"Tags"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTasks"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks":{"get":{"tags":["agents","tasks"],"summary":"Read Tasks","operationId":"read_tasks_api_v2_agents__agent_id__tasks_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"include_full_input","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Full Input"}},{"name":"include_original_output","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Original Output"}},{"name":"include_output","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Output"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AgentTaskOrderOptions","default":"id"}},{"name":"order_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"desc"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentTaskStatus"},{"type":"null"}],"title":"Status"}},{"name":"users","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Users"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^[^:]+:[^:]+$"}},{"type":"null"}],"title":"Tags"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTasks"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/{uid}":{"get":{"tags":["agents","tasks"],"summary":"Read Task","operationId":"read_task_api_v2_agents__agent_id__tasks__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agents","tasks"],"summary":"Delete Task","operationId":"delete_task_api_v2_agents__agent_id__tasks__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/jobs":{"post":{"tags":["agents","tasks"],"summary":"Create Task Jobs","operationId":"create_task_jobs_api_v2_agents__agent_id__tasks_jobs_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/kill_job":{"post":{"tags":["agents","tasks"],"summary":"Create Task Kill Job","operationId":"create_task_kill_job_api_v2_agents__agent_id__tasks_kill_job_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KillJobPostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/stop_job":{"post":{"tags":["agents","tasks"],"summary":"Create Task Stop Job","operationId":"create_task_stop_job_api_v2_agents__agent_id__tasks_stop_job_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopJobPostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/shell":{"post":{"tags":["agents","tasks"],"summary":"Create Task Shell","description":"Executes a command on the agent. If literal is true, it will ignore the built-in aliases\nsuch a whoami or ps and execute the command directly.","operationId":"create_task_shell_api_v2_agents__agent_id__tasks_shell_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShellPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/module":{"post":{"tags":["agents","tasks"],"summary":"Create Task Module","operationId":"create_task_module_api_v2_agents__agent_id__tasks_module_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModulePostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/upload":{"post":{"tags":["agents","tasks"],"summary":"Create Task Upload","operationId":"create_task_upload_api_v2_agents__agent_id__tasks_upload_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/download":{"post":{"tags":["agents","tasks"],"summary":"Create Task Download","operationId":"create_task_download_api_v2_agents__agent_id__tasks_download_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/sysinfo":{"post":{"tags":["agents","tasks"],"summary":"Create Task Sysinfo","operationId":"create_task_sysinfo_api_v2_agents__agent_id__tasks_sysinfo_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SysinfoPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/update_comms":{"post":{"tags":["agents","tasks"],"summary":"Create Task Update Comms","operationId":"create_task_update_comms_api_v2_agents__agent_id__tasks_update_comms_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommsPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/sleep":{"post":{"tags":["agents","tasks"],"summary":"Create Task Update Sleep","operationId":"create_task_update_sleep_api_v2_agents__agent_id__tasks_sleep_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SleepPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/kill_date":{"post":{"tags":["agents","tasks"],"summary":"Create Task Update Kill Date","operationId":"create_task_update_kill_date_api_v2_agents__agent_id__tasks_kill_date_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KillDatePostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/working_hours":{"post":{"tags":["agents","tasks"],"summary":"Create Task Update Working Hours","operationId":"create_task_update_working_hours_api_v2_agents__agent_id__tasks_working_hours_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkingHoursPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/directory_list":{"post":{"tags":["agents","tasks"],"summary":"Create Task Update Directory List","operationId":"create_task_update_directory_list_api_v2_agents__agent_id__tasks_directory_list_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryListPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/exit":{"post":{"tags":["agents","tasks"],"summary":"Create Task Exit","operationId":"create_task_exit_api_v2_agents__agent_id__tasks_exit_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExitPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{agent_id}/tasks/socks":{"post":{"tags":["agents","tasks"],"summary":"Create Task Socks","operationId":"create_task_socks_api_v2_agents__agent_id__tasks_socks_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocksPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{uid}/tags":{"post":{"tags":["agents"],"summary":"Add Tag","operationId":"add_tag_api_v2_agents__uid__tags_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{uid}/tags/{tag_id}":{"put":{"tags":["agents"],"summary":"Update Tag","operationId":"update_tag_api_v2_agents__uid__tags__tag_id__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agents"],"summary":"Delete Tag","operationId":"delete_tag_api_v2_agents__uid__tags__tag_id__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/checkins":{"get":{"tags":["agents"],"summary":"Read Agent Checkins All","operationId":"read_agent_checkins_all_api_v2_agents_checkins_get","parameters":[{"name":"agents","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Agents"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":1000,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"}},{"name":"order_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"desc"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCheckIns"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/checkins/aggregate":{"get":{"tags":["agents"],"summary":"Read Agent Checkins Aggregate","operationId":"read_agent_checkins_aggregate_api_v2_agents_checkins_aggregate_get","parameters":[{"name":"agents","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Agents"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"}},{"name":"bucket_size","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AggregateBucket"},{"type":"null"}],"default":"day","title":"Bucket Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCheckInsAggregate"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{uid}":{"get":{"tags":["agents"],"summary":"Read Agent","operationId":"read_agent_api_v2_agents__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["agents"],"summary":"Update Agent","operationId":"update_agent_api_v2_agents__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents":{"get":{"tags":["agents"],"summary":"Read Agents","operationId":"read_agents_api_v2_agents_get","parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"include_stale","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Stale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/agents/{uid}/checkins":{"get":{"tags":["agents"],"summary":"Read Agent Checkins","operationId":"read_agent_checkins_api_v2_agents__uid__checkins_get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"}},{"name":"order_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"desc"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCheckIns"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/bypasses/{uid}":{"get":{"tags":["bypasses"],"summary":"Read Bypass","operationId":"read_bypass_api_v2_bypasses__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bypass"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["bypasses"],"summary":"Update Bypass","operationId":"update_bypass_api_v2_bypasses__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BypassUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bypass"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["bypasses"],"summary":"Delete Bypass","operationId":"delete_bypass_api_v2_bypasses__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/bypasses":{"get":{"tags":["bypasses"],"summary":"Read Bypasses","operationId":"read_bypasses_api_v2_bypasses_get","parameters":[{"name":"default","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Default"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bypasses"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["bypasses"],"summary":"Create Bypass","operationId":"create_bypass_api_v2_bypasses_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BypassPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bypass"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/bypasses/reset":{"post":{"tags":["bypasses"],"summary":"Reset Bypasses","operationId":"reset_bypasses_api_v2_bypasses_reset_post","responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/bypasses/reload":{"post":{"tags":["bypasses"],"summary":"Reload Bypasses","operationId":"reload_bypasses_api_v2_bypasses_reload_post","responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/credentials/{uid}/tags":{"post":{"tags":["credentials"],"summary":"Add Tag","operationId":"add_tag_api_v2_credentials__uid__tags_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/credentials/{uid}/tags/{tag_id}":{"put":{"tags":["credentials"],"summary":"Update Tag","operationId":"update_tag_api_v2_credentials__uid__tags__tag_id__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentials"],"summary":"Delete Tag","operationId":"delete_tag_api_v2_credentials__uid__tags__tag_id__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/credentials/{uid}":{"get":{"tags":["credentials"],"summary":"Read Credential","operationId":"read_credential_api_v2_credentials__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["credentials"],"summary":"Update Credential","operationId":"update_credential_api_v2_credentials__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["credentials"],"summary":"Delete Credential","operationId":"delete_credential_api_v2_credentials__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/credentials":{"get":{"tags":["credentials"],"summary":"Read Credentials","operationId":"read_credentials_api_v2_credentials_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"credtype","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credtype"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^[^:]+:[^:]+$"}},{"type":"null"}],"title":"Tags"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credentials"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["credentials"],"summary":"Create Credential","operationId":"create_credential_api_v2_credentials_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/downloads/{uid}/download":{"get":{"tags":["downloads"],"summary":"Download Download","operationId":"download_download_api_v2_downloads__uid__download_get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/downloads/{uid}/tags":{"post":{"tags":["downloads"],"summary":"Add Tag","operationId":"add_tag_api_v2_downloads__uid__tags_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/downloads/{uid}/tags/{tag_id}":{"put":{"tags":["downloads"],"summary":"Update Tag","operationId":"update_tag_api_v2_downloads__uid__tags__tag_id__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["downloads"],"summary":"Delete Tag","operationId":"delete_tag_api_v2_downloads__uid__tags__tag_id__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/downloads/{uid}":{"get":{"tags":["downloads"],"summary":"Read Download","operationId":"read_download_api_v2_downloads__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Download"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/downloads":{"get":{"tags":["downloads"],"summary":"Read Downloads","operationId":"read_downloads_api_v2_downloads_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"order_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"desc"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DownloadOrderOptions","default":"updated_at"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"sources","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/DownloadSourceFilter"}},{"type":"null"}],"title":"Sources"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^[^:]+:[^:]+$"}},{"type":"null"}],"title":"Tags"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Downloads"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["downloads"],"summary":"Create Download","operationId":"create_download_api_v2_downloads_post","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_download_api_v2_downloads_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Download"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"tags":["admin"],"summary":"Health Check","operationId":"health_check_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v2/hosts/{uid}":{"get":{"tags":["hosts"],"summary":"Read Host","operationId":"read_host_api_v2_hosts__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Host"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/hosts":{"get":{"tags":["hosts"],"summary":"Read Hosts","operationId":"read_hosts_api_v2_hosts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hosts"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/ips/{uid}":{"get":{"tags":["ips"],"summary":"Read Ip","operationId":"read_ip_api_v2_ips__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IP"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ips"],"summary":"Delete Ip","operationId":"delete_ip_api_v2_ips__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/ips":{"get":{"tags":["ips"],"summary":"Read Ips","operationId":"read_ips_api_v2_ips_get","parameters":[{"name":"ip_list","in":"query","required":false,"schema":{"$ref":"#/components/schemas/IpList"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ips"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ips"],"summary":"Create Ip","operationId":"create_ip_api_v2_ips_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IpPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IP"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/listeners/{uid}/tags":{"post":{"tags":["listeners"],"summary":"Add Tag","operationId":"add_tag_api_v2_listeners__uid__tags_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/listeners/{uid}/tags/{tag_id}":{"put":{"tags":["listeners"],"summary":"Update Tag","operationId":"update_tag_api_v2_listeners__uid__tags__tag_id__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["listeners"],"summary":"Delete Tag","operationId":"delete_tag_api_v2_listeners__uid__tags__tag_id__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/listeners/{uid}":{"get":{"tags":["listeners"],"summary":"Read Listener","operationId":"read_listener_api_v2_listeners__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Listener"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["listeners"],"summary":"Update Listener","operationId":"update_listener_api_v2_listeners__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenerUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Listener"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["listeners"],"summary":"Delete Listener","operationId":"delete_listener_api_v2_listeners__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/listeners":{"get":{"tags":["listeners"],"summary":"Read Listeners","operationId":"read_listeners_api_v2_listeners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Listeners"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}},"post":{"tags":["listeners"],"summary":"Create Listener","description":"Note: options['Name'] will be overwritten by name. When v1 api is eventually removed, it wil no longer be needed.\n:param listener_req:\n:param db\n:return:","operationId":"create_listener_api_v2_listeners_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenerPostRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Listener"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/listeners/{uid}/autorun":{"put":{"tags":["listeners"],"summary":"Update Listener Autorun","operationId":"update_listener_autorun_api_v2_listeners__uid__autorun_put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutorunConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Listener"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["listeners"],"summary":"Get Listener Autorun","operationId":"get_listener_autorun_api_v2_listeners__uid__autorun_get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutorunConfig"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/listener-templates":{"get":{"tags":["listener-templates"],"summary":"Get Listener Templates","operationId":"get_listener_templates_api_v2_listener_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenerTemplates"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/listener-templates/{uid}":{"get":{"tags":["listener-templates"],"summary":"Get Listener Template","operationId":"get_listener_template_api_v2_listener_templates__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenerTemplate"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/meta/version":{"get":{"tags":["meta"],"summary":"Read Empire Version","operationId":"read_empire_version_api_v2_meta_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmpireVersion"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/modules":{"get":{"tags":["modules"],"summary":"Read Modules","operationId":"read_modules_api_v2_modules_get","parameters":[{"name":"hide_disabled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Hide Disabled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/modules/{uid}":{"get":{"tags":["modules"],"summary":"Read Module","operationId":"read_module_api_v2_modules__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Module"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["modules"],"summary":"Update Module","operationId":"update_module_api_v2_modules__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Module"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/modules/{uid}/script":{"get":{"tags":["modules"],"summary":"Read Module Script","operationId":"read_module_script_api_v2_modules__uid__script_get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleScript"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/modules/bulk/enable":{"put":{"tags":["modules"],"summary":"Update Bulk Enable","operationId":"update_bulk_enable_api_v2_modules_bulk_enable_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleBulkUpdateRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/modules/reload":{"post":{"tags":["modules"],"summary":"Reload Modules","operationId":"reload_modules_api_v2_modules_reload_post","responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/modules/reset":{"post":{"tags":["modules"],"summary":"Reset Modules","operationId":"reset_modules_api_v2_modules_reset_post","responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/obfuscation/keywords/{uid}":{"get":{"tags":["keywords"],"summary":"Read Keyword","operationId":"read_keyword_api_v2_obfuscation_keywords__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Keyword"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["keywords"],"summary":"Update Keyword","operationId":"update_keyword_api_v2_obfuscation_keywords__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeywordUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Keyword"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["keywords"],"summary":"Delete Keyword","operationId":"delete_keyword_api_v2_obfuscation_keywords__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/obfuscation/keywords":{"get":{"tags":["keywords"],"summary":"Read Keywords","operationId":"read_keywords_api_v2_obfuscation_keywords_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Keywords"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}},"post":{"tags":["keywords"],"summary":"Create Keyword","operationId":"create_keyword_api_v2_obfuscation_keywords_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeywordPostRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Keyword"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/obfuscation/global":{"get":{"tags":["keywords"],"summary":"Read Obfuscation Configs","operationId":"read_obfuscation_configs_api_v2_obfuscation_global_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObfuscationConfigs"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/obfuscation/global/{language}":{"get":{"tags":["keywords"],"summary":"Read Obfuscation Config","operationId":"read_obfuscation_config_api_v2_obfuscation_global__language__get","parameters":[{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObfuscationConfig"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["keywords"],"summary":"Update Obfuscation Config","operationId":"update_obfuscation_config_api_v2_obfuscation_global__language__put","parameters":[{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObfuscationConfigUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObfuscationConfig"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/obfuscation/global/{language}/preobfuscate":{"post":{"tags":["keywords"],"summary":"Preobfuscate Modules","operationId":"preobfuscate_modules_api_v2_obfuscation_global__language__preobfuscate_post","parameters":[{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}},{"name":"reobfuscate","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Reobfuscate"}}],"responses":{"202":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["keywords"],"summary":"Remove Preobfuscated Modules","operationId":"remove_preobfuscated_modules_api_v2_obfuscation_global__language__preobfuscate_delete","parameters":[{"name":"language","in":"path","required":true,"schema":{"type":"string","title":"Language"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugin-registries/marketplace":{"get":{"tags":["plugins"],"summary":"Get Marketplace","operationId":"get_marketplace_api_v2_plugin_registries_marketplace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/plugin-registries/marketplace/install":{"post":{"tags":["plugins"],"summary":"Install Plugin","operationId":"install_plugin_api_v2_plugin_registries_marketplace_install_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginInstallRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins/{plugin_id}/tasks/{uid}/tags":{"post":{"tags":["plugins","tasks"],"summary":"Add Tag","operationId":"add_tag_api_v2_plugins__plugin_id__tasks__uid__tags_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins/{plugin_id}/tasks/{uid}/tags/{tag_id}":{"put":{"tags":["plugins","tasks"],"summary":"Update Tag","operationId":"update_tag_api_v2_plugins__plugin_id__tasks__uid__tags__tag_id__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["plugins","tasks"],"summary":"Delete Tag","operationId":"delete_tag_api_v2_plugins__plugin_id__tasks__uid__tags__tag_id__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"integer","title":"Tag Id"}},{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins/tasks":{"get":{"tags":["plugins","tasks"],"summary":"Read Tasks All Plugins","operationId":"read_tasks_all_plugins_api_v2_plugins_tasks_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"include_full_input","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Full Input"}},{"name":"include_output","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Output"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PluginTaskOrderOptions","default":"id"}},{"name":"order_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"desc"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PluginTaskStatus"},{"type":"null"}],"title":"Status"}},{"name":"plugins","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Plugins"}},{"name":"users","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Users"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^[^:]+:[^:]+$"}},{"type":"null"}],"title":"Tags"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginTasks"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins/{plugin_id}/tasks":{"get":{"tags":["plugins","tasks"],"summary":"Read Tasks","operationId":"read_tasks_api_v2_plugins__plugin_id__tasks_get","parameters":[{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"include_full_input","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Full Input"}},{"name":"include_output","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Output"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PluginTaskOrderOptions","default":"id"}},{"name":"order_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"desc"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PluginTaskStatus"},{"type":"null"}],"title":"Status"}},{"name":"users","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Users"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^[^:]+:[^:]+$"}},{"type":"null"}],"title":"Tags"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginTasks"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins/{plugin_id}/tasks/{uid}":{"get":{"tags":["plugins","tasks"],"summary":"Read Task","operationId":"read_task_api_v2_plugins__plugin_id__tasks__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginTask"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins":{"get":{"tags":["plugins"],"summary":"Read Plugins","operationId":"read_plugins_api_v2_plugins_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plugins"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/plugins/{plugin_id}":{"get":{"tags":["plugins"],"summary":"Read Plugin","operationId":"read_plugin_api_v2_plugins__plugin_id__get","parameters":[{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["plugins"],"summary":"Update Plugin","operationId":"update_plugin_api_v2_plugins__plugin_id__put","parameters":[{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins/{plugin_id}/execute":{"post":{"tags":["plugins"],"summary":"Execute Plugin","operationId":"execute_plugin_api_v2_plugins__plugin_id__execute_post","parameters":[{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginExecutePostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginExecuteResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins/{plugin_id}/settings":{"put":{"tags":["plugins"],"summary":"Update Plugin Settings","operationId":"update_plugin_settings_api_v2_plugins__plugin_id__settings_put","parameters":[{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Plugin Settings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins/reload":{"post":{"tags":["plugins"],"summary":"Reload Plugins","operationId":"reload_plugins_api_v2_plugins_reload_post","responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/plugins/install/git":{"post":{"tags":["plugins"],"summary":"Install Plugin Git","operationId":"install_plugin_git_api_v2_plugins_install_git_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginInstallGitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/plugins/install/tar":{"post":{"tags":["plugins"],"summary":"Install Plugin Tar","operationId":"install_plugin_tar_api_v2_plugins_install_tar_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginInstallTarRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/hosts/{host_id}/processes/{uid}":{"get":{"tags":["hosts"],"summary":"Read Process","operationId":"read_process_api_v2_hosts__host_id__processes__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}},{"name":"host_id","in":"path","required":true,"schema":{"type":"integer","title":"Host Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Process"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/hosts/{host_id}/processes":{"get":{"tags":["hosts"],"summary":"Read Processes","operationId":"read_processes_api_v2_hosts__host_id__processes_get","parameters":[{"name":"host_id","in":"path","required":true,"schema":{"type":"integer","title":"Host Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Processes"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/malleable-profiles/{uid}":{"get":{"tags":["malleable-profiles"],"summary":"Read Profile","operationId":"read_profile_api_v2_malleable_profiles__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["malleable-profiles"],"summary":"Update Profile","operationId":"update_profile_api_v2_malleable_profiles__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["malleable-profiles"],"summary":"Delete Profile","operationId":"delete_profile_api_v2_malleable_profiles__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/malleable-profiles":{"get":{"tags":["malleable-profiles"],"summary":"Read Profiles","operationId":"read_profiles_api_v2_malleable_profiles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profiles"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}},"post":{"tags":["malleable-profiles"],"summary":"Create Profile","operationId":"create_profile_api_v2_malleable_profiles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePostRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/malleable-profiles/reload":{"post":{"tags":["malleable-profiles"],"summary":"Reload Profiles","operationId":"reload_profiles_api_v2_malleable_profiles_reload_post","responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/malleable-profiles/reset":{"post":{"tags":["malleable-profiles"],"summary":"Reset Profiles","operationId":"reset_profiles_api_v2_malleable_profiles_reset_post","responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/stagers":{"get":{"tags":["stagers"],"summary":"Read Stagers","operationId":"read_stagers_api_v2_stagers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stagers"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}},"post":{"tags":["stagers"],"summary":"Create Stager","operationId":"create_stager_api_v2_stagers_post","parameters":[{"name":"save","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Save"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagerPostRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stager"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/stagers/{uid}":{"get":{"tags":["stagers"],"summary":"Read Stager","operationId":"read_stager_api_v2_stagers__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stager"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["stagers"],"summary":"Update Stager","operationId":"update_stager_api_v2_stagers__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagerUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stager"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["stagers"],"summary":"Delete Stager","operationId":"delete_stager_api_v2_stagers__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/stager-templates":{"get":{"tags":["stager-templates"],"summary":"Get Stager Templates","operationId":"get_stager_templates_api_v2_stager_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagerTemplates"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/stager-templates/{uid}":{"get":{"tags":["stager-templates"],"summary":"Get Stager Template","operationId":"get_stager_template_api_v2_stager_templates__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagerTemplate"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/tags":{"get":{"tags":["tags"],"summary":"Get Tags","operationId":"get_tags_api_v2_tags_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"order_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderDirection","default":"asc"}},{"name":"order_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TagOrderOptions","default":"updated_at"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"sources","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/TagSourceFilter"}},{"type":"null"}],"title":"Sources"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/token":{"post":{"tags":["users"],"summary":"Login For Access Token","operationId":"login_for_access_token_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_for_access_token_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/users/me":{"get":{"tags":["users"],"summary":"Read User Me","operationId":"read_user_me_api_v2_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}}},"/api/v2/users":{"get":{"tags":["users"],"summary":"Read Users","operationId":"read_users_api_v2_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Users"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}}}},"post":{"tags":["users"],"summary":"Create User","operationId":"create_user_api_v2_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPostRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/users/{uid}":{"get":{"tags":["users"],"summary":"Read User","operationId":"read_user_api_v2_users__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["users"],"summary":"Update User","operationId":"update_user_api_v2_users__uid__put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/users/{uid}/password":{"put":{"tags":["users"],"summary":"Update User Password","operationId":"update_user_password_api_v2_users__uid__password_put","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdatePasswordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/users/{uid}/avatar":{"post":{"tags":["users"],"summary":"Create Avatar","operationId":"create_avatar_api_v2_users__uid__avatar_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"integer","title":"Uid"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_avatar_api_v2_users__uid__avatar_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Agent":{"properties":{"session_id":{"type":"string","title":"Session Id"},"name":{"type":"string","title":"Name"},"listener":{"type":"string","title":"Listener"},"host_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Host Id"},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"language_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Version"},"delay":{"type":"integer","title":"Delay"},"jitter":{"type":"number","title":"Jitter"},"external_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ip"},"internal_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internal Ip"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"high_integrity":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"High Integrity"},"process_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Process Id"},"process_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Process Name"},"os_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os Details"},"nonce":{"type":"string","title":"Nonce"},"checkin_time":{"type":"string","format":"date-time","title":"Checkin Time"},"lastseen_time":{"type":"string","format":"date-time","title":"Lastseen Time"},"parent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent"},"children":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Children"},"servers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Servers"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"functions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Functions"},"kill_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Date"},"working_hours":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Working Hours"},"lost_limit":{"type":"integer","title":"Lost Limit"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"architecture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Architecture"},"archived":{"type":"boolean","title":"Archived"},"stale":{"type":"boolean","title":"Stale"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Tags"}},"type":"object","required":["session_id","name","listener","delay","jitter","nonce","checkin_time","lastseen_time","lost_limit","archived","stale","tags"],"title":"Agent"},"AgentCheckIn":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"checkin_time":{"type":"string","format":"date-time","title":"Checkin Time"}},"type":"object","required":["agent_id","checkin_time"],"title":"AgentCheckIn"},"AgentCheckInAggregate":{"properties":{"count":{"type":"integer","title":"Count"},"checkin_time":{"type":"string","format":"date-time","title":"Checkin Time"}},"type":"object","required":["count","checkin_time"],"title":"AgentCheckInAggregate"},"AgentCheckIns":{"properties":{"records":{"items":{"$ref":"#/components/schemas/AgentCheckIn"},"type":"array","title":"Records"},"limit":{"type":"integer","title":"Limit"},"page":{"type":"integer","title":"Page"},"total_pages":{"type":"integer","title":"Total Pages"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["records","limit","page","total_pages","total"],"title":"AgentCheckIns"},"AgentCheckInsAggregate":{"properties":{"records":{"items":{"$ref":"#/components/schemas/AgentCheckInAggregate"},"type":"array","title":"Records"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"bucket_size":{"type":"string","title":"Bucket Size"}},"type":"object","required":["records","bucket_size"],"title":"AgentCheckInsAggregate"},"AgentFile":{"properties":{"id":{"type":"integer","title":"Id"},"session_id":{"type":"string","title":"Session Id"},"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"is_file":{"type":"boolean","title":"Is File"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"downloads":{"items":{"$ref":"#/components/schemas/DownloadDescription"},"type":"array","title":"Downloads"},"children":{"items":{"$ref":"#/components/schemas/AgentFile"},"type":"array","title":"Children","default":[]}},"type":"object","required":["id","session_id","name","path","is_file","downloads"],"title":"AgentFile"},"AgentTask":{"properties":{"id":{"type":"integer","title":"Id"},"input":{"type":"string","title":"Input"},"full_input":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Input"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"},"original_output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Output"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"agent_id":{"type":"string","title":"Agent Id"},"downloads":{"items":{"$ref":"#/components/schemas/DownloadDescription"},"type":"array","title":"Downloads"},"module_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module Name"},"module_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Module Options"},"task_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Name"},"status":{"$ref":"#/components/schemas/AgentTaskStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Tags"}},"type":"object","required":["id","input","agent_id","downloads","status","created_at","updated_at","tags"],"title":"AgentTask"},"AgentTaskOrderOptions":{"type":"string","enum":["id","updated_at","status","agent"],"title":"AgentTaskOrderOptions"},"AgentTaskStatus":{"type":"string","enum":["queued","pulled","completed","error","continuous"],"title":"AgentTaskStatus"},"AgentTasks":{"properties":{"records":{"items":{"$ref":"#/components/schemas/AgentTask"},"type":"array","title":"Records"},"limit":{"type":"integer","title":"Limit"},"page":{"type":"integer","title":"Page"},"total_pages":{"type":"integer","title":"Total Pages"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["records","limit","page","total_pages","total"],"title":"AgentTasks"},"AgentUpdateRequest":{"properties":{"name":{"type":"string","title":"Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name"],"title":"AgentUpdateRequest"},"Agents":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Agent"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Agents"},"AggregateBucket":{"type":"string","enum":["second","minute","hour","day"],"title":"AggregateBucket"},"Author":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"}},"type":"object","title":"Author"},"AutorunConfig":{"properties":{"records":{"items":{"$ref":"#/components/schemas/ModulePostRequest"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"AutorunConfig"},"BadRequestResponse":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"BadRequestResponse"},"Body_create_avatar_api_v2_users__uid__avatar_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_avatar_api_v2_users__uid__avatar_post"},"Body_create_download_api_v2_downloads_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_create_download_api_v2_downloads_post"},"Body_login_for_access_token_token_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"^password$"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"password","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_for_access_token_token_post"},"Bypass":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"authors":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Authors"},"language":{"type":"string","title":"Language"},"code":{"type":"string","title":"Code"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","authors","language","code","is_default","created_at","updated_at"],"title":"Bypass"},"BypassPostRequest":{"properties":{"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"code":{"type":"string","title":"Code"}},"type":"object","required":["name","language","code"],"title":"BypassPostRequest"},"BypassUpdateRequest":{"properties":{"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language"},"code":{"type":"string","title":"Code"}},"type":"object","required":["name","language","code"],"title":"BypassUpdateRequest"},"Bypasses":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Bypass"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Bypasses"},"CommsPostRequest":{"properties":{"new_listener_id":{"type":"integer","title":"New Listener Id"}},"type":"object","required":["new_listener_id"],"title":"CommsPostRequest"},"Credential":{"properties":{"id":{"type":"integer","title":"Id"},"credtype":{"type":"string","title":"Credtype"},"domain":{"type":"string","title":"Domain"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"host":{"type":"string","title":"Host"},"os":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Tags"}},"type":"object","required":["id","credtype","domain","username","password","host","created_at","updated_at","tags"],"title":"Credential"},"CredentialPostRequest":{"properties":{"credtype":{"type":"string","title":"Credtype"},"domain":{"type":"string","title":"Domain"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"host":{"type":"string","title":"Host"},"os":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["credtype","domain","username","password","host"],"title":"CredentialPostRequest"},"CredentialUpdateRequest":{"properties":{"credtype":{"type":"string","title":"Credtype"},"domain":{"type":"string","title":"Domain"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"host":{"type":"string","title":"Host"},"os":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["credtype","domain","username","password","host"],"title":"CredentialUpdateRequest"},"Credentials":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Credential"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Credentials"},"CustomOptionSchema":{"properties":{"description":{"type":"string","title":"Description"},"required":{"type":"boolean","title":"Required"},"value":{"type":"string","title":"Value"},"suggested_values":{"items":{"type":"string"},"type":"array","title":"Suggested Values"},"strict":{"type":"boolean","title":"Strict"},"editable":{"type":"boolean","title":"Editable","default":true},"value_type":{"$ref":"#/components/schemas/ValueType"},"internal":{"type":"boolean","title":"Internal"},"depends_on":{"items":{"$ref":"#/components/schemas/DependentOption"},"type":"array","title":"Depends On","default":[]}},"type":"object","required":["description","required","value","suggested_values","strict","value_type","internal"],"title":"CustomOptionSchema"},"DependentOption":{"properties":{"name":{"type":"string","title":"Name"},"values":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Values"}},"type":"object","required":["name","values"],"title":"DependentOption"},"DirectoryListPostRequest":{"properties":{"path":{"type":"string","title":"Path"}},"type":"object","required":["path"],"title":"DirectoryListPostRequest"},"Download":{"properties":{"id":{"type":"integer","title":"Id"},"location":{"type":"string","title":"Location"},"filename":{"type":"string","title":"Filename"},"size":{"type":"integer","title":"Size"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Tags"}},"type":"object","required":["id","location","filename","size","created_at","updated_at","tags"],"title":"Download"},"DownloadDescription":{"properties":{"id":{"type":"integer","title":"Id"},"filename":{"type":"string","title":"Filename"},"link":{"type":"string","title":"Link"}},"type":"object","required":["id","filename","link"],"title":"DownloadDescription"},"DownloadOrderOptions":{"type":"string","enum":["filename","location","size","created_at","updated_at"],"title":"DownloadOrderOptions"},"DownloadPostRequest":{"properties":{"path_to_file":{"type":"string","title":"Path To File"}},"type":"object","required":["path_to_file"],"title":"DownloadPostRequest"},"DownloadSourceFilter":{"type":"string","enum":["upload","stager","agent_file","agent_task"],"title":"DownloadSourceFilter"},"Downloads":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Download"},"type":"array","title":"Records"},"limit":{"type":"integer","title":"Limit"},"page":{"type":"integer","title":"Page"},"total_pages":{"type":"integer","title":"Total Pages"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["records","limit","page","total_pages","total"],"title":"Downloads"},"EmpireVersion":{"properties":{"version":{"type":"string","title":"Version"}},"type":"object","required":["version"],"title":"EmpireVersion"},"ExitPostRequest":{"properties":{},"type":"object","title":"ExitPostRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Host":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"internal_ip":{"type":"string","title":"Internal Ip"}},"type":"object","required":["id","name","internal_ip"],"title":"Host"},"Hosts":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Host"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Hosts"},"IP":{"properties":{"id":{"type":"integer","title":"Id"},"ip_address":{"type":"string","title":"Ip Address"},"list":{"$ref":"#/components/schemas/IpList"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","ip_address","list","description","created_at","updated_at"],"title":"IP"},"IpList":{"type":"string","enum":["allow","deny"],"title":"IpList"},"IpPostRequest":{"properties":{"ip_address":{"type":"string","title":"Ip Address"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"list":{"$ref":"#/components/schemas/IpList"}},"type":"object","required":["ip_address","list"],"title":"IpPostRequest"},"Ips":{"properties":{"records":{"items":{"$ref":"#/components/schemas/IP"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Ips"},"Keyword":{"properties":{"id":{"type":"integer","title":"Id"},"keyword":{"type":"string","title":"Keyword"},"replacement":{"type":"string","title":"Replacement"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","keyword","replacement","created_at","updated_at"],"title":"Keyword"},"KeywordPostRequest":{"properties":{"keyword":{"type":"string","minLength":3,"title":"Keyword"},"replacement":{"type":"string","minLength":3,"title":"Replacement"}},"type":"object","required":["keyword","replacement"],"title":"KeywordPostRequest"},"KeywordUpdateRequest":{"properties":{"keyword":{"type":"string","minLength":3,"title":"Keyword"},"replacement":{"type":"string","minLength":3,"title":"Replacement"}},"type":"object","required":["keyword","replacement"],"title":"KeywordUpdateRequest"},"Keywords":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Keyword"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Keywords"},"KillDatePostRequest":{"properties":{"kill_date":{"type":"string","title":"Kill Date"}},"type":"object","required":["kill_date"],"title":"KillDatePostRequest"},"KillJobPostRequest":{"properties":{"id":{"type":"integer","title":"Id"}},"type":"object","required":["id"],"title":"KillJobPostRequest"},"LanguageEnum":{"type":"string","enum":["python","powershell","csharp","ironpython","bof"],"title":"LanguageEnum"},"Listener":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"template":{"type":"string","title":"Template"},"options":{"additionalProperties":{"type":"string"},"type":"object","title":"Options"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"host_address":{"type":"string","title":"Host Address"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Tags"}},"type":"object","required":["id","name","enabled","template","options","created_at","host_address","tags"],"title":"Listener"},"ListenerPostRequest":{"properties":{"name":{"type":"string","title":"Name"},"template":{"type":"string","title":"Template"},"options":{"additionalProperties":{"type":"string"},"type":"object","title":"Options"}},"type":"object","required":["name","template","options"],"title":"ListenerPostRequest","example":{"name":"MyListener","options":{"BindIP":"0.0.0.0","CertPath":"","Cookie":"","DefaultDelay":5,"DefaultJitter":0.0,"DefaultLostLimit":60,"DefaultProfile":"/admin/get.php,/news.php,/login/process.php|Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko","Headers":"Server:Microsoft-IIS/7.5","Host":"http://localhost","KillDate":"","Launcher":"powershell -noP -sta -w 1 -enc ","Name":"MyListener","Port":"1336","Proxy":"default","ProxyCreds":"default","StagerURI":"","StagingKey":"2c103f2c4ed1e59c0b4e2e01821770fa","UserAgent":"default","WorkingHours":""},"software":"","tactics":[""],"techniques":[""],"template":"http"}},"ListenerTemplate":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"authors":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Authors"},"description":{"type":"string","title":"Description"},"category":{"type":"string","title":"Category"},"comments":{"items":{"type":"string"},"type":"array","title":"Comments"},"tactics":{"items":{"type":"string"},"type":"array","title":"Tactics"},"techniques":{"items":{"type":"string"},"type":"array","title":"Techniques"},"software":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software"},"options":{"additionalProperties":{"$ref":"#/components/schemas/CustomOptionSchema"},"type":"object","title":"Options"}},"type":"object","required":["id","name","authors","description","category","comments","tactics","techniques","options"],"title":"ListenerTemplate","example":{"authors":[{"handle":"@harmj0y","link":"","name":""}],"category":"client_server","comments":[],"description":"Starts a http[s] listener that uses a GET/POST approach.","id":"http","name":"HTTP[S]","options":{"BindIP":{"depends_on:":[],"description":"The IP to bind to on the control server.","internal":false,"required":true,"strict":false,"suggested_values":["0.0.0.0"],"value":"0.0.0.0"},"CertPath":{"depends_on:":[],"description":"Certificate path for https listeners.","internal":false,"required":false,"strict":false,"suggested_values":[],"value":""},"Cookie":{"depends_on:":[],"description":"Custom Cookie Name","internal":false,"required":false,"strict":false,"suggested_values":[],"value":"xNQsvLdAysjkonT"},"DefaultDelay":{"depends_on:":[],"description":"Agent delay/reach back interval (in seconds).","internal":false,"required":true,"strict":false,"suggested_values":[],"value":"5"},"DefaultJitter":{"depends_on:":[],"description":"Jitter in agent reachback interval (0.0-1.0).","internal":false,"required":true,"strict":false,"suggested_values":[],"value":"0.0"},"DefaultLostLimit":{"depends_on:":[],"description":"Number of missed checkins before exiting","internal":false,"required":true,"strict":false,"suggested_values":[],"value":"60"},"DefaultProfile":{"depends_on:":[],"description":"Default communication profile for the agent.","internal":false,"required":true,"strict":false,"suggested_values":[],"value":"/admin/get.php,/news.php,/login/process.php|Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"},"Headers":{"depends_on:":[],"description":"Headers for the control server.","internal":false,"required":true,"strict":false,"suggested_values":[],"value":"Server:Microsoft-IIS/7.5"},"Host":{"depends_on:":[],"description":"Hostname/IP for staging.","internal":false,"required":true,"strict":false,"suggested_values":[],"value":"http://192.168.0.20"},"KillDate":{"depends_on:":[],"description":"Date for the listener to exit (MM/dd/yyyy).","internal":false,"required":false,"strict":false,"suggested_values":[],"value":""},"Launcher":{"depends_on:":[],"description":"Launcher string.","internal":false,"required":true,"strict":false,"suggested_values":[],"value":"powershell -noP -sta -w 1 -enc "},"Name":{"depends_on:":[],"description":"Name for the listener.","internal":false,"required":true,"strict":false,"suggested_values":[],"value":"http"},"Port":{"depends_on:":[],"description":"Port for the listener.","internal":false,"required":true,"strict":false,"suggested_values":["1335","1336"],"value":""},"Proxy":{"depends_on:":[],"description":"Proxy to use for request (default, none, or other).","internal":false,"required":false,"strict":false,"suggested_values":[],"value":"default"},"ProxyCreds":{"depends_on:":[],"description":"Proxy credentials ([domain\\]username:password) to use for request (default, none, or other).","internal":false,"required":false,"strict":false,"suggested_values":[],"value":"default"},"StagerURI":{"depends_on:":[],"description":"URI for the stager. Must use /download/. Example: /download/stager.php","internal":false,"required":false,"strict":false,"suggested_values":[],"value":""},"StagingKey":{"depends_on:":[],"description":"Staging key for initial agent negotiation.","internal":false,"required":true,"strict":false,"suggested_values":[],"value":"}q)jFnDKw&px/7QBhE9Y<6~[Z1>{+Ps@"},"UserAgent":{"depends_on:":[],"description":"User-agent string to use for the staging request (default, none, or other).","internal":false,"required":false,"strict":false,"suggested_values":[],"value":"default"},"WorkingHours":{"depends_on:":[],"description":"Hours for the agent to operate (09:00-17:00).","internal":false,"required":false,"strict":false,"suggested_values":[],"value":""}},"software":"","tactics":[],"techniques":[]}},"ListenerTemplates":{"properties":{"records":{"items":{"$ref":"#/components/schemas/ListenerTemplate"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"ListenerTemplates"},"ListenerUpdateRequest":{"properties":{"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"options":{"additionalProperties":{"type":"string"},"type":"object","title":"Options"}},"type":"object","required":["name","enabled","options"],"title":"ListenerUpdateRequest"},"Listeners":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Listener"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Listeners"},"MarketPlaceEntryVersionResponse":{"properties":{"name":{"type":"string","title":"Name"},"git_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Git Url"},"tar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tar Url"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"},"subdirectory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subdirectory"}},"type":"object","required":["name"],"title":"MarketPlaceEntryVersionResponse"},"MarketplaceEntryRegistryResponse":{"properties":{"name":{"type":"string","title":"Name"},"registry":{"type":"string","title":"Registry"},"homepage_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Homepage Url"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"authors":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Authors"},"versions":{"items":{"$ref":"#/components/schemas/MarketPlaceEntryVersionResponse"},"type":"array","title":"Versions"},"description":{"type":"string","title":"Description"}},"type":"object","required":["name","registry","authors","versions","description"],"title":"MarketplaceEntryRegistryResponse"},"MarketplaceEntryResponse":{"properties":{"name":{"type":"string","title":"Name"},"registries":{"additionalProperties":{"$ref":"#/components/schemas/MarketplaceEntryRegistryResponse"},"type":"object","title":"Registries"},"installed":{"type":"boolean","title":"Installed","default":false},"installed_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed Version"}},"type":"object","required":["name","registries"],"title":"MarketplaceEntryResponse"},"MarketplaceResponse":{"properties":{"records":{"items":{"$ref":"#/components/schemas/MarketplaceEntryResponse"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"MarketplaceResponse"},"Module":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"authors":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Authors"},"description":{"type":"string","title":"Description"},"background":{"type":"boolean","title":"Background"},"language":{"$ref":"#/components/schemas/LanguageEnum"},"min_language_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Language Version"},"needs_admin":{"type":"boolean","title":"Needs Admin"},"opsec_safe":{"type":"boolean","title":"Opsec Safe"},"techniques":{"items":{"type":"string"},"type":"array","title":"Techniques"},"tactics":{"items":{"type":"string"},"type":"array","title":"Tactics"},"software":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software"},"comments":{"items":{"type":"string"},"type":"array","title":"Comments"},"options":{"additionalProperties":{"$ref":"#/components/schemas/CustomOptionSchema"},"type":"object","title":"Options"}},"type":"object","required":["id","name","enabled","authors","description","background","language","needs_admin","opsec_safe","techniques","tactics","comments","options"],"title":"Module"},"ModuleBulkUpdateRequest":{"properties":{"modules":{"items":{"type":"string"},"type":"array","title":"Modules"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["modules","enabled"],"title":"ModuleBulkUpdateRequest"},"ModulePostRequest":{"properties":{"module_id":{"type":"string","title":"Module Id"},"ignore_language_version_check":{"type":"boolean","title":"Ignore Language Version Check","default":false},"ignore_admin_check":{"type":"boolean","title":"Ignore Admin Check","default":false},"options":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"}]},"type":"object","title":"Options"},"modified_input":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modified Input"}},"type":"object","required":["module_id","options"],"title":"ModulePostRequest"},"ModuleScript":{"properties":{"module_id":{"type":"string","title":"Module Id"},"script":{"type":"string","title":"Script"}},"type":"object","required":["module_id","script"],"title":"ModuleScript"},"ModuleUpdateRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"ModuleUpdateRequest"},"NotFoundResponse":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"NotFoundResponse"},"ObfuscationConfig":{"properties":{"language":{"type":"string","title":"Language"},"enabled":{"type":"boolean","title":"Enabled"},"command":{"type":"string","title":"Command"},"module":{"type":"string","title":"Module"},"preobfuscatable":{"type":"boolean","title":"Preobfuscatable"}},"type":"object","required":["language","enabled","command","module","preobfuscatable"],"title":"ObfuscationConfig"},"ObfuscationConfigUpdateRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"command":{"type":"string","title":"Command"},"module":{"type":"string","title":"Module"}},"type":"object","required":["enabled","command","module"],"title":"ObfuscationConfigUpdateRequest"},"ObfuscationConfigs":{"properties":{"records":{"items":{"$ref":"#/components/schemas/ObfuscationConfig"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"ObfuscationConfigs"},"OrderDirection":{"type":"string","enum":["asc","desc"],"title":"OrderDirection"},"Plugin":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"authors":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Authors"},"readme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Readme","default":""},"techniques":{"items":{"type":"string"},"type":"array","title":"Techniques","default":[]},"software":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Software"},"execution_options":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CustomOptionSchema"},"type":"object"},{"type":"null"}],"title":"Execution Options"},"settings_options":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/CustomOptionSchema"},"type":"object"},{"type":"null"}],"title":"Settings Options"},"current_settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Current Settings"},"enabled":{"type":"boolean","title":"Enabled"},"loaded":{"type":"boolean","title":"Loaded","default":false},"execution_enabled":{"type":"boolean","title":"Execution Enabled","default":false},"python_deps":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Python Deps","default":[]}},"type":"object","required":["id","name","authors","enabled"],"title":"Plugin"},"PluginExecutePostRequest":{"properties":{"options":{"additionalProperties":{"type":"string"},"type":"object","title":"Options"}},"type":"object","required":["options"],"title":"PluginExecutePostRequest"},"PluginExecuteResponse":{"properties":{"detail":{"type":"string","title":"Detail","default":""}},"type":"object","title":"PluginExecuteResponse"},"PluginInstallGitRequest":{"properties":{"url":{"type":"string","title":"Url"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"},"subdirectory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subdirectory"}},"type":"object","required":["url"],"title":"PluginInstallGitRequest"},"PluginInstallRequest":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"string","title":"Version"},"registry":{"type":"string","title":"Registry"}},"type":"object","required":["name","version","registry"],"title":"PluginInstallRequest"},"PluginInstallTarRequest":{"properties":{"url":{"type":"string","title":"Url"},"subdirectory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subdirectory"}},"type":"object","required":["url"],"title":"PluginInstallTarRequest"},"PluginTask":{"properties":{"id":{"type":"integer","title":"Id"},"input":{"type":"string","title":"Input"},"full_input":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Input"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"plugin_id":{"type":"string","title":"Plugin Id"},"plugin_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plugin Options"},"downloads":{"items":{"$ref":"#/components/schemas/DownloadDescription"},"type":"array","title":"Downloads"},"status":{"anyOf":[{"$ref":"#/components/schemas/PluginTaskStatus"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"tags":{"items":{"$ref":"#/components/schemas/Tag"},"type":"array","title":"Tags"}},"type":"object","required":["id","input","plugin_id","downloads","created_at","updated_at","tags"],"title":"PluginTask"},"PluginTaskOrderOptions":{"type":"string","enum":["id","updated_at","status","plugin"],"title":"PluginTaskOrderOptions"},"PluginTaskStatus":{"type":"string","enum":["queued","started","completed","error","continuous"],"title":"PluginTaskStatus"},"PluginTasks":{"properties":{"records":{"items":{"$ref":"#/components/schemas/PluginTask"},"type":"array","title":"Records"},"limit":{"type":"integer","title":"Limit"},"page":{"type":"integer","title":"Page"},"total_pages":{"type":"integer","title":"Total Pages"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["records","limit","page","total_pages","total"],"title":"PluginTasks"},"PluginUpdateRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"PluginUpdateRequest"},"Plugins":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Plugin"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Plugins"},"Process":{"properties":{"process_id":{"type":"integer","title":"Process Id"},"process_name":{"type":"string","title":"Process Name"},"host_id":{"type":"integer","title":"Host Id"},"architecture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Architecture"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"stale":{"type":"boolean","title":"Stale"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},"type":"object","required":["process_id","process_name","host_id","stale"],"title":"Process"},"Processes":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Process"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Processes"},"Profile":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"file_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path"},"category":{"type":"string","title":"Category"},"data":{"type":"string","title":"Data"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","category","data","created_at","updated_at"],"title":"Profile"},"ProfilePostRequest":{"properties":{"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"data":{"type":"string","title":"Data"}},"type":"object","required":["name","category","data"],"title":"ProfilePostRequest"},"ProfileUpdateRequest":{"properties":{"data":{"type":"string","title":"Data"}},"type":"object","required":["data"],"title":"ProfileUpdateRequest"},"Profiles":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Profile"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Profiles"},"ShellPostRequest":{"properties":{"command":{"type":"string","title":"Command"},"literal":{"type":"boolean","title":"Literal","default":false}},"type":"object","required":["command"],"title":"ShellPostRequest"},"SleepPostRequest":{"properties":{"delay":{"type":"integer","minimum":0.0,"title":"Delay"},"jitter":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Jitter"}},"type":"object","required":["delay","jitter"],"title":"SleepPostRequest"},"SocksPostRequest":{"properties":{"port":{"type":"integer","title":"Port"}},"type":"object","required":["port"],"title":"SocksPostRequest"},"Stager":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"template":{"type":"string","title":"Template"},"one_liner":{"type":"boolean","title":"One Liner"},"downloads":{"items":{"$ref":"#/components/schemas/DownloadDescription"},"type":"array","title":"Downloads"},"options":{"additionalProperties":{"type":"string"},"type":"object","title":"Options"},"user_id":{"type":"integer","title":"User Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","template","one_liner","downloads","options","user_id"],"title":"Stager"},"StagerPostRequest":{"properties":{"name":{"type":"string","title":"Name"},"template":{"type":"string","title":"Template"},"options":{"additionalProperties":{"type":"string"},"type":"object","title":"Options"}},"type":"object","required":["name","template","options"],"title":"StagerPostRequest","example":{"name":"MyStager","options":{"Base64":"True","Bypasses":"","Language":"powershell","Listener":"","Obfuscate":"False","ObfuscateCommand":"Token\\All\\1","OutFile":"","Proxy":"default","ProxyCreds":"default","SafeChecks":"True","StagerRetries":"0","UserAgent":"default"},"template":"multi_launcher"}},"StagerTemplate":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"authors":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Authors"},"description":{"type":"string","title":"Description"},"comments":{"items":{"type":"string"},"type":"array","title":"Comments"},"options":{"additionalProperties":{"$ref":"#/components/schemas/CustomOptionSchema"},"type":"object","title":"Options"}},"type":"object","required":["id","name","authors","description","comments","options"],"title":"StagerTemplate","example":{"authors":["@harmj0y"],"comments":[""],"description":"Generates a one-liner stage0 launcher for Empire.","id":"multi_launcher","name":"Launcher","options":{"Base64":{"depends_on:":[],"description":"Switch. Base64 encode the output.","internal":false,"required":true,"strict":true,"suggested_values":["True","False"],"value":"True"},"Bypasses":{"depends_on:":[],"description":"Bypasses as a space separated list to be prepended to the launcher","internal":false,"required":false,"strict":false,"suggested_values":[],"value":""},"Language":{"depends_on:":[],"description":"Language of the stager to generate.","internal":false,"required":true,"strict":true,"suggested_values":["powershell","python"],"value":"powershell"},"Listener":{"depends_on:":[],"description":"Listener to generate stager for.","internal":false,"required":true,"strict":false,"suggested_values":[],"value":""},"Obfuscate":{"depends_on:":[],"description":"Switch. Obfuscate the launcher powershell code, uses the ObfuscateCommand for obfuscation types. For powershell only.","internal":false,"required":false,"strict":true,"suggested_values":["True","False"],"value":"False"},"ObfuscateCommand":{"depends_on:":[],"description":"The Invoke-Obfuscation command to use. Only used if Obfuscate switch is True. For powershell only.","internal":false,"required":false,"strict":false,"suggested_values":[],"value":"Token\\All\\1"},"OutFile":{"depends_on:":[],"description":"Filename that should be used for the generated output.","internal":false,"required":false,"strict":false,"suggested_values":[],"value":""},"Proxy":{"depends_on:":[],"description":"Proxy to use for request (default, none, or other).","internal":false,"required":false,"strict":false,"suggested_values":[],"value":"default"},"ProxyCreds":{"depends_on:":[],"description":"Proxy credentials ([domain\\]username:password) to use for request (default, none, or other).","internal":false,"required":false,"strict":false,"suggested_values":[],"value":"default"},"SafeChecks":{"depends_on:":[],"description":"Switch. Checks for LittleSnitch or a SandBox, exit the staging process if True. Defaults to True.","internal":false,"required":true,"strict":true,"suggested_values":["True","False"],"value":"True"},"StagerRetries":{"depends_on:":[],"description":"Times for the stager to retry connecting.","internal":false,"required":false,"strict":false,"suggested_values":[],"value":"0"},"UserAgent":{"depends_on:":[],"description":"User-agent string to use for the staging request (default, none, or other).","internal":false,"required":false,"strict":false,"suggested_values":[],"value":"default"}}}},"StagerTemplates":{"properties":{"records":{"items":{"$ref":"#/components/schemas/StagerTemplate"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"StagerTemplates"},"StagerUpdateRequest":{"properties":{"name":{"type":"string","title":"Name"},"options":{"additionalProperties":{"type":"string"},"type":"object","title":"Options"}},"type":"object","required":["name","options"],"title":"StagerUpdateRequest"},"Stagers":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Stager"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Stagers"},"StopJobPostRequest":{"properties":{"id":{"type":"integer","title":"Id"}},"type":"object","required":["id"],"title":"StopJobPostRequest"},"SysinfoPostRequest":{"properties":{},"type":"object","title":"SysinfoPostRequest"},"Tag":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"type":"object","required":["id","name","value","label"],"title":"Tag"},"TagOrderOptions":{"type":"string","enum":["name","created_at","updated_at"],"title":"TagOrderOptions"},"TagRequest":{"properties":{"name":{"type":"string","pattern":"^[^:]+$","title":"Name"},"value":{"type":"string","pattern":"^[^:]+$","title":"Value"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"type":"object","required":["name","value"],"title":"TagRequest"},"TagSourceFilter":{"type":"string","enum":["listener","agent","agent_task","plugin_task","download","credential"],"title":"TagSourceFilter"},"Token":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type"}},"type":"object","required":["access_token","token_type"],"title":"Token"},"UploadPostRequest":{"properties":{"path_to_file":{"type":"string","title":"Path To File"},"file_id":{"type":"integer","title":"File Id"}},"type":"object","required":["path_to_file","file_id"],"title":"UploadPostRequest"},"User":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"enabled":{"type":"boolean","title":"Enabled"},"is_admin":{"type":"boolean","title":"Is Admin"},"avatar":{"anyOf":[{"$ref":"#/components/schemas/DownloadDescription"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","username","enabled","is_admin","created_at","updated_at"],"title":"User"},"UserPostRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"is_admin":{"type":"boolean","title":"Is Admin"}},"type":"object","required":["username","password","is_admin"],"title":"UserPostRequest"},"UserUpdatePasswordRequest":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"UserUpdatePasswordRequest"},"UserUpdateRequest":{"properties":{"username":{"type":"string","title":"Username"},"enabled":{"type":"boolean","title":"Enabled"},"is_admin":{"type":"boolean","title":"Is Admin"}},"type":"object","required":["username","enabled","is_admin"],"title":"UserUpdateRequest"},"Users":{"properties":{"records":{"items":{"$ref":"#/components/schemas/User"},"type":"array","title":"Records"}},"type":"object","required":["records"],"title":"Users"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValueType":{"type":"string","enum":["STRING","FLOAT","INTEGER","BOOLEAN","FILE"],"title":"ValueType"},"WorkingHoursPostRequest":{"properties":{"working_hours":{"type":"string","title":"Working Hours"}},"type":"object","required":["working_hours"],"title":"WorkingHoursPostRequest"}}}}