{
 "openapi": "3.1.0",
 "info": {
  "title": "sudosudo agent API (v1)",
  "version": "1",
  "description": "API for AI agents and the `sudosudo` CLI. Auth: `Authorization: Bearer sot_\u2026`, an org token with scope read | operate | owner: get one without pasting anything via the device flow (POST /api/ext/v1/auth/device, then poll /auth/device/token; `sudosudo login`) or mint one at https://sudosudo.dev/app/members. Purchases: an agent POSTs /billing/intents and a human owner approves the link. Agent runs are async: POST, then poll the GET twin. Over a limit: 429 + Retry-After. Guide: https://sudosudo.dev/llms.txt"
 },
 "paths": {
  "/activity": {
   "get": {
    "tags": [
     "automations"
    ],
    "summary": "Org Activity",
    "description": "Org-wide activity feed across all targets \u2014 powers the dashboard home.",
    "operationId": "org_activity_activity_get",
    "parameters": [
     {
      "name": "n",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 60,
       "title": "N"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Org Activity Activity Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/agent-providers": {
   "get": {
    "tags": [
     "automations"
    ],
    "summary": "Agent Providers List",
    "description": "Catalog of agent CLI providers (kimi / claude / orquesta) + install status.",
    "operationId": "agent_providers_list_agent_providers_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Agent Providers List Agent Providers Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/auth/whoami": {
   "get": {
    "tags": [
     "auth"
    ],
    "summary": "Whoami",
    "description": "Who is calling, for any credential (admin, sot_ token, session) \u2014 the\nfirst call an AI agent or the CLI makes (docs/agent-api.md).",
    "operationId": "whoami_auth_whoami_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Whoami Auth Whoami Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/automations": {
   "get": {
    "tags": [
     "automations"
    ],
    "summary": "Automations",
    "operationId": "automations_automations_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Automations Automations Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/billing": {
   "get": {
    "tags": [
     "billing"
    ],
    "summary": "Get Billing",
    "operationId": "get_billing_billing_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Billing Billing Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/billing/intents": {
   "post": {
    "tags": [
     "billing"
    ],
    "summary": "Create Intent",
    "operationId": "create_intent_billing_intents_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/IntentIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Intent Billing Intents Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "get": {
    "tags": [
     "billing"
    ],
    "summary": "List Intents",
    "operationId": "list_intents_billing_intents_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Intents Billing Intents Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/billing/intents/{intent_id}": {
   "get": {
    "tags": [
     "billing"
    ],
    "summary": "Get Intent",
    "operationId": "get_intent_billing_intents__intent_id__get",
    "parameters": [
     {
      "name": "intent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Intent Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Intent Billing Intents  Intent Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/fleet": {
   "get": {
    "tags": [
     "automations"
    ],
    "summary": "Fleet",
    "description": "Per-target health rollup across the org \u2014 powers the dashboard home.",
    "operationId": "fleet_fleet_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Fleet Fleet Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/catalog": {
   "get": {
    "tags": [
     "hosting"
    ],
    "summary": "Get Catalog",
    "operationId": "get_catalog_hosting_catalog_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Catalog Hosting Catalog Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/templates/{tpl_id}": {
   "delete": {
    "tags": [
     "hosting"
    ],
    "summary": "Delete Template",
    "operationId": "delete_template_hosting_templates__tpl_id__delete",
    "parameters": [
     {
      "name": "tpl_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Tpl Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Delete Template Hosting Templates  Tpl Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/usage": {
   "get": {
    "tags": [
     "hosting"
    ],
    "summary": "Get Usage",
    "operationId": "get_usage_hosting_usage_get",
    "parameters": [
     {
      "name": "external_ref",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "External Ref"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Usage Hosting Usage Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms": {
   "get": {
    "tags": [
     "hosting"
    ],
    "summary": "List Vms",
    "operationId": "list_vms_hosting_vms_get",
    "parameters": [
     {
      "name": "include_terminated",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Include Terminated"
      }
     },
     {
      "name": "external_ref",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "External Ref"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Vms Hosting Vms Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "post": {
    "tags": [
     "hosting"
    ],
    "summary": "Launch Vm",
    "operationId": "launch_vm_hosting_vms_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LaunchIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Launch Vm Hosting Vms Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}": {
   "get": {
    "tags": [
     "hosting"
    ],
    "summary": "Get Vm",
    "operationId": "get_vm_hosting_vms__vm_id__get",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Vm Hosting Vms  Vm Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "patch": {
    "tags": [
     "hosting"
    ],
    "summary": "Patch Vm",
    "operationId": "patch_vm_hosting_vms__vm_id__patch",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PatchIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Patch Vm Hosting Vms  Vm Id  Patch"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "delete": {
    "tags": [
     "hosting"
    ],
    "summary": "Delete Vm",
    "operationId": "delete_vm_hosting_vms__vm_id__delete",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Delete Vm Hosting Vms  Vm Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/actions": {
   "post": {
    "tags": [
     "hosting"
    ],
    "summary": "Vm Action",
    "operationId": "vm_action_hosting_vms__vm_id__actions_post",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ActionIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Vm Action Hosting Vms  Vm Id  Actions Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/app/upgrade": {
   "post": {
    "tags": [
     "hosting"
    ],
    "summary": "Upgrade App",
    "operationId": "upgrade_app_hosting_vms__vm_id__app_upgrade_post",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Upgrade App Hosting Vms  Vm Id  App Upgrade Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/audit": {
   "get": {
    "tags": [
     "hosting"
    ],
    "summary": "List Audit",
    "operationId": "list_audit_hosting_vms__vm_id__audit_get",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Audit Hosting Vms  Vm Id  Audit Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/backups": {
   "get": {
    "tags": [
     "hosting"
    ],
    "summary": "List Backups",
    "operationId": "list_backups_hosting_vms__vm_id__backups_get",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Backups Hosting Vms  Vm Id  Backups Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "post": {
    "tags": [
     "hosting"
    ],
    "summary": "Create Backup",
    "operationId": "create_backup_hosting_vms__vm_id__backups_post",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Backup Hosting Vms  Vm Id  Backups Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/backups/restore": {
   "post": {
    "tags": [
     "hosting"
    ],
    "summary": "Restore Backup",
    "operationId": "restore_backup_hosting_vms__vm_id__backups_restore_post",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RestoreIn"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Restore Backup Hosting Vms  Vm Id  Backups Restore Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/capture": {
   "post": {
    "tags": [
     "hosting"
    ],
    "summary": "Capture Vm",
    "operationId": "capture_vm_hosting_vms__vm_id__capture_post",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CaptureIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Capture Vm Hosting Vms  Vm Id  Capture Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/commands": {
   "get": {
    "tags": [
     "hosting"
    ],
    "summary": "List Commands",
    "operationId": "list_commands_hosting_vms__vm_id__commands_get",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Commands Hosting Vms  Vm Id  Commands Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/credentials/reveal": {
   "post": {
    "tags": [
     "hosting"
    ],
    "summary": "Reveal Credentials",
    "operationId": "reveal_credentials_hosting_vms__vm_id__credentials_reveal_post",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/credentials/rotate": {
   "post": {
    "tags": [
     "hosting"
    ],
    "summary": "Rotate Credentials",
    "operationId": "rotate_credentials_hosting_vms__vm_id__credentials_rotate_post",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Rotate Credentials Hosting Vms  Vm Id  Credentials Rotate Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/hosting/vms/{vm_id}/invoke": {
   "post": {
    "tags": [
     "hosting"
    ],
    "summary": "Invoke Vm",
    "operationId": "invoke_vm_hosting_vms__vm_id__invoke_post",
    "parameters": [
     {
      "name": "vm_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Vm Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InvokeIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Invoke Vm Hosting Vms  Vm Id  Invoke Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/probes": {
   "get": {
    "tags": [
     "probes"
    ],
    "summary": "List Org Probes",
    "operationId": "list_org_probes_probes_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Org Probes Probes Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/prompt-templates": {
   "get": {
    "tags": [
     "automations"
    ],
    "summary": "Prompt Templates",
    "operationId": "prompt_templates_prompt_templates_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Prompt Templates Prompt Templates Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/servers": {
   "get": {
    "tags": [
     "automations"
    ],
    "summary": "Servers",
    "description": "The fleet grouped by server: each host target with the sites it serves\n(sites link via `host_target_id`), the heartbeats (bots/crons) of the host\nand of those sites, and a rolled-up status. Sites with no host land in\n`unassigned`. Read-only view over /fleet + /probes.",
    "operationId": "servers_servers_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Servers Servers Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets": {
   "post": {
    "tags": [
     "targets"
    ],
    "summary": "Create Target",
    "operationId": "create_target_targets_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreateTargetIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CreateTargetOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "List Targets",
    "operationId": "list_targets_targets_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Targets Targets Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/allowlist-catalog": {
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Get Allowlist Catalog",
    "operationId": "get_allowlist_catalog_targets_allowlist_catalog_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Allowlist Catalog Targets Allowlist Catalog Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}": {
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Get Target",
    "operationId": "get_target_targets__target_id__get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Target Targets  Target Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "patch": {
    "tags": [
     "targets"
    ],
    "summary": "Update Target",
    "operationId": "update_target_targets__target_id__patch",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UpdateTargetIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Target Targets  Target Id  Patch"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "delete": {
    "tags": [
     "targets"
    ],
    "summary": "Delete Target",
    "operationId": "delete_target_targets__target_id__delete",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Delete Target Targets  Target Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/activity": {
   "get": {
    "tags": [
     "schedules"
    ],
    "summary": "Target Activity",
    "description": "Unified, time-sorted event feed (alerts + agent runs + reports) for the\ndashboard Activity tab.",
    "operationId": "target_activity_targets__target_id__activity_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "n",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 60,
       "title": "N"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Target Activity Targets  Target Id  Activity Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/agent/chat": {
   "post": {
    "tags": [
     "targets"
    ],
    "summary": "Agent Chat Send",
    "description": "Send a message in a conversation (new one if no conversation_id). Async:\npoll GET /agent/chat?conversation_id=\u2026 for the thread. Coalesces if the\nconversation already has a turn running.",
    "operationId": "agent_chat_send_targets__target_id__agent_chat_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AgentChatIn"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Agent Chat Send Targets  Target Id  Agent Chat Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Agent Chat Thread",
    "description": "Full transcript of one conversation: every turn with its reply, access\ndoor, tgt-ssh audit (access log) and status. `running` flags an in-flight turn.",
    "operationId": "agent_chat_thread_targets__target_id__agent_chat_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "conversation_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Conversation Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Agent Chat Thread Targets  Target Id  Agent Chat Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/agent/conversations": {
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Agent Conversations",
    "description": "List this target's conversations (id, title, last activity, turn count).",
    "operationId": "agent_conversations_targets__target_id__agent_conversations_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Agent Conversations Targets  Target Id  Agent Conversations Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/agent/prompt": {
   "post": {
    "tags": [
     "targets"
    ],
    "summary": "Agent Prompt Start",
    "description": "Dispatch a one-off agent run with an operator-supplied prompt. Async:\npoll GET /agent/prompt for output/error. Coalesces if one is already\nrunning (a target runs one agent subprocess at a time).",
    "operationId": "agent_prompt_start_targets__target_id__agent_prompt_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AgentPromptIn"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Agent Prompt Start Targets  Target Id  Agent Prompt Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Agent Prompt Result",
    "description": "Poll the latest manual agent run. While running \u2192 {status:'running'};\notherwise returns the raw output and (on failure) the error reason.",
    "operationId": "agent_prompt_result_targets__target_id__agent_prompt_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Agent Prompt Result Targets  Target Id  Agent Prompt Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/alerts/{aid}/status": {
   "post": {
    "tags": [
     "channels"
    ],
    "summary": "Set Alert Status",
    "operationId": "set_alert_status_targets__target_id__alerts__aid__status_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "aid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Aid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AlertStatusIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Set Alert Status Targets  Target Id  Alerts  Aid  Status Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/allowlist": {
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Get Allowlist",
    "operationId": "get_allowlist_targets__target_id__allowlist_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Allowlist Targets  Target Id  Allowlist Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "put": {
    "tags": [
     "targets"
    ],
    "summary": "Put Allowlist",
    "operationId": "put_allowlist_targets__target_id__allowlist_put",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AllowlistIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Put Allowlist Targets  Target Id  Allowlist Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/allowlist/grant": {
   "post": {
    "tags": [
     "targets"
    ],
    "summary": "Grant Allowlist",
    "description": "Quick, in-context permission grant (used by the chat's \"give the agent\nthis\" affordance). Either enable ALL tiers, or allow one exact command by\nappending its regex-escaped literal to a bucket. The always-on dangerous\nbaseline blocklist still wins, so a destructive command can't be granted.",
    "operationId": "grant_allowlist_targets__target_id__allowlist_grant_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AllowlistGrantIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Grant Allowlist Targets  Target Id  Allowlist Grant Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/channels": {
   "get": {
    "tags": [
     "channels"
    ],
    "summary": "List Channels",
    "operationId": "list_channels_targets__target_id__channels_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Channels Targets  Target Id  Channels Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "post": {
    "tags": [
     "channels"
    ],
    "summary": "Create Channel",
    "operationId": "create_channel_targets__target_id__channels_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreateChannelIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Channel Targets  Target Id  Channels Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/channels/{cid}": {
   "patch": {
    "tags": [
     "channels"
    ],
    "summary": "Update Channel",
    "operationId": "update_channel_targets__target_id__channels__cid__patch",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UpdateChannelIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Channel Targets  Target Id  Channels  Cid  Patch"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "delete": {
    "tags": [
     "channels"
    ],
    "summary": "Delete Channel",
    "operationId": "delete_channel_targets__target_id__channels__cid__delete",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Delete Channel Targets  Target Id  Channels  Cid  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/connectivity": {
   "get": {
    "tags": [
     "schedules"
    ],
    "summary": "Target Connectivity",
    "description": "Per-target proxy + tunnel view: the Caddy subdomain we open for push, and\nthe SSH/ngrok the agent dials out to (incl. the reported ngrok port).",
    "operationId": "target_connectivity_targets__target_id__connectivity_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Target Connectivity Targets  Target Id  Connectivity Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/install-token": {
   "post": {
    "tags": [
     "targets"
    ],
    "summary": "Mint Install Token",
    "description": "Mint a short-lived, single-fetch install token for the box installer and\nreturn the one-liner. Org/admin-scoped (the operator). The raw token is shown\nonce (it ends up in the install URL); only its hash is stored.",
    "operationId": "mint_install_token_targets__target_id__install_token_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InstallTokenIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Mint Install Token Targets  Target Id  Install Token Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/metric-keys": {
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Get Metric Keys",
    "description": "Dotted `payload.*` paths from the most recent metric push, to power the\nrule condition autocomplete. Empty when the box hasn't pushed yet.",
    "operationId": "get_metric_keys_targets__target_id__metric_keys_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Metric Keys Targets  Target Id  Metric Keys Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/metrics": {
   "get": {
    "tags": [
     "schedules"
    ],
    "summary": "Target Metrics",
    "description": "Org-scoped metric series (session-auth) for dashboard charts.",
    "operationId": "target_metrics_targets__target_id__metrics_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "n",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 120,
       "title": "N"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Target Metrics Targets  Target Id  Metrics Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/probes": {
   "get": {
    "tags": [
     "probes"
    ],
    "summary": "List Probes",
    "operationId": "list_probes_targets__target_id__probes_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Probes Targets  Target Id  Probes Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "post": {
    "tags": [
     "probes"
    ],
    "summary": "Create Probe",
    "operationId": "create_probe_targets__target_id__probes_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreateProbeIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Probe Targets  Target Id  Probes Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/probes/{probe_id}": {
   "patch": {
    "tags": [
     "probes"
    ],
    "summary": "Update Probe",
    "operationId": "update_probe_targets__target_id__probes__probe_id__patch",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "probe_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Probe Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UpdateProbeIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Probe Targets  Target Id  Probes  Probe Id  Patch"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "delete": {
    "tags": [
     "probes"
    ],
    "summary": "Delete Probe",
    "operationId": "delete_probe_targets__target_id__probes__probe_id__delete",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "probe_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Probe Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Delete Probe Targets  Target Id  Probes  Probe Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/probes/{probe_id}/egress": {
   "get": {
    "tags": [
     "probes"
    ],
    "summary": "Probe Egress",
    "description": "The public IP a heartbeat probe's machine pings from, and its history.\n\n``ip`` is the confirmed egress IP (what an allowlist should follow);\n``candidate`` is a new IP seen on fewer than the confirming number of\nconsecutive pings. A machine on a dynamic public IP runs `sudosudo-hb`\n(or curls its ping URL) from cron; consumers poll this endpoint.",
    "operationId": "probe_egress_targets__target_id__probes__probe_id__egress_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "probe_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Probe Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Probe Egress Targets  Target Id  Probes  Probe Id  Egress Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/probes/{probe_id}/results": {
   "get": {
    "tags": [
     "probes"
    ],
    "summary": "Probe Results",
    "operationId": "probe_results_targets__target_id__probes__probe_id__results_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "probe_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Probe Id"
      }
     },
     {
      "name": "n",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 100,
       "title": "N"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Probe Results Targets  Target Id  Probes  Probe Id  Results Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/probes/{probe_id}/rotate-token": {
   "post": {
    "tags": [
     "probes"
    ],
    "summary": "Rotate Heartbeat Token",
    "operationId": "rotate_heartbeat_token_targets__target_id__probes__probe_id__rotate_token_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "probe_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Probe Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Rotate Heartbeat Token Targets  Target Id  Probes  Probe Id  Rotate Token Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/probes/{probe_id}/run-now": {
   "post": {
    "tags": [
     "probes"
    ],
    "summary": "Run Probe Now",
    "operationId": "run_probe_now_targets__target_id__probes__probe_id__run_now_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "probe_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Probe Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Run Probe Now Targets  Target Id  Probes  Probe Id  Run Now Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/process-monitor": {
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Get Process Monitor",
    "description": "Return the target's process-monitor configuration (which processes to watch\nand where to read their logs).",
    "operationId": "get_process_monitor_targets__target_id__process_monitor_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Process Monitor Targets  Target Id  Process Monitor Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "put": {
    "tags": [
     "targets"
    ],
    "summary": "Put Process Monitor",
    "description": "Set the target's process-monitor configuration.\n\nReturns the normalized config plus a `suggested_rules_yaml` block the\noperator can paste into the target's alert rules to fire on the configured\n`alert_on` substrings.",
    "operationId": "put_process_monitor_targets__target_id__process_monitor_put",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PutProcessMonitorIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Put Process Monitor Targets  Target Id  Process Monitor Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/processes": {
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "List Processes",
    "description": "Return the running process table from the latest push payload.",
    "operationId": "list_processes_targets__target_id__processes_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Processes Targets  Target Id  Processes Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/push-credentials": {
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Get Push Credentials",
    "description": "Return push_url + push_token in clear, for rendering push.py.\n\nSame auth as the rest of the target API (org-scoped session or admin\ntoken). Kept on a separate endpoint so the normal GET stays scrubbed\nand logs never accidentally capture the token.",
    "operationId": "get_push_credentials_targets__target_id__push_credentials_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Push Credentials Targets  Target Id  Push Credentials Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/reports": {
   "get": {
    "tags": [
     "schedules"
    ],
    "summary": "List Reports",
    "operationId": "list_reports_targets__target_id__reports_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Reports Targets  Target Id  Reports Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/reports/{rid}": {
   "get": {
    "tags": [
     "schedules"
    ],
    "summary": "Get Report",
    "operationId": "get_report_targets__target_id__reports__rid__get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "rid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Rid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Report Targets  Target Id  Reports  Rid  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/rules": {
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Get Rules",
    "operationId": "get_rules_targets__target_id__rules_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Get Rules Targets  Target Id  Rules Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "put": {
    "tags": [
     "targets"
    ],
    "summary": "Put Rules",
    "operationId": "put_rules_targets__target_id__rules_put",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RulesIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Put Rules Targets  Target Id  Rules Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/rules/suggest": {
   "post": {
    "tags": [
     "targets"
    ],
    "summary": "Suggest Rules Start",
    "description": "Kick off an agent run that proposes rules + routines for this box. Async:\npoll GET /rules/suggest for the result. Returns 202; coalesces if one is\nalready running.",
    "operationId": "suggest_rules_start_targets__target_id__rules_suggest_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Suggest Rules Start Targets  Target Id  Rules Suggest Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "get": {
    "tags": [
     "targets"
    ],
    "summary": "Suggest Rules Result",
    "description": "Poll the latest rule-suggestion run. While running \u2192 {status:'running'};\non success \u2192 validated proposals the UI can review and apply.",
    "operationId": "suggest_rules_result_targets__target_id__rules_suggest_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Suggest Rules Result Targets  Target Id  Rules Suggest Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/runs": {
   "get": {
    "tags": [
     "schedules"
    ],
    "summary": "Target Runs",
    "description": "Org-scoped agent-run history (session-auth) for the dashboard Runs tab.",
    "operationId": "target_runs_targets__target_id__runs_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "n",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 50,
       "title": "N"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Target Runs Targets  Target Id  Runs Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/runs/{run_id}": {
   "get": {
    "tags": [
     "schedules"
    ],
    "summary": "Target Run",
    "description": "Org-scoped agent-run detail (session-auth) for the dashboard run log.",
    "operationId": "target_run_targets__target_id__runs__run_id__get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "run_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Run Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Target Run Targets  Target Id  Runs  Run Id  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/schedules": {
   "get": {
    "tags": [
     "schedules"
    ],
    "summary": "List Schedules",
    "operationId": "list_schedules_targets__target_id__schedules_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Schedules Targets  Target Id  Schedules Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "post": {
    "tags": [
     "schedules"
    ],
    "summary": "Create Schedule",
    "operationId": "create_schedule_targets__target_id__schedules_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreateScheduleIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Schedule Targets  Target Id  Schedules Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/schedules/{sid}": {
   "patch": {
    "tags": [
     "schedules"
    ],
    "summary": "Update Schedule",
    "operationId": "update_schedule_targets__target_id__schedules__sid__patch",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UpdateScheduleIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Update Schedule Targets  Target Id  Schedules  Sid  Patch"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "delete": {
    "tags": [
     "schedules"
    ],
    "summary": "Delete Schedule",
    "operationId": "delete_schedule_targets__target_id__schedules__sid__delete",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Delete Schedule Targets  Target Id  Schedules  Sid  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/schedules/{sid}/run-now": {
   "post": {
    "tags": [
     "schedules"
    ],
    "summary": "Run Now",
    "operationId": "run_now_targets__target_id__schedules__sid__run_now_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Run Now Targets  Target Id  Schedules  Sid  Run Now Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/silences": {
   "get": {
    "tags": [
     "channels"
    ],
    "summary": "List Silences",
    "operationId": "list_silences_targets__target_id__silences_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response List Silences Targets  Target Id  Silences Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   },
   "post": {
    "tags": [
     "channels"
    ],
    "summary": "Create Silence",
    "operationId": "create_silence_targets__target_id__silences_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreateSilenceIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Create Silence Targets  Target Id  Silences Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/silences/{sid}": {
   "delete": {
    "tags": [
     "channels"
    ],
    "summary": "Delete Silence",
    "operationId": "delete_silence_targets__target_id__silences__sid__delete",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Delete Silence Targets  Target Id  Silences  Sid  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/status": {
   "get": {
    "tags": [
     "schedules"
    ],
    "summary": "Target Status",
    "description": "Org-scoped status (session-auth) \u2014 the /t/{id}/status twin for the dashboard.",
    "operationId": "target_status_targets__target_id__status_get",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Target Status Targets  Target Id  Status Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/targets/{target_id}/test-alert": {
   "post": {
    "tags": [
     "targets"
    ],
    "summary": "Test Alert",
    "description": "Records the alert in DB; full agent/email dispatch happens on next push.",
    "operationId": "test_alert_targets__target_id__test_alert_post",
    "parameters": [
     {
      "name": "target_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Target Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TestAlertIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Test Alert Targets  Target Id  Test Alert Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  },
  "/usage": {
   "get": {
    "tags": [
     "usage"
    ],
    "summary": "Usage",
    "operationId": "usage_usage_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     },
     {
      "name": "sudosudo_session",
      "in": "cookie",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sudosudo Session"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Usage Usage Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "orgApiKey": []
     }
    ]
   }
  }
 },
 "components": {
  "schemas": {
   "ActionIn": {
    "properties": {
     "action": {
      "type": "string",
      "title": "Action"
     }
    },
    "type": "object",
    "required": [
     "action"
    ],
    "title": "ActionIn"
   },
   "AgentChatIn": {
    "properties": {
     "prompt": {
      "type": "string",
      "maxLength": 8000,
      "minLength": 1,
      "title": "Prompt"
     },
     "conversation_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80,
        "pattern": "^[A-Za-z0-9_-]+$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Conversation Id"
     }
    },
    "type": "object",
    "required": [
     "prompt"
    ],
    "title": "AgentChatIn"
   },
   "AgentPromptIn": {
    "properties": {
     "prompt": {
      "type": "string",
      "maxLength": 8000,
      "minLength": 1,
      "title": "Prompt"
     }
    },
    "type": "object",
    "required": [
     "prompt"
    ],
    "title": "AgentPromptIn"
   },
   "AlertStatusIn": {
    "properties": {
     "status": {
      "type": "string",
      "title": "Status"
     }
    },
    "type": "object",
    "required": [
     "status"
    ],
    "title": "AlertStatusIn"
   },
   "AllowlistGrantIn": {
    "properties": {
     "all": {
      "type": "boolean",
      "title": "All",
      "default": false
     },
     "command": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Command"
     },
     "bucket": {
      "type": "string",
      "pattern": "^(read|remediate)$",
      "title": "Bucket",
      "default": "remediate"
     }
    },
    "type": "object",
    "title": "AllowlistGrantIn"
   },
   "AllowlistIn": {
    "properties": {
     "tiers": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tiers",
      "default": []
     },
     "read": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Read",
      "default": []
     },
     "remediate": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Remediate",
      "default": []
     },
     "dangerous_blocklist": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Dangerous Blocklist",
      "default": []
     }
    },
    "type": "object",
    "title": "AllowlistIn"
   },
   "ApiTokenIn": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name",
      "default": "orquesta"
     },
     "expires_in_days": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires In Days",
      "default": 365
     },
     "scope": {
      "type": "string",
      "title": "Scope",
      "default": "owner"
     }
    },
    "type": "object",
    "title": "ApiTokenIn"
   },
   "CancelIn": {
    "properties": {
     "resume": {
      "type": "boolean",
      "title": "Resume",
      "default": false
     }
    },
    "type": "object",
    "title": "CancelIn"
   },
   "CaptureIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1,
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "CaptureIn"
   },
   "CheckoutIn": {
    "properties": {
     "tier": {
      "type": "string",
      "title": "Tier"
     }
    },
    "type": "object",
    "required": [
     "tier"
    ],
    "title": "CheckoutIn"
   },
   "CreateChannelIn": {
    "properties": {
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "url": {
      "type": "string",
      "minLength": 8,
      "title": "Url"
     },
     "min_severity": {
      "type": "string",
      "title": "Min Severity",
      "default": "warn"
     },
     "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "default": true
     }
    },
    "type": "object",
    "required": [
     "kind",
     "url"
    ],
    "title": "CreateChannelIn"
   },
   "CreateProbeIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name"
     },
     "kind": {
      "type": "string",
      "enum": [
       "http",
       "heartbeat",
       "email",
       "dns",
       "smtp"
      ],
      "title": "Kind",
      "default": "http"
     },
     "url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000,
        "minLength": 4
       },
       {
        "type": "null"
       }
      ],
      "title": "Url"
     },
     "grace_s": {
      "type": "integer",
      "title": "Grace S",
      "default": 300
     },
     "interval_s": {
      "type": "integer",
      "title": "Interval S",
      "default": 300
     },
     "timeout_s": {
      "type": "integer",
      "title": "Timeout S",
      "default": 15
     },
     "expect_status": {
      "type": "string",
      "title": "Expect Status",
      "default": "200-399"
     },
     "keyword": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Keyword"
     },
     "fail_threshold": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Fail Threshold"
     },
     "latency_warn_ms": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Latency Warn Ms"
     },
     "tls_warn_days": {
      "type": "integer",
      "title": "Tls Warn Days",
      "default": 14
     },
     "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "default": true
     },
     "method": {
      "type": "string",
      "title": "Method",
      "default": "GET"
     },
     "headers": {
      "anyOf": [
       {
        "additionalProperties": {
         "type": "string"
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Headers"
     },
     "body": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Body"
     },
     "assertions": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assertions"
     },
     "email_inbox": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 254
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Inbox"
     },
     "email_token": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200,
        "minLength": 8
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Token"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "CreateProbeIn"
   },
   "CreateScheduleIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "interval_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Interval S"
     },
     "daily_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Daily At"
     },
     "prompt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Prompt"
     },
     "recipients": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Recipients"
     },
     "window_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Window S"
     },
     "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "default": true
     },
     "process_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Process Name"
     },
     "process_selector": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Process Selector"
     },
     "operator_prompt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Operator Prompt"
     },
     "on_failure": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "On Failure"
     }
    },
    "type": "object",
    "required": [
     "name",
     "kind"
    ],
    "title": "CreateScheduleIn"
   },
   "CreateSilenceIn": {
    "properties": {
     "key": {
      "type": "string",
      "minLength": 1,
      "title": "Key"
     },
     "ttl_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ttl S"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "key"
    ],
    "title": "CreateSilenceIn"
   },
   "CreateTargetIn": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "kind": {
      "type": "string",
      "enum": [
       "host",
       "site"
      ],
      "title": "Kind",
      "default": "host"
     },
     "recipients": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Recipients",
      "default": []
     },
     "rules_yaml": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Rules Yaml"
     },
     "allowlist_yaml": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Allowlist Yaml"
     },
     "ssh_host": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ssh Host"
     },
     "ssh_user": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ssh User"
     },
     "ssh_password": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ssh Password"
     },
     "ssh_ports": {
      "anyOf": [
       {
        "items": {
         "type": "integer"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ssh Ports"
     },
     "llm_provider": {
      "type": "string",
      "title": "Llm Provider",
      "default": "kimi-cli"
     },
     "llm_base_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Llm Base Url"
     },
     "llm_api_key": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Llm Api Key"
     },
     "llm_model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Llm Model"
     },
     "agent_context_md": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Agent Context Md"
     },
     "seed_schedules": {
      "type": "boolean",
      "title": "Seed Schedules",
      "default": true
     }
    },
    "type": "object",
    "required": [
     "id",
     "name"
    ],
    "title": "CreateTargetIn"
   },
   "CreateTargetOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "push_token": {
      "type": "string",
      "title": "Push Token"
     },
     "admin_token": {
      "type": "string",
      "title": "Admin Token"
     },
     "push_url": {
      "type": "string",
      "title": "Push Url"
     },
     "status_url": {
      "type": "string",
      "title": "Status Url"
     },
     "caddy": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Caddy"
     }
    },
    "type": "object",
    "required": [
     "id",
     "push_token",
     "admin_token",
     "push_url",
     "status_url"
    ],
    "title": "CreateTargetOut"
   },
   "CredentialIn": {
    "properties": {
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "label": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Label"
     },
     "token": {
      "type": "string",
      "maxLength": 8192,
      "minLength": 1,
      "title": "Token"
     }
    },
    "type": "object",
    "required": [
     "provider",
     "label",
     "token"
    ],
    "title": "CredentialIn"
   },
   "EnrollOrquestaIn": {
    "properties": {
     "vcJson": {
      "additionalProperties": true,
      "type": "object",
      "title": "Vcjson"
     },
     "webhookSecret": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Webhooksecret"
     }
    },
    "type": "object",
    "required": [
     "vcJson"
    ],
    "title": "EnrollOrquestaIn"
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "InstallTokenIn": {
    "properties": {
     "with_triage": {
      "type": "boolean",
      "title": "With Triage",
      "default": false
     },
     "ttl_s": {
      "type": "integer",
      "maximum": 3600.0,
      "minimum": 60.0,
      "title": "Ttl S",
      "default": 900
     },
     "push_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Push Url"
     },
     "push_token": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Push Token"
     }
    },
    "type": "object",
    "title": "InstallTokenIn"
   },
   "IntentIn": {
    "properties": {
     "kind": {
      "type": "string",
      "pattern": "^(plan|vm)$",
      "title": "Kind"
     },
     "tier": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tier"
     },
     "vm_kind": {
      "type": "string",
      "pattern": "^(vm|microvm)$",
      "title": "Vm Kind",
      "default": "vm"
     },
     "template_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Template Id"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "size": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Size"
     },
     "idle_sleep_hours": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 168.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Idle Sleep Hours"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "kind"
    ],
    "title": "IntentIn"
   },
   "InviteIn": {
    "properties": {
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     },
     "role": {
      "type": "string",
      "title": "Role",
      "default": "member"
     }
    },
    "type": "object",
    "required": [
     "email"
    ],
    "title": "InviteIn"
   },
   "InvokeIn": {
    "properties": {
     "input": {
      "title": "Input"
     }
    },
    "type": "object",
    "title": "InvokeIn"
   },
   "LaunchIn": {
    "properties": {
     "kind": {
      "type": "string",
      "pattern": "^(vm|microvm)$",
      "title": "Kind"
     },
     "template_id": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Template Id"
     },
     "name": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1,
      "title": "Name"
     },
     "size": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Size"
     },
     "idle_sleep_hours": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Idle Sleep Hours"
     },
     "bootstrap": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Bootstrap"
     },
     "user_data": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 98304
       },
       {
        "type": "null"
       }
      ],
      "title": "User Data"
     },
     "image_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Image Id"
     },
     "tags": {
      "anyOf": [
       {
        "additionalProperties": {
         "type": "string"
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tags"
     },
     "disk_gb": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Disk Gb"
     },
     "external_ref": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "External Ref"
     },
     "base_template": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Base Template"
     }
    },
    "type": "object",
    "required": [
     "kind",
     "template_id",
     "name"
    ],
    "title": "LaunchIn"
   },
   "NotloginExchangeIn": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "state_cookie": {
      "type": "string",
      "title": "State Cookie"
     },
     "lang": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 16
       },
       {
        "type": "null"
       }
      ],
      "title": "Lang"
     }
    },
    "type": "object",
    "required": [
     "code",
     "state",
     "state_cookie"
    ],
    "title": "NotloginExchangeIn"
   },
   "PatchIn": {
    "properties": {
     "idle_sleep_hours": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Idle Sleep Hours"
     }
    },
    "type": "object",
    "title": "PatchIn"
   },
   "PhoneHomeIn": {
    "properties": {
     "app_status": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 16
       },
       {
        "type": "null"
       }
      ],
      "title": "App Status"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     },
     "app_version": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "App Version"
     },
     "credentials": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Credentials"
     },
     "results": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Results"
     }
    },
    "type": "object",
    "title": "PhoneHomeIn"
   },
   "ProvisionIn": {
    "properties": {
     "credential_id": {
      "type": "integer",
      "title": "Credential Id"
     },
     "region": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Region"
     },
     "size": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Size"
     },
     "image": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "Image"
     },
     "with_triage": {
      "type": "boolean",
      "title": "With Triage",
      "default": true
     }
    },
    "type": "object",
    "required": [
     "credential_id",
     "region",
     "size"
    ],
    "title": "ProvisionIn"
   },
   "PutProcessMonitorIn": {
    "properties": {
     "processes": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Processes"
     }
    },
    "type": "object",
    "required": [
     "processes"
    ],
    "title": "PutProcessMonitorIn"
   },
   "RequestLinkIn": {
    "properties": {
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     },
     "lang": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 16
       },
       {
        "type": "null"
       }
      ],
      "title": "Lang"
     }
    },
    "type": "object",
    "required": [
     "email"
    ],
    "title": "RequestLinkIn"
   },
   "ResidentControlIn": {
    "properties": {
     "action": {
      "type": "string",
      "pattern": "^(status|install|start|restart|stop|update|heal|recover)$",
      "title": "Action"
     }
    },
    "type": "object",
    "required": [
     "action"
    ],
    "title": "ResidentControlIn"
   },
   "ResidentTokenIn": {
    "properties": {
     "token": {
      "type": "string",
      "maxLength": 400,
      "minLength": 8,
      "title": "Token"
     },
     "set_resident_mode": {
      "type": "boolean",
      "title": "Set Resident Mode",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "token"
    ],
    "title": "ResidentTokenIn"
   },
   "RestoreIn": {
    "properties": {
     "backup_id": {
      "type": "string",
      "pattern": "^bk-[0-9a-f]{6,32}$",
      "title": "Backup Id"
     }
    },
    "type": "object",
    "required": [
     "backup_id"
    ],
    "title": "RestoreIn"
   },
   "RuleIn": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "when": {
      "type": "string",
      "title": "When"
     },
     "severity": {
      "type": "string",
      "title": "Severity"
     },
     "cooldown_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cooldown S"
     },
     "subject": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Subject"
     },
     "body": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Body"
     },
     "action": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Action"
     }
    },
    "type": "object",
    "required": [
     "key",
     "when",
     "severity"
    ],
    "title": "RuleIn"
   },
   "RulesIn": {
    "properties": {
     "rules": {
      "items": {
       "$ref": "#/components/schemas/RuleIn"
      },
      "type": "array",
      "title": "Rules"
     }
    },
    "type": "object",
    "required": [
     "rules"
    ],
    "title": "RulesIn"
   },
   "SetOrquestaAgentIn": {
    "properties": {
     "orquesta_project": {
      "type": "string",
      "title": "Orquesta Project"
     },
     "orquesta_agent": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Orquesta Agent"
     },
     "orquesta_token": {
      "type": "string",
      "title": "Orquesta Token"
     },
     "execution_mode": {
      "type": "string",
      "pattern": "^(ssh|orquesta-agent)$",
      "title": "Execution Mode",
      "default": "orquesta-agent"
     }
    },
    "type": "object",
    "required": [
     "orquesta_project",
     "orquesta_token"
    ],
    "title": "SetOrquestaAgentIn",
    "description": "Direct ARE wiring when the caller (Orquesta) ALREADY owns the project and a\nlive resident agent \u2014 no Notlogin VC handshake needed. Orquesta mints the oxa_\ndispatch token on its side and hands it over here."
   },
   "SignoutIn": {
    "properties": {
     "session_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Session Id"
     }
    },
    "type": "object",
    "title": "SignoutIn"
   },
   "TestAlertIn": {
    "properties": {
     "severity": {
      "type": "string",
      "pattern": "^(info|warn|crit)$",
      "title": "Severity",
      "default": "warn"
     },
     "subject": {
      "type": "string",
      "title": "Subject",
      "default": "[TEST] synthetic alert"
     },
     "body": {
      "type": "string",
      "title": "Body",
      "default": "This is a synthetic alert triggered via /test-alert."
     }
    },
    "type": "object",
    "title": "TestAlertIn"
   },
   "TunnelReportIn": {
    "properties": {
     "tunnel_pubkey": {
      "type": "string",
      "title": "Tunnel Pubkey",
      "description": "box-generated tunnel PUBLIC key"
     },
     "host_key": {
      "type": "string",
      "title": "Host Key",
      "description": "box sshd host PUBLIC key (known_hosts pin)"
     }
    },
    "type": "object",
    "required": [
     "tunnel_pubkey",
     "host_key"
    ],
    "title": "TunnelReportIn"
   },
   "UpdateChannelIn": {
    "properties": {
     "url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Url"
     },
     "min_severity": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Min Severity"
     },
     "enabled": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enabled"
     }
    },
    "type": "object",
    "title": "UpdateChannelIn"
   },
   "UpdateProbeIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000,
        "minLength": 4
       },
       {
        "type": "null"
       }
      ],
      "title": "Url"
     },
     "grace_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Grace S"
     },
     "interval_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Interval S"
     },
     "timeout_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timeout S"
     },
     "expect_status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expect Status"
     },
     "keyword": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Keyword"
     },
     "fail_threshold": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Fail Threshold"
     },
     "latency_warn_ms": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Latency Warn Ms"
     },
     "tls_warn_days": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tls Warn Days"
     },
     "enabled": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enabled"
     },
     "method": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Method"
     },
     "headers": {
      "anyOf": [
       {
        "additionalProperties": {
         "type": "string"
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Headers"
     },
     "body": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Body"
     },
     "assertions": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assertions"
     },
     "email_inbox": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 254
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Inbox"
     },
     "email_token": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200,
        "minLength": 8
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Token"
     }
    },
    "type": "object",
    "title": "UpdateProbeIn"
   },
   "UpdateScheduleIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "interval_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Interval S"
     },
     "daily_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Daily At"
     },
     "prompt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Prompt"
     },
     "recipients": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Recipients"
     },
     "window_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Window S"
     },
     "enabled": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enabled"
     },
     "process_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Process Name"
     },
     "process_selector": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Process Selector"
     },
     "operator_prompt": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Operator Prompt"
     },
     "on_failure": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "On Failure"
     }
    },
    "type": "object",
    "title": "UpdateScheduleIn"
   },
   "UpdateTargetIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "recipients": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Recipients"
     },
     "rules_yaml": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Rules Yaml"
     },
     "allowlist_yaml": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Allowlist Yaml"
     },
     "ssh_host": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ssh Host"
     },
     "ssh_user": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ssh User"
     },
     "ssh_password": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ssh Password"
     },
     "ssh_ports": {
      "anyOf": [
       {
        "items": {
         "type": "integer"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ssh Ports"
     },
     "llm_provider": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Llm Provider"
     },
     "llm_base_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Llm Base Url"
     },
     "llm_api_key": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Llm Api Key"
     },
     "llm_model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Llm Model"
     },
     "agent_context_md": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Agent Context Md"
     },
     "agent_timeout_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Agent Timeout S"
     },
     "agent_sudo": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Agent Sudo"
     },
     "sudo_password": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sudo Password"
     },
     "heartbeat_timeout_s": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Heartbeat Timeout S"
     },
     "enabled": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enabled"
     },
     "host_target_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Host Target Id"
     }
    },
    "type": "object",
    "title": "UpdateTargetIn"
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     },
     "input": {
      "title": "Input"
     },
     "ctx": {
      "type": "object",
      "title": "Context"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   },
   "VerifyOut": {
    "properties": {
     "ok": {
      "type": "boolean",
      "title": "Ok"
     },
     "session_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Session Id"
     },
     "expires_at": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires At"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     }
    },
    "type": "object",
    "required": [
     "ok"
    ],
    "title": "VerifyOut"
   }
  },
  "securitySchemes": {
   "orgApiKey": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "sot_\u2026"
   }
  }
 },
 "servers": [
  {
   "url": "https://sudosudo.dev/api/ext/v1"
  }
 ]
}
