{"openapi":"3.1.0","info":{"title":"PRE Security Multi-Tenant Dashboard","description":"Real-time monitoring dashboard for PRE Security platform across multiple tenants","version":"3.10.0"},"paths":{"/api/auth/login":{"post":{"tags":["authentication"],"summary":"Login","description":"Authenticate user with email/password via Keycloak (password grant).\n\nFlow:\n1. Check ESM license status (fail-secure)\n2. Browser POSTs credentials to this endpoint\n3. FastAPI calls Keycloak internally (http://keycloak:8080)\n4. Keycloak validates and returns JWT tokens\n5. FastAPI sets tokens as httpOnly cookies\n6. Browser is never exposed to Keycloak\n\nReturns:\n    LoginResponse with success status and user info","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"get":{"tags":["authentication"],"summary":"Logout Redirect","description":"GET logout: front-channel logout through Keycloak.\n\nBack-channel only (POST /logout) is not enough — it kills the refresh\ntoken but leaves the browser-side KEYCLOAK_IDENTITY cookie intact,\nso the user's next visit silently re-authenticates and they appear\nto never have logged out.\n\nFlow:\n  1. Best-effort revoke the refresh token (back-channel cleanup).\n  2. Clear our app cookies on the response.\n  3. 302 the browser to Keycloak's end-session endpoint with\n     post_logout_redirect_uri pointing at /login. Keycloak deletes\n     its own cookies and bounces back here.\n\n`client_id` (instead of `id_token_hint`) is fine on Keycloak 18+ when\nthe client has `post.logout.redirect.uris` whitelisted — that's done\nby setup_keycloak.sh's ensure_client_post_logout_uris.","operationId":"logout_redirect_api_auth_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["authentication"],"summary":"Logout","description":"Logout and invalidate tokens in Keycloak.\n\nReturns:\n    LogoutResponse with success status","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutResponse"}}}}}}},"/api/auth/session/extend":{"post":{"tags":["authentication"],"summary":"Extend Session","description":"Refresh access token using refresh token.\n\nCalled by frontend to extend session before access token expires.\nSupports both refresh_token cookie (path-scoped) and pre_sso_session cookie as fallback.\n\nReturns:\n    Success status with new expiration time","operationId":"extend_session_api_auth_session_extend_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/refresh-redirect":{"get":{"tags":["authentication"],"summary":"Refresh And Redirect","description":"Refresh access token and redirect to original page.\n\nUsed for automatic session refresh when access token expires.\nIf refresh fails, tries SSO token as fallback, then redirects to login page.","operationId":"refresh_and_redirect_api_auth_refresh_redirect_get","parameters":[{"name":"redirect","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Redirect"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/session":{"get":{"tags":["authentication"],"summary":"Get Session Status","description":"Get current session status.\n\nUsed by frontend to check if user is authenticated.\n\nReturns:\n    Authentication status and user info if authenticated","operationId":"get_session_status_api_auth_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/sso-login":{"get":{"tags":["authentication"],"summary":"Sso Login","description":"SSO login endpoint - accept JWT token from another app (e.g., PRE UI).\n\nFlow:\n1. PRE UI navigates user to ESM with ?token=<jwt>\n2. This endpoint validates the JWT against shared presecurity realm\n3. If valid, sets httpOnly cookies and redirects to dashboard\n4. If invalid, redirects to login page\n\nThis enables single sign-on: logging into PRE UI means you're logged into ESM too.","operationId":"sso_login_api_auth_sso_login_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","title":"Token"}},{"name":"redirect","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Redirect"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/sso-check":{"get":{"tags":["authentication"],"summary":"Sso Check","description":"Check for existing SSO session and auto-authenticate.\n\nThis endpoint checks the shared `pre_sso_session` cookie which may have been\nset by another app (e.g., PRE UI). If valid, it establishes a local session.\n\nFlow:\n1. Read pre_sso_session cookie (contains Keycloak refresh token)\n2. Use refresh token to get fresh access token from Keycloak\n3. If successful, set local session cookies and return user info\n4. If failed, clear the invalid cookie and return unauthenticated\n\nThis enables automatic SSO: logging into PRE UI automatically logs you into ESM.","operationId":"sso_check_api_auth_sso_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/sso-redirect":{"get":{"tags":["authentication"],"summary":"Sso Redirect","description":"Refresh tokens using SSO cookie and redirect to original page.\n\nSimilar to refresh-redirect, but uses the pre_sso_session cookie instead of\nthe path-scoped refresh_token cookie. This is needed because the refresh_token\ncookie is scoped to /api/auth and isn't sent for regular page requests.\n\nFlow:\n1. Read pre_sso_session cookie (contains Keycloak refresh token)\n2. Use refresh token to get fresh access token from Keycloak\n3. Set local session cookies\n4. Redirect to the original page","operationId":"sso_redirect_api_auth_sso_redirect_get","parameters":[{"name":"redirect","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Redirect"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/sso-token":{"get":{"tags":["authentication"],"summary":"Get Sso Token","description":"Get access token for SSO navigation to another app.\n\nReturns the current user's access token for passing to PRE Portal or other SSO-enabled apps.\nOnly returns token if user is authenticated and has valid session.\n\nSecurity note: This token can only be used with apps that share the same Keycloak realm.","operationId":"get_sso_token_api_auth_sso_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/license-status":{"get":{"tags":["authentication"],"summary":"Get License Status","description":"Get ESM license status.\n\nChecks Redis db=0 for pre-esm-v1:enabled key.\nNo authentication required (pre-login check).\n\nReturns:\n    JSON with license validity, reason, and user-friendly message","operationId":"get_license_status_api_auth_license_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/users":{"get":{"tags":["authentication"],"summary":"Get Users","description":"Get list of all users (admin only).\n\nUses Keycloak Admin API. Hidden sysadmin accounts are filtered out for\nnon-sysadmin callers; the `sysadmin` role is masked from visible\nusers' role arrays.","operationId":"get_users_api_auth_users_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authentication"],"summary":"Create New User","description":"Create a new user (admin only).\n\nThe request body's ``rbac_role_ids`` is the source of truth for what\nroles the user should hold. For each ID that resolves to a *system*\nrole (admin / operator / viewer / sysadmin), ESM also assigns the\nequivalent Keycloak realm role so the legacy ``is_admin`` /\n``is_operator`` / ``_require_admin`` UI gates keep working without\na per-request RBAC lookup. Custom-role-only users get no realm role\nand are gated solely by ``require_permission(...)`` reading the\nRedis projection.\n\nNon-sysadmins cannot grant ``sysadmin`` via either path: the\nexplicit ``roles`` payload is filtered by\n``_reject_protected_role_change`` and the RBAC sysadmin assignment\nis filtered by ``_reject_sysadmin_grant`` inside\n``sync_user_role_assignments``.","operationId":"create_new_user_api_auth_users_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/users/{email}":{"get":{"tags":["authentication"],"summary":"Get User By Email","description":"Get a specific user by email (admin only).","operationId":"get_user_by_email_api_auth_users__email__get","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authentication"],"summary":"Update Existing User","description":"Update an existing user (admin only).\n\nWhen ``rbac_role_ids`` is supplied, it replaces the user's RBAC\nassignments and the equivalent Keycloak realm roles are mirrored\n(system roles only — see ``create_new_user``). When ``None``, the\nRBAC assignments are left untouched and only the Keycloak record is\nupdated (legacy path).\n\nFor non-sysadmin callers: hidden targets 404, payload may not\ncontain ``sysadmin`` in either form, and the existing ``sysadmin``\nrealm role on a promoted user is preserved across the update.","operationId":"update_existing_user_api_auth_users__email__put","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authentication"],"summary":"Delete Existing User","description":"Delete a user (admin only).\n\nHidden targets 404 for non-sysadmins. Promoted users (those holding\n`sysadmin`) 403 for non-sysadmins — regular admins cannot remove a\nsysadmin even if visible.","operationId":"delete_existing_user_api_auth_users__email__delete","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/users/{email}/2fa":{"get":{"tags":["authentication"],"summary":"Get User 2Fa","description":"Return per-user 2FA status (enrolled methods, credentials, required flag).","operationId":"get_user_2fa_api_auth_users__email__2fa_get","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/users/{email}/2fa/enroll":{"post":{"tags":["authentication"],"summary":"Enroll User 2Fa Endpoint","description":"Force a user to enroll TOTP on next login. Sets the per-user MFA required flag.","operationId":"enroll_user_2fa_endpoint_api_auth_users__email__2fa_enroll_post","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/users/{email}/2fa/unenroll":{"post":{"tags":["authentication"],"summary":"Unenroll User 2Fa Endpoint","description":"Clear the per-user 2FA requirement (existing credentials are kept).","operationId":"unenroll_user_2fa_endpoint_api_auth_users__email__2fa_unenroll_post","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/users/{email}/2fa/reset":{"post":{"tags":["authentication"],"summary":"Reset User 2Fa Endpoint","description":"Admin reset: delete all 2FA credentials and force re-enrollment on next login.","operationId":"reset_user_2fa_endpoint_api_auth_users__email__2fa_reset_post","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/users/{email}/2fa/disable":{"post":{"tags":["authentication"],"summary":"Disable User 2Fa Endpoint","description":"Fully disable 2FA: delete credentials AND clear the per-user requirement.","operationId":"disable_user_2fa_endpoint_api_auth_users__email__2fa_disable_post","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/2fa/global":{"get":{"tags":["authentication"],"summary":"Get Global 2Fa","description":"Return the realm-level mfa_required flag.","operationId":"get_global_2fa_api_auth_2fa_global_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authentication"],"summary":"Set Global 2Fa","description":"Toggle the realm-level mfa_required flag.\n\nBody: {\"enabled\": bool, \"apply_to_existing\": bool}\nWhen enabled+apply_to_existing, every user without an OTP credential gets\nCONFIGURE_TOTP added to their requiredActions (forced enrollment on next login).","operationId":"set_global_2fa_api_auth_2fa_global_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user-activity":{"get":{"tags":["user-activity"],"summary":"Query Activity","description":"Paginated query of the activity log.","operationId":"query_activity_api_user_activity_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant id to filter by; '_platform' for platform events.","title":"Tenant Id"},"description":"Tenant id to filter by; '_platform' for platform events."},{"name":"from","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Pagination offset.","default":0,"title":"From"},"description":"Pagination offset."},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size.","default":50,"title":"Size"},"description":"Page size."},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"timestamp:desc","title":"Sort"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO start (inclusive). Default: now - 24h.","title":"Start"},"description":"ISO start (inclusive). Default: now - 24h."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO end (inclusive). Default: now.","title":"End"},"description":"ISO end (inclusive). Default: now."},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact match on user_id (system field).","title":"User Id"},"description":"Exact match on user_id (system field)."},{"name":"user_contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive partial match on user_name (e.g., email substring).","title":"User Contains"},"description":"Case-insensitive partial match on user_name (e.g., email substring)."},{"name":"activity","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Multi-value activity verb filter.","title":"Activity"},"description":"Multi-value activity verb filter."},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"}},{"name":"endpoint_contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Contains"}},{"name":"ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search across endpoint, user_name, path.*, query.*, extra.*","title":"Q"},"description":"Free-text search across endpoint, user_name, path.*, query.*, extra.*"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user-activity/facets":{"get":{"tags":["user-activity"],"summary":"Facets","description":"Distinct user_id / activity / outcome via terms aggregations.","operationId":"facets_api_user_activity_facets_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user-activity/config":{"get":{"tags":["user-activity"],"summary":"Get Runtime Config","description":"Return the live Redis-backed runtime config.","operationId":"get_runtime_config_api_user_activity_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["user-activity"],"summary":"Update Runtime Config","description":"Update allowed Redis config keys. Admin only.\n\nValidates regex patterns server-side before persisting. The minimum\ndenylist is always merged with the supplied patterns — admin cannot\nfully clear redaction.","operationId":"update_runtime_config_api_user_activity_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user-activity/health":{"get":{"tags":["user-activity"],"summary":"Health","description":"Per-worker write-path health. With 4 uvicorn workers, calls will land\non different processes and the response will flicker. Multi-worker\naggregation is deferred (see Decision Log).","operationId":"health_api_user_activity_health_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/password-reset-request":{"post":{"tags":["password-reset (public)"],"summary":"Request Password Reset","description":"Public endpoint — anyone can hit this from the login page.\n\nAlways returns the same generic response. Internally we look up the user\nin Keycloak and create a tracked request only if the email matched. This\nprevents email enumeration: an attacker can't tell from the response\nwhether an email is registered.\n\nNOTE: We don't rate-limit here at the application layer — that should be\nhandled by the upstream proxy / WAF. Within the app, the same-email\ndedup in ``create_request`` ensures one pending request per email.","operationId":"request_password_reset_api_auth_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicResetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/password-reset-requests":{"get":{"tags":["password-reset (admin)"],"summary":"List Password Reset Requests","description":"List password-reset requests visible to the admin.\n\nBy default only returns pending. Pass ``include_completed=true`` to also\nsee recently approved/denied requests for audit (within the 7-day TTL).","operationId":"list_password_reset_requests_api_admin_password_reset_requests_get","parameters":[{"name":"include_completed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Completed"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequestListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/password-reset-requests/{request_id}/approve":{"post":{"tags":["password-reset (admin)"],"summary":"Approve Password Reset","description":"Approve a pending request — generates temp password, sets in Keycloak,\nemails the user via alerts-svc, and returns the temp password ONCE as\na fallback if the email send failed.","operationId":"approve_password_reset_api_admin_password_reset_requests__request_id__approve_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveResetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/password-reset-requests/{request_id}/deny":{"post":{"tags":["password-reset (admin)"],"summary":"Deny Password Reset","operationId":"deny_password_reset_api_admin_password_reset_requests__request_id__deny_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DenyResetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/password-reset-requests/{request_id}":{"delete":{"tags":["password-reset (admin)"],"summary":"Delete Password Reset Request","description":"Hard-delete a request (used to clear completed entries from the list).","operationId":"delete_password_reset_request_api_admin_password_reset_requests__request_id__delete","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/password-reset-requests/auto-approve":{"get":{"tags":["password-reset (admin)"],"summary":"Get Auto Approve Status","description":"Read the auto-approve flag. Admin-only.","operationId":"get_auto_approve_status_api_admin_password_reset_requests_auto_approve_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoApproveStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["password-reset (admin)"],"summary":"Set Auto Approve Status","description":"Enable or disable auto-approve. Admin-only.\n\nWhen enabled, incoming password reset requests are immediately approved\n(temp password generated, emailed to user) without admin review.","operationId":"set_auto_approve_status_api_admin_password_reset_requests_auto_approve_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoApproveUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoApproveStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/realms/{path}":{"post":{"tags":["keycloak-proxy"],"summary":"Proxy Realms","operationId":"proxy_realms_realms__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"options":{"tags":["keycloak-proxy"],"summary":"Proxy Realms","operationId":"proxy_realms_realms__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["keycloak-proxy"],"summary":"Proxy Realms","operationId":"proxy_realms_realms__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["keycloak-proxy"],"summary":"Proxy Realms","operationId":"proxy_realms_realms__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["keycloak-proxy"],"summary":"Proxy Realms","operationId":"proxy_realms_realms__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["keycloak-proxy"],"summary":"Proxy Realms","operationId":"proxy_realms_realms__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/resources/{path}":{"post":{"tags":["keycloak-proxy"],"summary":"Proxy Resources","operationId":"proxy_resources_resources__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"options":{"tags":["keycloak-proxy"],"summary":"Proxy Resources","operationId":"proxy_resources_resources__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["keycloak-proxy"],"summary":"Proxy Resources","operationId":"proxy_resources_resources__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["keycloak-proxy"],"summary":"Proxy Resources","operationId":"proxy_resources_resources__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["keycloak-proxy"],"summary":"Proxy Resources","operationId":"proxy_resources_resources__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["keycloak-proxy"],"summary":"Proxy Resources","operationId":"proxy_resources_resources__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/js/{path}":{"post":{"tags":["keycloak-proxy"],"summary":"Proxy Js","operationId":"proxy_js_js__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"options":{"tags":["keycloak-proxy"],"summary":"Proxy Js","operationId":"proxy_js_js__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["keycloak-proxy"],"summary":"Proxy Js","operationId":"proxy_js_js__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["keycloak-proxy"],"summary":"Proxy Js","operationId":"proxy_js_js__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["keycloak-proxy"],"summary":"Proxy Js","operationId":"proxy_js_js__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["keycloak-proxy"],"summary":"Proxy Js","operationId":"proxy_js_js__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login-redirect":{"get":{"tags":["oauth"],"summary":"Login Redirect","description":"Kick off the OAuth Authorization Code flow.\n\n`?redirect=<path>` is preserved across the round-trip via an HttpOnly\ncookie so we land the user back where they were trying to go.","operationId":"login_redirect_api_auth_login_redirect_get","parameters":[{"name":"redirect","in":"query","required":false,"schema":{"type":"string","default":"/","title":"Redirect"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/callback":{"get":{"tags":["oauth"],"summary":"Oauth Callback","description":"Receive Keycloak's auth-code redirect, exchange for tokens, set session.","operationId":"oauth_callback_api_auth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/":{"get":{"tags":["tenants"],"summary":"List Tenants","description":"List all configured tenants. Requires authentication.","operationId":"list_tenants_api_tenants__get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TenantInfo"},"title":"Response List Tenants Api Tenants  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/{tenant_id}/status":{"get":{"tags":["tenants"],"summary":"Get Tenant Status","description":"Get connection and health status for a tenant. Requires authentication.","operationId":"get_tenant_status_api_tenants__tenant_id__status_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/status/all":{"get":{"tags":["tenants"],"summary":"Get All Tenant Status","description":"Get status for all tenants. Requires authentication.","operationId":"get_all_tenant_status_api_tenants_status_all_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TenantStatus"},"title":"Response Get All Tenant Status Api Tenants Status All Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/overview":{"get":{"tags":["tenants"],"summary":"Get Tenants Overview","description":"Get comprehensive overview of all tenants. Requires admin role.","operationId":"get_tenants_overview_api_tenants_overview_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/comparison":{"get":{"tags":["tenants"],"summary":"Get Tenant Comparison","description":"Get side-by-side tenant comparison. Requires admin role.\n\nArgs:\n    metric: Type of comparison ('semantic_scores' or 'pipeline')","operationId":"get_tenant_comparison_api_tenants_comparison_get","parameters":[{"name":"metric","in":"query","required":false,"schema":{"type":"string","default":"pipeline","title":"Metric"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenants/refresh":{"post":{"tags":["tenants"],"summary":"Refresh Tenant Config","description":"Refresh tenant configuration from source.\n\nForces a reload of tenant configuration from the current source\n(tunnel registry, database, or YAML). Useful after approving/rejecting\ntenants in the tunnel registry.\n\nRequires admin role.","operationId":"refresh_tenant_config_api_tenants_refresh_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/overview":{"get":{"tags":["semantic-scores"],"summary":"Get Semantic Scores Overview","description":"Get semantic scores overview for a tenant or all tenants. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all' for aggregated view","operationId":"get_semantic_scores_overview_api_semantic_scores_overview_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/distribution":{"get":{"tags":["semantic-scores"],"summary":"Get Score Distribution","description":"Get score distribution histogram data. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all'","operationId":"get_score_distribution_api_semantic_scores_distribution_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/categories":{"get":{"tags":["semantic-scores"],"summary":"Get Categories","description":"Get category breakdown. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all'","operationId":"get_categories_api_semantic_scores_categories_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/recommendations":{"get":{"tags":["semantic-scores"],"summary":"Get Recommendations","description":"Get threshold recommendations. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all'","operationId":"get_recommendations_api_semantic_scores_recommendations_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/logs":{"get":{"tags":["semantic-scores"],"summary":"Get Logs By Score Range","description":"Get logs within a specific semantic score range.\nUsed for histogram bar click-through to see actual logs.","operationId":"get_logs_by_score_range_api_semantic_scores_logs_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"min_score","in":"query","required":true,"schema":{"type":"integer","description":"Minimum score (inclusive)","title":"Min Score"},"description":"Minimum score (inclusive)"},{"name":"max_score","in":"query","required":true,"schema":{"type":"integer","description":"Maximum score (exclusive)","title":"Max Score"},"description":"Maximum score (exclusive)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"description":"Maximum number of logs to return","default":500,"title":"Limit"},"description":"Maximum number of logs to return"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/low-value-log-stats":{"get":{"tags":["semantic-scores"],"summary":"Get Low Value Log Stats","description":"Compute byte and token-size stats for low-value logs (score < threshold).\n\nThis endpoint is designed for UI dashboards. It intentionally samples documents\n(instead of scanning all low-value logs) to keep latency bounded.\n\nArgs:\n    tenant: Tenant ID. 'all' is intentionally not supported here to avoid expensive fan-out.\n    time_range_days: Time range in days. 0 means all time.\n    sample_size: Number of documents to sample.\n\nReturns:\n    Summary statistics for UTF-8 byte size and estimated token counts.","operationId":"get_low_value_log_stats_api_semantic_scores_low_value_log_stats_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID (must not be 'all')","title":"Tenant"},"description":"Tenant ID (must not be 'all')"},{"name":"time_range_days","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Time range in days (0 means all time). Matches GlobalControls.getTimeRangeForAPI().","default":0,"title":"Time Range Days"},"description":"Time range in days (0 means all time). Matches GlobalControls.getTimeRangeForAPI()."},{"name":"sample_size","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"description":"Number of low-value logs to sample for sizing statistics.","default":1000,"title":"Sample Size"},"description":"Number of low-value logs to sample for sizing statistics."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/low-value-logs-by-size":{"get":{"tags":["semantic-scores"],"summary":"Get Low Value Logs By Size","description":"Fetch low-value logs within a specific byte-size range.\n\nUsed for histogram bar click-through to see actual logs matching a size bucket.\nSince byte size is computed at query time, we fetch more logs and filter client-side.","operationId":"get_low_value_logs_by_size_api_semantic_scores_low_value_logs_by_size_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID (must not be 'all')","title":"Tenant"},"description":"Tenant ID (must not be 'all')"},{"name":"min_bytes","in":"query","required":true,"schema":{"type":"integer","minimum":0,"description":"Minimum byte size (inclusive)","title":"Min Bytes"},"description":"Minimum byte size (inclusive)"},{"name":"max_bytes","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Maximum byte size (exclusive), None for unbounded","title":"Max Bytes"},"description":"Maximum byte size (exclusive), None for unbounded"},{"name":"time_range_days","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Time range in days (0 means all time).","default":0,"title":"Time Range Days"},"description":"Time range in days (0 means all time)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Maximum logs to return","default":50,"title":"Limit"},"description":"Maximum logs to return"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/explain-categories":{"post":{"tags":["semantic-scores"],"summary":"Explain Low Value Categories","description":"Use LLM to generate a natural language summary of low-value log categories.\n\nFetches actual sample logs from Elasticsearch for rich context, then streams the LLM response.","operationId":"explain_low_value_categories_api_semantic_scores_explain_categories_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryInsightsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/explain-sdrs":{"post":{"tags":["semantic-scores"],"summary":"Explain Sdrs Score","description":"Use LLM to generate a natural language analysis of the SDRS data.\n\nStreams the LLM response for real-time display.","operationId":"explain_sdrs_score_api_semantic_scores_explain_sdrs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SDRSInsightsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/semantic-scores/forward-estimation":{"get":{"tags":["semantic-scores"],"summary":"Get Forward Estimation","description":"Get forward estimation projecting value score distribution to unscored logs.\n\nUses existing scored log distribution as basis for statistical projection\nacross the full unscored population, with confidence intervals and bias validation.","operationId":"get_forward_estimation_api_semantic_scores_forward_estimation_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/risk-scores/overview":{"get":{"tags":["risk-scores"],"summary":"Get Risk Scores Overview","description":"Get risk scores overview for a tenant or all tenants. Requires authentication (all roles).\nCached for 15 minutes (HOT tier).","operationId":"get_risk_scores_overview_api_risk_scores_overview_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/risk-scores/distribution":{"get":{"tags":["risk-scores"],"summary":"Get Score Distribution","description":"Get risk score distribution histogram data. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all'","operationId":"get_score_distribution_api_risk_scores_distribution_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/risk-scores/top-events":{"get":{"tags":["risk-scores"],"summary":"Get Top Events","description":"Get top events by risk score. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all'","operationId":"get_top_events_api_risk_scores_top_events_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/risk-scores/logs":{"get":{"tags":["risk-scores"],"summary":"Get Logs By Risk Score Range","description":"Get logs within a specific risk score range. Requires authentication (all roles).\nUsed for histogram bar click-through to see actual logs.","operationId":"get_logs_by_risk_score_range_api_risk_scores_logs_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"min_score","in":"query","required":true,"schema":{"type":"integer","description":"Minimum score (inclusive)","title":"Min Score"},"description":"Minimum score (inclusive)"},{"name":"max_score","in":"query","required":true,"schema":{"type":"integer","description":"Maximum score (exclusive)","title":"Max Score"},"description":"Maximum score (exclusive)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"description":"Maximum number of logs to return","default":500,"title":"Limit"},"description":"Maximum number of logs to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Pagination offset","default":0,"title":"Offset"},"description":"Pagination offset"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline/stages":{"get":{"tags":["pipeline"],"summary":"Get Pipeline Stages","description":"Get pipeline stage metrics. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all'","operationId":"get_pipeline_stages_api_pipeline_stages_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline/intelligence":{"get":{"tags":["pipeline"],"summary":"Get Intelligence Indexes","description":"Get intelligence output counts with rates. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all'","operationId":"get_intelligence_indexes_api_pipeline_intelligence_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline/bottlenecks":{"get":{"tags":["pipeline"],"summary":"Get Bottlenecks","description":"Identify pipeline bottlenecks. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all'","operationId":"get_bottlenecks_api_pipeline_bottlenecks_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline/graph":{"get":{"tags":["pipeline"],"summary":"Get Pipeline Graph","description":"Serve the rev2 pipeline-rows payload (queue + throughput per service).","operationId":"get_pipeline_graph_api_pipeline_graph_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pipeline/overview":{"get":{"tags":["pipeline"],"summary":"Get Pipeline Overview","description":"Get complete pipeline overview with all metrics. Requires authentication (all roles).\n\nArgs:\n    tenant: Tenant ID or 'all'","operationId":"get_pipeline_overview_api_pipeline_overview_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/users":{"get":{"tags":["analytics"],"summary":"Get Users Analytics","description":"Get users ranked by score with risk/semantic distributions.\nRequires operator or admin role.\n\nSort options:\n- semantic (default): Highest value score first\n- risk: Highest risk score first\n- alerts: Most alerts first\n- recent: Most recent activity first\n\nPagination: Use `page` and `limit` parameters. Returns total_pages and total_entities.\n\nNote: When tenant='all', detection/prediction counts are skipped for performance.","operationId":"get_users_analytics_api_analytics_users_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size (items per page)","default":100,"title":"Limit"},"description":"Page size (items per page)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-based)","default":1,"title":"Page"},"description":"Page number (1-based)"},{"name":"filter","in":"query","required":false,"schema":{"enum":["all","low_value","nlp","high_value"],"type":"string","default":"all","title":"Filter"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["recent","alerts","risk","semantic"],"type":"string","description":"Sort order: 'semantic' (value), 'risk', 'alerts', or 'recent'","default":"semantic","title":"Sort"},"description":"Sort order: 'semantic' (value), 'risk', 'alerts', or 'recent'"},{"name":"days","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/assets":{"get":{"tags":["analytics"],"summary":"Get Assets Analytics","description":"Get assets ranked by security alert count. Requires operator or admin role.","operationId":"get_assets_analytics_api_analytics_assets_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":100,"title":"Limit"},"description":"Page size"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"filter","in":"query","required":false,"schema":{"enum":["all","low_value","nlp","high_value"],"type":"string","default":"all","title":"Filter"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["recent","alerts","risk","semantic"],"type":"string","description":"Sort order: 'semantic' (value), 'risk', 'alerts', or 'recent'","default":"semantic","title":"Sort"},"description":"Sort order: 'semantic' (value), 'risk', 'alerts', or 'recent'"},{"name":"days","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/hostnames":{"get":{"tags":["analytics"],"summary":"Get Hostnames Analytics","description":"Get hostnames ranked by security alert count. Requires operator or admin role.","operationId":"get_hostnames_analytics_api_analytics_hostnames_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":100,"title":"Limit"},"description":"Page size"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"filter","in":"query","required":false,"schema":{"enum":["all","low_value","nlp","high_value"],"type":"string","default":"all","title":"Filter"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["recent","alerts","risk","semantic"],"type":"string","description":"Sort order: 'semantic' (value), 'risk', 'alerts', or 'recent'","default":"semantic","title":"Sort"},"description":"Sort order: 'semantic' (value), 'risk', 'alerts', or 'recent'"},{"name":"days","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/network":{"get":{"tags":["analytics"],"summary":"Get Network Analytics","description":"Get network traffic analytics with source and destination IPs side-by-side.\n\nSort options:\n- semantic (default): Highest value score first\n- risk: Highest risk score first\n- alerts: Most alerts first\n- recent: Most recent activity first","operationId":"get_network_analytics_api_analytics_network_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Page size","default":50,"title":"Limit"},"description":"Page size"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"filter","in":"query","required":false,"schema":{"enum":["all","low_value","nlp","high_value"],"type":"string","default":"all","title":"Filter"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["recent","alerts","risk","semantic"],"type":"string","description":"Sort order: 'semantic' (value), 'risk', 'alerts', or 'recent'","default":"semantic","title":"Sort"},"description":"Sort order: 'semantic' (value), 'risk', 'alerts', or 'recent'"},{"name":"days","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/entity/{entity_type}/{entity_value}":{"get":{"tags":["analytics"],"summary":"Get Entity Detail","description":"Get detailed analytics for a specific entity. Requires operator or admin role.","operationId":"get_entity_detail_api_analytics_entity__entity_type___entity_value__get","parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"enum":["user","asset","hostname","source_ip","dest_ip","ip","doc_id","keyword"],"type":"string","title":"Entity Type"}},{"name":"entity_value","in":"path","required":true,"schema":{"type":"string","title":"Entity Value"}},{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["recent","risk","semantic"],"type":"string","default":"recent","title":"Sort By"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Filter"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/alert/{tenant_id}/{doc_id}":{"get":{"tags":["analytics"],"summary":"Get Alert Detail","description":"Get detailed alert information. Requires operator or admin role.","operationId":"get_alert_detail_api_analytics_alert__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"index","in":"query","required":false,"schema":{"type":"string","description":"Elasticsearch index name or pattern","default":"security_alerts-*","title":"Index"},"description":"Elasticsearch index name or pattern"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/alert/{doc_id}":{"get":{"tags":["analytics"],"summary":"Get Alert By Id","description":"Resolve a single alert by document id WITHOUT a tenant path segment.\n\nThe FAST incident log-details drawer requests\n``GET /api/analytics/alert/{doc_id}?index=security_alerts-*`` (no tenant in\nthe path), which does not match ``/alert/{tenant_id}/{doc_id}`` and 404s at\nthe routing layer. This companion route resolves the tenant from the\nexplicit ``?tenant=`` query, then from a concrete index name, and finally\nfalls back to the caller's visible tenants (or the direct client in\nLOCAL_MODE), then searches ``security_alerts-*`` by ``_id`` so the drawer\nloads. Requires operator or admin role.","operationId":"get_alert_by_id_api_analytics_alert__doc_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"index","in":"query","required":false,"schema":{"type":"string","description":"Elasticsearch index name or pattern","default":"security_alerts-*","title":"Index"},"description":"Elasticsearch index name or pattern"},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Tenant/org id; if omitted, resolved from the index name or searched across visible tenants","title":"Tenant"},"description":"Tenant/org id; if omitted, resolved from the index name or searched across visible tenants"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/alerts/batch":{"post":{"tags":["analytics"],"summary":"Get Alerts Batch","description":"Fetch multiple alert documents in a single Elasticsearch query.\n\nReplaces N individual GET /alert/{tenant}/{docId} calls with one batch request.","operationId":"get_alerts_batch_api_analytics_alerts_batch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchAlertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchAlertResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/entity/logs-by-score":{"get":{"tags":["analytics"],"summary":"Get Entity Logs By Score","description":"Get logs for a specific entity within a score range.\nUsed for histogram drill-down in Entity Lookup.\nRequires operator or admin role.","operationId":"get_entity_logs_by_score_api_analytics_entity_logs_by_score_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Entity type (user, asset, hostname, source_ip, dest_ip, ip, doc_id, keyword)","title":"Type"},"description":"Entity type (user, asset, hostname, source_ip, dest_ip, ip, doc_id, keyword)"},{"name":"value","in":"query","required":true,"schema":{"type":"string","description":"Entity value to search for","title":"Value"},"description":"Entity value to search for"},{"name":"min_score","in":"query","required":false,"schema":{"type":"integer","description":"Minimum score (inclusive)","default":0,"title":"Min Score"},"description":"Minimum score (inclusive)"},{"name":"max_score","in":"query","required":false,"schema":{"type":"integer","description":"Maximum score (inclusive)","default":100,"title":"Max Score"},"description":"Maximum score (inclusive)"},{"name":"score_field","in":"query","required":false,"schema":{"type":"string","description":"Score field to filter on","default":"risk_score","title":"Score Field"},"description":"Score field to filter on"},{"name":"filter","in":"query","required":false,"schema":{"type":"string","description":"State filter","default":"all","title":"Filter"},"description":"State filter"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":100,"title":"Limit"},"description":"Max logs to return"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/logs-by-score":{"get":{"tags":["analytics"],"summary":"Get Entity Logs By Score Range","description":"Get logs for entities within a score range. Requires operator or admin role.","operationId":"get_entity_logs_by_score_range_api_analytics_logs_by_score_get","parameters":[{"name":"entity_type","in":"query","required":true,"schema":{"enum":["users","assets","hostnames"],"type":"string","description":"Entity type","title":"Entity Type"},"description":"Entity type"},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"score_type","in":"query","required":false,"schema":{"type":"string","description":"Score type: risk or value","default":"risk","title":"Score Type"},"description":"Score type: risk or value"},{"name":"min_score","in":"query","required":false,"schema":{"type":"integer","description":"Minimum score","default":0,"title":"Min Score"},"description":"Minimum score"},{"name":"max_score","in":"query","required":false,"schema":{"type":"integer","description":"Maximum score","default":100,"title":"Max Score"},"description":"Maximum score"},{"name":"state_filter","in":"query","required":false,"schema":{"enum":["all","low_value","nlp","high_value"],"type":"string","description":"State filter","default":"all","title":"State Filter"},"description":"State filter"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":100,"title":"Limit"},"description":"Max logs to return"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/logs-by-score-paginated":{"get":{"tags":["analytics"],"summary":"Get Entity Logs By Score Paginated","description":"Get paginated logs for entities within a score range. Requires operator or admin role.","operationId":"get_entity_logs_by_score_paginated_api_analytics_logs_by_score_paginated_get","parameters":[{"name":"entity_type","in":"query","required":true,"schema":{"enum":["users","assets","hostnames"],"type":"string","description":"Entity type","title":"Entity Type"},"description":"Entity type"},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"score_type","in":"query","required":false,"schema":{"type":"string","description":"Score type: risk or value","default":"risk","title":"Score Type"},"description":"Score type: risk or value"},{"name":"min_score","in":"query","required":false,"schema":{"type":"integer","description":"Minimum score","default":0,"title":"Min Score"},"description":"Minimum score"},{"name":"max_score","in":"query","required":false,"schema":{"type":"integer","description":"Maximum score","default":100,"title":"Max Score"},"description":"Maximum score"},{"name":"state_filter","in":"query","required":false,"schema":{"enum":["all","low_value","nlp","high_value"],"type":"string","description":"State filter","default":"all","title":"State Filter"},"description":"State filter"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Results per page","default":100,"title":"Page Size"},"description":"Results per page"},{"name":"pit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Point-in-Time ID for pagination","title":"Pit Id"},"description":"Point-in-Time ID for pagination"},{"name":"search_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search after token (JSON array)","title":"Search After"},"description":"Search after token (JSON array)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/log/{log_id}":{"get":{"tags":["analytics"],"summary":"Get Full Log","description":"Get full log details. Requires operator or admin role.","operationId":"get_full_log_api_analytics_log__log_id__get","parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","title":"Log Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/entity/logs-paginated":{"get":{"tags":["analytics"],"summary":"Get Entity Logs Paginated","description":"Get paginated logs for a specific entity using Point-in-Time API.\n\nThis endpoint supports deep pagination through large result sets using Elasticsearch's\nPoint-in-Time (PIT) feature. Clients should:\n\n1. First request: Don't provide pit_id or search_after\n2. Subsequent requests: Use pit_id and search_after from previous response\n3. Continue until has_more is false\n\nReturns:\n    - logs: Array of log documents\n    - pit_id: PIT identifier for next page\n    - search_after: Token for next page (JSON string)\n    - has_more: Boolean indicating if more results exist\n    - total_estimate: Estimated total count (may be capped at 10K)","operationId":"get_entity_logs_paginated_api_analytics_entity_logs_paginated_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Entity type (user, asset, hostname, source_ip, dest_ip, ip, doc_id, keyword)","title":"Type"},"description":"Entity type (user, asset, hostname, source_ip, dest_ip, ip, doc_id, keyword)"},{"name":"value","in":"query","required":true,"schema":{"type":"string","description":"Entity value to search for","title":"Value"},"description":"Entity value to search for"},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","description":"Sort field: recent, risk, or semantic","default":"recent","title":"Sort By"},"description":"Sort field: recent, risk, or semantic"},{"name":"filter","in":"query","required":false,"schema":{"enum":["all","low_value","nlp","high_value"],"type":"string","description":"State filter","default":"all","title":"Filter"},"description":"State filter"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Results per page","default":100,"title":"Page Size"},"description":"Results per page"},{"name":"pit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Point-in-Time ID for pagination","title":"Pit Id"},"description":"Point-in-Time ID for pagination"},{"name":"search_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search after token (JSON array)","title":"Search After"},"description":"Search after token (JSON array)"},{"name":"min_score","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"description":"Minimum score (inclusive) for histogram filtering","title":"Min Score"},"description":"Minimum score (inclusive) for histogram filtering"},{"name":"max_score","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"description":"Maximum score (inclusive) for histogram filtering","title":"Max Score"},"description":"Maximum score (inclusive) for histogram filtering"},{"name":"score_field","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Score field to filter on: risk_score or semantic_classification_score","title":"Score Field"},"description":"Score field to filter on: risk_score or semantic_classification_score"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/entity/pit/{pit_id}":{"delete":{"tags":["analytics"],"summary":"Close Pit","description":"Manually close a Point-in-Time to free resources.\n\nPITs automatically expire after 5 minutes of inactivity, but clients can\nclose them early if they're done paginating.","operationId":"close_pit_api_analytics_entity_pit__pit_id__delete","parameters":[{"name":"pit_id","in":"path","required":true,"schema":{"type":"string","title":"Pit Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/entity-report":{"post":{"tags":["analytics"],"summary":"Generate Entity Report","description":"Generate a comprehensive entity report using LLM analysis.\nSupports two modes:\n1. Single entity: Detailed profile of one specific entity\n2. Top N: Analysis of top N risky entities of the specified type\nRequires operator or admin role.","operationId":"generate_entity_report_api_analytics_entity_report_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityReportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/overview":{"get":{"tags":["predictions"],"summary":"Get Predictions Overview","description":"Get predictions overview. Requires operator or admin role. Served from\ncache (HOT); warmed by the cache warmer. Computed single-flight on miss.","operationId":"get_predictions_overview_api_predictions_overview_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"time_range","in":"query","required":false,"schema":{"enum":["1h","6h","12h","24h","3d","7d","30d","90d","all"],"type":"string","description":"Time range for data","default":"24h","title":"Time Range"},"description":"Time range for data"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionsOverviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/detections":{"get":{"tags":["predictions"],"summary":"Get Detections List","description":"Get paginated list of detections with sorting and filtering.\nRequires operator or admin role.","operationId":"get_detections_list_api_predictions_detections_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["timestamp","risk_score","correlated_logs"],"type":"string","default":"timestamp","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by detected_event","title":"Event Filter"},"description":"Filter by detected_event"},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by MITRE ID","title":"Mitre Filter"},"description":"Filter by MITRE ID"},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by date (YYYY-MM-DD)","title":"Date Filter"},"description":"Filter by date (YYYY-MM-DD)"},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by severity level(s), comma-separated","title":"Severity Filter"},"description":"Filter by severity level(s), comma-separated"},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by kill chain stage name","title":"Kill Chain Filter"},"description":"Filter by kill chain stage name"},{"name":"action_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by AI recommended action (monte_carlo.recommended_action), e.g. deny, investigate.","title":"Action Filter"},"description":"Filter by AI recommended action (monte_carlo.recommended_action), e.g. deny, investigate."},{"name":"evidence_quality_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by AI evidence-quality bucket (validation_details.evidence_quality), e.g. low, high, extremely_high.","title":"Evidence Quality Filter"},"description":"Filter by AI evidence-quality bucket (validation_details.evidence_quality), e.g. low, high, extremely_high."},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text token search across any field in the source document; also matches the ES _id exactly.","title":"Keyword"},"description":"Free-text token search across any field in the source document; also matches the ES _id exactly."},{"name":"validated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by the AI validator's accuracy verdict (validation_details.is_accurate). True = only accurate (true positives), False = only inaccurate (false positives). Detections not yet validated (field missing) are excluded in BOTH cases. Omit to disable the filter.","title":"Validated"},"description":"Filter by the AI validator's accuracy verdict (validation_details.is_accurate). True = only accurate (true positives), False = only inaccurate (false positives). Detections not yet validated (field missing) are excluded in BOTH cases. Omit to disable the filter."},{"name":"reviewed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"When True, return only detections the validator has reviewed (validation_details.is_accurate exists), regardless of the accurate/inaccurate verdict. Used by the funnel 'Validated' stage. Ignored when validated is also provided.","title":"Reviewed"},"description":"When True, return only detections the validator has reviewed (validation_details.is_accurate exists), regardless of the accurate/inaccurate verdict. Used by the funnel 'Validated' stage. Ignored when validated is also provided."},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant (customer asset tag) display filter. When set, restricts asset detections to IPs tagged with this name and skips user detections (asset-only). Display grouping, NOT access control.","title":"Asset Tag"},"description":"Sub-Tenant (customer asset tag) display filter. When set, restricts asset detections to IPs tagged with this name and skips user detections (asset-only). Display grouping, NOT access control."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/predictions":{"get":{"tags":["predictions"],"summary":"Get Predictions List","description":"Get paginated list of predictions with sorting and filtering.\nRequires operator or admin role.","operationId":"get_predictions_list_api_predictions_predictions_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["timestamp","risk_score_pct","correlated_logs"],"type":"string","default":"timestamp","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by predicted_event","title":"Event Filter"},"description":"Filter by predicted_event"},{"name":"probability_filter","in":"query","required":false,"schema":{"anyOf":[{"enum":["high","medium","low"],"type":"string"},{"type":"null"}],"title":"Probability Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by date (YYYY-MM-DD)","title":"Date Filter"},"description":"Filter by date (YYYY-MM-DD)"},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by severity level(s), comma-separated","title":"Severity Filter"},"description":"Filter by severity level(s), comma-separated"},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by kill chain stage name","title":"Kill Chain Filter"},"description":"Filter by kill chain stage name"},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by mitre_framework_prediction","title":"Mitre Filter"},"description":"Filter by mitre_framework_prediction"},{"name":"tool_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by predicted_detection_tool","title":"Tool Filter"},"description":"Filter by predicted_detection_tool"},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text keyword / document id search","title":"Keyword"},"description":"Free-text keyword / document id search"},{"name":"prioritized","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by state_prediction_prioritized","title":"Prioritized"},"description":"Filter by state_prediction_prioritized"},{"name":"risk_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Minimum risk_score_pct (funnel high/critical stages)","title":"Risk Min"},"description":"Minimum risk_score_pct (funnel high/critical stages)"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant (customer asset tag) display filter. When set, restricts asset predictions to IPs tagged with this name and skips user predictions (asset-only). Display grouping, NOT access control.","title":"Asset Tag"},"description":"Sub-Tenant (customer asset tag) display filter. When set, restricts asset predictions to IPs tagged with this name and skips user predictions (asset-only). Display grouping, NOT access control."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/threatcasts":{"get":{"tags":["predictions"],"summary":"Get Threatcasts List","description":"Get paginated list of threatcasts (future threat predictions).\nRequires operator or admin role.","operationId":"get_threatcasts_list_api_predictions_threatcasts_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by date (YYYY-MM-DD)","title":"Date Filter"},"description":"Filter by date (YYYY-MM-DD)"},{"name":"probability_filter","in":"query","required":false,"schema":{"anyOf":[{"enum":["high","medium","low"],"type":"string"},{"type":"null"}],"title":"Probability Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by severity level(s), comma-separated","title":"Severity Filter"},"description":"Filter by severity level(s), comma-separated"},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by kill chain stage name","title":"Kill Chain Filter"},"description":"Filter by kill chain stage name"},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search over event + target entities","title":"Keyword"},"description":"Free-text search over event + target entities"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreatcastsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/charts/threatcasts":{"get":{"tags":["predictions"],"summary":"Get Threatcasts Chart Data","description":"AI-native dashboard aggregations for the ThreatCasts page (``threatcast-*``).\n\nThreatCasts are low-fidelity, early-warning micro-predictions (they may\ninclude false positives), so this deliberately summarizes volume,\nprobability mix, risk distribution, top predicted events and most-targeted\nentities rather than the ensemble/backtest accuracy the meso Predictions\npage shows. Returns a ``ai`` block for the KPI tiles plus a timeline and\ndistributions for the charts.","operationId":"get_threatcasts_chart_data_api_predictions_charts_threatcasts_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"probability_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probability Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/env":{"get":{"tags":["predictions"],"summary":"Get Env Predictions List","description":"Get paginated list of environment (macro) predictions with sorting and filtering.\nRequires operator or admin role.","operationId":"get_env_predictions_list_api_predictions_env_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["timestamp","risk_score_pct"],"type":"string","default":"timestamp","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by predicted_event","title":"Event Filter"},"description":"Filter by predicted_event"},{"name":"probability_filter","in":"query","required":false,"schema":{"anyOf":[{"enum":["high","medium","low"],"type":"string"},{"type":"null"}],"title":"Probability Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by date (YYYY-MM-DD)","title":"Date Filter"},"description":"Filter by date (YYYY-MM-DD)"},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by severity level(s), comma-separated","title":"Severity Filter"},"description":"Filter by severity level(s), comma-separated"},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by kill chain stage name","title":"Kill Chain Filter"},"description":"Filter by kill chain stage name"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvPredictionsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/detection/{tenant_id}/{doc_id}":{"get":{"tags":["predictions"],"summary":"Get Detection Detail","description":"Get detection detail. Requires operator or admin role.","operationId":"get_detection_detail_api_predictions_detection__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/prediction/{tenant_id}/{doc_id}":{"get":{"tags":["predictions"],"summary":"Get Prediction Detail","description":"Get prediction detail. Requires operator or admin role.","operationId":"get_prediction_detail_api_predictions_prediction__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"horizon_hours","in":"query","required":false,"schema":{"type":"number","maximum":720,"minimum":1,"description":"Accuracy backtest horizon in hours","default":24.0,"title":"Horizon Hours"},"description":"Accuracy backtest horizon in hours"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/accuracy":{"get":{"tags":["predictions"],"summary":"Get Prediction Accuracy","description":"Backtest meso predictions against subsequent ground-truth alerts.\n\nForecasts have no stored accuracy verdict, so this scores a sample of\n*elapsed* predictions (``predictions-*`` + ``user_predictions-*``) on the\nfly: did the predicted MITRE activity actually show up on the same asset\nwithin ``horizon_hours``? Returns hit-rate, a calibration/reliability\ncurve (stated confidence vs observed hit-rate) and lead-time stats.","operationId":"get_prediction_accuracy_api_predictions_accuracy_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"description":"Lookback window for the prediction sample","default":30,"title":"Days"},"description":"Lookback window for the prediction sample"},{"name":"horizon_hours","in":"query","required":false,"schema":{"type":"number","maximum":720,"minimum":1,"description":"Forecast horizon: how long after a prediction we look for the actual event","default":24.0,"title":"Horizon Hours"},"description":"Forecast horizon: how long after a prediction we look for the actual event"},{"name":"sample_size","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":10,"description":"Max predictions to sample and score per tenant per window (elapsed + open). The dashboard requests a high value so 'examined' covers the full forecast population rather than a small slice.","default":250,"title":"Sample Size"},"description":"Max predictions to sample and score per tenant per window (elapsed + open). The dashboard requests a high value so 'examined' covers the full forecast population rather than a small slice."},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant (customer asset tag) display filter. When set, scores only predictions on IPs tagged with this name (asset-only). Display grouping, NOT access control.","title":"Asset Tag"},"description":"Sub-Tenant (customer asset tag) display filter. When set, scores only predictions on IPs tagged with this name (asset-only). Display grouping, NOT access control."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/accuracy/items":{"get":{"tags":["predictions"],"summary":"Get Prediction Accuracy Items","description":"List the individual forecasts behind a Forecast-Accuracy tile.\n\nPowers the click-through drill-down: the scored sample (hit/miss) comes\nfrom the same backtest used by ``/accuracy``; ``pending`` forecasts are\nfetched separately since the backtest only scores elapsed ones. Each item\ncarries its ``tenant`` + ``id`` so the row can open the full detail drawer.","operationId":"get_prediction_accuracy_items_api_predictions_accuracy_items_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"category","in":"query","required":false,"schema":{"type":"string","description":"Which tile to drill into","default":"checked","title":"Category"},"description":"Which tile to drill into"},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"horizon_hours","in":"query","required":false,"schema":{"type":"number","maximum":720,"minimum":1,"default":24.0,"title":"Horizon Hours"}},{"name":"sample_size","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":10,"default":250,"title":"Sample Size"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant (customer asset tag) display filter. When set, lists only forecasts on IPs tagged with this name (asset-only). Display grouping, NOT access control.","title":"Asset Tag"},"description":"Sub-Tenant (customer asset tag) display filter. When set, lists only forecasts on IPs tagged with this name (asset-only). Display grouping, NOT access control."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/threatcast/{tenant_id}/{doc_id}":{"get":{"tags":["predictions"],"summary":"Get Threatcast Detail","description":"Get threatcast detail. Requires operator or admin role.","operationId":"get_threatcast_detail_api_predictions_threatcast__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/env/{tenant_id}/{doc_id}":{"get":{"tags":["predictions"],"summary":"Get Env Prediction Detail","description":"Get environmental prediction detail. Requires operator or admin role.","operationId":"get_env_prediction_detail_api_predictions_env__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/charts/predictions":{"get":{"tags":["predictions"],"summary":"Get Predictions Chart Data","description":"Get AI-native chart data for the Predictions page (meso predictions:\npredictions-* + user_predictions-*). Includes:\n- Timeline of predictions over time (+ high-risk overlay)\n- Risk distribution (Critical, High, Medium, Low)\n- Forecast funnel (raw -> prioritized -> high risk -> critical)\n- Model ensemble agreement (SOC expert / Lockheed Martin / MITRE vs consensus)\n- Top predicted threats, attack categories (MITRE), predicted detection tool\n- Top targeted entities, highest-risk prediction, model disagreements feed","operationId":"get_predictions_chart_data_api_predictions_charts_predictions_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Filter"}},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Filter"}},{"name":"tool_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}},{"name":"probability_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probability Filter"}},{"name":"prioritized","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Prioritized"}},{"name":"risk_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Risk Min"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant (customer asset tag) display filter. When set, scopes chart aggregations to IPs tagged with this name and skips user predictions (asset-only). Display grouping, NOT access control.","title":"Asset Tag"},"description":"Sub-Tenant (customer asset tag) display filter. When set, scopes chart aggregations to IPs tagged with this name and skips user predictions (asset-only). Display grouping, NOT access control."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/charts/detections":{"get":{"tags":["predictions"],"summary":"Get Detections Chart Data","description":"Get chart data for detections page including:\n- Timeline of detections over time\n- Severity/Risk distribution\n- MITRE ATT&CK heatmap data\n- Kill chain distribution\n- Top affected entities","operationId":"get_detections_chart_data_api_predictions_charts_detections_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Filter"}},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"action_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Filter"}},{"name":"evidence_quality_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Quality Filter"}},{"name":"keyword","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyword"}},{"name":"validated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Validated"}},{"name":"reviewed","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reviewed"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant (customer asset tag) display filter. When set, scopes chart aggregations to IPs tagged with this name and skips user detections (asset-only). Display grouping, NOT access control.","title":"Asset Tag"},"description":"Sub-Tenant (customer asset tag) display filter. When set, scopes chart aggregations to IPs tagged with this name and skips user detections (asset-only). Display grouping, NOT access control."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/kill-chain-test/{stage}":{"get":{"tags":["predictions"],"summary":"Test Kill Chain Route","description":"Test endpoint to verify routing works. Requires operator or admin role.","operationId":"test_kill_chain_route_api_predictions_kill_chain_test__stage__get","parameters":[{"name":"stage","in":"path","required":true,"schema":{"type":"string","title":"Stage"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/kill-chain/{stage}":{"get":{"tags":["predictions"],"summary":"Get Kill Chain Stage Details","description":"Get detailed list of detections and predictions for a specific kill chain stage.\nReturns all items that map to the requested kill chain stage.","operationId":"get_kill_chain_stage_details_api_predictions_kill_chain__stage__get","parameters":[{"name":"stage","in":"path","required":true,"schema":{"type":"string","title":"Stage"}},{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"time_range","in":"query","required":false,"schema":{"enum":["1h","6h","12h","24h","3d","7d","30d","90d","all"],"type":"string","description":"Time range for data","default":"24h","title":"Time Range"},"description":"Time range for data"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/predictions/kill-chain":{"get":{"tags":["predictions"],"summary":"Get Kill Chain Analysis","description":"Get kill chain progression analysis from markov sessions.\nRequires operator or admin role.","operationId":"get_kill_chain_analysis_api_predictions_kill_chain_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"time_range","in":"query","required":false,"schema":{"enum":["1h","6h","12h","24h","3d","7d","30d","90d","all"],"type":"string","default":"7d","title":"Time Range"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/message":{"post":{"tags":["chat"],"summary":"Send Message","description":"Send a message to the AI copilot and get a response. Requires operator or admin role.\n\nThis endpoint handles the full conversation flow including tool execution.","operationId":"send_message_api_chat_message_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/message/stream":{"post":{"tags":["chat"],"summary":"Send Message Stream","description":"Send a message and stream the response with real-time tool execution updates.\n\nUses the multi-agent Team with ``stream=True, stream_events=True`` to get\nstructured events (ToolCallStarted, RunContent, etc.) from both the\ncoordinator and member agents.  Events are mapped to SSE for the frontend.\n\nRequires operator or admin role.","operationId":"send_message_stream_api_chat_message_stream_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/conversations":{"get":{"tags":["chat"],"summary":"List Conversations","description":"List all conversations for the current user (from MongoDB).","operationId":"list_conversations_api_chat_conversations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat"],"summary":"Delete All Conversations","description":"Delete all conversations for the current user.","operationId":"delete_all_conversations_api_chat_conversations_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat"],"summary":"Create Conversation","description":"Create a new conversation.","operationId":"create_conversation_api_chat_conversations_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/conversations/{conversation_id}":{"get":{"tags":["chat"],"summary":"Get Conversation History","description":"Get full conversation history for a specific session.","operationId":"get_conversation_history_api_chat_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat"],"summary":"Delete Conversation","description":"Delete a conversation from MongoDB and cache.","operationId":"delete_conversation_api_chat_conversations__conversation_id__delete","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/language":{"get":{"tags":["chat"],"summary":"Get Language","description":"Get current user's response language. Returns UserId and ActiveLanguage.","operationId":"get_language_api_chat_language_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat"],"summary":"Post Language","description":"Set current user's response language (same as pre-ui-webapp).","operationId":"post_language_api_chat_language_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/prompts":{"get":{"tags":["chat"],"summary":"Get Prompt Books","description":"Return the prompt book catalog (folders + prompts).","operationId":"get_prompt_books_api_chat_prompts_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat"],"summary":"Add Prompt","description":"Add a new prompt to a folder in the prompt book.","operationId":"add_prompt_api_chat_prompts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/prompts/{prompt_id}":{"delete":{"tags":["chat"],"summary":"Delete Prompt","description":"Delete a prompt by ID from any folder.","operationId":"delete_prompt_api_chat_prompts__prompt_id__delete","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/status":{"get":{"tags":["chat"],"summary":"Get Chat Status","description":"Get AI chat system status.\n\nAny chat user (``chat:read``, enforced at the router) gets the basic\nconnection state so the header indicator reflects reality instead of\nalways reading \"Disconnected\" for non-admins. Operational detail —\nLLM ``base_url``, MCP server URLs/counts, conversation counts — is\nrestricted to ``analytics:read`` holders to avoid leaking internal\ninfrastructure to ordinary users.","operationId":"get_chat_status_api_chat_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customer/dashboard":{"get":{"tags":["customer"],"summary":"Get Customer Dashboard","description":"Get customer-facing dashboard data with tenant health grid.\nRequires authentication (all roles).\n\nReturns simplified tenant status focused on:\n- Connection status (connected/disconnected)\n- Log freshness (green/yellow/red/black)\n- Log counts (recent and total)","operationId":"get_customer_dashboard_api_customer_dashboard_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/customer/tenant/{tenant_id}":{"get":{"tags":["customer"],"summary":"Get Customer Tenant Detail","description":"Get detailed status for a single tenant. Requires authentication (all roles).","operationId":"get_customer_tenant_detail_api_customer_tenant__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soc/posture/{tenant_id}":{"get":{"tags":["soc-operations"],"summary":"Get Security Posture","description":"Generate comprehensive security posture report for a tenant. Requires operator or admin role.\n\nAnalyzes:\n- Critical incidents requiring triage (P1/P2/P3)\n- Top risky users, assets, and external connections\n- SOC operational metrics\n- Recommended actions\n\nReturns the full sorted incident queue (up to SOC_POSTURE_PAGINATION_CEILING\nentities, cached WARM). Pagination is done client-side so that the local\ntriage filters (priority / entity type / case status / search) apply across\nthe whole queue rather than a single page. `total_incidents` is the size of\nthat queue.\n\nReturns actionable intelligence for SOC analysts.","operationId":"get_security_posture_api_soc_posture__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","pattern":"^(1h|6h|12h|24h|3d|7d|30d|all)$","default":"24h","title":"Time Range"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityPostureResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soc/triage-profile/{tenant_id}":{"get":{"tags":["soc-operations"],"summary":"Active triage sensitivity profile","operationId":"get_triage_profile_api_soc_triage_profile__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageProfileState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["soc-operations"],"summary":"Set the active triage sensitivity profile (requires soc:manage)","operationId":"set_triage_profile_api_soc_triage_profile__tenant_id__put","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTriageProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageProfileState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soc/triage-profile/{tenant_id}/preview":{"get":{"tags":["soc-operations"],"summary":"Preview tier counts under a candidate profile (no change applied)","operationId":"preview_triage_profile_api_soc_triage_profile__tenant_id__preview_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"profile","in":"query","required":true,"schema":{"type":"string","description":"Candidate profile to preview","title":"Profile"},"description":"Candidate profile to preview"},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","pattern":"^(1h|6h|12h|24h|3d|7d|30d|all)$","default":"24h","title":"Time Range"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageProfilePreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soc/debug-count-compare":{"get":{"tags":["soc-operations"],"summary":"Debug Count Compare","description":"DEBUG: Compare aggregation count vs query count for a user. Requires operator or admin role.\nThis helps diagnose count mismatches between posture and incident-details.","operationId":"debug_count_compare_api_soc_debug_count_compare_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"entity","in":"query","required":true,"schema":{"type":"string","description":"Username to check","title":"Entity"},"description":"Username to check"},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","description":"Time range","default":"24h","title":"Time Range"},"description":"Time range"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soc/incident-details":{"get":{"tags":["soc-operations"],"summary":"Get Incident Details","description":"Get detailed alerts, detections, and predictions for a specific entity. Requires operator or admin role.\nUsed by the SOC dashboard slide-out panel and case detail page.","operationId":"get_incident_details_api_soc_incident_details_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"entity","in":"query","required":true,"schema":{"type":"string","description":"Entity identifier (username, hostname, IP)","title":"Entity"},"description":"Entity identifier (username, hostname, IP)"},{"name":"entity_type","in":"query","required":true,"schema":{"type":"string","description":"Entity type: user, asset, asset_ip, source_ip, dest_ip","title":"Entity Type"},"description":"Entity type: user, asset, asset_ip, source_ip, dest_ip"},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","description":"Time range: 1h, 6h, 24h, 7d, 30d","default":"24h","title":"Time Range"},"description":"Time range: 1h, 6h, 24h, 7d, 30d"},{"name":"anchor_ts","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Epoch seconds to anchor the window to (posture window_end); avoids rolling-window drift","title":"Anchor Ts"},"description":"Epoch seconds to anchor the window to (posture window_end); avoids rolling-window drift"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max records per category","default":50,"title":"Limit"},"description":"Max records per category"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentDetailsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soc/detections-paginated":{"get":{"tags":["soc-operations"],"summary":"Get Detections Paginated","description":"Get paginated detections for a specific entity using Point-in-Time API. Requires operator or admin role.\nUsed by Entity Lookup page for Load More functionality in detections modal.","operationId":"get_detections_paginated_api_soc_detections_paginated_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"entity","in":"query","required":true,"schema":{"type":"string","description":"Entity identifier","title":"Entity"},"description":"Entity identifier"},{"name":"entity_type","in":"query","required":true,"schema":{"type":"string","description":"Entity type: user, asset, asset_ip, source_ip, dest_ip","title":"Entity Type"},"description":"Entity type: user, asset, asset_ip, source_ip, dest_ip"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Results per page","default":50,"title":"Page Size"},"description":"Results per page"},{"name":"pit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Point-in-Time ID for pagination","title":"Pit Id"},"description":"Point-in-Time ID for pagination"},{"name":"search_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search after token (JSON array)","title":"Search After"},"description":"Search after token (JSON array)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soc/predictions-paginated":{"get":{"tags":["soc-operations"],"summary":"Get Predictions Paginated","description":"Get paginated predictions for a specific entity using Point-in-Time API. Requires operator or admin role.\nUsed by Entity Lookup page for Load More functionality in predictions modal.","operationId":"get_predictions_paginated_api_soc_predictions_paginated_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"entity","in":"query","required":true,"schema":{"type":"string","description":"Entity identifier","title":"Entity"},"description":"Entity identifier"},{"name":"entity_type","in":"query","required":true,"schema":{"type":"string","description":"Entity type: user, asset, asset_ip, source_ip, dest_ip","title":"Entity Type"},"description":"Entity type: user, asset, asset_ip, source_ip, dest_ip"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Results per page","default":50,"title":"Page Size"},"description":"Results per page"},{"name":"pit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Point-in-Time ID for pagination","title":"Pit Id"},"description":"Point-in-Time ID for pagination"},{"name":"search_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search after token (JSON array)","title":"Search After"},"description":"Search after token (JSON array)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soc/posture-report":{"post":{"tags":["soc-operations"],"summary":"Generate Posture Report","description":"Generate an incident report using LLM analysis of SOC incidents. Requires operator or admin role.\nTakes P1 (or other priority) incidents and generates a comprehensive report.","operationId":"generate_posture_report_api_soc_posture_report_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostureReportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostureReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-intelligence/global":{"get":{"tags":["Threat Intelligence"],"summary":"Get Global Threat Intelligence","description":"Get comprehensive global threat intelligence with geographic data (CACHED).\n\nThis endpoint uses multi-tier caching for performance:\n- HOT tier (5min): Real-time queries for all tenants (24h data)\n- WARM tier (30min): Dashboard aggregates and filtered views\n- COLD tier (2h): Historical data and reports\n\nFeatures:\n- Automatic cache warming for common queries\n- Smart cache invalidation on new data\n- Force refresh option to bypass cache\n\nIncludes:\n- Attack flows with source/destination coordinates\n- Geographic heatmaps for sources and destinations\n- Country-level statistics and rankings\n- Threat type distribution and timelines\n\nArgs:\n    tenant: Tenant ID or 'all' for multi-tenant aggregation\n    time_range: Time window (1h, 24h, 7d, 30d, all)\n    limit: Maximum number of threat flows to return (10-500)\n    force_refresh: If True, bypass cache and query ES directly\n\nReturns:\n    GlobalThreatResponse with comprehensive threat intelligence data","operationId":"get_global_threat_intelligence_api_threat_intelligence_global_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"time_range","in":"query","required":false,"schema":{"enum":["1h","6h","12h","24h","3d","7d","30d","all"],"type":"string","default":"24h","title":"Time Range"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":10,"description":"Max flows to return (increased limit with caching)","default":500,"title":"Limit"},"description":"Max flows to return (increased limit with caching)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass cache and fetch fresh data","default":false,"title":"Force Refresh"},"description":"Bypass cache and fetch fresh data"},{"name":"high_value_only","in":"query","required":false,"schema":{"type":"boolean","description":"Show only events with detections/predictions AND geo data","default":false,"title":"High Value Only"},"description":"Show only events with detections/predictions AND geo data"},{"name":"severity_level","in":"query","required":false,"schema":{"anyOf":[{"enum":["low","moderate","high","critical"],"type":"string"},{"type":"null"}],"description":"Filter by specific severity level","title":"Severity Level"},"description":"Filter by specific severity level"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalThreatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-intelligence/flow-alerts":{"get":{"tags":["Threat Intelligence"],"summary":"Get Flow Alerts","description":"Fetch individual security alerts for a specific threat flow (source → destination).\nUsed to show raw log details when clicking on a flow in the Global Threat Map.","operationId":"get_flow_alerts_api_threat_intelligence_flow_alerts_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID or 'all'","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"source_ip","in":"query","required":true,"schema":{"type":"string","description":"Source IP address","title":"Source Ip"},"description":"Source IP address"},{"name":"dest_ip","in":"query","required":true,"schema":{"type":"string","description":"Destination IP address","title":"Dest Ip"},"description":"Destination IP address"},{"name":"time_range","in":"query","required":false,"schema":{"enum":["1h","6h","12h","24h","3d","7d","30d","all"],"type":"string","description":"Time range","default":"24h","title":"Time Range"},"description":"Time range"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Max alerts to return","default":100,"title":"Limit"},"description":"Max alerts to return"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-pulse/events":{"get":{"summary":"Get Events","description":"Get historical threat pulse events","operationId":"get_events_api_threat_pulse_events_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"event_type","in":"query","required":false,"schema":{"type":"string","description":"Event type filter","default":"all","title":"Event Type"},"description":"Event type filter"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","description":"Hours of history","default":24,"title":"Hours"},"description":"Hours of history"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Maximum events","default":200,"title":"Limit"},"description":"Maximum events"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-pulse/stream":{"get":{"summary":"Stream Events","description":"Server-Sent Events stream for real-time threat pulse.\n\nUses short-lived streams to prevent zombie accumulation. The server intentionally\ncloses each stream after a limited number of poll cycles. The browser's native\nEventSource reconnect handles re-establishing the connection seamlessly. If the\nuser has navigated away, there's no EventSource to reconnect — the zombie dies.\n\nThis avoids relying on request.is_disconnected() which is unreliable in\nuvicorn/Starlette for SSE (TCP buffer absorbs small writes, broken pipe\ndetection can take 30+ seconds).","operationId":"stream_events_api_threat_pulse_stream_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"event_type","in":"query","required":false,"schema":{"type":"string","description":"Event type filter","default":"all","title":"Event Type"},"description":"Event type filter"},{"name":"poll_interval","in":"query","required":false,"schema":{"type":"integer","description":"Polling interval in seconds (2-60)","default":5,"title":"Poll Interval"},"description":"Polling interval in seconds (2-60)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-pulse/stats":{"get":{"summary":"Get Stats","description":"Get summary statistics for threat pulse - supports both pipeline and kill chain views","operationId":"get_stats_api_threat_pulse_stats_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","description":"Hours of history","default":24,"title":"Hours"},"description":"Hours of history"},{"name":"view_mode","in":"query","required":false,"schema":{"type":"string","description":"View mode: pipeline or killchain","default":"pipeline","title":"View Mode"},"description":"View mode: pipeline or killchain"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-pulse/event/{event_id}":{"get":{"summary":"Get Event Detail","description":"Get full event details by ES document ID","operationId":"get_event_detail_api_threat_pulse_event__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"index","in":"query","required":false,"schema":{"type":"string","description":"ES index name","title":"Index"},"description":"ES index name"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cache/stats":{"get":{"tags":["Cache Management"],"summary":"Get Cache Stats","description":"Get cache statistics and performance metrics (requires authentication).\n\nReturns hit rate, cache size, and performance metrics for all cache tiers.\n\nReturns:\n    CacheStatsResponse with cache metrics","operationId":"get_cache_stats_api_cache_stats_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cache/invalidate/{tenant_id}":{"post":{"tags":["Cache Management"],"summary":"Invalidate Tenant Cache","description":"Invalidate all cache entries for a specific tenant (admin only).\n\nClears both single-tenant and multi-tenant cache entries that include\nthis tenant's data. Useful after tenant reconfiguration or data reload.\n\nArgs:\n    tenant_id: Tenant ID to invalidate\n\nReturns:\n    CacheInvalidateResponse with number of deleted entries\n\nRequires:\n    Admin authentication","operationId":"invalidate_tenant_cache_api_cache_invalidate__tenant_id__post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheInvalidateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cache/clear":{"post":{"tags":["Cache Management"],"summary":"Clear All Cache","description":"Clear entire threat intelligence cache (admin only).\n\nWARNING: This clears ALL cached threat intelligence data across all tiers.\nThe cache will be repopulated on subsequent queries, which may cause\ntemporary performance degradation.\n\nUse cases:\n- After major system changes or updates\n- When debugging cache issues\n- Before maintenance windows\n\nReturns:\n    CacheInvalidateResponse with number of deleted entries\n\nRequires:\n    Admin authentication","operationId":"clear_all_cache_api_cache_clear_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheInvalidateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cache/warm":{"post":{"tags":["Cache Management"],"summary":"Warm Cache Manually","description":"Manually trigger cache warming (admin only).\n\nPre-populates cache with common query patterns for improved performance.\nThis is automatically done by background workers, but can be manually\ntriggered after cache clearing or system restart.\n\nCache warming includes:\n- All tenants, 24h time range (HOT tier)\n- All tenants, 7d time range (HOT tier)\n- Individual high-priority tenants (WARM tier)\n\nReturns:\n    CacheWarmResponse with number of warmed queries\n\nRequires:\n    Admin authentication","operationId":"warm_cache_manually_api_cache_warm_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheWarmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cache/refresh-status":{"get":{"tags":["Cache Management"],"summary":"Get Cache Refresh Status","description":"Get cache refresh timing status (requires authentication).\n\nReturns when the cache was last refreshed by background workers and when\nthe next refresh is scheduled. This allows the frontend to display\naccurate refresh timing to all users.\n\nReturns:\n    CacheRefreshStatusResponse with timing information","operationId":"get_cache_refresh_status_api_cache_refresh_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheRefreshStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cache/refresh-now":{"post":{"tags":["Cache Management"],"summary":"Trigger Refresh Now","description":"Trigger an immediate cache refresh (requires authentication).\n\nThis endpoint:\n1. Acquires a distributed lock (prevents multiple simultaneous refreshes)\n2. Invalidates relevant cache entries\n3. Runs cache warming to populate fresh data\n4. Updates the last_refresh timestamp\n\nThe lock has a TTL to prevent deadlocks if the refresh process crashes.\nIf another refresh is in progress, returns immediately with \"locked\" status.\n\nReturns:\n    RefreshNowResponse with refresh status and timing","operationId":"trigger_refresh_now_api_cache_refresh_now_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshNowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases":{"post":{"tags":["cases"],"summary":"Create Case","description":"Create a new case (de-duplicated against overlapping open cases).","operationId":"create_case_api_cases_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Tenant ID (for multi-tenant admins)","title":"Tenant"},"description":"Tenant ID (for multi-tenant admins)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cases"],"summary":"List Cases","description":"List cases with filtering and pagination.","operationId":"list_cases_api_cases_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":50,"title":"Page Size"},"description":"Items per page"},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","description":"Sort field","default":"created_at","title":"Sort By"},"description":"Sort field"},{"name":"sort_desc","in":"query","required":false,"schema":{"type":"boolean","description":"Sort descending","default":true,"title":"Sort Desc"},"description":"Sort descending"},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by tenant (for multi-tenant view)","title":"Tenant"},"description":"Filter by tenant (for multi-tenant view)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/CaseStatus"}},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/CasePriority"}},{"type":"null"}],"description":"Filter by priority","title":"Priority"},"description":"Filter by priority"},{"name":"disposition","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by disposition","title":"Disposition"},"description":"Filter by disposition"},{"name":"assigned_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by assignee","title":"Assigned To"},"description":"Filter by assignee"},{"name":"unassigned","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only cases with no assignee","title":"Unassigned"},"description":"Only cases with no assignee"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by category","title":"Category"},"description":"Filter by category"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search in title/description","title":"Search"},"description":"Search in title/description"},{"name":"sla_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/SLAStatus"}},{"type":"null"}],"description":"Filter by SLA status","title":"Sla Status"},"description":"Filter by SLA status"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant (customer) tag filter. Returns only cases tagged with this Sub-Tenant. Display grouping, NOT access control.","title":"Asset Tag"},"description":"Sub-Tenant (customer) tag filter. Returns only cases tagged with this Sub-Tenant. Display grouping, NOT access control."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__models__cases__CaseListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/stats":{"get":{"tags":["cases"],"summary":"Get Case Stats","description":"Get case statistics for dashboard.","operationId":"get_case_stats_api_cases_stats_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by tenant","title":"Tenant"},"description":"Filter by tenant"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant (customer) tag filter. Counts only cases tagged with this Sub-Tenant so the cards match the filtered list. Display grouping, NOT access control.","title":"Asset Tag"},"description":"Sub-Tenant (customer) tag filter. Counts only cases tagged with this Sub-Tenant so the cards match the filtered list. Display grouping, NOT access control."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/check-duplicate":{"get":{"tags":["cases"],"summary":"Check Duplicate Case","description":"Check if an open case already exists for this source item.","operationId":"check_duplicate_case_api_cases_check_duplicate_get","parameters":[{"name":"source_type","in":"query","required":true,"schema":{"type":"string","title":"Source Type"}},{"name":"source_id","in":"query","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/has-case-for-entities":{"post":{"tags":["cases"],"summary":"Has Case For Entities","description":"Return which of the given incident entities already have a case.\n\nPowers the SOC-dashboard \"Has Case\" / \"No Case\" filter and the per-incident\nCreate-Case-vs-View-Case button. Matching mirrors the create-time dedup:\n``$``-normalized entity, counting OPEN *and* closed/resolved cases -- so an\nincident whose case exists (even a closed one, even one far down the case\nlist) never shows a stale \"Create Case\" button.\n\nBody: ``{\"entities\": [...]}``. Response: ``{entity: {id, case_number,\nstatus}}`` keyed by the original entity strings; entities with no case are\nomitted (absence == \"No Case\").","operationId":"has_case_for_entities_api_cases_has_case_for_entities_post","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID (concrete, not 'all')","title":"Tenant"},"description":"Tenant ID (concrete, not 'all')"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HasCaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}":{"get":{"tags":["cases"],"summary":"Get Case","description":"Get case detail with activities, comments, attachments, and evidence.","operationId":"get_case_api_cases__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["cases"],"summary":"Update Case","description":"Update a case.","operationId":"update_case_api_cases__case_id__patch","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cases"],"summary":"Delete Case","description":"Delete a case (soft delete).","operationId":"delete_case_api_cases__case_id__delete","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/number/{case_number}":{"get":{"tags":["cases"],"summary":"Get Case By Number","description":"Get case by case number (e.g., CASE-2024-001).","operationId":"get_case_by_number_api_cases_number__case_number__get","parameters":[{"name":"case_number","in":"path","required":true,"schema":{"type":"string","title":"Case Number"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/resolve":{"post":{"tags":["cases"],"summary":"Resolve Case","description":"Resolve a case.","operationId":"resolve_case_api_cases__case_id__resolve_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseResolve"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/bulk-delete":{"post":{"tags":["cases"],"summary":"Bulk Delete Cases","description":"Delete multiple cases in a single HTTP request (soft delete).","operationId":"bulk_delete_cases_api_cases_bulk_delete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__cases__BulkDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/activities":{"get":{"tags":["cases"],"summary":"Get Case Activities","description":"Get case activity timeline.","operationId":"get_case_activities_api_cases__case_id__activities_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max activities to return","default":100,"title":"Limit"},"description":"Max activities to return"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CaseActivity"},"title":"Response Get Case Activities Api Cases  Case Id  Activities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/comments":{"post":{"tags":["cases"],"summary":"Add Comment","description":"Add a comment to a case.\n\nGated by ``case_comment.create``. The caller must also be able to\n*see* the case under ``case_view.read`` (enforced by\n:func:`_load_case_in_scope`) so an own-scoped reader can't seed\ncomments onto cases they couldn't otherwise view.","operationId":"add_comment_api_cases__case_id__comments_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseCommentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseComment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cases"],"summary":"Get Case Comments","description":"Get all comments for a case.","operationId":"get_case_comments_api_cases__case_id__comments_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CaseComment"},"title":"Response Get Case Comments Api Cases  Case Id  Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/comments/{comment_id}":{"patch":{"tags":["cases"],"summary":"Update Comment","description":"Update a comment.\n\nTwo-layer check: ``case_comment.update`` perm gets the caller past\nthe route dep, then the comment is loaded and the scope (``own`` =\nauthor, ``tenant`` = any) is matched against this specific row.","operationId":"update_comment_api_cases__case_id__comments__comment_id__patch","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}},{"name":"comment_text","in":"query","required":true,"schema":{"type":"string","title":"Comment Text"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseComment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cases"],"summary":"Delete Comment","description":"Delete a comment.\n\n``case_comment.delete`` gets the caller past the perm gate; the\nscope (``own`` = author, ``tenant`` = any) is matched against this\nspecific comment before the delete runs.","operationId":"delete_comment_api_cases__case_id__comments__comment_id__delete","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/ask":{"post":{"tags":["cases"],"summary":"Ask Case Socgpt","description":"Interactive, MULTI-TURN Ask SOCGPT about a case. Streams text/plain (same contract as the FAST\ndrawer's /ask). The client holds the conversation and replays it each call (stateless server); the last\nmessage must be the analyst's new question. Grounded in the case + its comments/evidence/linked incidents.","operationId":"ask_case_socgpt_api_cases__case_id__ask_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseAskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/socgpt-material":{"post":{"tags":["cases"],"summary":"Insert Socgpt Material","description":"Insert a SOCGPT answer into the case as persistent material (gated like Add Comment).","operationId":"insert_socgpt_material_api_cases__case_id__socgpt_material_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseSocgptMaterialCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseSocgptMaterial"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cases"],"summary":"List Socgpt Material","description":"List inserted SOCGPT material (with threaded notes) for a case.","operationId":"list_socgpt_material_api_cases__case_id__socgpt_material_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CaseSocgptMaterial"},"title":"Response List Socgpt Material Api Cases  Case Id  Socgpt Material Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/socgpt-material/{material_id}":{"delete":{"tags":["cases"],"summary":"Delete Socgpt Material","description":"Remove an inserted SOCGPT material item (own => inserter, tenant => any).","operationId":"delete_socgpt_material_api_cases__case_id__socgpt_material__material_id__delete","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"integer","title":"Material Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/socgpt-material/{material_id}/notes":{"post":{"tags":["cases"],"summary":"Add Socgpt Material Note","description":"Add a threaded note annotating an inserted SOCGPT material item.","operationId":"add_socgpt_material_note_api_cases__case_id__socgpt_material__material_id__notes_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"integer","title":"Material Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseSocgptNoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseSocgptNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/socgpt-material/{material_id}/notes/{note_id}":{"patch":{"tags":["cases"],"summary":"Update Socgpt Material Note","description":"Edit a threaded note (own => author, tenant => any).","operationId":"update_socgpt_material_note_api_cases__case_id__socgpt_material__material_id__notes__note_id__patch","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"integer","title":"Material Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"integer","title":"Note Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseSocgptNoteCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseSocgptNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cases"],"summary":"Delete Socgpt Material Note","description":"Delete a threaded note (own => author, tenant => any).","operationId":"delete_socgpt_material_note_api_cases__case_id__socgpt_material__material_id__notes__note_id__delete","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"material_id","in":"path","required":true,"schema":{"type":"integer","title":"Material Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"integer","title":"Note Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/attachments":{"post":{"tags":["cases"],"summary":"Upload Attachment","description":"Upload a file attachment to a case (stored in PostgreSQL).","operationId":"upload_attachment_api_cases__case_id__attachments_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},{"name":"customer_visible","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Customer Visible"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_attachment_api_cases__case_id__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseAttachment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["cases"],"summary":"List Attachments","description":"List all attachments for a case.","operationId":"list_attachments_api_cases__case_id__attachments_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CaseAttachment"},"title":"Response List Attachments Api Cases  Case Id  Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/attachments/{attachment_id}/download":{"get":{"tags":["cases"],"summary":"Download Attachment","description":"Download a file attachment from PostgreSQL.","operationId":"download_attachment_api_cases__case_id__attachments__attachment_id__download_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/attachments/{attachment_id}":{"delete":{"tags":["cases"],"summary":"Delete Attachment","description":"Delete an attachment.","operationId":"delete_attachment_api_cases__case_id__attachments__attachment_id__delete","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/evidence":{"get":{"tags":["cases"],"summary":"List Evidence","description":"List all evidence for a case.","operationId":"list_evidence_api_cases__case_id__evidence_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__models__cases__CaseEvidence"},"title":"Response List Evidence Api Cases  Case Id  Evidence Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cases"],"summary":"Add Evidence","description":"Manually add evidence to a case.","operationId":"add_evidence_api_cases__case_id__evidence_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseEvidenceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__models__cases__CaseEvidence"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/evidence/{evidence_id}":{"get":{"tags":["cases"],"summary":"Get Evidence","description":"Get a specific evidence item.","operationId":"get_evidence_api_cases__case_id__evidence__evidence_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"evidence_id","in":"path","required":true,"schema":{"type":"integer","title":"Evidence Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__models__cases__CaseEvidence"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cases"],"summary":"Delete Evidence","description":"Delete evidence from a case.","operationId":"delete_evidence_api_cases__case_id__evidence__evidence_id__delete","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"evidence_id","in":"path","required":true,"schema":{"type":"integer","title":"Evidence Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/linked-incidents":{"get":{"tags":["cases"],"summary":"List Linked Incidents","description":"List a case's current linked incidents/clusters (active membership list).","operationId":"list_linked_incidents_api_cases__case_id__linked_incidents_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LinkedIncident"},"title":"Response List Linked Incidents Api Cases  Case Id  Linked Incidents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cases"],"summary":"Add Linked Incident","description":"Link a different FAST incident/cluster to an existing case.\n\nPowers the \"Link to a different existing case\" flow in fast.html (a\nsecondary action alongside \"Send to Case\", which creates a brand-new\ncase instead). Idempotent -- linking an incident already on the case's\nactive list is a no-op that returns the existing entry.","operationId":"add_linked_incident_api_cases__case_id__linked_incidents_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedIncidentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedIncident"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/linked-incidents/{linked_incident_id}":{"delete":{"tags":["cases"],"summary":"Remove Linked Incident","description":"Remove one entry from a case's active linked-incidents list.\n\nThis may be the origin entry (the incident/cluster the case was\noriginally created from) -- removing it only drops it from the current\nactive list; the case stays open and ``source_type``/``source_id`` (the\npermanent provenance) are never touched.","operationId":"remove_linked_incident_api_cases__case_id__linked_incidents__linked_incident_id__delete","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"linked_incident_id","in":"path","required":true,"schema":{"type":"integer","title":"Linked Incident Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/{case_id}/disposition":{"post":{"tags":["cases"],"summary":"Set Case Disposition","description":"Set or change the disposition of a case.","operationId":"set_case_disposition_api_cases__case_id__disposition_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"disposition","in":"query","required":true,"schema":{"type":"string","title":"Disposition"}},{"name":"disposition_reason","in":"query","required":true,"schema":{"type":"string","title":"Disposition Reason"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/assignees/list":{"get":{"tags":["cases"],"summary":"List Assignable Users","description":"Get list of users who can be assigned to cases.\n\nReturns every active (enabled, non-hidden) Keycloak account that has an\nemail. The legacy implementation intersected each user's roles against\n{\"admin\", \"operator\"} — role names that do not exist in this realm (realm\nroles are esm-admin / esm-operator / esm-viewer / tenant-* / mssp-* /\nsysadmin), so the intersection was empty and the picker only ever showed\n\"Unassigned\". We now surface all real accounts and only narrow the list\nwhen an explicit ``role`` filter is supplied.","operationId":"list_assignable_users_api_cases_assignees_list_get","parameters":[{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by role (admin, operator, viewer)","title":"Role"},"description":"Filter by role (admin, operator, viewer)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cases/my/summary":{"get":{"tags":["cases"],"summary":"My Case Summary","description":"Active cases assigned to the current user, across every org they can see.\n\nPowers the dashboard \"you have tickets\" banner and the Cases nav badge.\n\"Active\" = open, in_progress, or waiting. Honors the caller's RBAC scope.","operationId":"my_case_summary_api_cases_my_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppression/rules":{"post":{"tags":["suppression"],"summary":"Create Suppression Rule","description":"Create a new suppression rule.","operationId":"create_suppression_rule_api_suppression_rules_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionRuleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionRule"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["suppression"],"summary":"List Suppression Rules","description":"List all suppression rules for tenant.","operationId":"list_suppression_rules_api_suppression_rules_get","parameters":[{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"rule_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Type"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SuppressionRule"},"title":"Response List Suppression Rules Api Suppression Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppression/rules/{rule_id}":{"patch":{"tags":["suppression"],"summary":"Update Suppression Rule","description":"Update a suppression rule.","operationId":"update_suppression_rule_api_suppression_rules__rule_id__patch","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionRuleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionRule"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["suppression"],"summary":"Delete Suppression Rule","description":"Delete (deactivate) a suppression rule.","operationId":"delete_suppression_rule_api_suppression_rules__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppression/whitelist":{"post":{"tags":["suppression"],"summary":"Add To Whitelist","description":"Add entity to whitelist.","operationId":"add_to_whitelist_api_suppression_whitelist_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhitelistEntryCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhitelistEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["suppression"],"summary":"List Whitelist","description":"List all whitelisted entities for tenant.","operationId":"list_whitelist_api_suppression_whitelist_get","parameters":[{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhitelistEntry"},"title":"Response List Whitelist Api Suppression Whitelist Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppression/whitelist/{entry_id}":{"delete":{"tags":["suppression"],"summary":"Remove From Whitelist","description":"Remove entity from whitelist.","operationId":"remove_from_whitelist_api_suppression_whitelist__entry_id__delete","parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppression/disposition/case/{case_id}":{"post":{"tags":["suppression"],"summary":"Set Case Disposition","description":"Set disposition for a case (and optionally create suppression rule).","operationId":"set_case_disposition_api_suppression_disposition_case__case_id__post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispositionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppression/bulk/disposition":{"post":{"tags":["suppression"],"summary":"Bulk Disposition","description":"Apply disposition to multiple incidents.","operationId":"bulk_disposition_api_suppression_bulk_disposition_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDisposition"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkOperationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppression/bulk/create-cases":{"post":{"tags":["suppression"],"summary":"Bulk Create Cases","description":"Create cases from multiple incidents.","operationId":"bulk_create_cases_api_suppression_bulk_create_cases_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCaseCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkOperationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppression/bulk/assign":{"post":{"tags":["suppression"],"summary":"Bulk Assign","description":"Assign multiple incidents to analyst.","operationId":"bulk_assign_api_suppression_bulk_assign_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAssign"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkOperationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suppression/bulk/tag":{"post":{"tags":["suppression"],"summary":"Bulk Tag","description":"Add tags to multiple incidents.","operationId":"bulk_tag_api_suppression_bulk_tag_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTag"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkOperationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/dashboard":{"get":{"summary":"Get Ioc Dashboard","description":"Get IOC dashboard statistics","operationId":"get_ioc_dashboard_api_ioc_dashboard_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","description":"Number of days to analyze","default":7,"title":"Days"},"description":"Number of days to analyze"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/url/lookup":{"get":{"summary":"Lookup Url","description":"Lookup URL reputation","operationId":"lookup_url_api_ioc_url_lookup_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"URL to lookup","title":"Url"},"description":"URL to lookup"},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/url/recent":{"get":{"summary":"Get Recent Urls","description":"Get recent URL predictions","operationId":"get_recent_urls_api_ioc_url_recent_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Maximum results","default":50,"title":"Limit"},"description":"Maximum results"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","description":"Number of days to analyze","default":7,"title":"Days"},"description":"Number of days to analyze"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by state (malicious/benign)","title":"State"},"description":"Filter by state (malicious/benign)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/ip/lookup":{"get":{"summary":"Lookup Ip","description":"Lookup IP in threat intelligence","operationId":"lookup_ip_api_ioc_ip_lookup_get","parameters":[{"name":"ip","in":"query","required":true,"schema":{"type":"string","description":"IP address to lookup","title":"Ip"},"description":"IP address to lookup"},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/ip/recent":{"get":{"summary":"Get Recent Ips","description":"Get recent threat intel IPs","operationId":"get_recent_ips_api_ioc_ip_recent_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Maximum results","default":100,"title":"Limit"},"description":"Maximum results"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","description":"Number of days to analyze","default":7,"title":"Days"},"description":"Number of days to analyze"},{"name":"feed","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by threat feed","title":"Feed"},"description":"Filter by threat feed"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/cve/search":{"get":{"summary":"Search Cve","description":"Search for CVE information","operationId":"search_cve_api_ioc_cve_search_get","parameters":[{"name":"cve_id","in":"query","required":true,"schema":{"type":"string","description":"CVE ID (e.g., CVE-2024-1234)","title":"Cve Id"},"description":"CVE ID (e.g., CVE-2024-1234)"},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/hash/lookup":{"get":{"summary":"Lookup Hash","description":"Lookup file hash in security alerts and enrichment data","operationId":"lookup_hash_api_ioc_hash_lookup_get","parameters":[{"name":"hash_value","in":"query","required":true,"schema":{"type":"string","description":"File hash (MD5, SHA1, or SHA256)","title":"Hash Value"},"description":"File hash (MD5, SHA1, or SHA256)"},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/lookup":{"get":{"summary":"Universal Ioc Lookup","description":"Universal IOC lookup - auto-detects indicator type and routes to appropriate lookup.\n\nAccepts the indicator under either ``indicator`` or ``value``. Every\ndrawer IOC search box (alert/detection/prediction) posts ``value``, so\nsupporting both keeps those working while preserving the original\n``indicator`` contract for any direct callers.","operationId":"universal_ioc_lookup_api_ioc_lookup_get","parameters":[{"name":"indicator","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IOC to lookup (IP, hash, URL, domain, or CVE)","title":"Indicator"},"description":"IOC to lookup (IP, hash, URL, domain, or CVE)"},{"name":"value","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Alias for 'indicator' (the in-drawer IOC search boxes send 'value')","title":"Value"},"description":"Alias for 'indicator' (the in-drawer IOC search boxes send 'value')"},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"ioc_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Force IOC type (ip, hash, url, domain, cve)","title":"Ioc Type"},"description":"Force IOC type (ip, hash, url, domain, cve)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/correlate":{"get":{"summary":"Correlate Ioc","description":"Correlate an indicator across multiple data sources","operationId":"correlate_ioc_api_ioc_correlate_get","parameters":[{"name":"indicator","in":"query","required":true,"schema":{"type":"string","description":"Indicator to correlate (IP, URL, etc.)","title":"Indicator"},"description":"Indicator to correlate (IP, URL, etc.)"},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/hashes":{"get":{"summary":"Get Hash Analytics","description":"Get file hash analytics from logs\nAggregates MD5, SHA1, and SHA256 hashes with reputation from threat intel","operationId":"get_hash_analytics_api_ioc_analytics_hashes_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to analyze (0 = all time, 0.042 = 1 hour)","default":7,"title":"Days"},"description":"Number of days to analyze (0 = all time, 0.042 = 1 hour)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/urls":{"get":{"summary":"Get Url Analytics","description":"Get URL analytics from logs\nAnalyzes extracted URLs with reputation","operationId":"get_url_analytics_api_ioc_analytics_urls_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to analyze (0 = all time)","default":7,"title":"Days"},"description":"Number of days to analyze (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/sigma/total-rules":{"get":{"summary":"Get Sigma Total Rules","description":"Get the total number of compiled sigma rules from Prometheus.\nQueries the sigma_scan_compiled_rules gauge via the Prometheus HTTP API.","operationId":"get_sigma_total_rules_api_ioc_analytics_sigma_total_rules_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/sigmascan":{"get":{"summary":"Get Sigmascan Analytics","description":"Get Sigma Scan rule detection analytics.\nQueries documents written by the pre-sigma-scan container,\nwhich stores matches in the gen1_sigma_match.matches array field.","operationId":"get_sigmascan_analytics_api_ioc_analytics_sigmascan_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to analyze (0 = all time)","default":7,"title":"Days"},"description":"Number of days to analyze (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/sigmascan/logs":{"get":{"summary":"Get Sigmascan Logs","description":"Get security alert logs that matched a specific Sigma Scan rule.\nSearches the gen1_sigma_match.matches.id field written by pre-sigma-scan.","operationId":"get_sigmascan_logs_api_ioc_analytics_sigmascan_logs_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"rule_id","in":"query","required":true,"schema":{"type":"string","description":"Sigma Scan rule ID to search for","title":"Rule Id"},"description":"Sigma Scan rule ID to search for"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":50,"title":"Limit"},"description":"Max logs to return"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/mitre":{"get":{"summary":"Get Mitre Analytics","description":"Get MITRE ATT&CK technique analytics\nShows which techniques are being observed","operationId":"get_mitre_analytics_api_ioc_analytics_mitre_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to analyze (0 = all time)","default":7,"title":"Days"},"description":"Number of days to analyze (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/killchain":{"get":{"summary":"Get Killchain Analytics","description":"Get Lockheed Martin Kill Chain analytics\nShows which kill chain phases are being observed (derived from MITRE ATT&CK tactics)","operationId":"get_killchain_analytics_api_ioc_analytics_killchain_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to analyze (0 = all time)","default":7,"title":"Days"},"description":"Number of days to analyze (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/logs/killchain":{"get":{"summary":"Get Killchain Logs","description":"Get security alert logs associated with a specific Kill Chain phase.\nReturns full log details for the logs viewer modal.","operationId":"get_killchain_logs_api_ioc_logs_killchain_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"phase","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kill chain phase to filter","title":"Phase"},"description":"Kill chain phase to filter"},{"name":"detection_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Detection name to search","title":"Detection Name"},"description":"Detection name to search"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":100,"title":"Limit"},"description":"Max logs to return"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/network":{"get":{"summary":"Get Network Analytics","description":"Get network IOC analytics\nAnalyzes IP reputation and network activity","operationId":"get_network_analytics_api_ioc_analytics_network_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to analyze (0 = all time)","default":7,"title":"Days"},"description":"Number of days to analyze (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/hashes/distribution":{"get":{"summary":"Get Hash Distribution","description":"Get hash distribution by risk score ranges\nShows histogram of how many logs with hashes fall into each risk score bucket","operationId":"get_hash_distribution_api_ioc_analytics_hashes_distribution_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to analyze (0 = all time)","default":7,"title":"Days"},"description":"Number of days to analyze (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/hashes/logs-by-score":{"get":{"summary":"Get Logs By Score Range","description":"Get logs with hashes that fall within a specific score range.\nUsed for histogram drill-down.","operationId":"get_logs_by_score_range_api_ioc_analytics_hashes_logs_by_score_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"score_type","in":"query","required":false,"schema":{"type":"string","description":"Score type: risk or value","default":"risk","title":"Score Type"},"description":"Score type: risk or value"},{"name":"min_score","in":"query","required":false,"schema":{"type":"integer","description":"Minimum score","default":0,"title":"Min Score"},"description":"Minimum score"},{"name":"max_score","in":"query","required":false,"schema":{"type":"integer","description":"Maximum score","default":100,"title":"Max Score"},"description":"Maximum score"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":50,"title":"Limit"},"description":"Max logs to return"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/hashes/logs-by-score-paginated":{"get":{"summary":"Get Logs By Score Range Paginated","description":"Get paginated logs with hashes that fall within a specific score range using PIT.\nUsed for histogram drill-down with pagination support.","operationId":"get_logs_by_score_range_paginated_api_ioc_analytics_hashes_logs_by_score_paginated_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"score_type","in":"query","required":false,"schema":{"type":"string","description":"Score type: risk or value","default":"risk","title":"Score Type"},"description":"Score type: risk or value"},{"name":"min_score","in":"query","required":false,"schema":{"type":"integer","description":"Minimum score","default":0,"title":"Min Score"},"description":"Minimum score"},{"name":"max_score","in":"query","required":false,"schema":{"type":"integer","description":"Maximum score","default":100,"title":"Max Score"},"description":"Maximum score"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Results per page","default":100,"title":"Page Size"},"description":"Results per page"},{"name":"pit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Point-in-Time ID for pagination","title":"Pit Id"},"description":"Point-in-Time ID for pagination"},{"name":"search_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search after token (JSON array)","title":"Search After"},"description":"Search after token (JSON array)"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/hashes/logs":{"get":{"summary":"Get Hash Logs","description":"Get security alert logs containing a specific hash.\nReturns full log details for the logs viewer modal.","operationId":"get_hash_logs_api_ioc_analytics_hashes_logs_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"hash_value","in":"query","required":true,"schema":{"type":"string","description":"Hash value to search for","title":"Hash Value"},"description":"Hash value to search for"},{"name":"hash_type","in":"query","required":false,"schema":{"type":"string","description":"Hash type (MD5, SHA1, SHA256)","default":"MD5","title":"Hash Type"},"description":"Hash type (MD5, SHA1, SHA256)"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":50,"title":"Limit"},"description":"Max logs to return"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/network/logs":{"get":{"summary":"Get Network Logs","description":"Get security alert logs containing a specific IP address (source or destination).\nReturns full log details for the logs viewer modal.","operationId":"get_network_logs_api_ioc_analytics_network_logs_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"ip","in":"query","required":true,"schema":{"type":"string","description":"IP address to search for","title":"Ip"},"description":"IP address to search for"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":50,"title":"Limit"},"description":"Max logs to return"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/urls/logs":{"get":{"summary":"Get Url Logs","description":"Get security alert logs containing a specific URL or domain.\nReturns full log details for the logs viewer modal.","operationId":"get_url_logs_api_ioc_analytics_urls_logs_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"URL to search for","title":"Url"},"description":"URL to search for"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":50,"title":"Limit"},"description":"Max logs to return"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/mitre/logs":{"get":{"summary":"Get Mitre Logs","description":"Get security alert logs associated with a specific MITRE ATT&CK technique.\nReturns full log details for the logs viewer modal.","operationId":"get_mitre_logs_api_ioc_analytics_mitre_logs_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"technique_id","in":"query","required":true,"schema":{"type":"string","description":"MITRE ATT&CK technique ID","title":"Technique Id"},"description":"MITRE ATT&CK technique ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":50,"title":"Limit"},"description":"Max logs to return"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/processes":{"get":{"summary":"Get Processes Analytics","description":"Get process analytics from security logs.\nExtracts process information from message_obj field which stores EDR data.\nHandles Windows Events, XDR, CrowdStrike, SentinelOne, Cynet, and other formats.","operationId":"get_processes_analytics_api_ioc_analytics_processes_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to analyze (0 = all time)","default":7,"title":"Days"},"description":"Number of days to analyze (0 = all time)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/processes/logs":{"get":{"summary":"Get Processes Logs","description":"Get security alert logs containing a specific process name.\nSearches in both top-level process_name field and within message field\n(since message_obj nested fields aren't indexed).\nReturns full log details for the logs viewer modal.","operationId":"get_processes_logs_api_ioc_analytics_processes_logs_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"process_name","in":"query","required":true,"schema":{"type":"string","description":"Process name to search for","title":"Process Name"},"description":"Process name to search for"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max logs to return","default":50,"title":"Limit"},"description":"Max logs to return"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/log/{log_id}":{"get":{"summary":"Get Full Log","description":"Get the full log document by ID.\nReturns all fields for detailed log view.","operationId":"get_full_log_api_ioc_analytics_log__log_id__get","parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","title":"Log Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/logs-paginated":{"get":{"summary":"Get Ioc Logs Paginated","description":"Get paginated logs for a specific IOC using Point-in-Time API.\n\nSupports multiple IOC types:\n- hash: MD5, SHA1, SHA256 hashes (requires hash_type parameter)\n- ip: IP addresses (source or destination)\n- url: URLs in logs\n- sigma: Sigma rule names\n- mitre: MITRE ATT&CK technique IDs\n- process: Process names\n\nReturns: logs, pit_id, search_after, has_more, total_estimate","operationId":"get_ioc_logs_paginated_api_ioc_logs_paginated_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"ioc_type","in":"query","required":true,"schema":{"type":"string","description":"IOC type: hash, ip, url, sigma, mitre, process","title":"Ioc Type"},"description":"IOC type: hash, ip, url, sigma, mitre, process"},{"name":"ioc_value","in":"query","required":true,"schema":{"type":"string","description":"IOC value to search for","title":"Ioc Value"},"description":"IOC value to search for"},{"name":"hash_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Hash type for hash IOC (MD5, SHA1, SHA256)","title":"Hash Type"},"description":"Hash type for hash IOC (MD5, SHA1, SHA256)"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to filter (0 = all time)","default":7,"title":"Days"},"description":"Number of days to filter (0 = all time)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Results per page","default":100,"title":"Page Size"},"description":"Results per page"},{"name":"pit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Point-in-Time ID for pagination","title":"Pit Id"},"description":"Point-in-Time ID for pagination"},{"name":"search_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search after token (JSON array)","title":"Search After"},"description":"Search after token (JSON array)"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/pit/{pit_id}":{"delete":{"summary":"Close Ioc Pit","description":"Manually close a Point-in-Time search context.\nPITs auto-expire after 5 minutes of inactivity, but this allows explicit cleanup.","operationId":"close_ioc_pit_api_ioc_pit__pit_id__delete","parameters":[{"name":"pit_id","in":"path","required":true,"schema":{"type":"string","title":"Pit Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ioc/analytics/detections":{"get":{"summary":"Get Detections Analytics","description":"Unified Detections endpoint that powers the leftmost \"Detections\" tab on /ioc/analytics.\nSingle ES request returns paginated raw hits AND four chart aggregations (timeline,\nseverity, top rules, top MITRE techniques). Each row is one document from\nsecurity_alerts-* and carries presence-derived \"type\" chips (hash/url/sigma/mitre/network/process)\nso operators can pivot into any of the existing dimensional tabs.","operationId":"get_detections_analytics_api_ioc_analytics_detections_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","description":"Number of days to analyze (0 = all time, 0.042 = 1 hour)","default":7,"title":"Days"},"description":"Number of days to analyze (0 = all time, 0.042 = 1 hour)"},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated IOC-derived severities (critical,high,medium,low)","title":"Severity"},"description":"Comma-separated IOC-derived severities (critical,high,medium,low)"},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated IOC types (hash,url,ip,sigma,sigma_semantic)","title":"Types"},"description":"Comma-separated IOC types (hash,url,ip,sigma,sigma_semantic)"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search across event_name/message/matched_rule_title/username/hostname","title":"Search"},"description":"Free-text search across event_name/message/matched_rule_title/username/hostname"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size (max 500)","default":100,"title":"Size"},"description":"Page size (max 500)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant display filter (asset_ip); not access control","title":"Asset Tag"},"description":"Sub-Tenant display filter (asset_ip); not access control"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/recent":{"get":{"tags":["devops"],"summary":"Get Recent Logs","description":"Return a table-ready list of recent logs for DevOps inspection. Supports multi-tenant with tenant='all'.","operationId":"get_recent_logs_api_devops_log_details_recent_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID or 'all' for all tenants","title":"Tenant"},"description":"Tenant ID or 'all' for all tenants"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8760,"minimum":-1,"description":"Time range in hours, -1 for all time","default":24,"title":"Hours"},"description":"Time range in hours, -1 for all time"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"description":"Number of logs to return","default":500,"title":"Size"},"description":"Number of logs to return"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter type: not_parsed, not_classified, low_value, high_value, not_nlp, missing_parsed, missing_classified, missing_nlp","title":"Filter"},"description":"Filter type: not_parsed, not_classified, low_value, high_value, not_nlp, missing_parsed, missing_classified, missing_nlp"},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","description":"Sort order: asc (oldest first) or desc (newest first)","default":"desc","title":"Sort Order"},"description":"Sort order: asc (oldest first) or desc (newest first)"},{"name":"distribution","in":"query","required":false,"schema":{"type":"string","pattern":"^(balanced|recent|equal)$","description":"Distribution mode for multi-tenant: balanced (min per tenant + recent), recent (purely chronological), equal (same count per tenant)","default":"balanced","title":"Distribution"},"description":"Distribution mode for multi-tenant: balanced (min per tenant + recent), recent (purely chronological), equal (same count per tenant)"},{"name":"min_per_tenant","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Minimum logs per tenant in balanced mode","default":10,"title":"Min Per Tenant"},"description":"Minimum logs per tenant in balanced mode"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/counts":{"get":{"tags":["devops"],"summary":"Get Log Counts","description":"Return counts for each filter type. Supports multi-tenant with tenant='all'.","operationId":"get_log_counts_api_devops_log_details_counts_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID or 'all' for all tenants","title":"Tenant"},"description":"Tenant ID or 'all' for all tenants"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8760,"minimum":-1,"description":"Time range in hours, -1 for all time","default":24,"title":"Hours"},"description":"Time range in hours, -1 for all time"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/timeline":{"get":{"tags":["devops"],"summary":"Get Log Timeline","description":"Return time histogram of log counts for sparkline visualization.\nSupports multi-tenant with tenant='all' (buckets merged by epoch key).","operationId":"get_log_timeline_api_devops_log_details_timeline_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID or 'all' for all tenants","title":"Tenant"},"description":"Tenant ID or 'all' for all tenants"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8760,"minimum":-1,"description":"Time range in hours, -1 for all time","default":24,"title":"Hours"},"description":"Time range in hours, -1 for all time"},{"name":"buckets","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":6,"description":"Number of time buckets","default":24,"title":"Buckets"},"description":"Number of time buckets"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/sources":{"get":{"tags":["devops"],"summary":"Get Log Sources","description":"Return list of available log sources for filter chips.\nSupports multi-tenant with tenant='all' (names deduped, counts summed).","operationId":"get_log_sources_api_devops_log_details_sources_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID or 'all' for all tenants","title":"Tenant"},"description":"Tenant ID or 'all' for all tenants"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8760,"minimum":-1,"description":"Time range in hours","default":24,"title":"Hours"},"description":"Time range in hours"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/related/{doc_id}":{"get":{"tags":["devops"],"summary":"Get Related Logs","description":"Find logs related to the given document by shared entities.","operationId":"get_related_logs_api_devops_log_details_related__doc_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"index","in":"query","required":false,"schema":{"type":"string","description":"Index name for the document","default":"security_alerts-*","title":"Index"},"description":"Index name for the document"},{"name":"hours","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Time range in hours","title":"Hours"},"description":"Time range in hours"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max related logs to return","default":20,"title":"Limit"},"description":"Max related logs to return"},{"name":"source_ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ip"}},{"name":"dest_ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Ip"}},{"name":"username","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"}},{"name":"hostname","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname"}},{"name":"asset_ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Ip"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/explain":{"post":{"tags":["devops"],"summary":"Explain Log","description":"Use LLM to explain a security log event in detail.","operationId":"explain_log_api_devops_log_details_explain_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__log_details__ExplainLogRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/generate-dsl":{"post":{"tags":["devops"],"summary":"Generate Dsl","description":"Turn a natural-language request into an Elasticsearch query DSL clause.\n\nStreams the raw JSON clause back as text/plain so the SIEM+ Advanced query\nhelper can show it progressively and let the analyst copy/insert it.","operationId":"generate_dsl_api_devops_log_details_generate_dsl_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDslRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/explain-detection":{"post":{"tags":["devops"],"summary":"Explain Detection","description":"Stream an LLM analysis of a correlated security detection or prediction.","operationId":"explain_detection_api_devops_log_details_explain_detection_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainDetectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/explain/chat":{"post":{"tags":["devops"],"summary":"Explain Log Chat","description":"Continue a SOCGPT conversation about a specific log event.","operationId":"explain_log_chat_api_devops_log_details_explain_chat_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainLogChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/explain-detection/chat":{"post":{"tags":["devops"],"summary":"Explain Detection Chat","description":"Continue a SOCGPT conversation about a specific detection or prediction.","operationId":"explain_detection_chat_api_devops_log_details_explain_detection_chat_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainDetectionChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devops/log-details/explain-prediction-evidence":{"post":{"tags":["devops"],"summary":"Explain Prediction Evidence","description":"Stream an LLM assessment of whether referenced evidence supports a prediction.","operationId":"explain_prediction_evidence_api_devops_log_details_explain_prediction_evidence_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainPredictionEvidenceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/siem-plus/search":{"post":{"tags":["siem-plus"],"summary":"Siem Search","description":"Run a JSON DSL fragment merged with mandatory time filter (bool.filter).","operationId":"siem_search_api_siem_plus_search_post","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant id (datalake client)","title":"Tenant"},"description":"Tenant id (datalake client)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiemSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/siem-plus/histogram":{"post":{"tags":["siem-plus"],"summary":"Siem Histogram","operationId":"siem_histogram_api_siem_plus_histogram_post","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant id","title":"Tenant"},"description":"Tenant id"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiemHistogramRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/siem-plus/fields":{"get":{"tags":["siem-plus"],"summary":"Siem Fields","description":"Field list for sidebar — try field_caps, fall back to indices.get_mapping.","operationId":"siem_fields_api_siem_plus_fields_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant id","title":"Tenant"},"description":"Tenant id"},{"name":"index_pattern","in":"query","required":true,"schema":{"type":"string","description":"Allowed index pattern","title":"Index Pattern"},"description":"Allowed index pattern"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/siem-plus/meta":{"get":{"tags":["siem-plus"],"summary":"Siem Meta","description":"Allowed index patterns for UI dropdown.","operationId":"siem_meta_api_siem_plus_meta_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-intel/summary":{"get":{"tags":["threat-intel"],"summary":"Threat Intel Summary","description":"Total IOC count and a per-category breakdown for the counter cards.","operationId":"threat_intel_summary_api_threat_intel_summary_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant id","title":"Tenant"},"description":"Tenant id"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-intel/search":{"get":{"tags":["threat-intel"],"summary":"Threat Intel Search","description":"Paginated IOC table over ``threatintel-*``, most-recent first.","operationId":"threat_intel_search_api_threat_intel_search_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant id","title":"Tenant"},"description":"Tenant id"},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Free-text IOC search","default":"","title":"Q"},"description":"Free-text IOC search"},{"name":"category","in":"query","required":false,"schema":{"type":"string","description":"Category filter (ip|domain|url|file_hash|email|other)","default":"","title":"Category"},"description":"Category filter (ip|domain|url|file_hash|email|other)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-tracker":{"get":{"tags":["threat-tracker"],"summary":"Threat Tracker Initial","description":"Initial fetch: events in window, newest first.","operationId":"threat_tracker_initial_api_threat_tracker_get","parameters":[{"name":"entity","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"title":"Entity"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant id, or 'all' to merge every configured tenant (newest first, global limit)","title":"Tenant"},"description":"Tenant id, or 'all' to merge every configured tenant (newest first, global limit)"},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","description":"Main stream window: 1m|5m|15m|1h|6h|12h|24h|3d|7d|30d|all","default":"1h","title":"Time Range"},"description":"Main stream window: 1m|5m|15m|1h|6h|12h|24h|3d|7d|30d|all"},{"name":"context_time_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Recent detections + XDR timelines window; defaults to time_range when omitted","title":"Context Time Range"},"description":"Recent detections + XDR timelines window; defaults to time_range when omitted"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","description":"nlp | log | detections | predictions — detections = asset+user prediction indices; predictions = those plus predictions_env-* and threatcast-*","default":"nlp","title":"Mode"},"description":"nlp | log | detections | predictions — detections = asset+user prediction indices; predictions = those plus predictions_env-* and threatcast-*"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threat-tracker/updates":{"get":{"tags":["threat-tracker"],"summary":"Threat Tracker Updates","description":"Incremental poll: events with timestamp > since (and within sliding window).","operationId":"threat_tracker_updates_api_threat_tracker_updates_get","parameters":[{"name":"entity","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"title":"Entity"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant id, or 'all' to merge every configured tenant (newest first, global limit)","title":"Tenant"},"description":"Tenant id, or 'all' to merge every configured tenant (newest first, global limit)"},{"name":"since","in":"query","required":true,"schema":{"type":"string","description":"ISO timestamp — return events strictly newer","title":"Since"},"description":"ISO timestamp — return events strictly newer"},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","default":"1h","title":"Time Range"}},{"name":"context_time_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Recent detections + XDR timelines window; defaults to time_range when omitted","title":"Context Time Range"},"description":"Recent detections + XDR timelines window; defaults to time_range when omitted"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","description":"nlp | log | detections | predictions","default":"nlp","title":"Mode"},"description":"nlp | log | detections | predictions"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ndr/triage/{tenant_id}":{"get":{"tags":["ndr-triage"],"summary":"Get Ndr Triage","description":"Get NDR triage data for network flow analysis. Requires operator or admin role.\n\nAnalyzes:\n- Anomalous network flows (NDR detections)\n- Top talkers (source and destination IPs)\n- Geographic distribution\n- Traffic metrics\n\nReturns actionable intelligence for network security analysts.","operationId":"get_ndr_triage_api_ndr_triage__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","pattern":"^(1h|6h|12h|24h|3d|7d|30d|all)$","default":"24h","title":"Time Range"}},{"name":"anomaly_only","in":"query","required":false,"schema":{"type":"boolean","description":"Show only anomalous flows","default":false,"title":"Anomaly Only"},"description":"Show only anomalous flows"},{"name":"protocol","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by protocol (6=TCP, 17=UDP)","title":"Protocol"},"description":"Filter by protocol (6=TCP, 17=UDP)"},{"name":"min_bytes","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Minimum bytes threshold","title":"Min Bytes"},"description":"Minimum bytes threshold"},{"name":"reputation","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by reputation: malicious, suspicious, benign","title":"Reputation"},"description":"Filter by reputation: malicious, suspicious, benign"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NDRTriageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ndr/flow/{tenant_id}/{flow_id}":{"get":{"tags":["ndr-triage"],"summary":"Get Flow Details","description":"Get detailed flow information. Requires operator or admin role.","operationId":"get_flow_details_api_ndr_flow__tenant_id___flow_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}},{"name":"related_limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Related Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowDetailsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ndr/related-alerts/{tenant_id}":{"get":{"tags":["ndr-triage"],"summary":"Get Related Security Alerts","description":"Get security alerts related to an IP address. Requires operator or admin role.\nCross-references network flows with security_alerts index.","operationId":"get_related_security_alerts_api_ndr_related_alerts__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"ip","in":"query","required":true,"schema":{"type":"string","description":"IP address to look up","title":"Ip"},"description":"IP address to look up"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/endpoint-monitor/devices":{"get":{"tags":["endpoint-monitor"],"summary":"List Devices","operationId":"list_devices_api_endpoint_monitor_devices_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant id or all","default":"all","title":"Tenant"},"description":"Tenant id or all"},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search hostname, IP, or username","default":"","title":"Q"},"description":"Search hostname, IP, or username"},{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"all | online | offline","default":"all","title":"Status"},"description":"all | online | offline"},{"name":"risk","in":"query","required":false,"schema":{"type":"string","description":"all | high | medium | low","default":"all","title":"Risk"},"description":"all | high | medium | low"},{"name":"os","in":"query","required":false,"schema":{"type":"string","description":"Substring match on OS","default":"","title":"Os"},"description":"Substring match on OS"},{"name":"location","in":"query","required":false,"schema":{"type":"string","description":"Substring match on location","default":"","title":"Location"},"description":"Substring match on location"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Page Size"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"Sort column: hostname|asset_ip|username|os|status|tenant_id|last_seen ('' = default last-seen desc)","default":"","title":"Sort"},"description":"Sort column: hostname|asset_ip|username|os|status|tenant_id|last_seen ('' = default last-seen desc)"},{"name":"dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Dir"}},{"name":"online_window_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":1440,"minimum":1,"default":10,"title":"Online Window Minutes"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["endpoint-monitor"],"summary":"Delete Endpoints","description":"Permanently delete telemetry documents for the supplied (tenant, hostname[, asset_ip]) tuples.\n\nGated by RBAC perm ``endpoint_monitor:delete`` (admin role by default;\nsysadmin bypasses; custom roles may grant it). The client must echo the\nliteral string ``\"confirm\"`` in the request body, matching the UI\nconfirmation dialog. Each target runs a ``delete_by_query`` against\n``endpointmonitor-*`` on the named tenant's Elasticsearch client;\nper-target failures are reported in the result list.","operationId":"delete_endpoints_api_endpoint_monitor_devices_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteEndpointsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/endpoint-monitor/devices/export":{"get":{"tags":["endpoint-monitor"],"summary":"Export Devices Csv","operationId":"export_devices_csv_api_endpoint_monitor_devices_export_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Status"}},{"name":"risk","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Risk"}},{"name":"os","in":"query","required":false,"schema":{"type":"string","default":"","title":"Os"}},{"name":"location","in":"query","required":false,"schema":{"type":"string","default":"","title":"Location"}},{"name":"online_window_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":1440,"minimum":1,"default":10,"title":"Online Window Minutes"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/endpoint-monitor/device":{"get":{"tags":["endpoint-monitor"],"summary":"Get Device Detail","operationId":"get_device_detail_api_endpoint_monitor_device_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant id (required when not in demo)","default":"all","title":"Tenant"},"description":"Tenant id (required when not in demo)"},{"name":"hostname","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Device hostname","title":"Hostname"},"description":"Device hostname"},{"name":"asset_ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional disambiguating IP","title":"Asset Ip"},"description":"Optional disambiguating IP"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/endpoint-monitor/device/timeseries":{"get":{"tags":["endpoint-monitor"],"summary":"Get Device Timeseries","description":"Per-timestamp metrics from endpointmonitor-* for overview charts (CPU, connection bytes).","operationId":"get_device_timeseries_api_endpoint_monitor_device_timeseries_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant id (required when not in demo)","default":"all","title":"Tenant"},"description":"Tenant id (required when not in demo)"},{"name":"hostname","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Device hostname","title":"Hostname"},"description":"Device hostname"},{"name":"asset_ip","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional disambiguating IP","title":"Asset Ip"},"description":"Optional disambiguating IP"},{"name":"hours","in":"query","required":false,"schema":{"type":"number","maximum":168.0,"minimum":0.016666666666666666,"description":"Lookback window in hours (default 1)","default":1.0,"title":"Hours"},"description":"Lookback window in hours (default 1)"},{"name":"online_window_minutes","in":"query","required":false,"schema":{"type":"integer","maximum":1440,"minimum":1,"description":"Same window as fleet list: telemetry newer than this many minutes counts as online.","default":10,"title":"Online Window Minutes"},"description":"Same window as fleet list: telemetry newer than this many minutes counts as online."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/device-enrollment/tokens":{"get":{"tags":["device-enrollment"],"summary":"List Tokens","operationId":"list_tokens_api_device_enrollment_tokens_get","parameters":[{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["device-enrollment"],"summary":"Issue Token","operationId":"issue_token_api_device_enrollment_tokens_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/device-enrollment/tokens/{token}":{"delete":{"tags":["device-enrollment"],"summary":"Revoke Token","operationId":"revoke_token_api_device_enrollment_tokens__token__delete","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/device-enrollment/devices":{"get":{"tags":["device-enrollment"],"summary":"List Devices","operationId":"list_devices_api_device_enrollment_devices_get","parameters":[{"name":"include_revoked","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Revoked"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/device-enrollment/devices/{device_id}/revoke":{"post":{"tags":["device-enrollment"],"summary":"Revoke Device","operationId":"revoke_device_api_device_enrollment_devices__device_id__revoke_post","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent-updates/bundles":{"get":{"tags":["agent-updates"],"summary":"List Bundles","operationId":"list_bundles_api_agent_updates_bundles_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Bundles Api Agent Updates Bundles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent-updates"],"summary":"Publish Bundle","operationId":"publish_bundle_api_agent_updates_bundles_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_publish_bundle_api_agent_updates_bundles_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Publish Bundle Api Agent Updates Bundles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent-updates/targets":{"get":{"tags":["agent-updates"],"summary":"List Targets","operationId":"list_targets_api_agent_updates_targets_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Targets Api Agent Updates Targets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["agent-updates"],"summary":"Set Target","operationId":"set_target_api_agent_updates_targets_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Set Target Api Agent Updates Targets Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent-updates/fleet":{"get":{"tags":["agent-updates"],"summary":"Fleet","operationId":"fleet_api_agent_updates_fleet_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Fleet Api Agent Updates Fleet Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent-updates/auto-update":{"get":{"tags":["agent-updates"],"summary":"Get Auto Update","operationId":"get_auto_update_api_agent_updates_auto_update_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Auto Update Api Agent Updates Auto Update Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["agent-updates"],"summary":"Put Auto Update","operationId":"put_auto_update_api_agent_updates_auto_update_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Put Auto Update Api Agent Updates Auto Update Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collector-fleet/collectors":{"get":{"tags":["collector-fleet"],"summary":"List Collectors","operationId":"list_collectors_api_collector_fleet_collectors_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Collectors Api Collector Fleet Collectors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collector-fleet/collectors/{collector_id}/config":{"get":{"tags":["collector-fleet"],"summary":"Get Config","operationId":"get_config_api_collector_fleet_collectors__collector_id__config_get","parameters":[{"name":"collector_id","in":"path","required":true,"schema":{"type":"string","title":"Collector Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Config Api Collector Fleet Collectors  Collector Id  Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["collector-fleet"],"summary":"Put Config","operationId":"put_config_api_collector_fleet_collectors__collector_id__config_put","parameters":[{"name":"collector_id","in":"path","required":true,"schema":{"type":"string","title":"Collector Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Put Config Api Collector Fleet Collectors  Collector Id  Config Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collector-fleet/collectors/{collector_id}/config/history":{"get":{"tags":["collector-fleet"],"summary":"Get History","operationId":"get_history_api_collector_fleet_collectors__collector_id__config_history_get","parameters":[{"name":"collector_id","in":"path","required":true,"schema":{"type":"string","title":"Collector Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get History Api Collector Fleet Collectors  Collector Id  Config History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collector-fleet/collectors/{collector_id}/config/restore":{"post":{"tags":["collector-fleet"],"summary":"Restore Config","operationId":"restore_config_api_collector_fleet_collectors__collector_id__config_restore_post","parameters":[{"name":"collector_id","in":"path","required":true,"schema":{"type":"string","title":"Collector Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Restore Config Api Collector Fleet Collectors  Collector Id  Config Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collector-fleet/bundles":{"get":{"tags":["collector-fleet"],"summary":"List Bundles","operationId":"list_bundles_api_collector_fleet_bundles_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Bundles Api Collector Fleet Bundles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collector-fleet"],"summary":"Publish Bundle","operationId":"publish_bundle_api_collector_fleet_bundles_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_publish_bundle_api_collector_fleet_bundles_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Publish Bundle Api Collector Fleet Bundles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collector-fleet/targets":{"get":{"tags":["collector-fleet"],"summary":"List Targets","operationId":"list_targets_api_collector_fleet_targets_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Targets Api Collector Fleet Targets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["collector-fleet"],"summary":"Set Target","operationId":"set_target_api_collector_fleet_targets_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Set Target Api Collector Fleet Targets Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collector-fleet/tokens":{"get":{"tags":["collector-fleet"],"summary":"List Tokens","operationId":"list_tokens_api_collector_fleet_tokens_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Tokens Api Collector Fleet Tokens Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collector-fleet"],"summary":"Issue Token","operationId":"issue_token_api_collector_fleet_tokens_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Issue Token Api Collector Fleet Tokens Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collector-fleet/tokens/{token}":{"delete":{"tags":["collector-fleet"],"summary":"Revoke Token","operationId":"revoke_token_api_collector_fleet_tokens__token__delete","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Revoke Token Api Collector Fleet Tokens  Token  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cognito/sweep-config":{"get":{"tags":["cognito"],"summary":"Get Sweep Config","operationId":"get_sweep_config_api_cognito_sweep_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Sweep Config Api Cognito Sweep Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["cognito"],"summary":"Put Sweep Config","operationId":"put_sweep_config_api_cognito_sweep_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Put Sweep Config Api Cognito Sweep Config Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cognito/detections":{"get":{"tags":["cognito"],"summary":"List Agentic Detections","description":"Paginated Cognito (Agentic XDR) detections across the selected tenant(s).","operationId":"list_agentic_detections_api_cognito_detections_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Tag"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Filter"}},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"evidence_quality_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Quality Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"timestamp","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":25,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Agentic Detections Api Cognito Detections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cognito/charts":{"get":{"tags":["cognito"],"summary":"Get Agentic Chart Data","description":"Aggregated Cognito (Agentic XDR) chart data over ``cognito_detection-*``.\n\nReturns a Cognito-native chart shape (the scored-detection ensemble/funnel\nfrom Gen-3 does not apply here): a detections-over-time timeline with a\nserious-event overlay, severity / evidence-quality / kill-chain / MITRE\ndistributions, top findings, top affected entities, and a summary strip.\nEvery dimension mirrors a table filter so a chart click narrows the page.","operationId":"get_agentic_chart_data_api_cognito_charts_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Tag"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Filter"}},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"evidence_quality_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Quality Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Agentic Chart Data Api Cognito Charts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cognito/detection/{tenant_id}/{doc_id}":{"get":{"tags":["cognito"],"summary":"Get Agentic Detection Detail","description":"Full Cognito detection document by id (for the detail drawer).","operationId":"get_agentic_detection_detail_api_cognito_detection__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Agentic Detection Detail Api Cognito Detection  Tenant Id   Doc Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gen2/sweep-config":{"get":{"tags":["gen2"],"summary":"Get Sweep Config","operationId":"get_sweep_config_api_gen2_sweep_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Sweep Config Api Gen2 Sweep Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["gen2"],"summary":"Put Sweep Config","operationId":"put_sweep_config_api_gen2_sweep_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Put Sweep Config Api Gen2 Sweep Config Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gen2/detections":{"get":{"tags":["gen2"],"summary":"List Gen2 Detections","description":"Paginated Gen 2 (graph-ML) detections across the selected tenant(s).","operationId":"list_gen2_detections_api_gen2_detections_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Tag"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Filter"}},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"detector_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detector Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"timestamp","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":25,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Gen2 Detections Api Gen2 Detections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gen2/charts":{"get":{"tags":["gen2"],"summary":"Get Gen2 Chart Data","description":"Aggregated Gen 2 chart data over ``xdr_type=gen2_graph`` docs.\n\nGraph-native shape: a detections-over-time timeline with a serious overlay,\nseverity / detector-type / kill-chain / MITRE distributions, top findings,\ntop affected entities, and a summary strip. Every dimension mirrors a table\nfilter so a chart click narrows the whole page.","operationId":"get_gen2_chart_data_api_gen2_charts_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Tag"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Filter"}},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"detector_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detector Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Gen2 Chart Data Api Gen2 Charts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gen2/detection/{tenant_id}/{doc_id}":{"get":{"tags":["gen2"],"summary":"Get Gen2 Detection Detail","description":"Full Gen 2 detection document by id (for the detail drawer).","operationId":"get_gen2_detection_detail_api_gen2_detection__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Gen2 Detection Detail Api Gen2 Detection  Tenant Id   Doc Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gen2/attack-paths":{"get":{"tags":["gen2"],"summary":"List Attack Paths","description":"Paginated correlated attack paths across the selected tenant(s).","operationId":"list_attack_paths_api_gen2_attack_paths_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Tag"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"timestamp","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":25,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Attack Paths Api Gen2 Attack Paths Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gen2/attack-path/{tenant_id}/{doc_id}":{"get":{"tags":["gen2"],"summary":"Get Attack Path Detail","description":"Full attack-path document by id (drawer overview).","operationId":"get_attack_path_detail_api_gen2_attack_path__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Attack Path Detail Api Gen2 Attack Path  Tenant Id   Doc Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gen2/attack-path/{tenant_id}/{doc_id}/graph":{"get":{"tags":["gen2"],"summary":"Get Attack Path Graph","description":"Cytoscape-ready graph for the full-canvas attack-path drill-down.\n\nReturns the stored path's typed nodes and observed/inferred edges (with\naction + timestamp labels) plus the side-panel payloads (MITRE sequence,\nkill-chain stages, summary findings, outcomes). The path graph is bounded at\nwrite time, so this reformats stored data rather than rebuilding from ES.","operationId":"get_attack_path_graph_api_gen2_attack_path__tenant_id___doc_id__graph_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Attack Path Graph Api Gen2 Attack Path  Tenant Id   Doc Id  Graph Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ueba/sweep-config":{"get":{"tags":["ueba"],"summary":"Get Sweep Config","operationId":"get_sweep_config_api_ueba_sweep_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Sweep Config Api Ueba Sweep Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["ueba"],"summary":"Put Sweep Config","operationId":"put_sweep_config_api_ueba_sweep_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Put Sweep Config Api Ueba Sweep Config Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ueba/detections":{"get":{"tags":["ueba"],"summary":"List Ueba Detections","description":"Paginated Agentic UEBA detections across the selected tenant(s).","operationId":"list_ueba_detections_api_ueba_detections_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Tag"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Filter"}},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"evidence_quality_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Quality Filter"}},{"name":"detection_type_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detection Type Filter"}},{"name":"entity_type_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"timestamp","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":25,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Ueba Detections Api Ueba Detections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ueba/charts":{"get":{"tags":["ueba"],"summary":"Get Ueba Chart Data","description":"Aggregated Agentic UEBA chart data over the ``xdr_type=ueba`` docs.\n\nReturns a UEBA-native chart shape: a detections-over-time timeline with a\nserious overlay, detection-type / entity-type / severity distributions, a\nMITRE distribution, top findings, top affected entities, and a summary\nstrip. Every dimension mirrors a table filter so a chart click narrows the\npage.","operationId":"get_ueba_chart_data_api_ueba_charts_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Tag"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"event_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Filter"}},{"name":"mitre_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Filter"}},{"name":"severity_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity Filter"}},{"name":"kill_chain_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain Filter"}},{"name":"evidence_quality_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Quality Filter"}},{"name":"detection_type_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detection Type Filter"}},{"name":"entity_type_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type Filter"}},{"name":"date_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Filter"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Ueba Chart Data Api Ueba Charts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ueba/entities/risk":{"get":{"tags":["ueba"],"summary":"Get Entity Risk Leaderboard","description":"Top risky entities by decayed cumulative UEBA risk (Pillar 3).\n\nRisk accretes from prior ``xdr_type=ueba`` findings and decays with the\nconfigured half-life, so an entity with several recent medium findings can\noutrank a single stale critical one.","operationId":"get_entity_risk_leaderboard_api_ueba_entities_risk_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Entity Risk Leaderboard Api Ueba Entities Risk Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ueba/entity/{entity_type}/{entity}/timeline":{"get":{"tags":["ueba"],"summary":"Get Entity Risk Timeline","description":"Risk accretion/decay series + detection history for one entity.","operationId":"get_entity_risk_timeline_api_ueba_entity__entity_type___entity__timeline_get","parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"entity","in":"path","required":true,"schema":{"type":"string","title":"Entity"}},{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Tenant"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0,"default":90,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Entity Risk Timeline Api Ueba Entity  Entity Type   Entity  Timeline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ueba/entity/{entity_type}/{entity}/baseline":{"get":{"tags":["ueba"],"summary":"Get Entity Baseline","description":"The stored longitudinal (EWMA) self-baseline profile for one entity.","operationId":"get_entity_baseline_api_ueba_entity__entity_type___entity__baseline_get","parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"entity","in":"path","required":true,"schema":{"type":"string","title":"Entity"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Entity Baseline Api Ueba Entity  Entity Type   Entity  Baseline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ueba/detection/{tenant_id}/{doc_id}":{"get":{"tags":["ueba"],"summary":"Get Ueba Detection Detail","description":"Full UEBA detection document by id (for the detail drawer).","operationId":"get_ueba_detection_detail_api_ueba_detection__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Ueba Detection Detail Api Ueba Detection  Tenant Id   Doc Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/debug-dates":{"get":{"summary":"Debug Dates","description":"Debug endpoint to verify code execution and date calculations.","operationId":"debug_dates_api_posture_debug_dates_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/current":{"get":{"summary":"Get Current Posture","description":"Get the most recent posture report for a tenant.\n\nReturns current security posture score with status interpretation.\nSupports time travel via 'before' parameter.","operationId":"get_current_posture_api_posture_current_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Get report before this ISO timestamp (for time travel)","title":"Before"},"description":"Get report before this ISO timestamp (for time travel)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Current Posture Api Posture Current Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/forecast":{"get":{"summary":"Get Forecast","description":"Get the latest forecast for a tenant.\n\nReturns forecasted posture score with confidence range and accuracy data.","operationId":"get_forecast_api_posture_forecast_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Get forecast before this ISO timestamp","title":"Before"},"description":"Get forecast before this ISO timestamp"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Forecast Api Posture Forecast Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/timeline":{"get":{"summary":"Get Timeline","description":"Get posture timeline data for charting.\n\nReturns hourly posture scores and any corresponding forecasts.\nCached for 10 minutes (WARM tier).","operationId":"get_timeline_api_posture_timeline_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","description":"Hours of history to fetch","default":24,"title":"Hours"},"description":"Hours of history to fetch"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Get timeline relative to this ISO timestamp (for time travel)","title":"Before"},"description":"Get timeline relative to this ISO timestamp (for time travel)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Timeline Api Posture Timeline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/trends":{"get":{"summary":"Get Trends","description":"Daily-averaged posture score series for the historical trend charts.\n\nReturns one point per calendar day (ascending); the client slices this into\n7/14/30/60-day windows to show posture improvement or decline. Cached WARM.","operationId":"get_trends_api_posture_trends_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Days of daily-averaged history","default":60,"title":"Days"},"description":"Days of daily-averaged history"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End time (ISO) for time travel","title":"Before"},"description":"End time (ISO) for time travel"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Trends Api Posture Trends Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/yesterday-forecast":{"get":{"summary":"Get Yesterday Forecast","description":"Get yesterday's forecast that predicted today's posture.\n\nThis shows the forecast that was made yesterday, predicting today's posture,\nalong with accuracy comparison against actual results.\n\nSupports time travel via 'before' parameter - when provided, calculates\n\"yesterday\" and \"today\" relative to that timestamp instead of now.","operationId":"get_yesterday_forecast_api_posture_yesterday_forecast_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Get forecast relative to this ISO timestamp (for time travel)","title":"Before"},"description":"Get forecast relative to this ISO timestamp (for time travel)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Yesterday Forecast Api Posture Yesterday Forecast Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/accuracy":{"get":{"summary":"Get Historic Accuracy","description":"Get historic forecast accuracy metrics.\nCached for 2 hours (COLD tier) - historical data doesn't change often.","operationId":"get_historic_accuracy_api_posture_accuracy_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","description":"Days of history for accuracy calculation","default":30,"title":"Days"},"description":"Days of history for accuracy calculation"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Historic Accuracy Api Posture Accuracy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/report/{report_id}":{"get":{"summary":"Get Report Detail","description":"Get full posture report details by ID.","operationId":"get_report_detail_api_posture_report__report_id__get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Report Detail Api Posture Report  Report Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/entity-logs":{"get":{"summary":"Get Entity Logs","description":"Search for security alerts containing the specified entity value.\n\nFeatures:\n- Searches across multiple field types (hostname, username, IP, process, etc.)\n- Time range filtering (if start_time and end_time provided)\n- Relevance boosting: Logs with state_log_nlp=true are ranked higher\n- Returns ALL matching logs, not just enriched ones\n\nThis ensures analysts see all relevant logs, with the best quality logs ranked first.","operationId":"get_entity_logs_api_posture_entity_logs_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"search","in":"query","required":true,"schema":{"type":"string","description":"Entity value to search for","title":"Search"},"description":"Entity value to search for"},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start time (ISO format) for filtering logs","title":"Start Time"},"description":"Start time (ISO format) for filtering logs"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End time (ISO format) for filtering logs","title":"End Time"},"description":"End time (ISO format) for filtering logs"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"description":"Maximum logs to return","default":100,"title":"Limit"},"description":"Maximum logs to return"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Entity Logs Api Posture Entity Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/report/{report_id}/note":{"post":{"summary":"Add Case Note","description":"Add a case note to a posture report.","operationId":"add_case_note_api_posture_report__report_id__note_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Note"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Case Note Api Posture Report  Report Id  Note Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/report/{report_id}/close":{"post":{"summary":"Close Report","description":"Close a posture report.","operationId":"close_report_api_posture_report__report_id__close_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Close Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Close Report Api Posture Report  Report Id  Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/report/{report_id}/reopen":{"post":{"summary":"Reopen Report","description":"Reopen a closed posture report.","operationId":"reopen_report_api_posture_report__report_id__reopen_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Reopen Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reopen Report Api Posture Report  Report Id  Reopen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/predictions-detections":{"get":{"summary":"Get Predictions Detections","description":"Get predictions and detections for a specific time range.\n\nReturns data from 4 indices:\n- predictions-* : Asset predictions\n- detections-* : Asset detections\n- user_predictions-* : User predictions\n- user_detection-* : User detections\n\nUsed by the \"View Predictions & Detections\" modal in the posture page.","operationId":"get_predictions_detections_api_posture_predictions_detections_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"start_time","in":"query","required":true,"schema":{"type":"string","description":"Start time (ISO format)","title":"Start Time"},"description":"Start time (ISO format)"},{"name":"end_time","in":"query","required":true,"schema":{"type":"string","description":"End time (ISO format)","title":"End Time"},"description":"End time (ISO format)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"description":"Max items per category","default":100,"title":"Limit"},"description":"Max items per category"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Predictions Detections Api Posture Predictions Detections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/report-entities":{"get":{"summary":"Get Report Entities","description":"Get entities from actual security alerts within the report time range.\n\nThis extracts structured entity data (usernames, hostnames, IPs, processes)\nfrom the security_alerts-* index, rather than relying on regex parsing of\nreport text. This ensures ALL entities from the analyzed alerts are shown.\n\nReturns aggregated entity counts sorted by frequency.","operationId":"get_report_entities_api_posture_report_entities_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"start_time","in":"query","required":true,"schema":{"type":"string","description":"Start time (ISO format) for the report period","title":"Start Time"},"description":"Start time (ISO format) for the report period"},{"name":"end_time","in":"query","required":true,"schema":{"type":"string","description":"End time (ISO format) for the report period","title":"End Time"},"description":"End time (ISO format) for the report period"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Report Entities Api Posture Report Entities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posture/explain/chat":{"post":{"summary":"Posture Explain Chat","description":"Stream a SOCGPT answer to a question about a specific posture report/forecast.","operationId":"posture_explain_chat_api_posture_explain_chat_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostureChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sdrs/overview":{"get":{"tags":["sdrs"],"summary":"Get Sdrs Overview","description":"Get Security Data Readiness Score (SDRS) overview for a tenant.\n\nQueries the tenant's sdrs-rollup-v3-* index to get:\n- Latest SDRS snapshot with all metrics\n- Historical trend data for charting\n- Aggregated statistics (total events, average score, etc.)\n\nReturns comprehensive SDRS dashboard data including:\n- Score breakdown (detection, correlation, quality)\n- Pivot field coverage (IP, User, Hostname, Correlation ID)\n- Detection primitives coverage\n- Data quality metrics (structured rate, format breakdown)\n- Observed categories\n- Data sources","operationId":"get_sdrs_overview_api_sdrs_overview_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID (must not be 'all')","title":"Tenant"},"description":"Tenant ID (must not be 'all')"},{"name":"time_range_days","in":"query","required":false,"schema":{"type":"number","minimum":0,"description":"Time range in days (0 means all time). Default 1 day for 24-hour trend.","default":1,"title":"Time Range Days"},"description":"Time range in days (0 means all time). Default 1 day for 24-hour trend."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sdrs Overview Api Sdrs Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/board/{tenant_id}":{"get":{"tags":["kanban"],"summary":"Full Kanban board state","description":"Returns the complete board: all incidents from the posture API enriched with workflow stage, assignee, and notes. This is the primary endpoint for AI SOC agents reading the board state. Filter by `stage` or `priority` to narrow the response.","operationId":"get_kanban_board_api_kanban_board__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","pattern":"^(1h|6h|12h|24h|3d|7d|30d|all)$","default":"24h","title":"Time Range"}},{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to a single stage","title":"Stage"},"description":"Filter to a single stage"},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to a single priority (P1–P4)","title":"Priority"},"description":"Filter to a single priority (P1–P4)"},{"name":"asset_tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sub-Tenant (customer) display filter; scopes the board + banner to that customer's asset IPs. NOT access control.","title":"Asset Tag"},"description":"Sub-Tenant (customer) display filter; scopes the board + banner to that customer's asset IPs. NOT access control."},{"name":"fast","in":"query","required":false,"schema":{"type":"string","pattern":"^(untriaged|all|cases)$","description":"FAST induction filter: untriaged (default) = only entities with NO FAST case (the pre-FAST backlog); cases = only FAST-owned entities; all = everything, annotated via fast_status.","default":"untriaged","title":"Fast"},"description":"FAST induction filter: untriaged (default) = only entities with NO FAST case (the pre-FAST backlog); cases = only FAST-owned entities; all = everything, annotated via fast_status."},{"name":"view","in":"query","required":false,"schema":{"type":"string","description":"Board tab (Phase B): 'open' (default) = active kanban, resolved entities excluded; 'closed' = resolved entities only, rows grouped by disposition (TP/Benign-TP/FP). Any other value is treated as open.","default":"open","title":"View"},"description":"Board tab (Phase B): 'open' (default) = active kanban, resolved entities excluded; 'closed' = resolved entities only, rows grouped by disposition (TP/Benign-TP/FP). Any other value is treated as open."},{"name":"_src","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Internal: '_src=posture' forces the O(estate) posture serve path, bypassing the Phase 2b index read (for live equivalence comparison).","title":" Src"},"description":"Internal: '_src=posture' forces the O(estate) posture serve path, bypassing the Phase 2b index read (for live equivalence comparison)."},{"name":"working","in":"query","required":false,"schema":{"type":"boolean","description":"Open board only: when true, return ONLY the cards for entities with a LIVE actively-worked FAST case (triage/investigate/hunt; PENDING_HITL excluded), fetched by entity id directly and NOT subject to the per-column top-N cap. Every returned card is_working=True.","default":false,"title":"Working"},"description":"Open board only: when true, return ONLY the cards for entities with a LIVE actively-worked FAST case (triage/investigate/hunt; PENDING_HITL excluded), fetched by entity id directly and NOT subject to the per-column top-N cap. Every returned card is_working=True."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KanbanBoard"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coverage/matrix/{tenant_id}":{"get":{"tags":["kanban"],"summary":"Get Attack Coverage","description":"The precomputed ATT&CK coverage matrix for the tenant: per-technique tactic, name, rule count,\nrunnable (telemetry supplies the rule's fields) and firing (live Sigma matches). Empty (not error) when\nthe rollup hasn't run yet, so the UI can show a 'generating…' state.","operationId":"get_attack_coverage_api_coverage_matrix__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Attack Coverage Api Coverage Matrix  Tenant Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/stages/{tenant_id}":{"get":{"tags":["kanban"],"summary":"Stage map for all tracked cards","description":"Returns {entity_key: stage} for every card that has been explicitly staged. Cards absent from this map are implicitly in 'new'.","operationId":"get_kanban_stages_api_kanban_stages__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Get Kanban Stages Api Kanban Stages  Tenant Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["kanban"],"summary":"Reset all workflow stages for a tenant","description":"Clears the stage map, returning all cards to 'new'. Does not clear notes or history.","operationId":"clear_kanban_stages_api_kanban_stages__tenant_id__delete","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/stage/{tenant_id}":{"patch":{"tags":["kanban"],"summary":"Move a card to a new workflow stage","description":"Updates the workflow stage for a single card and records the transition in the card's history. Use `by` to identify the mover (analyst email or 'agent:<name>' for AI agents).","operationId":"update_kanban_stage_api_kanban_stage__tenant_id__patch","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Update Kanban Stage Api Kanban Stage  Tenant Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/stages/{tenant_id}/bulk":{"post":{"tags":["kanban"],"summary":"Batch-move multiple cards","description":"Moves up to 50 cards in a single request. Designed for AI agent batch operations.","operationId":"bulk_update_stages_api_kanban_stages__tenant_id__bulk_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkStageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}},"title":"Response Bulk Update Stages Api Kanban Stages  Tenant Id  Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/notes/{tenant_id}":{"post":{"tags":["kanban"],"summary":"Append a note to a card","description":"Appends a note (analyst observation or agent finding) to a card. Use `author` = 'agent:<name>' for AI-authored notes so they're visually distinct in the UI.","operationId":"add_kanban_note_api_kanban_notes__tenant_id__post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__kanban_api__NoteCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KanbanNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/notes/{tenant_id}/{entity_key}":{"get":{"tags":["kanban"],"summary":"Get all notes for a card","operationId":"get_kanban_notes_api_kanban_notes__tenant_id___entity_key__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"entity_key","in":"path","required":true,"schema":{"type":"string","title":"Entity Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KanbanNote"},"title":"Response Get Kanban Notes Api Kanban Notes  Tenant Id   Entity Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/assign/{tenant_id}":{"post":{"tags":["kanban"],"summary":"Assign a card to an analyst or agent","description":"Assigns responsibility for a card. `assignee` can be an analyst email or an agent identifier (e.g. 'agent:soc-analyst-1').","operationId":"assign_kanban_card_api_kanban_assign__tenant_id__post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KanbanAssignment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/assign/{tenant_id}/{entity_key}":{"get":{"tags":["kanban"],"summary":"Get current assignment for a card","operationId":"get_kanban_assignment_api_kanban_assign__tenant_id___entity_key__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"entity_key","in":"path","required":true,"schema":{"type":"string","title":"Entity Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/KanbanAssignment"},{"type":"null"}],"title":"Response Get Kanban Assignment Api Kanban Assign  Tenant Id   Entity Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/history/{tenant_id}/{entity_key}":{"get":{"tags":["kanban"],"summary":"Stage transition history for a card","description":"Returns the last 20 stage transitions. Useful for agents auditing how a card moved through the workflow.","operationId":"get_kanban_history_api_kanban_history__tenant_id___entity_key__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"entity_key","in":"path","required":true,"schema":{"type":"string","title":"Entity Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KanbanTransition"},"title":"Response Get Kanban History Api Kanban History  Tenant Id   Entity Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/submit-to-fast":{"post":{"tags":["kanban"],"summary":"Kanban Submit To Fast","description":"Force FAST to case + triage this board entity NOW (a T1_TRIAGE seed the worker's orphan sweep\nadvances next cycle), instead of waiting for the admission queue to reach it.","operationId":"kanban_submit_to_fast_api_kanban_submit_to_fast_post","parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","default":"local","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KanbanEntityAction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/adjudicate":{"post":{"tags":["kanban"],"summary":"Kanban Adjudicate","description":"Human adjudicates a board entity ON THE SPOT — no HITL wait. Creates a RESOLVED FAST case with the\nanalyst's verdict and mints a GOLD label immediately (same path as a HITL decision).","operationId":"kanban_adjudicate_api_kanban_adjudicate_post","parameters":[{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","default":"local","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KanbanAdjudicate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/triage-brief":{"get":{"tags":["kanban"],"summary":"Triage Brief","operationId":"triage_brief_api_kanban_triage_brief_get","parameters":[{"name":"entity","in":"query","required":true,"schema":{"type":"string","title":"Entity"}},{"name":"entity_type","in":"query","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","default":"local","title":"Tenant Id"}},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","default":"30d","title":"Time Range"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kanban/log-summary":{"get":{"tags":["kanban"],"summary":"Log Summary","operationId":"log_summary_api_kanban_log_summary_get","parameters":[{"name":"entity","in":"query","required":true,"schema":{"type":"string","title":"Entity"}},{"name":"entity_type","in":"query","required":true,"schema":{"type":"string","title":"Entity Type"}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","default":"local","title":"Tenant Id"}},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","default":"24h","title":"Time Range"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/overview":{"get":{"tags":["fast"],"summary":"Get Fast Overview","description":"Per-tier counts, throughput, disposition mix, SLA, and a MITRE ATT&CK\ntechnique-by-tier matrix — the data behind the Overview panel.","operationId":"get_fast_overview_api_fast_overview_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0.5,"description":"Trend window (days) for throughput","default":7.0,"title":"Days"},"description":"Trend window (days) for throughput"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/incidents":{"get":{"tags":["fast"],"summary":"List Fast Incidents","description":"Case queue for a single tier tab (or the whole board when tier is omitted).\n\nNOTE on tier=\"HITL\" (bug fix, flagged): `current_tier` is not reliably set\nto \"HITL\" for cases awaiting a human decision — a case that escalates to\nHITL from T2/T3 can retain `current_tier` = \"T2\"/\"T3\" upstream. Filtering\ntier=HITL on a strict `current_tier` term match therefore returned an\nempty queue even when PENDING_HITL cases existed. Made robust: a case\ncounts as \"HITL\" if it is tagged current_tier=HITL, OR is currently\nawaiting a decision (state=PENDING_HITL / hitl.pending=true), OR has ever\nreceived one (hitl.decided_by is set) — the latter covers \"show resolved.\"\n\nLive-board vs History (additive, all backward-compatible — default off):\n  - exclude_terminal=true  → live tier boards; keep the tier/state filters\n    but add a `must_not` terms filter on FAST_TERMINAL_STATES so resolved\n    cases drop off.\n  - terminal_only=true     → History archive; a `terms` filter restricting\n    to FAST_TERMINAL_STATES ONLY, the `tier` filter is IGNORED entirely\n    (History spans all tiers), sorted by updated_at desc. Takes precedence\n    over tier and exclude_terminal.\n  - since / until          → an `updated_at` range filter (gte/lte) applied\n    to ANY query (primarily used with terminal_only).\n  - limit / offset         → pagination override; when omitted, the legacy\n    page/size behavior is used unchanged.","operationId":"list_fast_incidents_api_fast_incidents_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by current_tier: T1|T2|T3|HITL","title":"Tier"},"description":"Filter by current_tier: T1|T2|T3|HITL"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by exact case state, e.g. PENDING_HITL","title":"State"},"description":"Filter by exact case state, e.g. PENDING_HITL"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":50,"title":"Size"}},{"name":"exclude_terminal","in":"query","required":false,"schema":{"type":"boolean","description":"Live tier boards: exclude terminal/resolved cases (FAST_TERMINAL_STATES) so resolved cases drop off. Ignored when terminal_only is set.","default":false,"title":"Exclude Terminal"},"description":"Live tier boards: exclude terminal/resolved cases (FAST_TERMINAL_STATES) so resolved cases drop off. Ignored when terminal_only is set."},{"name":"terminal_only","in":"query","required":false,"schema":{"type":"boolean","description":"History archive view: return ONLY terminal/resolved cases, across ALL tiers (the `tier` filter is ignored), sorted by updated_at desc. Wins over tier/exclude_terminal.","default":false,"title":"Terminal Only"},"description":"History archive view: return ONLY terminal/resolved cases, across ALL tiers (the `tier` filter is ignored), sorted by updated_at desc. Wins over tier/exclude_terminal."},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601: include only cases with updated_at >= since","title":"Since"},"description":"ISO-8601: include only cases with updated_at >= since"},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601: include only cases with updated_at <= until","title":"Until"},"description":"ISO-8601: include only cases with updated_at <= until"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"description":"Page-size override (History paginates via limit/offset). Falls back to `size` when omitted.","title":"Limit"},"description":"Page-size override (History paginates via limit/offset). Falls back to `size` when omitted."},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Result offset override. Falls back to (page-1)*size when omitted.","title":"Offset"},"description":"Result offset override. Falls back to (page-1)*size when omitted."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__fast_data__CaseListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/incident/{incident_id}":{"get":{"tags":["fast"],"summary":"Get Fast Case","description":"Full case — attack story, timeline, scope, tier history, and (additively)\nits own recent activity trail, for the case detail modal.","operationId":"get_fast_case_api_fast_incident__incident_id__get","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastCaseDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/clusters":{"get":{"tags":["fast"],"summary":"List Fast Clusters","description":"Browsable incident queue — the top-level discoverability fix. The incident graph is contextual (a\ncase's drawer \"View incident graph\", or a multi-case queue card's `case_count` chip) and there is no\nstandalone Graph tab, so without this an analyst who hasn't hit either affordance can't find a tracked\nincident. This is a real queue over the fast_clusters-* registry (docs/52, written by the grouper —\nsee extraction_worker.fast.incident_grouper._rollup), NOT an abstract dropdown and NOT a live fast_incidents\nquery. Sorted MULTI-CASE first (case_count desc), then max_risk desc, then last_seen desc.\n\nEach row carries a `focus_case_id` — a representative member case (highest disposition rank, then\nhighest risk, mirroring the sibling-ranking in get_fast_case_graph's _DISP_RANK) — so a click can jump\nstraight into GET /case/{focus_case_id}/graph without another lookup round trip. `title` prefers that\nrepresentative case's synthesized one-liner, then its entity_ref, then the registry's raw entities list.","operationId":"list_fast_clusters_api_fast_clusters_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max incidents returned (page cap; registry can grow large)","default":150,"title":"Limit"},"description":"Max incidents returned (page cap; registry can grow large)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/incident/{incident_id}/graph":{"get":{"tags":["fast"],"summary":"Get Fast Case Graph","description":"Incident graph for a case — the entity constellation (this case + the sibling entity-cases it shares\nidentifiers with, re-unifying the fragmented incident) + MITRE tactic coverage. Read-only; degrades to a\nlone focus node when the case has no links.","operationId":"get_fast_case_graph_api_fast_incident__incident_id__graph_get","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/graph/top":{"get":{"tags":["fast"],"summary":"Get Fast Graph Top","description":"Ranked 'most compelling incident' picker for the Graph tab — favors high-signal true_positive/\nuncertain cases with rich related_entities + tactics + estate spread, so the tab opens on a real attack\nstory rather than a lonely node or a benign CDN cluster. Lonely cases (no links, no detections) are\ndropped from the picker entirely.","operationId":"get_fast_graph_top_api_fast_graph_top_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":12,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/activity":{"get":{"tags":["fast"],"summary":"Get Fast Activity","description":"The live agent activity stream — polled every ~4s by the UI. `since`\nshould be the `ts` of the last event the client already has; omit it for\nthe initial load (defaults to the last 15 minutes).","operationId":"get_fast_activity_api_fast_activity_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by tier: T1|T2|T3|HITL","title":"Tier"},"description":"Filter by tier: T1|T2|T3|HITL"},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO8601 cursor — only events strictly after this ts","title":"Since"},"description":"ISO8601 cursor — only events strictly after this ts"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/incident/{incident_id}/decide":{"post":{"tags":["fast"],"summary":"Decide Fast Case","description":"The ONLY write path (docs/49 §8): a HITL analyst decision. Patches\n`hitl.*` + `state`/`current_tier` + appends one `tier_history` entry on the\ncase doc, and appends one best-effort audit event to `fast_activity-*`.\n\nv1 note: \"contain\" records the analyst's authorization only — it does not\nexecute any response action (docs/49 §1: \"Agents never trigger response\nactions in v1\"; actual containment integration is a future increment).","operationId":"decide_fast_case_api_fast_incident__incident_id__decide_post","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/incident/{incident_id}/ask":{"post":{"tags":["fast"],"summary":"Ask Fast Case","description":"Ask SOCGPT a free-form question about this case, grounded in its title,\ndisposition + rationale, attack story, and key evidence.\n\nMirrors app/api/log_details.py's `/explain` endpoint exactly: same LLM\n(`LLMConfig.for_purpose(\"socgpt\")` through `OpenAICompatibleProvider` /\n`ChatMessage`, i.e. the LLM Servers `socgpt` entry) and the same\n`StreamingResponse(text/plain)` contract, so\nthe case-detail drawer's fetch/stream/cancel path is identical to\n`components/alert_drawer.html`'s Ask SOCGPT tab.","operationId":"ask_fast_case_api_fast_incident__incident_id__ask_post","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskSocgptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/incident/{incident_id}/related":{"get":{"tags":["fast"],"summary":"Get Related Fast Incidents","description":"Other FAST cases that share this case's entity_ref, scope (hosts/users/\nIPs), IOC indicators, or kill-chain session — the lateral-movement /\nsame-campaign lens for the case-detail drawer's Related tab.\n\n`entity_ref` is the strongest signal (literally the same actor/asset);\nscope/IOC/kill-chain overlap is corroborating (\"its IOCs/kc_session\", per\nthe FAST evidence layer's `markov_sessions` join — see\napps/extraction-worker/.../fast/evidence.py). Degrades to an empty list\n(never an error) when fast_incidents-* is absent/empty, same as every other\nFAST endpoint.","operationId":"get_related_fast_incidents_api_fast_incident__incident_id__related_get","parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelatedCasesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/doc/{doc_id}":{"get":{"tags":["fast"],"summary":"Get Fast Evidence Doc","description":"Fetch ONE source document by its ES `_id` across the FAST-relevant indices\n(security_alerts / detections / predictions / threatintel / user_detection /\nuser_predictions / asset_detection) and return its `_source`. Backs the\ncase-detail drawer's Supporting Evidence tab: clicking an alert / detection /\nprediction row opens its full source doc in an in-place \"Log Details\" drawer\ninstead of navigating away to Entity Lookup. Degrades to found=false / empty\nsource (never a 500), same as every other FAST endpoint — uses the same\ntenant-scoped `_es_client` + `_safe_search` helpers.","operationId":"get_fast_evidence_doc_api_fast_doc__doc_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastDocResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/control":{"get":{"tags":["fast"],"summary":"Get Fast Control","operationId":"get_fast_control_api_fast_control_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"local","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastControlState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["fast"],"summary":"Set Fast Control","operationId":"set_fast_control_api_fast_control_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"local","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastControlUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FastControlState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fast/command/{command_id}":{"get":{"tags":["fast"],"summary":"Get Fast Command Status","description":"Late-result poll for queued commands (202 responses). Reads the worker's\nresult blob off the child's Redis. 'pending' = not applied yet (worker busy\nor down; the command list is durable). 'not_applicable' = direct-write\n(local) tenant — nothing is ever queued for it.","operationId":"get_fast_command_status_api_fast_command__command_id__get","parameters":[{"name":"command_id","in":"path","required":true,"schema":{"type":"string","title":"Command Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Fast Command Status Api Fast Command  Command Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/missions/overview":{"get":{"tags":["missions"],"summary":"Get Missions Overview","description":"Aggregate the Missions KPIs across the caller's visible tenants.\n\nReturns a flat ``metrics`` dict keyed exactly as the frontend expects\n(see templates/missions/_kpis.html), plus a ``degraded`` flag. Composed\nresult is cached per-caller for a few minutes (see module header).","operationId":"get_missions_overview_api_missions_overview_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"time_range","in":"query","required":false,"schema":{"type":"string","default":"24h","title":"Time Range"}},{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0.5,"description":"FAST throughput trend window (days)","default":7.0,"title":"Days"},"description":"FAST throughput trend window (days)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the short-TTL workspace cache","default":false,"title":"Force Refresh"},"description":"Bypass the short-TTL workspace cache"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/missions/hitl-queue":{"get":{"tags":["missions"],"summary":"Get Missions Hitl Queue","description":"SOC-Analyst widget: pending human-in-the-loop cases across visible tenants.\n\nReuses the FAST case-list handler per tenant (``tier=HITL``,\n``state=PENDING_HITL``), stamps the owning tenant on each row (so the client\ncan target the per-tenant decide endpoint), then sorts by priority → risk →\nrecency and caps to ``limit``. Cached per-caller for a short window (see\nmodule header) — shorter than the aggregate KPIs so decided cases drop out\nquickly.","operationId":"get_missions_hitl_queue_api_missions_hitl_queue_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max rows to return after cross-tenant merge","default":25,"title":"Limit"},"description":"Max rows to return after cross-tenant merge"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the short-TTL workspace cache","default":false,"title":"Force Refresh"},"description":"Bypass the short-TTL workspace cache"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/missions/automation":{"get":{"tags":["missions"],"summary":"Get Missions Automation","description":"SOC-Manager widget: automation-health rollup across visible tenants.\n\nSums the FAST autonomous-outcome counts, recomputes the autonomous rate from\nthe summed components, weights ``llm_used_pct`` by case volume, and merges the\nper-day created / opened-vs-resolved series into a single platform trend.\nComposed result cached per-caller for a few minutes (see module header).","operationId":"get_missions_automation_api_missions_automation_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"minimum":0.5,"description":"Trend window (days)","default":7.0,"title":"Days"},"description":"Trend window (days)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the short-TTL workspace cache","default":false,"title":"Force Refresh"},"description":"Bypass the short-TTL workspace cache"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/missions/risk-trend":{"get":{"tags":["missions"],"summary":"Get Missions Risk Trend","description":"Executive widget: platform-wide security-posture score over time.\n\nFans the per-tenant ``/api/posture/trends`` daily series out across visible\ntenants and averages ``posture_score`` per calendar day (lower = better).\nComposed result cached per-caller for a few minutes (see module header).","operationId":"get_missions_risk_trend_api_missions_risk_trend_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Days of daily-averaged history","default":60,"title":"Days"},"description":"Days of daily-averaged history"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the short-TTL workspace cache","default":false,"title":"Force Refresh"},"description":"Bypass the short-TTL workspace cache"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/missions/exec-value":{"get":{"tags":["missions"],"summary":"Get Missions Exec Value","description":"Executive-workspace value rollup across the caller's visible tenants.\n\nComposes three fail-soft panels the Executive workspace renders in business\nterms (man-hours, dollars, log volume):\n\n* ``fast``    — analyst hours saved by F.A.S.T. autonomous triage vs. humans,\n                plus a dollar estimate at a labeled loaded analyst rate.\n* ``svc``     — log-processing reduction achieved by Semantic Value\n                Classification (SignalGate) + a SIEM cost-savings estimate.\n* ``posture`` — yesterday / today / tomorrow posture \"weather\" (avg across\n                visible tenants), mirroring the Threat Center mini-strip.\n\nRead-only, additive; gated ``dashboard.view`` like the rest of the router.","operationId":"get_missions_exec_value_api_missions_exec_value_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":365,"minimum":1,"description":"Look-back window (days)","default":30.0,"title":"Days"},"description":"Look-back window (days)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the short-TTL workspace cache","default":false,"title":"Force Refresh"},"description":"Bypass the short-TTL workspace cache"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/missions/exec-settings":{"get":{"tags":["missions"],"summary":"Get Missions Exec Settings","operationId":"get_missions_exec_settings_api_missions_exec_settings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["missions"],"summary":"Put Missions Exec Settings","operationId":"put_missions_exec_settings_api_missions_exec_settings_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions":{"get":{"tags":["counter-surveillance"],"summary":"List Missions","description":"Mission list across the caller's visible tenants (newest-updated first).","operationId":"list_missions_api_counter_surveillance_missions_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ACTIVE|CONTAINED|CLOSED","title":"State"},"description":"ACTIVE|CONTAINED|CLOSED"},{"name":"watch_level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"HIGH|MEDIUM|LIGHT|NORMAL","title":"Watch Level"},"description":"HIGH|MEDIUM|LIGHT|NORMAL"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}":{"get":{"tags":["counter-surveillance"],"summary":"Get Mission","description":"Full mission document (current state).","operationId":"get_mission_api_counter_surveillance_missions__mission_id__get","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Tenant hint (else scans visible)","title":"Tenant"},"description":"Tenant hint (else scans visible)"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/timeline":{"get":{"tags":["counter-surveillance"],"summary":"Get Mission Timeline","description":"Append-only progression timeline for a mission (ascending ts) — powers the\nECharts escalation trajectory + event markers.","operationId":"get_mission_timeline_api_counter_surveillance_missions__mission_id__timeline_get","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to one event_type","title":"Event Type"},"description":"Filter to one event_type"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/evidence":{"get":{"tags":["counter-surveillance"],"summary":"Get Mission Evidence","description":"Live evidence feed for a mission's primary entity: the actual recent\nalerts, detection-engine hits and FAST true-positives from the datalake that\ndrive the escalation index — the 'what is actually going on' behind the\nderived numbers. Read-only, best-effort, caller/tenant-scoped.","operationId":"get_mission_evidence_api_counter_surveillance_missions__mission_id__evidence_get","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"window_min","in":"query","required":false,"schema":{"type":"integer","maximum":10080,"minimum":15,"description":"Lookback window (minutes)","default":1440,"title":"Window Min"},"description":"Lookback window (minutes)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":40,"title":"Limit"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/summary":{"post":{"tags":["counter-surveillance"],"summary":"Summarize Mission","description":"Stream a plain-language SOCGPT briefing of a whole surveillance mission.\n\nAssembles the full mission record + measured evidence + notable timeline into a\ncontext block and streams an analyst-oriented summary. Also supports follow-up\nquestions (POST body ``{message, history}``) grounded on the same context.","operationId":"summarize_mission_api_counter_surveillance_missions__mission_id__summary_post","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/metrics":{"get":{"tags":["counter-surveillance"],"summary":"Get Metrics","description":"Program-health metrics (§17): prediction hit-rate, median lead time, and\nde-escalation/auto-close health — the substantiation for \"we see it coming\".","operationId":"get_metrics_api_counter_surveillance_metrics_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/send-to-fast":{"post":{"tags":["counter-surveillance"],"summary":"Send To Fast","description":"Route the mission to FAST / HITL (recommend-only: records intent + audit,\ndoes not execute any containment).","operationId":"send_to_fast_api_counter_surveillance_missions__mission_id__send_to_fast_post","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/watch-level":{"post":{"tags":["counter-surveillance"],"summary":"Set Watch Level","description":"Manually escalate / de-escalate the mission watch level.","operationId":"set_watch_level_api_counter_surveillance_missions__mission_id__watch_level_post","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/entities":{"post":{"tags":["counter-surveillance"],"summary":"Add Entity","description":"Manually add an entity to the mission's Threat Bubble.","operationId":"add_entity_api_counter_surveillance_missions__mission_id__entities_post","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/entities/remove":{"post":{"tags":["counter-surveillance"],"summary":"Remove Entity","description":"Remove an entity from the mission's Threat Bubble.","operationId":"remove_entity_api_counter_surveillance_missions__mission_id__entities_remove_post","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/close":{"post":{"tags":["counter-surveillance"],"summary":"Close Mission","description":"End a mission. An ACTIVE mission at/above the high-risk index requires a\nnon-empty rationale (§12).","operationId":"close_mission_api_counter_surveillance_missions__mission_id__close_post","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/simulate":{"post":{"tags":["counter-surveillance"],"summary":"Simulate Attack","description":"Non-destructive attack simulation: models likely forward path, blast radius,\ncoverage, and mitigations from datalake telemetry. Contacts no endpoint.","operationId":"simulate_attack_api_counter_surveillance_missions__mission_id__simulate_post","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/missions/{mission_id}/action":{"post":{"tags":["counter-surveillance"],"summary":"Take Action","description":"Dispatch a HITL response action for a mission. Recommend-only in this build:\nthe action layer records intent + audit and never fabricates execution.","operationId":"take_action_api_counter_surveillance_missions__mission_id__action_post","parameters":[{"name":"mission_id","in":"path","required":true,"schema":{"type":"string","title":"Mission Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/counter-surveillance/sweep-config":{"get":{"tags":["counter-surveillance"],"summary":"Get Sweep Config","operationId":"get_sweep_config_api_counter_surveillance_sweep_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["counter-surveillance"],"summary":"Put Sweep Config","operationId":"put_sweep_config_api_counter_surveillance_sweep_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/catalog":{"get":{"tags":["rbac-admin"],"summary":"Get Catalog","description":"Return the full permission catalogue (groups, resources, actions)\nin one payload. The role-builder UI hits this once on load and\nrenders the tree from the result.","operationId":"get_catalog_api_admin_rbac_catalog_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Catalog Api Admin Rbac Catalog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/groups":{"get":{"tags":["rbac-admin"],"summary":"List Groups","operationId":"list_groups_api_admin_rbac_groups_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Groups Api Admin Rbac Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["rbac-admin"],"summary":"Upsert Group","operationId":"upsert_group_api_admin_rbac_groups_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Upsert Group Api Admin Rbac Groups Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/groups/{slug}":{"delete":{"tags":["rbac-admin"],"summary":"Delete Group","operationId":"delete_group_api_admin_rbac_groups__slug__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Delete Group Api Admin Rbac Groups  Slug  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/resources":{"get":{"tags":["rbac-admin"],"summary":"List Resources","operationId":"list_resources_api_admin_rbac_resources_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Resources Api Admin Rbac Resources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/resources/{resource}":{"get":{"tags":["rbac-admin"],"summary":"Get Resource","operationId":"get_resource_api_admin_rbac_resources__resource__get","parameters":[{"name":"resource","in":"path","required":true,"schema":{"type":"string","title":"Resource"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Resource Api Admin Rbac Resources  Resource  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/roles":{"get":{"tags":["rbac-admin"],"summary":"List Roles","operationId":"list_roles_api_admin_rbac_roles_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Roles Api Admin Rbac Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["rbac-admin"],"summary":"Create Role","operationId":"create_role_api_admin_rbac_roles_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Create Role Api Admin Rbac Roles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/roles/{role_id}":{"get":{"tags":["rbac-admin"],"summary":"Get Role","operationId":"get_role_api_admin_rbac_roles__role_id__get","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Role Api Admin Rbac Roles  Role Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["rbac-admin"],"summary":"Delete Role","operationId":"delete_role_api_admin_rbac_roles__role_id__delete","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Delete Role Api Admin Rbac Roles  Role Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/roles/{role_id}/permissions":{"put":{"tags":["rbac-admin"],"summary":"Replace Permissions","operationId":"replace_permissions_api_admin_rbac_roles__role_id__permissions_put","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Replace Permissions Api Admin Rbac Roles  Role Id  Permissions Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/roles/{role_id}/sub-tenants":{"get":{"tags":["rbac-admin"],"summary":"List Role Sub Tenants","operationId":"list_role_sub_tenants_api_admin_rbac_roles__role_id__sub_tenants_get","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Role Sub Tenants Api Admin Rbac Roles  Role Id  Sub Tenants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["rbac-admin"],"summary":"Add Role Sub Tenants","operationId":"add_role_sub_tenants_api_admin_rbac_roles__role_id__sub_tenants_post","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Add Role Sub Tenants Api Admin Rbac Roles  Role Id  Sub Tenants Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["rbac-admin"],"summary":"Remove Role Sub Tenants","operationId":"remove_role_sub_tenants_api_admin_rbac_roles__role_id__sub_tenants_delete","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Remove Role Sub Tenants Api Admin Rbac Roles  Role Id  Sub Tenants Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/users/{user_id}/roles":{"get":{"tags":["rbac-admin"],"summary":"List User Roles","description":"List the role IDs currently assigned to ``user_id`` in this tenant.\n\nReturns ``{\"role_ids\": [\"<uuid>\", ...]}``. Used by the User Roles\ntab in the RBAC admin UI to pre-fill the assignment checkboxes.\n\nFor non-sysadmin callers, any sysadmin assignment is filtered out\nof the response so the role's existence stays hidden.","operationId":"list_user_roles_api_admin_rbac_users__user_id__roles_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List User Roles Api Admin Rbac Users  User Id  Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["rbac-admin"],"summary":"Assign User Roles","operationId":"assign_user_roles_api_admin_rbac_users__user_id__roles_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Assign User Roles Api Admin Rbac Users  User Id  Roles Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["rbac-admin"],"summary":"Revoke User Roles","operationId":"revoke_user_roles_api_admin_rbac_users__user_id__roles_delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Revoke User Roles Api Admin Rbac Users  User Id  Roles Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/teams":{"get":{"tags":["rbac-admin"],"summary":"List Teams","operationId":"list_teams_api_admin_rbac_teams_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Teams Api Admin Rbac Teams Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["rbac-admin"],"summary":"Create Team","operationId":"create_team_api_admin_rbac_teams_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Create Team Api Admin Rbac Teams Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/teams/{team_id}":{"put":{"tags":["rbac-admin"],"summary":"Rename Team","operationId":"rename_team_api_admin_rbac_teams__team_id__put","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Rename Team Api Admin Rbac Teams  Team Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["rbac-admin"],"summary":"Delete Team","operationId":"delete_team_api_admin_rbac_teams__team_id__delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Delete Team Api Admin Rbac Teams  Team Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/rbac/teams/{team_id}/members":{"get":{"tags":["rbac-admin"],"summary":"List Team Members","operationId":"list_team_members_api_admin_rbac_teams__team_id__members_get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Team Members Api Admin Rbac Teams  Team Id  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["rbac-admin"],"summary":"Add Team Members","operationId":"add_team_members_api_admin_rbac_teams__team_id__members_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Add Team Members Api Admin Rbac Teams  Team Id  Members Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["rbac-admin"],"summary":"Remove Team Members","operationId":"remove_team_members_api_admin_rbac_teams__team_id__members_delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Remove Team Members Api Admin Rbac Teams  Team Id  Members Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/sub-tenants":{"get":{"tags":["rbac-admin"],"summary":"List Sub Tenants","operationId":"list_sub_tenants_api_admin_sub_tenants_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}}},"title":"Response List Sub Tenants Api Admin Sub Tenants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/correlation-map/graph":{"get":{"tags":["Correlation Map"],"summary":"Get Correlation Map","description":"Get correlation map graph data showing entity co-occurrences. Requires operator or admin role.\n\nBuilds a network graph visualization showing which entities appear\ntogether in security alerts. NOTE: This shows correlations/co-occurrences,\nNOT verified attack relationships or causation.\n\nEntity types:\n- Named threats (when threat names appear in alert text)\n- Event types (categorized from event names)\n- Infrastructure (systems mentioned in alerts)\n- Users (user accounts appearing in alerts)\n\nReturns nodes and edges suitable for graph visualization libraries.","operationId":"get_correlation_map_api_correlation_map_graph_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"time_range","in":"query","required":false,"schema":{"enum":["1h","6h","12h","24h","3d","7d","30d","all"],"type":"string","default":"24h","title":"Time Range"}},{"name":"min_risk_score","in":"query","required":false,"schema":{"type":"number","maximum":100.0,"minimum":0.0,"description":"Minimum risk score filter","default":0.0,"title":"Min Risk Score"},"description":"Minimum risk score filter"},{"name":"max_nodes","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":10,"description":"Maximum number of nodes to return","default":100,"title":"Max Nodes"},"description":"Maximum number of nodes to return"},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass cache and fetch fresh data","default":false,"title":"Force Refresh"},"description":"Bypass cache and fetch fresh data"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrelationMapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tunnel/register":{"post":{"tags":["Tunnel Registration"],"summary":"Register Tunnel Client","description":"Register a new tunnel client.\n\nCalled by clients when they start up and want to register with the host.\nNo authentication required - clients self-register and await admin approval.\n\nIf signature data is provided, it's verified via the host esm-agent before\nregistration is accepted.","operationId":"register_tunnel_client_api_tunnel_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelRegistrationRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tunnel/status/{client_id}":{"get":{"tags":["Tunnel Registration"],"summary":"Get Tunnel Client Status","description":"Get tunnel client status for polling.\n\nClients poll this endpoint to check if they've been approved and get\ntheir allocated ports and authentication token.","operationId":"get_tunnel_client_status_api_tunnel_status__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tunnel/unregister":{"delete":{"tags":["Tunnel Registration"],"summary":"Unregister Tunnel Client","description":"Unregister a tunnel client.\n\nCalled by clients when they want to disconnect from the host.\nRequires the client_id and the Chisel authentication token for verification.\n\nThis marks the client as \"disconnected\" rather than deleting it, so the\nhost admin can see which tenants have disconnected. The record can be\ndismissed from the admin panel later.","operationId":"unregister_tunnel_client_api_tunnel_unregister_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelUnregisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tunnels/local":{"post":{"tags":["Tunnel Registration"],"summary":"Create Local Tenant","description":"Create a local tenant with direct ES/Redis connections.\n\nLocal tenants don't use the tunnel system - they connect directly\nto ES and Redis on the same server. They are auto-approved on creation.","operationId":"create_local_tenant_api_admin_tunnels_local_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalTenantCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tunnels":{"get":{"tags":["Tunnel Registration"],"summary":"List Tunnel Clients","description":"List all tunnel clients with optional status and client_type filters.\n\nQuery params:\n  - status: Filter by status (pending, approved, rejected)\n  - client_type: Filter by client type ('tenant' or 'psrp')","operationId":"list_tunnel_clients_api_admin_tunnels_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"client_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Type"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelClientsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tunnels/{client_id}":{"get":{"tags":["Tunnel Registration"],"summary":"Get Tunnel Client","description":"Get a single tunnel client by ID.","operationId":"get_tunnel_client_api_admin_tunnels__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Tunnel Registration"],"summary":"Update Tunnel Client","description":"Update a tunnel client's details.\n\nAllows updating hostname, description, auth_token, webui_url, and\nfor local tenants: es_url, redis_host, redis_port.","operationId":"update_tunnel_client_api_admin_tunnels__client_id__put","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Tunnel Registration"],"summary":"Delete Tunnel Client","description":"Delete a tunnel client.\n\nRemoves the client from the registry and deallocates any assigned ports.","operationId":"delete_tunnel_client_api_admin_tunnels__client_id__delete","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tunnels/{client_id}/approve":{"post":{"tags":["Tunnel Registration"],"summary":"Approve Tunnel Client","description":"Approve a tunnel client registration.\n\nThis will:\n- Generate an authentication token for the client\n- Allocate a block of ports for the client's services\n- Add the client to the Chisel auth registry\n- Invalidate tenant caches so the new tenant appears immediately","operationId":"approve_tunnel_client_api_admin_tunnels__client_id__approve_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tunnels/{client_id}/reject":{"post":{"tags":["Tunnel Registration"],"summary":"Reject Tunnel Client","description":"Reject a tunnel client registration.\n\nRejected clients are removed from the active tenant list.","operationId":"reject_tunnel_client_api_admin_tunnels__client_id__reject_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelClientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tunnels/{client_id}/dismiss":{"post":{"tags":["Tunnel Registration"],"summary":"Dismiss Disconnected Client","description":"Dismiss a disconnected tenant notification.\n\nRemoves a disconnected client from the registry. This is used to acknowledge\nand clear notifications about tenants that have self-unregistered.","operationId":"dismiss_disconnected_client_api_admin_tunnels__client_id__dismiss_post","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tunnels/bootstrap":{"post":{"tags":["Tunnel Registration"],"summary":"Bootstrap Tunnel Clients","description":"Bootstrap tunnel clients from YAML file.\n\nReads from TUNNEL_CLIENTS_YAML env var or tunnel-clients.yaml in the app directory.","operationId":"bootstrap_tunnel_clients_api_admin_tunnels_bootstrap_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tunnels/port-mappings":{"get":{"tags":["Tunnel Registration"],"summary":"Get Port Mappings","description":"Get all approved port mappings for backend discovery.\n\nReturns a mapping of client_id -> {service_name: remote_port}\nfor all approved clients. Used by backend services to discover\nwhich ports to connect to for each client's services.","operationId":"get_port_mappings_api_admin_tunnels_port_mappings_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelPortMappingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tunnels/chisel-auth":{"get":{"tags":["Tunnel Registration"],"summary":"Get Chisel Auth","description":"Get Chisel auth file content.\n\nReturns auth entries for all approved clients in format \"client_id:token\".\nThis can be used to sync auth to the Chisel server's auth file.","operationId":"get_chisel_auth_api_admin_tunnels_chisel_auth_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChiselAuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/tunnels/chisel-auth":{"get":{"tags":["Tunnel Registration"],"summary":"Get Chisel Auth Internal","description":"Internal endpoint for Chisel auth sync.\n\nReturns auth content for the Chisel auth file without requiring admin authentication.\nThis is intended for internal service-to-service calls from the pre-esm-agent\nrunning in host mode.\n\nNote: This endpoint should only be accessible from within the Kubernetes cluster.\nThe service is not exposed externally, so no additional auth is required.","operationId":"get_chisel_auth_internal_api_internal_tunnels_chisel_auth_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/tunnels/settings/app":{"get":{"tags":["Tunnel Registration"],"summary":"Get App Settings","description":"Get application settings (worker config, mssp_portal_url).","operationId":"get_app_settings_api_admin_tunnels_settings_app_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Tunnel Registration"],"summary":"Update App Settings","description":"Update application settings.","operationId":"update_app_settings_api_admin_tunnels_settings_app_put","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/esm/config":{"get":{"tags":["MSSP Server"],"summary":"Get Mssp Config","description":"Return the configured MSSP URL.\n\nOpen to any authenticated user so a future sidebar widget can render a\n\"managed by MSSP\" badge for non-admins. Non-admins cannot modify the\nURL (POST is gated on `tunnel:manage`).\n\nFalls back to the agent's own `pre-esm-agent:config.host_url` when the\ndashboard's `esm_url` is empty — covers agents registered via CLI/env\noutside the dashboard UI. Self-heals the dashboard's `esm_url` when it\nfinds the agent has a URL we didn't know about, so subsequent reads\nagree without an extra Redis hop.","operationId":"get_mssp_config_api_esm_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MsspConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["MSSP Server"],"summary":"Set Mssp Config","description":"Persist the MSSP URL without triggering registration.\n\nUse `/api/esm/agent/register` to both persist and initiate the\nhandshake with the sidecar. This endpoint exists for save-without-\nconnect scenarios (e.g. staging a URL change before a maintenance\nwindow).","operationId":"set_mssp_config_api_esm_config_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MsspConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MsspConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/esm/agent/register":{"post":{"tags":["MSSP Server"],"summary":"Register Agent","description":"Persist the MSSP URL and tell the local agent to register with it.\n\nReturns the agent's response payload on success. The agent registers\nasynchronously — clients should poll `/api/esm/agent/status` for the\nresulting connection state (`pending_approval` → `approved` →\n`connected`).","operationId":"register_agent_api_esm_agent_register_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRegisterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/esm/agent/status":{"get":{"tags":["MSSP Server"],"summary":"Get Agent Status","description":"Proxy `GET /api/status` on the local pre-esm-agent sidecar.\n\nSurfaces the full agent state machine plus the special `tenant_deleted`\nerror state (the MSSP removed our tenant record). Always asks the agent\n— the agent is the source of truth for registration state. Returns a\nsynthetic `unconfigured` payload only when both the dashboard's\n`esm_url` is empty AND we know the agent has no `host_url` on file,\nwhich avoids surfacing a misleading 502 on a fresh install.\n\nEnriches the response with `host_url` from the agent's own\n`pre-esm-agent:config` hash so the UI can render it even when the\nagent's status JSON doesn't include it.","operationId":"get_agent_status_api_esm_agent_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/esm/agent/unregister":{"delete":{"tags":["MSSP Server"],"summary":"Unregister Agent","description":"Tear down the MSSP relationship: notify agent, clear local state.\n\nThe local Redis copy is cleared even when the agent is unreachable —\nthe MSSP will eventually time the tenant out on its side. Returning a\nsuccess in that case keeps the UI usable when the sidecar is down.","operationId":"unregister_agent_api_esm_agent_unregister_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/esm/settings":{"get":{"tags":["MSSP Server"],"summary":"Get Mssp Settings","description":"Read `allow_remote_config` from the pre-esm-agent settings hash.","operationId":"get_mssp_settings_api_esm_settings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MsspSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["MSSP Server"],"summary":"Update Mssp Settings","description":"Toggle whether the MSSP may modify this tenant's configuration.","operationId":"update_mssp_settings_api_esm_settings_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MsspSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MsspSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/pdf":{"post":{"tags":["Export"],"summary":"Export Pdf","description":"Generate a PDF from markdown content.\n\nThis endpoint renders markdown content into a text-selectable PDF using WeasyPrint.\nThe PDF includes proper styling, headers, and metadata based on the export type.\n\n**Export Types:**\n- `alert`: Security alert report with log details\n- `chat`: SOCGPT conversation export\n\n**Themes:**\n- `dark`: Dark background with light text (matches dashboard)\n- `light`: Light background with dark text (better for printing)\n\n**Metadata Fields (optional):**\n- `doc_id`: Log document ID\n- `timestamp`: Event timestamp\n- `tenant`: Tenant name\n- `classification`: Alert classification\n- `severity`: Alert severity\n- `title`: Custom report title\n\nReturns:\n    PDF file as binary response with appropriate headers for download\n\nRequires:\n    Authentication","operationId":"export_pdf_api_export_pdf_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PDFExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/export/pdf/preview":{"post":{"tags":["Export"],"summary":"Preview Pdf Html","description":"Preview the HTML that would be rendered to PDF.\n\nUseful for debugging PDF layout issues. Returns the rendered HTML\nwith inline styles that would be used for PDF generation.\n\nReturns:\n    HTML content as text/html response\n\nRequires:\n    Authentication","operationId":"preview_pdf_html_api_export_pdf_preview_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PDFExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant/{tenant_id}/config":{"get":{"tags":["tenant-config"],"summary":"List Tenant Applications","description":"List all applications with configuration hashes for a tenant.\n\nReturns the list of discoverable applications (pre-*:config keys)\nand whether the tenant allows remote configuration updates.\n\nGated by the router-level ``tenant_config:read`` permission; the\nper-parameter ``view_roles`` schema decides which settings are\nactually returned to the caller.","operationId":"list_tenant_applications_api_tenant__tenant_id__config_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant/{tenant_id}/config/{application}":{"get":{"tags":["tenant-config"],"summary":"Get Tenant Config","description":"Get configuration parameters for a specific application.\n\nReturns all config parameters the user has permission to view,\nalong with schema metadata and edit permissions.\n\nArgs:\n    tenant_id: The tenant/client ID\n    application: Application name (e.g., \"pre-log2nlp\")\n    hash_key: Redis hash key (defaults to \"config\")\n\nGated by the router-level ``tenant_config:read`` permission; the\nper-parameter ``view_roles`` schema decides which parameters are\nreturned (sysadmin-only parameters are filtered out for admins).","operationId":"get_tenant_config_api_tenant__tenant_id__config__application__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"application","in":"path","required":true,"schema":{"type":"string","title":"Application"}},{"name":"hash_key","in":"query","required":false,"schema":{"type":"string","default":"config","title":"Hash Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant/{tenant_id}/config/{application}/{key}":{"put":{"tags":["tenant-config"],"summary":"Set Tenant Config","description":"Update a single configuration parameter for an application.\n\nThe parameter must pass validation and the user must have\nthe appropriate edit role as defined in the schema.\n\nArgs:\n    tenant_id: The tenant/client ID\n    application: Application name (e.g., \"pre-log2nlp\")\n    key: Parameter key to update\n    body: Request body with hash_key and new value\n\nGated by ``tenant_config:manage``; the per-parameter ``edit_roles``\nschema still blocks writes to sysadmin-only parameters.","operationId":"set_tenant_config_api_tenant__tenant_id__config__application___key__put","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"application","in":"path","required":true,"schema":{"type":"string","title":"Application"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant/{tenant_id}/siem-enabled/{application}":{"put":{"tags":["tenant-config"],"summary":"Set Siem Enabled","description":"Toggle a SIEM destination enabled/disabled.\n\nEach SIEM destination has its own Redis hash (identified by\n``application:hash_key``, e.g. ``pre-log2nlp:splunk``).  The\n``enabled`` field is written directly into that hash.\n\nGated by ``tenant_config:manage``.","operationId":"set_siem_enabled_api_tenant__tenant_id__siem_enabled__application__put","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"application","in":"path","required":true,"schema":{"type":"string","title":"Application"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiemEnabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant/{tenant_id}/config-permission":{"get":{"tags":["tenant-config"],"summary":"Get Tenant Config Permission","description":"Check if the tenant allows remote configuration updates.\n\nReturns the allow_remote_config flag from the tenant's settings.\n\nGated by the router-level ``tenant_config:read`` permission.","operationId":"get_tenant_config_permission_api_tenant__tenant_id__config_permission_get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers":{"get":{"tags":["MCP Management"],"summary":"List Mcp Servers","description":"List all configured MCP servers and their connection status.","operationId":"list_mcp_servers_api_mcp_servers_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["MCP Management"],"summary":"Add Mcp Server","description":"Add a new MCP server.","operationId":"add_mcp_server_api_mcp_servers_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{server_id}/reconnect":{"post":{"tags":["MCP Management"],"summary":"Reconnect Mcp Server","description":"Reconnect to a specific MCP server.","operationId":"reconnect_mcp_server_api_mcp_servers__server_id__reconnect_post","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{server_id}/enabled":{"patch":{"tags":["MCP Management"],"summary":"Set Mcp Server Enabled","description":"Enable or disable a specific MCP server.","operationId":"set_mcp_server_enabled_api_mcp_servers__server_id__enabled_patch","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerEnabledUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{server_id}/tenants":{"patch":{"tags":["MCP Management"],"summary":"Update Mcp Server Tenants","description":"Update tenant access for an MCP server.","operationId":"update_mcp_server_tenants_api_mcp_servers__server_id__tenants_patch","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPTenantMappingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{server_id}":{"get":{"tags":["MCP Management"],"summary":"Get Mcp Server","description":"Get a single MCP server's detail.","operationId":"get_mcp_server_api_mcp_servers__server_id__get","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["MCP Management"],"summary":"Update Mcp Server","description":"Update an existing MCP server's configuration.","operationId":"update_mcp_server_api_mcp_servers__server_id__put","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["MCP Management"],"summary":"Delete Mcp Server","description":"Delete an MCP server.","operationId":"delete_mcp_server_api_mcp_servers__server_id__delete","parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/scan":{"post":{"tags":["MCP Management"],"summary":"Scan Mcp Servers","description":"Scan K8s services for MCP server annotations.","operationId":"scan_mcp_servers_api_mcp_servers_scan_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPScanResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/tools":{"get":{"tags":["MCP Management"],"summary":"List Mcp Tools","description":"List all available MCP tools across all connected servers.","operationId":"list_mcp_tools_api_mcp_tools_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/tools/{tool_name}/test":{"post":{"tags":["MCP Management"],"summary":"Test Mcp Tool","description":"Test an MCP tool by executing it with provided arguments.","operationId":"test_mcp_tool_api_mcp_tools__tool_name__test_post","parameters":[{"name":"tool_name","in":"path","required":true,"schema":{"type":"string","title":"Tool Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPToolTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/health":{"get":{"tags":["MCP Management"],"summary":"Mcp Health","description":"Get MCP subsystem health status (no auth required).","operationId":"mcp_health_api_mcp_health_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/llm-config/models":{"get":{"tags":["LLM Configuration"],"summary":"List Models","description":"List all LLM model configurations.","operationId":"list_models_api_llm_config_models_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["LLM Configuration"],"summary":"Create Model","description":"Create a new LLM model configuration.","operationId":"create_model_api_llm_config_models_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMModelCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/llm-config/models/reset":{"post":{"tags":["LLM Configuration"],"summary":"Reset Models","description":"Reset all LLM model configurations to the built-in defaults.","operationId":"reset_models_api_llm_config_models_reset_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/llm-config/models/{name}":{"put":{"tags":["LLM Configuration"],"summary":"Update Model","description":"Update an existing LLM model configuration.","operationId":"update_model_api_llm_config_models__name__put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMModelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["LLM Configuration"],"summary":"Delete Model","description":"Delete an LLM model configuration.","operationId":"delete_model_api_llm_config_models__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/llm-config/models/test":{"post":{"tags":["LLM Configuration"],"summary":"Test Connection","description":"Send one tiny request using the dialog's unsaved values.\n\nResolution mirrors pre_library LLMConfig: CyberLLM ON clears url/model so\nthe defaults apply; a blank API key falls back to the stored key for\n``name`` (unless ``clear_api_key``), then the default key. Embedding\npurposes are tested with /embeddings, everything else with a one-word\nchat completion. Always returns 200 with ``status`` success|error.","operationId":"test_connection_api_llm_config_models_test_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMConnectionTest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/integrations":{"post":{"tags":["settings-api"],"summary":"Create Integration","description":"Create a new integration in Redis.","operationId":"create_integration_api_settings_integrations_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/WinServerIntegration"},{"$ref":"#/components/schemas/ADDomainControllerIntegration"},{"$ref":"#/components/schemas/OktaIntegration"},{"$ref":"#/components/schemas/CrowdStrikeIntegration"},{"$ref":"#/components/schemas/SentinelOneIntegration"},{"$ref":"#/components/schemas/MicrosoftDefenderIntegration"},{"$ref":"#/components/schemas/PaloAltoFirewallIntegration"},{"$ref":"#/components/schemas/FortinetFirewallIntegration"},{"$ref":"#/components/schemas/CheckPointFirewallIntegration"},{"$ref":"#/components/schemas/LinuxDNSServerIntegration"},{"$ref":"#/components/schemas/LinuxSystemIntegration"},{"$ref":"#/components/schemas/LinuxServerIntegration"},{"$ref":"#/components/schemas/LinuxFirewallIntegration"},{"$ref":"#/components/schemas/GoogleGmailIntegration"},{"$ref":"#/components/schemas/Office365EmailIntegration"},{"$ref":"#/components/schemas/SMTPEmailIntegration"},{"$ref":"#/components/schemas/ServiceNowIntegration"},{"$ref":"#/components/schemas/SlackIntegration"},{"$ref":"#/components/schemas/TeamsIntegration"}],"discriminator":{"propertyName":"type","mapping":{"win-server":"#/components/schemas/WinServerIntegration","ad-domain-controller":"#/components/schemas/ADDomainControllerIntegration","okta":"#/components/schemas/OktaIntegration","edr-crowdstrike":"#/components/schemas/CrowdStrikeIntegration","edr-sentinelone":"#/components/schemas/SentinelOneIntegration","edr-defender":"#/components/schemas/MicrosoftDefenderIntegration","palo-alto-firewall":"#/components/schemas/PaloAltoFirewallIntegration","fortinet-firewall":"#/components/schemas/FortinetFirewallIntegration","checkpoint-firewall":"#/components/schemas/CheckPointFirewallIntegration","linux-dns-server":"#/components/schemas/LinuxDNSServerIntegration","linux-system":"#/components/schemas/LinuxSystemIntegration","linux-server":"#/components/schemas/LinuxServerIntegration","linux-firewall":"#/components/schemas/LinuxFirewallIntegration","google-gmail":"#/components/schemas/GoogleGmailIntegration","office365-email":"#/components/schemas/Office365EmailIntegration","smtp-email":"#/components/schemas/SMTPEmailIntegration","servicenow":"#/components/schemas/ServiceNowIntegration","slack":"#/components/schemas/SlackIntegration","teams":"#/components/schemas/TeamsIntegration"}},"title":"Integration"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["settings-api"],"summary":"List Integrations","description":"List integrations with id, type, address, and (notify) channel.\n\nPass ``?capability=notify`` to return only email/slack/teams\nintegrations — used to populate the Alert Config selectors.","operationId":"list_integrations_api_settings_integrations_get","parameters":[{"name":"capability","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capability"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/alert-delivery":{"get":{"tags":["settings-api"],"summary":"Get Alert Delivery","description":"Return the per-type integration selection used for alert delivery.","operationId":"get_alert_delivery_api_settings_alert_delivery_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings-api"],"summary":"Put Alert Delivery","description":"Save the per-type integration selection.","operationId":"put_alert_delivery_api_settings_alert_delivery_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDeliveryBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/integrations/grouped":{"get":{"tags":["settings-api"],"summary":"List Integrations Grouped","description":"Return all integrations from Redis, grouped by type.","operationId":"list_integrations_grouped_api_settings_integrations_grouped_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Integrations Grouped Api Settings Integrations Grouped Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/integrations/{integration_id}":{"get":{"tags":["settings-api"],"summary":"Get Integration","description":"Get a specific integration with sensitive fields masked.","operationId":"get_integration_api_settings_integrations__integration_id__get","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Integration Api Settings Integrations  Integration Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["settings-api"],"summary":"Update Integration","description":"Update an existing integration in Redis.","operationId":"update_integration_api_settings_integrations__integration_id__put","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/WinServerIntegration"},{"$ref":"#/components/schemas/ADDomainControllerIntegration"},{"$ref":"#/components/schemas/OktaIntegration"},{"$ref":"#/components/schemas/CrowdStrikeIntegration"},{"$ref":"#/components/schemas/SentinelOneIntegration"},{"$ref":"#/components/schemas/MicrosoftDefenderIntegration"},{"$ref":"#/components/schemas/PaloAltoFirewallIntegration"},{"$ref":"#/components/schemas/FortinetFirewallIntegration"},{"$ref":"#/components/schemas/CheckPointFirewallIntegration"},{"$ref":"#/components/schemas/LinuxDNSServerIntegration"},{"$ref":"#/components/schemas/LinuxSystemIntegration"},{"$ref":"#/components/schemas/LinuxServerIntegration"},{"$ref":"#/components/schemas/LinuxFirewallIntegration"},{"$ref":"#/components/schemas/GoogleGmailIntegration"},{"$ref":"#/components/schemas/Office365EmailIntegration"},{"$ref":"#/components/schemas/SMTPEmailIntegration"},{"$ref":"#/components/schemas/ServiceNowIntegration"},{"$ref":"#/components/schemas/SlackIntegration"},{"$ref":"#/components/schemas/TeamsIntegration"}],"discriminator":{"propertyName":"type","mapping":{"win-server":"#/components/schemas/WinServerIntegration","ad-domain-controller":"#/components/schemas/ADDomainControllerIntegration","okta":"#/components/schemas/OktaIntegration","edr-crowdstrike":"#/components/schemas/CrowdStrikeIntegration","edr-sentinelone":"#/components/schemas/SentinelOneIntegration","edr-defender":"#/components/schemas/MicrosoftDefenderIntegration","palo-alto-firewall":"#/components/schemas/PaloAltoFirewallIntegration","fortinet-firewall":"#/components/schemas/FortinetFirewallIntegration","checkpoint-firewall":"#/components/schemas/CheckPointFirewallIntegration","linux-dns-server":"#/components/schemas/LinuxDNSServerIntegration","linux-system":"#/components/schemas/LinuxSystemIntegration","linux-server":"#/components/schemas/LinuxServerIntegration","linux-firewall":"#/components/schemas/LinuxFirewallIntegration","google-gmail":"#/components/schemas/GoogleGmailIntegration","office365-email":"#/components/schemas/Office365EmailIntegration","smtp-email":"#/components/schemas/SMTPEmailIntegration","servicenow":"#/components/schemas/ServiceNowIntegration","slack":"#/components/schemas/SlackIntegration","teams":"#/components/schemas/TeamsIntegration"}},"title":"Integration"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["settings-api"],"summary":"Delete Integration","description":"Delete an integration from Redis.","operationId":"delete_integration_api_settings_integrations__integration_id__delete","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/learning/rules/check":{"post":{"tags":["learning"],"summary":"Check Existing Rules","description":"Check if suppression rules already exist for given entity/event pairs.","operationId":"check_existing_rules_api_learning_rules_check_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/learning/rules":{"post":{"tags":["learning"],"summary":"Create Rules","description":"Create suppression rule(s) for one or more entities.","operationId":"create_rules_api_learning_rules_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["learning"],"summary":"List Rules","description":"List/search suppression rules with pagination.","operationId":"list_rules_api_learning_rules_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_field","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort Field"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"}},{"name":"entity_value","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Value"}},{"name":"predicted_event","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Predicted Event"}},{"name":"created_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},{"name":"source_project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Project"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/learning/rules/{rule_id}":{"put":{"tags":["learning"],"summary":"Update Rule","description":"Update an existing rule's notes.","operationId":"update_rule_api_learning_rules__rule_id__put","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["learning"],"summary":"Delete Rule","description":"Delete a single suppression rule.","operationId":"delete_rule_api_learning_rules__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Tenant ID","title":"Tenant"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-logs":{"get":{"tags":["soar-logs"],"summary":"Get Soar Logs","description":"Fetch SOAR logs from soar-logs-* Elasticsearch index with pagination and search.","operationId":"get_soar_logs_api_soar_logs_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (1-indexed)","default":1,"title":"Page"},"description":"Page number (1-indexed)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Results per page","default":25,"title":"Page Size"},"description":"Results per page"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Keyword search across all fields","title":"Search"},"description":"Keyword search across all fields"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-logs/stats":{"get":{"tags":["soar-logs"],"summary":"Get Soar Log Stats","description":"Aggregated statistics for the SOARGPT dashboard visualizations.","operationId":"get_soar_log_stats_api_soar_logs_stats_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-logs/explain":{"post":{"tags":["soar-logs"],"summary":"Explain Soar Log","description":"Stream an LLM explanation of a raw SOAR log document.","operationId":"explain_soar_log_api_soar_logs_explain_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__soar_logs__ExplainLogRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-logs/conversations":{"get":{"tags":["soar-logs"],"summary":"Get Soar Conversations","description":"Fetch prompt/response logs (event.kind == llm_response) from soar-logs-*.","operationId":"get_soar_conversations_api_soar_logs_conversations_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-logs/purge":{"delete":{"tags":["soar-logs"],"summary":"Purge Soar Logs","description":"Delete all soar-logs-* indices. Admin role required.","operationId":"purge_soar_logs_api_soar_logs_purge_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/breach-logs":{"get":{"tags":["breach-logs"],"summary":"Get Breach Logs","description":"Fetch BreachGPT logs from breachgpt-* with pagination and search.","operationId":"get_breach_logs_api_breach_logs_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/breach-logs/stats":{"get":{"tags":["breach-logs"],"summary":"Get Breach Log Stats","description":"Aggregated statistics for the BreachGPT dashboard.","operationId":"get_breach_log_stats_api_breach_logs_stats_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/breach-logs/explain":{"post":{"tags":["breach-logs"],"summary":"Explain Breach Log","description":"Stream an LLM explanation of a raw BreachGPT log document.","operationId":"explain_breach_log_api_breach_logs_explain_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainBreachLogRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/breach-logs/conversations":{"get":{"tags":["breach-logs"],"summary":"Get Breach Conversations","description":"Fetch prompt/response logs (event.kind == llm_response) from breachgpt-*.","operationId":"get_breach_conversations_api_breach_logs_conversations_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompt-reports/prompts":{"get":{"tags":["prompt-reports"],"summary":"List Prompts For Resource Catalogue","description":"Resource catalogue for pre-alerts-svc — returns {id, label} pairs\nfor scheduled prompts so users can subscribe to specific reports.","operationId":"list_prompts_for_resource_catalogue_api_prompt_reports_prompts_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompt-reports/scheduled-prompts":{"get":{"tags":["prompt-reports"],"summary":"List Scheduled Prompts","description":"List all scheduled prompts.","operationId":"list_scheduled_prompts_api_prompt_reports_scheduled_prompts_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["prompt-reports"],"summary":"Create Scheduled Prompt","description":"Create a new scheduled prompt.","operationId":"create_scheduled_prompt_api_prompt_reports_scheduled_prompts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledPromptCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompt-reports/scheduled-prompts/{prompt_id}":{"put":{"tags":["prompt-reports"],"summary":"Update Scheduled Prompt","description":"Update an existing scheduled prompt.","operationId":"update_scheduled_prompt_api_prompt_reports_scheduled_prompts__prompt_id__put","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledPromptCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prompt-reports"],"summary":"Delete Scheduled Prompt","description":"Delete a scheduled prompt.","operationId":"delete_scheduled_prompt_api_prompt_reports_scheduled_prompts__prompt_id__delete","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompt-reports/scheduled-prompts/{prompt_id}/toggle":{"patch":{"tags":["prompt-reports"],"summary":"Toggle Scheduled Prompt","description":"Enable or disable a scheduled prompt.","operationId":"toggle_scheduled_prompt_api_prompt_reports_scheduled_prompts__prompt_id__toggle_patch","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledPromptToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompt-reports/generate":{"post":{"tags":["prompt-reports"],"summary":"Generate Report Endpoint","description":"Run a scheduled prompt NOW — generates content via SOCGPT and renders PDF inline.","operationId":"generate_report_endpoint_api_prompt_reports_generate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompt-reports/reports":{"get":{"tags":["prompt-reports"],"summary":"List Reports","description":"List generated reports with pagination and search.","operationId":"list_reports_api_prompt_reports_reports_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"date_created","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompt-reports/reports/{file_name}":{"get":{"tags":["prompt-reports"],"summary":"Download Report","description":"Download a report PDF by its doc_id (exposed via file_name field in list).","operationId":"download_report_api_prompt_reports_reports__file_name__get","parameters":[{"name":"file_name","in":"path","required":true,"schema":{"type":"string","title":"File Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["prompt-reports"],"summary":"Delete Report","description":"Delete a single report by its doc_id (supplied as file_name).","operationId":"delete_report_api_prompt_reports_reports__file_name__delete","parameters":[{"name":"file_name","in":"path","required":true,"schema":{"type":"string","title":"File Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompt-reports/reports/all":{"delete":{"tags":["prompt-reports"],"summary":"Delete All Reports","description":"Delete all reports (optionally filtered by search) from pre-s3.","operationId":"delete_all_reports_api_prompt_reports_reports_all_delete","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/prompt-reports/reports/bulk-delete":{"post":{"tags":["prompt-reports"],"summary":"Bulk Delete Reports","description":"Delete multiple reports by doc_id (supplied as file_names in the request).","operationId":"bulk_delete_reports_api_prompt_reports_reports_bulk_delete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__prompt_reports__BulkDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/expand-subscribers":{"post":{"tags":["internal-subscribers"],"summary":"Expand Subscribers","operationId":"expand_subscribers_api_internal_expand_subscribers_post","parameters":[{"name":"X-PRE-Source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Pre-Source"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/expand-recipients":{"post":{"tags":["internal-recipients"],"summary":"Expand Recipients","operationId":"expand_recipients_api_internal_expand_recipients_post","parameters":[{"name":"X-PRE-Source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Pre-Source"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandRecipientsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpandRecipientsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/resolve-user-emails":{"post":{"tags":["internal-recipients"],"summary":"Resolve User Emails","description":"Reverse of expand-recipients: take user_ids, return per-user\nemails. Used by the pre-alerts-svc email channel when it has a\nRecipient.UserID but no Email (e.g. a subscription-derived\ndelivery) and needs to know where to send.\n\nFail-open: unknown users are silently omitted; Keycloak errors are\nlogged and dropped.","operationId":"resolve_user_emails_api_internal_resolve_user_emails_post","parameters":[{"name":"X-PRE-Source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Pre-Source"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveUserEmailsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveUserEmailsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/proxy/alerts/{subpath}":{"post":{"tags":["alerts-proxy"],"summary":"Proxy","description":"Forward ``/proxy/alerts/<subpath>`` to ``URL_ALERTS/<subpath>``.\n\nStamps server-side identity headers from the authenticated user\n(overlaying the tenant id with the browser-supplied\n``X-PRE-Tenant-Id`` so the operator can switch tenants in the\npanel without re-authenticating). The browser's Content-Type is\npreserved; query string and body pass through unchanged.","operationId":"proxy_proxy_alerts__subpath__post","parameters":[{"name":"subpath","in":"path","required":true,"schema":{"type":"string","title":"Subpath"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["alerts-proxy"],"summary":"Proxy","description":"Forward ``/proxy/alerts/<subpath>`` to ``URL_ALERTS/<subpath>``.\n\nStamps server-side identity headers from the authenticated user\n(overlaying the tenant id with the browser-supplied\n``X-PRE-Tenant-Id`` so the operator can switch tenants in the\npanel without re-authenticating). The browser's Content-Type is\npreserved; query string and body pass through unchanged.","operationId":"proxy_proxy_alerts__subpath__post","parameters":[{"name":"subpath","in":"path","required":true,"schema":{"type":"string","title":"Subpath"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["alerts-proxy"],"summary":"Proxy","description":"Forward ``/proxy/alerts/<subpath>`` to ``URL_ALERTS/<subpath>``.\n\nStamps server-side identity headers from the authenticated user\n(overlaying the tenant id with the browser-supplied\n``X-PRE-Tenant-Id`` so the operator can switch tenants in the\npanel without re-authenticating). The browser's Content-Type is\npreserved; query string and body pass through unchanged.","operationId":"proxy_proxy_alerts__subpath__post","parameters":[{"name":"subpath","in":"path","required":true,"schema":{"type":"string","title":"Subpath"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["alerts-proxy"],"summary":"Proxy","description":"Forward ``/proxy/alerts/<subpath>`` to ``URL_ALERTS/<subpath>``.\n\nStamps server-side identity headers from the authenticated user\n(overlaying the tenant id with the browser-supplied\n``X-PRE-Tenant-Id`` so the operator can switch tenants in the\npanel without re-authenticating). The browser's Content-Type is\npreserved; query string and body pass through unchanged.","operationId":"proxy_proxy_alerts__subpath__post","parameters":[{"name":"subpath","in":"path","required":true,"schema":{"type":"string","title":"Subpath"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["alerts-proxy"],"summary":"Proxy","description":"Forward ``/proxy/alerts/<subpath>`` to ``URL_ALERTS/<subpath>``.\n\nStamps server-side identity headers from the authenticated user\n(overlaying the tenant id with the browser-supplied\n``X-PRE-Tenant-Id`` so the operator can switch tenants in the\npanel without re-authenticating). The browser's Content-Type is\npreserved; query string and body pass through unchanged.","operationId":"proxy_proxy_alerts__subpath__post","parameters":[{"name":"subpath","in":"path","required":true,"schema":{"type":"string","title":"Subpath"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants":{"get":{"tags":["alerts-proxy"],"summary":"Admin Tenants","description":"JSON list of tenants for admin UIs.\n\nESM has historically passed tenants to Jinja templates only;\nAlpine.js panels (specifically the Alert Config panel introduced\nalongside this proxy) need them via JSON instead. Returns\n``{\"tenants\": [{\"id\": \"<id>\", \"name\": \"<id>\"}, ...]}``.\n\nNames equal ids for now — ESM's :mod:`app.config` TenantConfig\ndoesn't expose a separate human-friendly display name, and the\nAlpine panel only renders the id anyway. Wire up a real name\nsource the day TenantConfig grows one.","operationId":"admin_tenants_api_admin_tenants_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}}},"title":"Response Admin Tenants Api Admin Tenants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-schedules/actions":{"get":{"tags":["soar-schedules"],"summary":"List Scheduled Actions","description":"List all scheduled SOAR actions.","operationId":"list_scheduled_actions_api_soar_schedules_actions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["soar-schedules"],"summary":"Create Scheduled Action","description":"Create a new scheduled SOAR action.","operationId":"create_scheduled_action_api_soar_schedules_actions_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledActionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-schedules/catalogue":{"get":{"tags":["soar-schedules"],"summary":"List Actions For Resource Catalogue","description":"Resource catalogue for the subscription UI — returns {id, label} pairs\nso a soar_schedule subscription shows the action title instead of a raw\nUUID. Mirrors prompt_reports.list_prompts_for_resource_catalogue.","operationId":"list_actions_for_resource_catalogue_api_soar_schedules_catalogue_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-schedules/actions/{action_id}":{"put":{"tags":["soar-schedules"],"summary":"Update Scheduled Action","description":"Update an existing scheduled SOAR action.","operationId":"update_scheduled_action_api_soar_schedules_actions__action_id__put","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledActionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["soar-schedules"],"summary":"Delete Scheduled Action","description":"Delete a scheduled SOAR action.\n\nExecution history is retained (action_id column is set NULL via FK\nON DELETE SET NULL) — matches legacy behaviour where deleting a\nschedule did not purge execution-history.json.","operationId":"delete_scheduled_action_api_soar_schedules_actions__action_id__delete","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-schedules/actions/{action_id}/toggle":{"patch":{"tags":["soar-schedules"],"summary":"Toggle Scheduled Action","description":"Toggle an action on/off.","operationId":"toggle_scheduled_action_api_soar_schedules_actions__action_id__toggle_patch","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledActionToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-schedules/actions/{action_id}/run":{"post":{"tags":["soar-schedules"],"summary":"Run Action Now","description":"Manually trigger execution of a scheduled action in the background.\n\nReturns immediately so the browser doesn't hang. The user can check\nthe execution history modal for results.","operationId":"run_action_now_api_soar_schedules_actions__action_id__run_post","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/soar-schedules/history":{"get":{"tags":["soar-schedules"],"summary":"Get Execution History","description":"Get execution history, optionally filtered by action_id.","operationId":"get_execution_history_api_soar_schedules_history_get","parameters":[{"name":"action_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["soar-schedules"],"summary":"Clear Execution History","description":"Clear all execution history.","operationId":"clear_execution_history_api_soar_schedules_history_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/storage-stats":{"get":{"tags":["data-export"],"summary":"Get Storage Stats","description":"Return current ES storage stats (live query). Used for stat cards.","operationId":"get_storage_stats_api_data_export_storage_stats_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/es-indices":{"get":{"tags":["data-export"],"summary":"List Es Indices","description":"Return list of ES indices with sizes, for the manual export picker.","operationId":"list_es_indices_api_data_export_es_indices_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/storage-history":{"get":{"tags":["data-export"],"summary":"Get Storage History","description":"Return time-series from es_storage_snapshots. Default 7 days (168 hours).","operationId":"get_storage_history_api_data_export_storage_history_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8760,"minimum":1,"default":168,"title":"Hours"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by tenant (default: platform)","title":"Tenant"},"description":"Filter by tenant (default: platform)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/connector-history":{"get":{"tags":["data-export"],"summary":"Get Connector History","description":"Return time-series from connector_snapshots. Default 7 days.","operationId":"get_connector_history_api_data_export_connector_history_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8760,"minimum":1,"default":168,"title":"Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/connectors":{"get":{"tags":["data-export"],"summary":"List Connectors","description":"List DATA_EXPORT connector instances.","operationId":"list_connectors_api_data_export_connectors_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["data-export"],"summary":"Create Connector Instance","description":"Create a new DATA_EXPORT connector instance.","operationId":"create_connector_instance_api_data_export_connectors_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConnectorInstanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/registry":{"get":{"tags":["data-export"],"summary":"List Registry","description":"List DATA_EXPORT connector types with schemas.","operationId":"list_registry_api_data_export_registry_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/registry/{connector_type}":{"get":{"tags":["data-export"],"summary":"Get Registry Type","description":"Get a single connector type with schema.","operationId":"get_registry_type_api_data_export_registry__connector_type__get","parameters":[{"name":"connector_type","in":"path","required":true,"schema":{"type":"string","title":"Connector Type"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/registry/{connector_type}/logo":{"get":{"tags":["data-export"],"summary":"Get Registry Logo","description":"Proxy connector logo from connector-manager.","operationId":"get_registry_logo_api_data_export_registry__connector_type__logo_get","parameters":[{"name":"connector_type","in":"path","required":true,"schema":{"type":"string","title":"Connector Type"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/connectors/{instance_id}/config":{"get":{"tags":["data-export"],"summary":"Get Connector Config","description":"Fetch connector instance config for editing.","operationId":"get_connector_config_api_data_export_connectors__instance_id__config_get","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/connectors/{instance_id}":{"put":{"tags":["data-export"],"summary":"Update Connector Instance","description":"Update a DATA_EXPORT connector instance.","operationId":"update_connector_instance_api_data_export_connectors__instance_id__put","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConnectorInstanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["data-export"],"summary":"Delete Connector Instance","description":"Delete a DATA_EXPORT connector instance.","operationId":"delete_connector_instance_api_data_export_connectors__instance_id__delete","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/all-archives":{"get":{"tags":["data-export"],"summary":"List All Archives","description":"Aggregate archives from all DATA_EXPORT connectors.\n\nFetches GET /api/v1/archives from each connector in parallel, tags each\narchive with connector_id and connector_name for display.","operationId":"list_all_archives_api_data_export_all_archives_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/all-jobs":{"get":{"tags":["data-export"],"summary":"List All Jobs","description":"Aggregate jobs from all DATA_EXPORT connectors.\n\nFetches GET /api/v1/jobs from each connector in parallel, tags each\njob with connector_id and connector_name for display.","operationId":"list_all_jobs_api_data_export_all_jobs_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/connectors/{instance_id}/status":{"get":{"tags":["data-export"],"summary":"Get Connector Status","description":"Read connector status from connector-manager API.","operationId":"get_connector_status_api_data_export_connectors__instance_id__status_get","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/connectors/{instance_id}/archives":{"get":{"tags":["data-export"],"summary":"List Archives","description":"Proxy to connector's GET /api/v1/archives.","operationId":"list_archives_api_data_export_connectors__instance_id__archives_get","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["data-export"],"summary":"Delete Archive","description":"Proxy to connector's DELETE /api/v1/archives.","operationId":"delete_archive_api_data_export_connectors__instance_id__archives_delete","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"index_name","in":"query","required":true,"schema":{"type":"string","description":"Index name of the archive","title":"Index Name"},"description":"Index name of the archive"},{"name":"date","in":"query","required":true,"schema":{"type":"string","description":"Archive date (YYYY-MM-DD)","title":"Date"},"description":"Archive date (YYYY-MM-DD)"},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/connectors/{instance_id}/jobs":{"get":{"tags":["data-export"],"summary":"List Jobs","description":"Proxy to connector's GET /api/v1/jobs.","operationId":"list_jobs_api_data_export_connectors__instance_id__jobs_get","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["data-export"],"summary":"Create Job","description":"Proxy to connector's POST /api/v1/jobs.","operationId":"create_job_api_data_export_connectors__instance_id__jobs_post","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/connectors/{instance_id}/jobs/{job_id}":{"get":{"tags":["data-export"],"summary":"Get Job","description":"Proxy to connector's GET /api/v1/jobs/{job_id}.","operationId":"get_job_api_data_export_connectors__instance_id__jobs__job_id__get","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["data-export"],"summary":"Cancel Job","description":"Proxy to connector's DELETE /api/v1/jobs/{job_id}.","operationId":"cancel_job_api_data_export_connectors__instance_id__jobs__job_id__delete","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Route through gRPC tunnel to remote tenant","title":"Tenant"},"description":"Route through gRPC tunnel to remote tenant"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/pod-config":{"get":{"tags":["data-export"],"summary":"List Pod Applications","description":"List applications with configuration hashes from local Redis DB 0.\n\nFilters to pre-archive application only. Returns the same response shape\nas the tenant config API for use with the shared config panel.","operationId":"list_pod_applications_api_data_export_pod_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/pod-config/{application}":{"get":{"tags":["data-export"],"summary":"Get Pod Config","description":"Get configuration parameters for a pod application from local Redis DB 0.\n\nReturns schema-driven parameters with RBAC, same shape as tenant config API.","operationId":"get_pod_config_api_data_export_pod_config__application__get","parameters":[{"name":"application","in":"path","required":true,"schema":{"type":"string","title":"Application"}},{"name":"hash_key","in":"query","required":false,"schema":{"type":"string","default":"config","title":"Hash Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/pod-config/{application}/{key}":{"put":{"tags":["data-export"],"summary":"Set Pod Config","description":"Update a single configuration parameter for a pod application in local Redis DB 0.","operationId":"set_pod_config_api_data_export_pod_config__application___key__put","parameters":[{"name":"application","in":"path","required":true,"schema":{"type":"string","title":"Application"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/global-config":{"get":{"tags":["data-export"],"summary":"Get Global Config","description":"Read global archive settings from pre-archive:global hash.","operationId":"get_global_config_api_data_export_global_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["data-export"],"summary":"Update Global Config","description":"Update global archive settings on pre-archive:global hash.","operationId":"update_global_config_api_data_export_global_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGlobalConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/index-mappings":{"get":{"tags":["data-export"],"summary":"Get Index Mappings","description":"Read per-index connector instance assignments from archive config.","operationId":"get_index_mappings_api_data_export_index_mappings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/index-mappings/{index_name}":{"put":{"tags":["data-export"],"summary":"Update Index Mapping","description":"Update fields on the pre-archive:{index_name} Redis hash.","operationId":"update_index_mapping_api_data_export_index_mappings__index_name__put","parameters":[{"name":"index_name","in":"path","required":true,"schema":{"type":"string","title":"Index Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIndexMappingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/system-reset":{"post":{"tags":["data-export"],"summary":"Start System Reset","description":"Initiate a data-lake reset. Returns the job_id to stream progress from.\n\nPass-through of the sidecar's responses:\n  202 {job_id}            -> reset started\n  409 {job_id, busy}      -> a reset is already running; reconnect to job_id","operationId":"start_system_reset_api_data_export_system_reset_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-export/system-reset/stream/{job_id}":{"get":{"tags":["data-export"],"summary":"Stream System Reset","description":"Proxy the sidecar's SSE progress stream for a reset job.\n\nRegistered in the ActivityMiddleware skip-list — BaseHTTPMiddleware would\notherwise buffer the StreamingResponse and break live output.","operationId":"stream_system_reset_api_data_export_system_reset_stream__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors":{"get":{"tags":["connectors"],"summary":"List For Resource Catalogue","description":"Resource catalogue endpoint for pre-alerts-svc subscription UI.\n\nReturns {id, label} pairs alerts-svc can render in a connector picker\non the user's notification preferences page. Maps to resource_kind=connector\nin the alerts-svc resource client.","operationId":"list_for_resource_catalogue_api_connectors_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/instances":{"get":{"tags":["connectors"],"summary":"List Instances","operationId":"list_instances_api_connectors_instances_get","parameters":[{"name":"connector_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connector Type"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["connectors"],"summary":"Create Instance","operationId":"create_instance_api_connectors_instances_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInstanceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/instances/tags":{"get":{"tags":["connectors"],"summary":"List Tags","operationId":"list_tags_api_connectors_instances_tags_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/instances/health":{"get":{"tags":["connectors"],"summary":"Instance Health","description":"Healthcheck for the downstream Connector Manager service.","operationId":"instance_health_api_connectors_instances_health_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/instances/{instance_id}/certificates":{"post":{"tags":["connectors"],"summary":"Upload Certificates","description":"Upload TLS certificate and key for a connector instance.","operationId":"upload_certificates_api_connectors_instances__instance_id__certificates_post","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_certificates_api_connectors_instances__instance_id__certificates_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["connectors"],"summary":"Get Certificate Info","description":"Check if certificates exist for a connector instance.","operationId":"get_certificate_info_api_connectors_instances__instance_id__certificates_get","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["connectors"],"summary":"Delete Certificates","description":"Delete certificates for a connector instance.","operationId":"delete_certificates_api_connectors_instances__instance_id__certificates_delete","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/instances/{instance_id}":{"get":{"tags":["connectors"],"summary":"Get Instance","operationId":"get_instance_api_connectors_instances__instance_id__get","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["connectors"],"summary":"Update Instance","operationId":"update_instance_api_connectors_instances__instance_id__put","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInstanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["connectors"],"summary":"Delete Instance","operationId":"delete_instance_api_connectors_instances__instance_id__delete","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/instances/{instance_id}/tag":{"patch":{"tags":["connectors"],"summary":"Update Tag","operationId":"update_tag_api_connectors_instances__instance_id__tag_patch","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/instances/{instance_id}/connection-test":{"post":{"tags":["connectors"],"summary":"Test Connection","operationId":"test_connection_api_connectors_instances__instance_id__connection_test_post","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/instances/{instance_id}/reset-state":{"post":{"tags":["connectors"],"summary":"Reset Instance State","description":"Reset connector state, causing it to recollect all data.","operationId":"reset_instance_state_api_connectors_instances__instance_id__reset_state_post","parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/registry":{"get":{"tags":["connectors"],"summary":"List Registry","operationId":"list_registry_api_connectors_registry_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/registry/{connector_type}":{"get":{"tags":["connectors"],"summary":"Get Registry Entry","operationId":"get_registry_entry_api_connectors_registry__connector_type__get","parameters":[{"name":"connector_type","in":"path","required":true,"schema":{"type":"string","title":"Connector Type"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/registry/{connector_type}/logo":{"get":{"tags":["connectors"],"summary":"Get Logo","operationId":"get_logo_api_connectors_registry__connector_type__logo_get","parameters":[{"name":"connector_type","in":"path","required":true,"schema":{"type":"string","title":"Connector Type"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/alerts":{"get":{"tags":["connectors"],"summary":"List Alerts","operationId":"list_alerts_api_connectors_alerts_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["connectors"],"summary":"Create Alert","operationId":"create_alert_api_connectors_alerts_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAlertRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/alerts/{connector_name}":{"get":{"tags":["connectors"],"summary":"Get Alert","operationId":"get_alert_api_connectors_alerts__connector_name__get","parameters":[{"name":"connector_name","in":"path","required":true,"schema":{"type":"string","title":"Connector Name"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["connectors"],"summary":"Update Alert","operationId":"update_alert_api_connectors_alerts__connector_name__put","parameters":[{"name":"connector_name","in":"path","required":true,"schema":{"type":"string","title":"Connector Name"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAlertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["connectors"],"summary":"Delete Alert","operationId":"delete_alert_api_connectors_alerts__connector_name__delete","parameters":[{"name":"connector_name","in":"path","required":true,"schema":{"type":"string","title":"Connector Name"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/alerts/{connector_name}/emails":{"post":{"tags":["connectors"],"summary":"Add Alert Email","operationId":"add_alert_email_api_connectors_alerts__connector_name__emails_post","parameters":[{"name":"connector_name","in":"path","required":true,"schema":{"type":"string","title":"Connector Name"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddEmailRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/alerts/{connector_name}/add-me":{"post":{"tags":["connectors"],"summary":"Add Current User To Alert","description":"Add the current user's email to the alert's recipient list.","operationId":"add_current_user_to_alert_api_connectors_alerts__connector_name__add_me_post","parameters":[{"name":"connector_name","in":"path","required":true,"schema":{"type":"string","title":"Connector Name"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/alerts/{connector_name}/emails/{email}":{"delete":{"tags":["connectors"],"summary":"Remove Alert Email","operationId":"remove_alert_email_api_connectors_alerts__connector_name__emails__email__delete","parameters":[{"name":"connector_name","in":"path","required":true,"schema":{"type":"string","title":"Connector Name"}},{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/metrics":{"get":{"tags":["connectors"],"summary":"Get Connector Metrics","description":"Get event counts from Elasticsearch for connector sources.","operationId":"get_connector_metrics_api_connectors_metrics_get","parameters":[{"name":"sources","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated source identifiers","title":"Sources"},"description":"Comma-separated source identifiers"},{"name":"breakdown","in":"query","required":false,"schema":{"type":"boolean","description":"Return per-source breakdown","default":false,"title":"Breakdown"},"description":"Return per-source breakdown"},{"name":"high_value_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only count high-value events (score >= 80)","default":false,"title":"High Value Only"},"description":"Only count high-value events (score >= 80)"},{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/start":{"post":{"tags":["test-deployment"],"summary":"Start Run","description":"Start a new in-tenant test-deployment run.","operationId":"start_run_api_test_deployment_start_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/status":{"get":{"tags":["test-deployment"],"summary":"Get Status","description":"Return the current (active or most recent) run, or null.","operationId":"get_status_api_test_deployment_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/runs/{run_id}":{"get":{"tags":["test-deployment"],"summary":"Get Run","operationId":"get_run_api_test_deployment_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/{run_id}/cancel":{"post":{"tags":["test-deployment"],"summary":"Cancel Run","description":"Cancel an in-flight run and stop the CyberSim campaign.","operationId":"cancel_run_api_test_deployment__run_id__cancel_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/history":{"get":{"tags":["test-deployment"],"summary":"Get History","operationId":"get_history_api_test_deployment_history_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/clear":{"post":{"tags":["test-deployment"],"summary":"Clear All","description":"Delete ALL stored test-deployment run data (destructive, admin-gated).\n\n409 if a run is in flight — cancel it first.","operationId":"clear_all_api_test_deployment_clear_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/system-metrics":{"get":{"tags":["test-deployment"],"summary":"Get System Metrics","description":"Live host (CPU/mem/disk/network) + microservices-environment counters.\n\nPolled by the Test Deployment page on a short, user-configurable interval.\nHigh-read, no side effects — deliberately not audited to keep the activity\nlog from filling with poll noise.","operationId":"get_system_metrics_api_test_deployment_system_metrics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/{run_id}/explain/chat":{"post":{"tags":["test-deployment"],"summary":"Explain Chat","description":"Stream a SOCGPT answer to a question grounded in one run's result matrix.","operationId":"explain_chat_api_test_deployment__run_id__explain_chat_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/logs/collect":{"post":{"tags":["test-deployment"],"summary":"Collect Logs","description":"Snapshot all pod logs for the last ``since_minutes`` into a chat session.\n\nReturns metadata incl. a ``session_id`` the log-chat endpoint grounds on.\n``available: false`` (with a reason) when off-cluster or missing pods/log RBAC.","operationId":"collect_logs_api_test_deployment_logs_collect_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogCollectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/test-deployment/logs/{log_session_id}/chat":{"post":{"tags":["test-deployment"],"summary":"Logs Chat","description":"Stream a SOCGPT answer grounded in a collected pod-log snapshot.\n\nNB: the path param is ``log_session_id`` (not ``session_id``) to avoid\ncolliding with the ``session_id`` auth *cookie* on ``get_current_user`` —\nthat collision makes FastAPI abort app startup.","operationId":"logs_chat_api_test_deployment_logs__log_session_id__chat_post","parameters":[{"name":"log_session_id","in":"path","required":true,"schema":{"type":"string","title":"Log Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/news/articles":{"get":{"tags":["news"],"summary":"Get Articles","description":"Get paginated articles filtered by user preferences.","operationId":"get_articles_api_news_articles_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"sources","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated source IDs","title":"Sources"},"description":"Comma-separated source IDs"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(recent|relevance)$","description":"Sort order: 'recent' (newest first) or 'relevance'","default":"recent","title":"Sort"},"description":"Sort order: 'recent' (newest first) or 'relevance'"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/news/sources":{"get":{"tags":["news"],"summary":"Get Sources","description":"List all sources with user preference overlay.","operationId":"get_sources_api_news_sources_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["news"],"summary":"Add Source","description":"Add a custom RSS source. Requires news:create.","operationId":"add_source_api_news_sources_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedSource"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/news/preferences":{"put":{"tags":["news"],"summary":"Update Preferences","description":"Save user source toggle preferences.","operationId":"update_preferences_api_news_preferences_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNewsPreferences"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/news/sources/refresh":{"post":{"tags":["news"],"summary":"Refresh Sources","description":"Trigger immediate news fetch cycle.","operationId":"refresh_sources_api_news_sources_refresh_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/news/sources/{source_id}":{"put":{"tags":["news"],"summary":"Update Source","description":"Enable/disable a source. Requires news:update.","operationId":"update_source_api_news_sources__source_id__put","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"enabled","in":"query","required":true,"schema":{"type":"boolean","title":"Enabled"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["news"],"summary":"Delete Source","description":"Remove a custom source. Requires news:delete.","operationId":"delete_source_api_news_sources__source_id__delete","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pre-stream/flow-data":{"get":{"tags":["pre-stream"],"summary":"Get Flow Data","description":"Get complete flow data for the PRE Stream network diagram","operationId":"get_flow_data_api_pre_stream_flow_data_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":0,"description":"Time range in hours (0 = all time)","default":24,"title":"Hours"},"description":"Time range in hours (0 = all time)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Flow Data Api Pre Stream Flow Data Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pre-stream/summary":{"get":{"tags":["pre-stream"],"summary":"Get Summary","description":"Get summary metrics for the bottom strip","operationId":"get_summary_api_pre_stream_summary_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":0,"description":"Time range in hours (0 = all time)","default":24,"title":"Hours"},"description":"Time range in hours (0 = all time)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Summary Api Pre Stream Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pre-stream/siem-destinations":{"get":{"tags":["pre-stream"],"summary":"Get Siem Destinations","description":"Lazy-loaded SIEM destination config for the Data Flow diagram.\n\nCalled asynchronously after the main flow-data loads so it doesn't\nblock the page. Reads the tenant's SIEM ROUTER config group via\nthe config client and returns any configured destinations.","operationId":"get_siem_destinations_api_pre_stream_siem_destinations_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":0,"description":"Time range in hours (0 = all time)","default":24,"title":"Hours"},"description":"Time range in hours (0 = all time)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Siem Destinations Api Pre Stream Siem Destinations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signalgate/pipeline":{"get":{"tags":["signalgate"],"summary":"Get Pipeline","description":"Get counts for each of the 5 SignalGate pipeline stages.\n\nSignalGate is a log router: it processes raw logs through enrichment,\nclassification, and filtering, then forwards high-value NLP-processed\nlogs to the customer's SIEM. The \"Forward\" stage represents logs that\nreached the Log2NLP stage (score >= threshold), NOT detections/predictions.","operationId":"get_pipeline_api_signalgate_pipeline_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":0,"description":"Time range in hours (0 = all time)","default":24,"title":"Hours"},"description":"Time range in hours (0 = all time)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Pipeline Api Signalgate Pipeline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/signalgate/telemetry":{"get":{"tags":["signalgate"],"summary":"Get Telemetry","description":"Get network telemetry metrics: time-series throughput, top sources, pipeline stage counts.","operationId":"get_telemetry_api_signalgate_telemetry_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","description":"Tenant ID or 'all'","default":"all","title":"Tenant"},"description":"Tenant ID or 'all'"},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":0,"description":"Time range in hours (0 = all time)","default":24,"title":"Hours"},"description":"Time range in hours (0 = all time)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Telemetry Api Signalgate Telemetry Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asset-ip/records":{"get":{"tags":["asset-ip"],"summary":"List Records","description":"List all asset IP records for a tenant with overlap information.","operationId":"list_records_api_asset_ip_records_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["asset-ip"],"summary":"Create Record","description":"Create a new asset IP record.","operationId":"create_record_api_asset_ip_records_post","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetIPCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asset-ip/records/{ip}":{"put":{"tags":["asset-ip"],"summary":"Update Record","description":"Update an existing asset IP record.","operationId":"update_record_api_asset_ip_records__ip__put","parameters":[{"name":"ip","in":"path","required":true,"schema":{"type":"string","title":"Ip"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetIPUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["asset-ip"],"summary":"Delete Record","description":"Delete an asset IP record.","operationId":"delete_record_api_asset_ip_records__ip__delete","parameters":[{"name":"ip","in":"path","required":true,"schema":{"type":"string","title":"Ip"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asset-ip/counts":{"get":{"tags":["asset-ip"],"summary":"Get Alert Counts","description":"Count distinct asset IPs per configured subnet using a single aggregation query.\n\nUses a filters aggregation (one CIDR/term filter per record) with a cardinality\nsub-aggregation on asset_ip, returning the number of distinct asset IP addresses\nseen within each configured IP address or subnet.","operationId":"get_alert_counts_api_asset_ip_counts_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asset-ip/tags":{"get":{"tags":["asset-ip"],"summary":"List Tags","description":"List the distinct Sub-Tenant / customer tags configured for a tenant.\n\nPowers the global Sub-Tenant selector. Returns an empty list when the\nservice is unavailable so the selector degrades gracefully (no tags) rather\nthan erroring the page.","operationId":"list_tags_api_asset_ip_tags_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entity-criticality/records":{"get":{"tags":["entity-criticality"],"summary":"List Records","description":"List all entity criticality records for a tenant with overlap info.","operationId":"list_records_api_entity_criticality_records_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["entity-criticality"],"summary":"Create Record","description":"Create a new entity criticality record.","operationId":"create_record_api_entity_criticality_records_post","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityCritCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entity-criticality/records/{kind}/{value}":{"put":{"tags":["entity-criticality"],"summary":"Update Record","description":"Update the record identified by its original (kind, value).","operationId":"update_record_api_entity_criticality_records__kind___value__put","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"value","in":"path","required":true,"schema":{"type":"string","title":"Value"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityCritUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["entity-criticality"],"summary":"Delete Record","description":"Delete a record by (kind, value).","operationId":"delete_record_api_entity_criticality_records__kind___value__delete","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"value","in":"path","required":true,"schema":{"type":"string","title":"Value"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entity-criticality/mode":{"get":{"tags":["entity-criticality"],"summary":"Get Mode","description":"Current criticality mode for a tenant (off / shadow / active).","operationId":"get_mode_api_entity_criticality_mode_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["entity-criticality"],"summary":"Set Mode","description":"Set the criticality mode — the docs/67 §9b runtime kill switch.","operationId":"set_mode_api_entity_criticality_mode_put","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityCritMode"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entity-criticality/summary":{"get":{"tags":["entity-criticality"],"summary":"Get Summary","description":"Mode + active record count. Degrades to off/0 (never errors the page).","operationId":"get_summary_api_entity_criticality_summary_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","description":"Tenant ID","title":"Tenant Id"},"description":"Tenant ID"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/license":{"get":{"tags":["license"],"summary":"Get License","description":"Read current license information. Available to any authenticated user.","operationId":"get_license_api_settings_license_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get License Api Settings License Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["license"],"summary":"Delete License","description":"Remove the current license. Admin only.","operationId":"delete_license_api_settings_license_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete License Api Settings License Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/license/upload":{"post":{"tags":["license"],"summary":"Upload License","description":"Upload a license file. Admin only.","operationId":"upload_license_api_settings_license_upload_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_license_api_settings_license_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload License Api Settings License Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/license/text":{"post":{"tags":["license"],"summary":"Submit License Text","description":"Submit license content as pasted text. Admin only.","operationId":"submit_license_text_api_settings_license_text_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit License Text Api Settings License Text Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{client_id}/brand":{"get":{"tags":["tenant-brand"],"summary":"Get Brand Meta","description":"Return brand metadata for a tenant (no payload).","operationId":"get_brand_meta_api_admin_tenants__client_id__brand_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Brand Meta Api Admin Tenants  Client Id  Brand Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tenant-brand"],"summary":"Upload Brand","description":"Upload (or replace) a tenant's brand image. Admin only.","operationId":"upload_brand_api_admin_tenants__client_id__brand_put","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_brand_api_admin_tenants__client_id__brand_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Brand Api Admin Tenants  Client Id  Brand Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tenant-brand"],"summary":"Delete Brand","description":"Remove a tenant's brand image. Admin only.","operationId":"delete_brand_api_admin_tenants__client_id__brand_delete","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Brand Api Admin Tenants  Client Id  Brand Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tenants/{client_id}/brand/image":{"get":{"tags":["tenant-brand"],"summary":"Get Brand Image","description":"Return the raw brand image bytes.\n\nAny authenticated user may read — this is what the header <img>\nrenders for the currently selected tenant.","operationId":"get_brand_image_api_admin_tenants__client_id__brand_image_get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/telemetry/containers":{"get":{"tags":["telemetry"],"summary":"Get Telemetry Containers","description":"Get all container telemetry data for the main table. Requires admin role.","operationId":"get_telemetry_containers_api_telemetry_containers_get","parameters":[{"name":"interval","in":"query","required":false,"schema":{"type":"string","pattern":"^(1m|10m|1h|1d)$","default":"1m","title":"Interval"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/telemetry/containers/{instance}/metrics":{"get":{"tags":["telemetry"],"summary":"Get Container Metrics","description":"Get all metrics for a specific container instance. Requires admin role.","operationId":"get_container_metrics_api_telemetry_containers__instance__metrics_get","parameters":[{"name":"instance","in":"path","required":true,"schema":{"type":"string","title":"Instance"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/version-status":{"get":{"tags":["system"],"summary":"Version Status","description":"Report the installed version and whether a newer release is available.\n\nDrives the Platform Upgrade panel. Never fails: an unreachable portal or\nunset credentials come back as ``status=\"unknown\"`` with a ``warning``, and\nthe panel keeps the upgrade button enabled rather than blocking an admin on\na broken check. Admin-only (router-level dependency).","operationId":"version_status_api_system_version_status_get","parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the cached catalog lookup","default":false,"title":"Refresh"},"description":"Bypass the cached catalog lookup"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/available-versions":{"get":{"tags":["system"],"summary":"Available Versions","description":"Chart versions this host may be upgraded to, newest first.\n\nProxied from the portal rather than fetched by the browser: the portal URL and\nthis appliance's license key must not leave the server. The portal returns the\ntenant-gated list for an appliance token, so anything marked public:false in\nthe release catalog is already absent here.\n\nShape: {\"versions\": [{\"version\", \"prerelease\", \"lastModified\"}],\n        \"stable\": [...], \"latestStable\": \"3.8.0\"}.\n`stable` is what the dropdown should offer; a version can still be typed by\nhand and passed to /upgrade-host.","operationId":"available_versions_api_system_available_versions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/upgrade-host":{"post":{"tags":["system"],"summary":"Upgrade Host","description":"Trigger a platform upgrade for the given host via the cloud portal.\n\n`host` is the domain/IP taken from the browser address bar (the appliance\nbeing viewed). Admin-only (router-level dependency).","operationId":"upgrade_host_api_system_upgrade_host_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeHostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/upgrade-outcome":{"get":{"tags":["system"],"summary":"Upgrade Outcome","description":"Report the outcome of the last upgrade, once, for the post-upgrade modal.\n\n``{\"show\": false}`` means there is nothing to announce: no upgrade on\nrecord, already acknowledged, or still inside its window. Admin-only\n(router-level dependency), so the first admin to load a page after the\nupgrade is the one who sees it.","operationId":"upgrade_outcome_api_system_upgrade_outcome_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/upgrade-outcome/ack":{"post":{"tags":["system"],"summary":"Upgrade Outcome Ack","description":"Dismiss the post-upgrade modal for the whole platform.\n\nPlatform-wide rather than per-user on purpose: the modal states a fact about\nthe appliance, so the first admin to read it settles it for the team.","operationId":"upgrade_outcome_ack_api_system_upgrade_outcome_ack_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/status":{"get":{"tags":["Cluster Management"],"summary":"Get Cluster Status","description":"Get current cluster status and health information.\n\nReturns cluster health metrics, node counts, and disk usage statistics.","operationId":"get_cluster_status_api_cluster_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/nodes":{"get":{"tags":["Cluster Management"],"summary":"Get Nodes","description":"Get detailed information about all cluster nodes.\n\nReturns node IPs, roles, metrics, and health status.","operationId":"get_nodes_api_cluster_nodes_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/initialize":{"post":{"tags":["Cluster Management"],"summary":"Initialize Cluster","description":"Initialize a new Elasticsearch cluster.\n\nCreates a 3-node cluster with either:\n- 3 data nodes, or\n- 2 data nodes + 1 voting-only node\n\nAll target nodes must have agents running. Nodes will be automatically bound if not already.","operationId":"initialize_cluster_api_cluster_initialize_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitializeClusterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/node/bind":{"post":{"tags":["Cluster Management"],"summary":"Bind Node","description":"Bind a node agent to this backend.\n\nThis connects to the node's /bind endpoint and establishes the management relationship.\nThe node agent must be running and accessible. No pre-shared token needed.","operationId":"bind_node_api_cluster_node_bind_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/node/add":{"post":{"tags":["Cluster Management"],"summary":"Add Node","description":"Add a new node to an existing cluster.\n\nIf the node is not already bound, it will be bound first.\nMaximum cluster size is 7 nodes.","operationId":"add_node_api_cluster_node_add_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/node/{node_ip}/decommission":{"post":{"tags":["Cluster Management"],"summary":"Decommission Node","description":"Decommission a node from the cluster.\n\nSafely evacuates shards before removing the node. The cluster must have\nat least 3 nodes remaining after decommission (or 2 data + 1 voting).","operationId":"decommission_node_api_cluster_node__node_ip__decommission_post","parameters":[{"name":"node_ip","in":"path","required":true,"schema":{"type":"string","title":"Node Ip"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecommissionNodeRequest","default":{"force":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/node/{node_ip}/replace":{"post":{"tags":["Cluster Management"],"summary":"Replace Node","description":"Replace a remote node with a new one.\n\nThis operation adds the replacement node first, verifies it joins the cluster,\nthen decommissions the old node. The local node cannot be replaced.\n\nSteps:\n1. Validate replacement node is reachable\n2. Bind and configure replacement node\n3. Start replacement and verify it joins\n4. Exclude old node from shard allocation\n5. Evacuate shards from old node\n6. Stop and remove old node","operationId":"replace_node_api_cluster_node__node_ip__replace_post","parameters":[{"name":"node_ip","in":"path","required":true,"schema":{"type":"string","title":"Node Ip"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceNodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/remove-remote-nodes":{"post":{"tags":["Cluster Management"],"summary":"Remove Remote Nodes","description":"Remove all remote nodes and return to single-node mode.\n\nThis operation decommissions all remote nodes (nodes bound via agent)\nsequentially with force=true, leaving only the local node running.\nThe cluster configuration is cleared after all nodes are removed.","operationId":"remove_remote_nodes_api_cluster_remove_remote_nodes_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/node/{node_id}/unbind":{"post":{"tags":["Cluster Management"],"summary":"Unbind Node","description":"Unbind/remove a node from the registry.\n\nThis removes the node record from Redis. For decommissioned nodes, this\nremoves the \"Ready to Power Off\" entry from the UI. For bound but not\nyet clustered nodes, this releases them.\n\nNote: This does NOT decommission or stop ES on the node. Use the\ndecommission endpoint for that. This is only for cleanup after a node\nhas already been decommissioned or was never fully joined.","operationId":"unbind_node_api_cluster_node__node_id__unbind_post","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","title":"Node Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/node/heartbeat":{"post":{"tags":["Cluster Management"],"summary":"Node Heartbeat","description":"Receive heartbeat from node agent.\n\nDEPRECATED: Commands are now pushed directly to agent endpoints\n(/es/configure, /es/start, etc.) rather than pulled via heartbeat.\nThis endpoint remains for status updates but agents no longer call it.\n\nUpdates node status and metrics, returns any pending commands.","operationId":"node_heartbeat_api_cluster_node_heartbeat_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeartbeatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeartbeatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/operation/{operation_id}/status":{"get":{"tags":["Cluster Management"],"summary":"Get Operation Status","description":"Get the status of a cluster operation.\n\nReturns progress percentage, current step, and any errors.","operationId":"get_operation_status_api_cluster_operation__operation_id__status_get","parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/config/ports":{"get":{"tags":["Cluster Management"],"summary":"Get Port Configuration","description":"Get current port configuration for ES cluster and agents.\n\nReturns the configured ports for Elasticsearch HTTP, transport, and agent.\nDefault ports: ES HTTP=30002, ES Transport=30626, Agent=8080","operationId":"get_port_configuration_api_cluster_config_ports_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortConfiguration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Cluster Management"],"summary":"Update Port Configuration","description":"Update port configuration for ES cluster and agents.\n\nNote: Changing ports requires reconfiguring all nodes. Only change ports\nbefore initializing a cluster or be prepared to reconfigure all nodes.","operationId":"update_port_configuration_api_cluster_config_ports_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePortConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortConfiguration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/config/replicas":{"put":{"tags":["Cluster Management"],"summary":"Update Replica Count","description":"Update the replica count for the cluster.\n\nMinimum replica count is 2 for redundancy. Maximum is limited by the\nnumber of data nodes (cannot have more replicas than data nodes).\n\nNote: This updates the index template for new indices and updates\nexisting indices' replica settings.","operationId":"update_replica_count_api_cluster_config_replicas_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReplicaCountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplicaCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/check-reachability":{"post":{"tags":["Cluster Management"],"summary":"Check Nodes Reachability","description":"Check if nodes are reachable on the configured agent port.\n\nTests connectivity to each node's agent endpoint to verify\nthe node is online and the agent is running.","operationId":"check_nodes_reachability_api_cluster_check_reachability_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeReachabilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeReachabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cluster/node/health-check":{"post":{"tags":["Cluster Management"],"summary":"Check Node Health","description":"Check if a node agent is reachable and whether it is already bound to a cluster.\nAlso checks if the node can reach the main node on the ES transport port.","operationId":"check_node_health_api_cluster_node_health_check_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeHealthCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeHealthCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/filter-rules":{"get":{"tags":["filter-rules"],"summary":"Get Filter Rules","operationId":"get_filter_rules_api_filter_rules_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilterRules"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["filter-rules"],"summary":"Save Filter Rules","description":"Replace all rules with the supplied list.\n\nEach rule keeps its existing ``id`` if present; otherwise a fresh UUID is\nminted and used as the Redis key suffix. Any rule keys not listed in the\npayload are deleted, so the persisted state mirrors the payload exactly.","operationId":"save_filter_rules_api_filter_rules_put","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilterRules"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilterRules"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/filter-rules/reset":{"post":{"tags":["filter-rules"],"summary":"Reset Filter Rules","description":"Delete every rule HASH and the metadata key for the selected tenant.","operationId":"reset_filter_rules_api_filter_rules_reset_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/filter-rules/ai-assist/generate":{"post":{"tags":["filter-rules"],"summary":"Ai Assist Generate","operationId":"ai_assist_generate_api_filter_rules_ai_assist_generate_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/filter-rules/ai-assist/refine":{"post":{"tags":["filter-rules"],"summary":"Ai Assist Refine","operationId":"ai_assist_refine_api_filter_rules_ai_assist_refine_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiRefineRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/filter-rules/{rule_id}/sample-fields":{"get":{"tags":["filter-rules"],"summary":"Get Sample Fields","description":"Return observed field paths from recent logs matched by this alert rule,\nfor the email-field picker. Empty when the rule has no matches yet.","operationId":"get_sample_fields_api_filter_rules__rule_id__sample_fields_get","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"tenant","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tenant"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/read-config/{config_name}":{"post":{"tags":["data-processing"],"summary":"Read Config","operationId":"read_config_read_config__config_name__post","parameters":[{"name":"config_name","in":"path","required":true,"schema":{"type":"string","title":"Config Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/write-config/{config_name}":{"post":{"tags":["data-processing"],"summary":"Write Config","operationId":"write_config_write_config__config_name__post","parameters":[{"name":"config_name","in":"path","required":true,"schema":{"type":"string","title":"Config Name"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/geolocation/me":{"get":{"tags":["Geolocation"],"summary":"Get Server Location","description":"Resolve the server's public egress IP to approximate lat/lon.\n\nThe same value is returned to every caller — this is a global\ndeployment property, not a per-client lookup. Cached 24h in-process.","operationId":"get_server_location_api_geolocation_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Server Location Api Geolocation Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/files":{"get":{"tags":["reference-kb"],"summary":"Get Files","operationId":"get_files_api_reference_kb_files_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/upload":{"post":{"tags":["reference-kb"],"summary":"Upload File","operationId":"upload_file_api_reference_kb_upload_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_api_reference_kb_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/upload-url":{"post":{"tags":["reference-kb"],"summary":"Upload Url","operationId":"upload_url_api_reference_kb_upload_url_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlEntryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/downloadfile":{"post":{"tags":["reference-kb"],"summary":"Download File","operationId":"download_file_api_reference_kb_downloadfile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileIdRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/updatefile":{"post":{"tags":["reference-kb"],"summary":"Update File","operationId":"update_file_api_reference_kb_updatefile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/deletefile":{"post":{"tags":["reference-kb"],"summary":"Delete File","operationId":"delete_file_api_reference_kb_deletefile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileIdRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/rules":{"get":{"tags":["reference-kb"],"summary":"Get Rules","operationId":"get_rules_api_reference_kb_rules_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/addrule":{"post":{"tags":["reference-kb"],"summary":"Add Rule","operationId":"add_rule_api_reference_kb_addrule_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRuleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/updaterule":{"post":{"tags":["reference-kb"],"summary":"Update Rule","operationId":"update_rule_api_reference_kb_updaterule_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRuleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/deleterule":{"post":{"tags":["reference-kb"],"summary":"Delete Rule","operationId":"delete_rule_api_reference_kb_deleterule_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRuleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/sigma-rules":{"get":{"tags":["reference-kb"],"summary":"Get Sigma Rules","operationId":"get_sigma_rules_api_reference_kb_sigma_rules_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Page Size"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reference-kb/sigma-rules/{rule_id}":{"get":{"tags":["reference-kb"],"summary":"Get Sigma Rule Detail","description":"Full read-only view of one Sigma rule (parsed metadata + raw YAML).","operationId":"get_sigma_rule_detail_api_reference_kb_sigma_rules__rule_id__get","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/search/fields":{"get":{"tags":["search"],"summary":"Get Fields","description":"Return the curated field registry for the UI.","operationId":"get_fields_api_search_fields_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/search/advanced":{"post":{"tags":["search"],"summary":"Advanced Search","operationId":"advanced_search_api_search_advanced_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/search/advanced/export.csv":{"get":{"tags":["search"],"summary":"Export Csv","operationId":"export_csv_api_search_advanced_export_csv_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"base64-JSON encoded SearchRequest","title":"Q"},"description":"base64-JSON encoded SearchRequest"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/permissions":{"get":{"tags":["me"],"summary":"My Permissions","operationId":"my_permissions_api_me_permissions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response My Permissions Api Me Permissions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notes":{"post":{"tags":["notes"],"summary":"Create Note","operationId":"create_note_api_notes_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__notes_api__NoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["notes"],"summary":"List Notes","operationId":"list_notes_api_notes_get","parameters":[{"name":"doc_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Doc Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NoteOut"},"title":"Response List Notes Api Notes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notes/{note_id}":{"put":{"tags":["notes"],"summary":"Update Note","operationId":"update_note_api_notes__note_id__put","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notes"],"summary":"Delete Note","operationId":"delete_note_api_notes__note_id__delete","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notes/batch-exists":{"get":{"tags":["notes"],"summary":"Batch Exists","description":"Return noted doc_ids (by event_type) and noted entities for this tenant.\n\n``noted``    maps doc_id → event_type (drives the per-card pencil).\n``counts``   gives per-type note counts.\n``entities`` maps entity value → number of notes mentioning it (drives the\n             per-entity pencil on board/incident cards).","operationId":"batch_exists_api_notes_batch_exists_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stars":{"post":{"tags":["stars"],"summary":"Create Star","description":"Star an item (idempotent). Re-starring the same item at the same scope\noverwrites the existing doc rather than creating a duplicate.","operationId":"create_star_api_stars_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StarCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StarOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["stars"],"summary":"Delete Star","description":"Unstar an item by its deterministic id. Idempotent — unstarring something\nthat isn't starred is a no-op (still 204).\n\nA shared star can be removed by its owner or an admin; private stars are\nalways the caller's own (the id is owner-scoped), so no extra check needed.","operationId":"delete_star_api_stars_delete","parameters":[{"name":"item_type","in":"query","required":true,"schema":{"enum":["incident","log","detection","prediction","case"],"type":"string","title":"Item Type"}},{"name":"item_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Item Id"}},{"name":"tenant","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Tenant"}},{"name":"scope","in":"query","required":false,"schema":{"enum":["private","shared"],"type":"string","default":"private","title":"Scope"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["stars"],"summary":"List Stars","description":"List stars visible to the caller: their own private stars ∪ the tenant's\nshared stars. The frontend splits these into the two distinct lists by\n``scope``. Pass ``scope`` to fetch just one.","operationId":"list_stars_api_stars_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Tenant"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"enum":["private","shared"],"type":"string"},{"type":"null"}],"description":"Filter to one list; omit for both","title":"Scope"},"description":"Filter to one list; omit for both"},{"name":"item_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["incident","log","detection","prediction","case"],"type":"string"},{"type":"null"}],"title":"Item Type"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StarOut"},"title":"Response List Stars Api Stars Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stars/batch-exists":{"get":{"tags":["stars"],"summary":"Batch Exists","description":"Starred item ids visible to the caller, split by scope and item_type.\n\nPowers the per-card star indicator and the 'Starred only' filters. Shape::\n\n    {\"private\": {\"incident\": [\"...\"], \"case\": [\"...\"], ...},\n     \"shared\":  {\"incident\": [\"...\"], ...},\n     \"counts\":  {\"private\": N, \"shared\": M}}","operationId":"batch_exists_api_stars_batch_exists_get","parameters":[{"name":"tenant","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Tenant"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/set-language":{"post":{"summary":"Set Ui Language","description":"Set UI locale cookie (en/ja/th/es) and redirect back.","operationId":"set_ui_language_set_language_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_set_ui_language_set_language_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/login":{"get":{"summary":"Login Page","description":"Render login page","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/forgot-password":{"get":{"summary":"Forgot Password Page","description":"Standalone Forgot-Password page.\n\nPublic route — no auth required. Submits the email to\n/api/auth/password-reset-request and shows a generic acknowledgement\nregardless of whether the email matched a real account.\n\nDiscoverability: this URL is intended to be linked from the Keycloak\nthemed login form (the page users actually see when authenticating).\nTheme override TBD — until then, share the URL out-of-band.","operationId":"forgot_password_page_forgot_password_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/":{"get":{"summary":"Index","description":"Auth-aware landing redirect.\n\nPicks a sub-tenant for users whose perms are sub-tenant-scoped so\nthey don't 403 on the bare ``/threat-tracker`` (no ``?tenant=``)\nwhich evaluates with sub_tenant_id=\"\" → wildcard ∪ managing only.\n\nBehaviour:\n  - Unauthenticated      → /login\n  - Sysadmin / wildcard  → /threat-tracker (no tenant param)\n  - Sub-tenant-scoped    → /threat-tracker?tenant=<first-visible>\n                           (visible_tenant_ids is stamped by\n                           TenantVisibilityMiddleware before this\n                           handler runs)\n  - No tenants visible   → /threat-tracker (handler enforces its\n                           own require_permission_for_path which\n                           renders the standard 403 page with the\n                           selector available)","operationId":"index__get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenants":{"get":{"summary":"Tenants Overview","description":"Render DevOps tenants overview dashboard (admin only)","operationId":"tenants_overview_tenants_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/customer":{"get":{"summary":"Customer Dashboard","description":"Render customer-facing status dashboard","operationId":"customer_dashboard_customer_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/semantic-scores":{"get":{"summary":"Semantic Scores Dashboard","description":"Render semantic scores dashboard","operationId":"semantic_scores_dashboard_semantic_scores_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/risk-scores":{"get":{"summary":"Risk Scores Dashboard","description":"Render risk scores dashboard","operationId":"risk_scores_dashboard_risk_scores_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pipeline-monitor":{"get":{"summary":"Pipeline Monitor Dashboard","description":"Render pipeline monitor dashboard","operationId":"pipeline_monitor_dashboard_pipeline_monitor_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/user-activity":{"get":{"summary":"User Activity Page","description":"Render User Activity page (devops only).","operationId":"user_activity_page_admin_user_activity_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/system-telemetry":{"get":{"summary":"System Telemetry Page","description":"Render System Telemetry page (admin only).","operationId":"system_telemetry_page_admin_system_telemetry_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/log-details":{"get":{"summary":"Log Details Page","description":"Render DevOps Log Details page (admin only).","operationId":"log_details_page_log_details_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/siem-plus":{"get":{"summary":"Siem Plus Page","description":"SIEM+ — datalake JSON DSL explorer. RBAC via /siem-plus → analytics.read.","operationId":"siem_plus_page_siem_plus_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threat-intel":{"get":{"summary":"Threat Intel Workspace Page","description":"Threat Intelligence workspace — IOC counters + search over threatintel-* feeds.","operationId":"threat_intel_workspace_page_threat_intel_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threat-tracker":{"get":{"summary":"Threat Tracker Page","description":"Threat Monitor — entity-centric live activity.","operationId":"threat_tracker_page_threat_tracker_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/scoring":{"get":{"summary":"Analytics Scoring Page","description":"Scoring analytics page with tabs","operationId":"analytics_scoring_page_analytics_scoring_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/entity-lookup":{"get":{"summary":"Entity Lookup Page","description":"Entity lookup/search page","operationId":"entity_lookup_page_entity_lookup_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/entity":{"get":{"summary":"Analytics Entity Page","description":"Entity analytics page with tabs OR entity detail page (when params provided)","operationId":"analytics_entity_page_analytics_entity_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"value","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/users":{"get":{"summary":"Analytics Users Page","description":"Users analytics page","operationId":"analytics_users_page_analytics_users_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/assets":{"get":{"summary":"Analytics Assets Page","description":"Assets analytics page","operationId":"analytics_assets_page_analytics_assets_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threat-intelligence":{"get":{"summary":"Threat Intelligence Page","description":"Global Threat Intelligence dashboard with geographic visualization","operationId":"threat_intelligence_page_threat_intelligence_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threat-globe":{"get":{"summary":"Threat Globe Page","description":"Standalone full-page spinning 3D threat globe.\n\nReuses the /threat-tracker permission since this is the expanded view of\nthe globe panel on the Threat Center page (reached via its \"More\" link).\nData source is the same `/api/threat-intelligence/global` endpoint.","operationId":"threat_globe_page_threat_globe_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/correlation-map":{"get":{"summary":"Correlation Map Page","description":"Correlation Map - Entity co-occurrence graph showing correlated security events","operationId":"correlation_map_page_correlation_map_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threat-pulse-disabled":{"get":{"summary":"Threat Pulse Page","description":"Threat Pulse - EKG-style real-time security event visualization","operationId":"threat_pulse_page_threat_pulse_disabled_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/security-news":{"get":{"summary":"Security News Page","description":"Security News - LLM-curated security news from RSS feeds","operationId":"security_news_page_security_news_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoint-monitor":{"get":{"summary":"Endpoint Monitor Page","description":"Endpoint Monitor — fleet view (requires tenants in context for global org selector).","operationId":"endpoint_monitor_page_endpoint_monitor_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/device-enrollment":{"get":{"summary":"Device Enrollment Page","operationId":"device_enrollment_page_device_enrollment_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/endpoint-monitor/device":{"get":{"summary":"Endpoint Monitor Device Page","description":"Single-device drill-down from Endpoint Monitor.","operationId":"endpoint_monitor_device_page_endpoint_monitor_device_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pre-stream":{"get":{"summary":"Pre Stream Page","description":"PRE Stream - Redirects to SignalGate (consolidated)","operationId":"pre_stream_page_pre_stream_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/signalgate":{"get":{"summary":"Signalgate Page","description":"SignalGate - 5-stage pipeline funnel visualization","operationId":"signalgate_page_signalgate_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/posture":{"get":{"summary":"Posture Page","description":"Security Posture Reports - Weather-like visualization of security posture","operationId":"posture_page_posture_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces":{"get":{"summary":"Workspaces Page","description":"Workspaces landing — role-based workflow launcher (SOC Analyst, Threat\nHunter, SOC Manager, Executive). Replaces the retired tile-grid launcher.\nPage gate is dashboard.view; each role card is per-card check_perm-gated in\nthe template and every target route keeps its own RBAC guard. KPI panels are\npopulated client-side from existing overview APIs.","operationId":"workspaces_page_workspaces_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/soc-analyst":{"get":{"summary":" Mission Page","operationId":"_mission_page_workspaces_soc_analyst_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/threat-hunter":{"get":{"summary":" Mission Page","operationId":"_mission_page_workspaces_threat_hunter_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/soc-manager":{"get":{"summary":" Mission Page","operationId":"_mission_page_workspaces_soc_manager_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/executive":{"get":{"summary":" Mission Page","operationId":"_mission_page_workspaces_executive_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ioc/analytics":{"get":{"summary":"Ioc Analytics Page","description":"IOC Analytics - Extract IOCs from security logs","operationId":"ioc_analytics_page_ioc_analytics_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ioc/ip-lookup":{"get":{"summary":"Ioc Ip Lookup Page","description":"IP Threat Intelligence Lookup","operationId":"ioc_ip_lookup_page_ioc_ip_lookup_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ioc/url-lookup":{"get":{"summary":"Ioc Url Lookup Page","description":"URL Reputation Lookup","operationId":"ioc_url_lookup_page_ioc_url_lookup_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ioc/dashboard":{"get":{"summary":"Ioc Dashboard Page","description":"IOC Dashboard - Threat Intelligence Overview","operationId":"ioc_dashboard_page_ioc_dashboard_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/soc":{"get":{"summary":"Soc Dashboard Page","description":"SOC Kanban Board — primary SOC triage interface","operationId":"soc_dashboard_page_soc_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/fast":{"get":{"summary":"Fast Dashboard Page","description":"FAST — Fully Autonomous SOC Triage. Tiered agentic triage (T1/T2/T3/HITL)\nreading fast_incidents-*/fast_activity-* (docs/49). Reuses the \"soc\" RBAC\nresource (see page_perms.py) so it inherits SOC Triage's access grants.","operationId":"fast_dashboard_page_fast_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/daily-soc-ops":{"get":{"summary":"Daily Soc Ops Page","description":"Daily SOC Operations — the SOC Analyst's day-to-day HITL cockpit. A lighter\ntake on the full FAST board / Incident Board: it surfaces the pending\nhuman-in-the-loop decision queue (cross-tenant, via /api/missions/hitl-queue),\ndrill-down incident detail (/api/fast/incident/{id}), and inline decisions\n(/api/fast/incident/{id}/decide). Reuses the \"soc\" RBAC resource so it inherits\nSOC Triage's access grants (see page_perms.py).","operationId":"daily_soc_ops_page_daily_soc_ops_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/counter-surveillance":{"get":{"summary":"Counter Surveillance Page","description":"Counter Surveillance (BETA) — entity-centric, post-true-positive monitoring.\nWhen PRE confirms (or predicts with high confidence) a threat on an entity, a\nCounter Surveillance Mission places it under heightened observation: fused\nescalation index, next-move prediction, related-entity Threat Bubble, and\nleast-disruptive response. Lives in the Threat Hunter workspace; reuses the\n\"predictions\" RBAC resource (see page_perms.py).","operationId":"counter_surveillance_page_counter_surveillance_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/attack-coverage":{"get":{"summary":"Attack Coverage Page","description":"MITRE ATT&CK detection-coverage matrix — per-technique runnable (telemetry supplies the rule's fields)\nvs firing (live Sigma matches), estate-wide. Reads the worker-computed attack_coverage-<tenant> index via\n/api/coverage/matrix. Lives in Analytics; reuses the analytics RBAC resource (matches the sidebar gate).","operationId":"attack_coverage_page_attack_coverage_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/soc/list":{"get":{"summary":"Soc List Page","description":"SOC Incident Triage — legacy list view (kept for drill-through from Kanban)","operationId":"soc_list_page_soc_list_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/soc/kanban":{"get":{"summary":"Soc Kanban Page","description":"SOC Kanban Board — priority × workflow stage matrix with drag-and-drop","operationId":"soc_kanban_page_soc_kanban_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/starred":{"get":{"summary":"Starred Page","description":"Starred Items — My Stars (private) + Team Stars (shared) across incidents,\nlogs, detections, predictions, and cases.","operationId":"starred_page_starred_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/soc/incident-reports":{"get":{"summary":"Incident Reports Page","description":"Incident Reports - LLM-generated analysis","operationId":"incident_reports_page_soc_incident_reports_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/soc/entity-reports":{"get":{"summary":"Entity Reports Page","description":"Entity Reports - LLM-generated entity analysis","operationId":"entity_reports_page_soc_entity_reports_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reference-kb":{"get":{"summary":"Reference Kb Page","description":"Reference Knowledge Base — Manage KB / Rules / Sigma Rules.","operationId":"reference_kb_page_reference_kb_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cases":{"get":{"summary":"Cases List Page","description":"Case Management List Page","operationId":"cases_list_page_cases_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cases/{case_id}":{"get":{"summary":"Case Detail Page","description":"Case Detail Page","operationId":"case_detail_page_cases__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"integer","title":"Case Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/network":{"get":{"summary":"Analytics Network Page","description":"Network analytics page","operationId":"analytics_network_page_analytics_network_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agentic-xdr":{"get":{"summary":"Agentic Xdr Page","description":"Agentic XDR - Cognito autonomous detections (cognito_detection-*)","operationId":"agentic_xdr_page_agentic_xdr_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ueba":{"get":{"summary":"Ueba Page","description":"Agentic UEBA - autonomous entity-behavior detections (xdr_type=ueba)","operationId":"ueba_page_ueba_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gen2-xdr":{"get":{"summary":"Gen2 Xdr Page","description":"Gen 2 XDR - Graph ML Detections (coming soon placeholder)","operationId":"gen2_xdr_page_gen2_xdr_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gen2-xdr/attack-path/{tenant_id}/{doc_id}":{"get":{"summary":"Gen2 Attack Path Page","description":"Full-page attack-path timeline graph (Gen 2 XDR drill-down).\n\nRendered as its own page (not a drawer) so the Cytoscape container has a\nreal layout size on load — mirrors the Correlation Map look & feel.","operationId":"gen2_attack_path_page_gen2_xdr_attack_path__tenant_id___doc_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ndr":{"get":{"summary":"Ndr Triage Page","description":"NDR Triage Dashboard - Network Detection & Response","operationId":"ndr_triage_page_ndr_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/hostnames":{"get":{"summary":"Analytics Hostnames Page","description":"Hostnames analytics page","operationId":"analytics_hostnames_page_analytics_hostnames_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/predictions":{"get":{"summary":"Predictions Overview Page","description":"Predictions & Detections overview dashboard","operationId":"predictions_overview_page_predictions_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/predictions/detections":{"get":{"summary":"Detections List Page","description":"Detections list page","operationId":"detections_list_page_predictions_detections_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/predictions/forecasts":{"get":{"summary":"Predictions List Page","description":"Predictions/Forecasts list page","operationId":"predictions_list_page_predictions_forecasts_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/predictions/threatcasts":{"get":{"summary":"Threatcasts List Page","description":"ThreatCasts (micro / future-threat predictions) list page.","operationId":"threatcasts_list_page_predictions_threatcasts_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/prompt-reports":{"get":{"summary":"Prompt Reports Page","description":"ReportGPT — Scheduled Prompt Reports UI","operationId":"prompt_reports_page_prompt_reports_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat":{"get":{"summary":"Socgpt Page","description":"SOCGPT - AI Security Analyst chat interface","operationId":"socgpt_page_chat_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users":{"get":{"summary":"Admin Users Page","description":"User management admin page (admin only)","operationId":"admin_users_page_admin_users_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/adaptive-learning":{"get":{"summary":"Admin Adaptive Learning Page","description":"Human oversight: suppression rules management page (admin only)","operationId":"admin_adaptive_learning_page_admin_adaptive_learning_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/release-notes":{"get":{"summary":"Admin Release Notes Page","description":"Release Notes page","operationId":"admin_release_notes_page_admin_release_notes_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/resources":{"get":{"summary":"Admin Resources Page","description":"Resources page — sysadmin-only directory of PreSecurity external links.","operationId":"admin_resources_page_admin_resources_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/release-notes/versions":{"get":{"summary":"Release Notes Versions","description":"Return available release note versions from static files. Gated on license.read to match the page.","operationId":"release_notes_versions_api_release_notes_versions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settings":{"get":{"summary":"Admin Settings Page","description":"Unified settings page with tabs for Tenants, MCP Servers, and Tenant Config","operationId":"admin_settings_page_admin_settings_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenants":{"get":{"summary":"Admin Tenants Page","description":"Redirect to unified settings page (tenants tab) — admin gate enforced","operationId":"admin_tenants_page_admin_tenants_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/mcp-servers":{"get":{"summary":"Admin Mcp Servers Page","description":"Redirect to unified settings page (MCP servers tab) — admin gate enforced","operationId":"admin_mcp_servers_page_admin_mcp_servers_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tunnels":{"get":{"summary":"Admin Tunnels Page","description":"Redirect to unified settings page (tenants tab) — admin gate enforced","operationId":"admin_tunnels_page_admin_tunnels_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenant-config":{"get":{"summary":"Tenant Config Page","description":"Redirect to unified settings page (tenant config tab) — admin gate enforced","operationId":"tenant_config_page_tenant_config_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/data-export":{"get":{"summary":"Admin Data Export Page","description":"Data Export & Archive Management page","operationId":"admin_data_export_page_admin_data_export_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/connectors":{"get":{"summary":"Admin Connectors Page","description":"Connector Management page","operationId":"admin_connectors_page_admin_connectors_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/test-deployment":{"get":{"summary":"Admin Test Deployment Page","description":"Test Deployment — in-tenant pipeline self-test page.","operationId":"admin_test_deployment_page_admin_test_deployment_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/download-center":{"get":{"summary":"Admin Download Center Page","description":"Software Download Center page","operationId":"admin_download_center_page_admin_download_center_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health Check","description":"Basic health check endpoint (fast).\n\nReturns healthy if API can respond. For detailed health info including\nevent loop monitoring, use /health/detailed","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/detailed":{"get":{"summary":"Health Check Detailed","description":"Detailed health check with component checks (slower).\n\nIncludes:\n- Event loop heartbeat monitoring\n- Redis connectivity\n- Cache system status\n- Uptime","operationId":"health_check_detailed_health_detailed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/status":{"get":{"summary":"System Status","description":"Get system status","operationId":"system_status_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/metrics/cache":{"get":{"summary":"Cache Metrics","description":"Expose threat cache metrics in Prometheus format.","operationId":"cache_metrics_metrics_cache_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/update-now":{"post":{"summary":"Trigger Update Now","description":"Trigger an immediate worker update for all tenants\n\nThis endpoint triggers a manual update of all tenant data,\nbypassing the scheduled interval. Useful for getting fresh\ndata immediately after configuration changes.","operationId":"trigger_update_now_api_update_now_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tenant/{tenant_id}/refresh":{"post":{"summary":"Trigger Tenant Refresh","description":"Trigger an immediate refresh for a single tenant\n\nThis endpoint triggers a manual refresh of a specific tenant's data,\nuseful for reconnecting a tenant that appears offline or forcing\nan immediate data update.","operationId":"trigger_tenant_refresh_api_tenant__tenant_id__refresh_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ADDomainControllerIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: win-dc-*)"},"type":{"type":"string","const":"ad-domain-controller","title":"Type","default":"ad-domain-controller"},"host":{"type":"string","title":"Host","description":"Domain controller hostname or IP"},"username":{"type":"string","title":"Username","description":"Domain service account (DOMAIN\\username)"},"password":{"type":"string","title":"Password","description":"Domain service account password"},"port":{"type":"integer","title":"Port","description":"WinRM port","default":5986},"scheme":{"type":"string","enum":["https","http"],"title":"Scheme","description":"WinRM scheme","default":"https"},"transport":{"type":"string","enum":["ntlm","kerberos"],"title":"Transport","description":"Authentication transport","default":"ntlm"},"verify_tls":{"type":"boolean","title":"Verify Tls","description":"Verify TLS certificate","default":false}},"type":"object","required":["integration_id","host","username","password"],"title":"ADDomainControllerIntegration","description":"AD Domain Controller (WinRM) integration - ID prefix: win-dc-*"},"ActivityEvent":{"properties":{"activity_id":{"type":"string","title":"Activity Id"},"incident_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incident Id"},"ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ts"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"action":{"anyOf":[{"type":"string","enum":["retrieve","reason","dispose","escalate","hitl_wait","guardrail","error"]},{"type":"null"}],"title":"Action"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"cited_fields":{"items":{"type":"string"},"type":"array","title":"Cited Fields"},"evidence_refs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Evidence Refs"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["activity_id"],"title":"ActivityEvent"},"ActivityHit":{"properties":{"timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestamp"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"activity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity"},"resource_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"path":{"additionalProperties":true,"type":"object","title":"Path"},"query":{"additionalProperties":true,"type":"object","title":"Query"},"extra":{"additionalProperties":true,"type":"object","title":"Extra"}},"type":"object","title":"ActivityHit"},"ActivityPage":{"properties":{"total":{"type":"integer","title":"Total"},"has_more":{"type":"boolean","title":"Has More"},"items":{"items":{"$ref":"#/components/schemas/ActivityHit"},"type":"array","title":"Items"}},"type":"object","required":["total","has_more","items"],"title":"ActivityPage"},"ActivityResponse":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"},"server_time":{"type":"string","title":"Server Time"},"events":{"items":{"$ref":"#/components/schemas/ActivityEvent"},"type":"array","title":"Events"}},"type":"object","required":["tenant_id","server_time"],"title":"ActivityResponse"},"ActivityType":{"type":"string","enum":["created","status_changed","priority_changed","assigned","unassigned","commented","updated","resolved","closed","reopened","linked","attachment_added","servicenow_sync"],"title":"ActivityType","description":"Case activity types."},"AddEmailRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"AddEmailRequest"},"AddNodeRequest":{"properties":{"node_ip":{"type":"string","title":"Node Ip","description":"IP address or hostname of the new node"},"roles":{"anyOf":[{"items":{"$ref":"#/components/schemas/NodeRole"},"type":"array"},{"type":"null"}],"title":"Roles","description":"Node roles (e.g., voting_only). If not specified, node is added as a data node."}},"type":"object","required":["node_ip"],"title":"AddNodeRequest","description":"Request to add a node to an existing cluster"},"AddPromptRequest":{"properties":{"folder_id":{"type":"string","title":"Folder Id"},"text":{"type":"string","title":"Text"}},"type":"object","required":["folder_id","text"],"title":"AddPromptRequest","description":"Request to add a prompt to a folder."},"AddRuleRequest":{"properties":{"rule_name":{"type":"string","maxLength":60,"minLength":1,"title":"Rule Name"},"content":{"type":"string","title":"Content","default":""},"type":{"type":"string","enum":["AssetIP","HostName","UserName","URL"],"title":"Type"},"value":{"type":"string","maxLength":2048,"title":"Value","default":""}},"type":"object","required":["rule_name","type"],"title":"AddRuleRequest"},"AgentCommand":{"properties":{"command_id":{"type":"string","title":"Command Id","description":"Unique command identifier"},"type":{"$ref":"#/components/schemas/AgentCommandType","description":"Command type"},"params":{"additionalProperties":true,"type":"object","title":"Params","description":"Command parameters"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When command was created"}},"type":"object","required":["command_id","type"],"title":"AgentCommand","description":"Command to be executed by the node agent"},"AgentCommandType":{"type":"string","enum":["CONFIGURE","START","STOP","RESTART","RECONFIGURE","SHUTDOWN","HEALTH_CHECK"],"title":"AgentCommandType","description":"Commands that can be sent to node agents"},"AgentRegisterRequest":{"properties":{"host_url":{"type":"string","title":"Host Url","description":"MSSP base URL to register with"}},"type":"object","required":["host_url"],"title":"AgentRegisterRequest"},"AiGenerateRequest":{"properties":{"input":{"type":"string","title":"Input"},"ignore_case":{"type":"boolean","title":"Ignore Case","default":true},"guidance":{"type":"string","title":"Guidance","default":""}},"type":"object","required":["input"],"title":"AiGenerateRequest"},"AiRefineRequest":{"properties":{"rule_id":{"type":"string","title":"Rule Id"},"input":{"type":"string","title":"Input"},"ignore_case":{"type":"boolean","title":"Ignore Case","default":true},"guidance":{"type":"string","title":"Guidance","default":""}},"type":"object","required":["rule_id","input"],"title":"AiRefineRequest"},"AlertDeliveryBody":{"properties":{"email_integration_id":{"type":"string","title":"Email Integration Id","default":""},"slack_integration_id":{"type":"string","title":"Slack Integration Id","default":""},"slack_target":{"type":"string","title":"Slack Target","default":""},"teams_integration_id":{"type":"string","title":"Teams Integration Id","default":""}},"type":"object","title":"AlertDeliveryBody"},"AlertDetail":{"properties":{"id":{"type":"string","title":"Id"},"timestamp":{"type":"string","title":"Timestamp","default":""},"event_name":{"type":"string","title":"Event Name","default":"Unknown"},"risk_score":{"type":"number","title":"Risk Score","default":0.0},"value_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Score"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname"},"source_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ip"},"destination_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Ip"},"nlp_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nlp Summary"},"nlp_classification":{"anyOf":[{},{"type":"null"}],"title":"Nlp Classification"},"classification_rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification Rationale"},"semantic_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Semantic Score"},"full_document":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Full Document"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["id"],"title":"AlertDetail","description":"Single alert record with full document data"},"AnalyticsResponse":{"properties":{"total_alerts":{"type":"integer","title":"Total Alerts"},"unique_count":{"type":"integer","title":"Unique Count"},"global_avg_risk":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Global Avg Risk"},"global_avg_semantic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Global Avg Semantic"},"global_nlp_count":{"type":"integer","title":"Global Nlp Count","default":0},"global_risk_histogram":{"anyOf":[{"$ref":"#/components/schemas/GlobalHistogram"},{"type":"null"}]},"global_semantic_histogram":{"anyOf":[{"$ref":"#/components/schemas/GlobalHistogram"},{"type":"null"}]},"entities":{"items":{"$ref":"#/components/schemas/EntityMetrics"},"type":"array","title":"Entities"},"filter_applied":{"type":"string","title":"Filter Applied"},"tenant":{"type":"string","title":"Tenant"},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":100},"total_pages":{"type":"integer","title":"Total Pages","default":1},"total_entities":{"type":"integer","title":"Total Entities","default":0}},"type":"object","required":["total_alerts","unique_count","entities","filter_applied","tenant"],"title":"AnalyticsResponse","description":"Standard analytics response with pagination"},"AnomalyContributor":{"properties":{"feature":{"type":"string","title":"Feature"},"impact_percentage":{"type":"number","title":"Impact Percentage"}},"type":"object","required":["feature","impact_percentage"],"title":"AnomalyContributor","description":"NDR anomaly contributor feature"},"AppSettingsResponse":{"properties":{"worker":{"additionalProperties":true,"type":"object","title":"Worker"},"mssp_portal_url":{"type":"string","title":"Mssp Portal Url"},"timezone":{"type":"string","title":"Timezone"}},"type":"object","required":["worker","mssp_portal_url","timezone"],"title":"AppSettingsResponse","description":"Response model for app settings."},"AppSettingsUpdateRequest":{"properties":{"worker":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Worker"},"mssp_portal_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mssp Portal Url"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"type":"object","title":"AppSettingsUpdateRequest","description":"Request model for updating app settings."},"ApplicationListResponse":{"properties":{"applications":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Applications","description":"List of applications with config hashes"},"allow_remote_config":{"type":"boolean","title":"Allow Remote Config","description":"Whether tenant allows remote config updates"}},"type":"object","required":["applications","allow_remote_config"],"title":"ApplicationListResponse","description":"Response for listing tenant applications."},"ApproveResetResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"email":{"type":"string","title":"Email"},"temp_password":{"type":"string","title":"Temp Password","description":"One-time temp password the admin must email out-of-band"},"message":{"type":"string","title":"Message","default":"Temp password set in Keycloak. The user must change it on next login."}},"type":"object","required":["request_id","email","temp_password"],"title":"ApproveResetResponse","description":"Returned ONCE when the admin approves. The temp password is shown only\nhere — never persisted in our store, never returned again."},"AskSocgptRequest":{"properties":{"question":{"type":"string","maxLength":4000,"minLength":1,"title":"Question"}},"type":"object","required":["question"],"title":"AskSocgptRequest"},"AssetIPCreate":{"properties":{"ip":{"type":"string","title":"Ip"},"description":{"type":"string","title":"Description","default":""},"tag":{"type":"string","title":"Tag","default":""}},"type":"object","required":["ip"],"title":"AssetIPCreate"},"AssetIPUpdate":{"properties":{"ip":{"type":"string","title":"Ip"},"description":{"type":"string","title":"Description","default":""},"tag":{"type":"string","title":"Tag","default":""}},"type":"object","required":["ip"],"title":"AssetIPUpdate"},"AssignmentCreate":{"properties":{"entity_key":{"type":"string","title":"Entity Key"},"assignee":{"type":"string","title":"Assignee"},"assigned_by":{"type":"string","title":"Assigned By","default":"analyst"}},"type":"object","required":["entity_key","assignee"],"title":"AssignmentCreate"},"AutoApproveStatus":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"AutoApproveStatus"},"AutoApproveUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"AutoApproveUpdate"},"BatchAlertRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"doc_ids":{"items":{"type":"string"},"type":"array","title":"Doc Ids"},"indices":{"items":{"type":"string"},"type":"array","title":"Indices","default":["security_alerts-*","detections-*","predictions-*","user_detection-*"]}},"type":"object","required":["tenant_id","doc_ids"],"title":"BatchAlertRequest","description":"Request to fetch multiple alert documents in one roundtrip.","example":{"doc_ids":["abc123","def456"],"tenant_id":"demo"}},"BatchAlertResponse":{"properties":{"docs":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Docs"},"not_found":{"items":{"type":"string"},"type":"array","title":"Not Found"},"total_requested":{"type":"integer","title":"Total Requested"},"total_found":{"type":"integer","title":"Total Found"}},"type":"object","required":["docs","not_found","total_requested","total_found"],"title":"BatchAlertResponse","description":"Response containing multiple alert documents."},"Body_publish_bundle_api_agent_updates_bundles_post":{"properties":{"agent_type":{"type":"string","title":"Agent Type","default":""},"version":{"type":"string","title":"Version","default":""},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_publish_bundle_api_agent_updates_bundles_post"},"Body_publish_bundle_api_collector_fleet_bundles_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_publish_bundle_api_collector_fleet_bundles_post"},"Body_set_ui_language_set_language_post":{"properties":{"lang":{"type":"string","title":"Lang"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["lang"],"title":"Body_set_ui_language_set_language_post"},"Body_upload_attachment_api_cases__case_id__attachments_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_attachment_api_cases__case_id__attachments_post"},"Body_upload_brand_api_admin_tenants__client_id__brand_put":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_brand_api_admin_tenants__client_id__brand_put"},"Body_upload_certificates_api_connectors_instances__instance_id__certificates_post":{"properties":{"cert_file":{"type":"string","contentMediaType":"application/octet-stream","title":"Cert File"},"key_file":{"type":"string","contentMediaType":"application/octet-stream","title":"Key File"}},"type":"object","required":["cert_file","key_file"],"title":"Body_upload_certificates_api_connectors_instances__instance_id__certificates_post"},"Body_upload_file_api_reference_kb_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"file_type":{"type":"string","title":"File Type"},"asset_value":{"type":"string","title":"Asset Value"}},"type":"object","required":["file","file_type","asset_value"],"title":"Body_upload_file_api_reference_kb_upload_post"},"Body_upload_license_api_settings_license_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_license_api_settings_license_upload_post"},"BulkAssign":{"properties":{"incident_ids":{"items":{"type":"string"},"type":"array","title":"Incident Ids","description":"List of incident entity IDs"},"assigned_to":{"type":"string","title":"Assigned To","description":"Analyst to assign to"},"create_cases":{"type":"boolean","title":"Create Cases","description":"Create cases if they don't exist","default":true}},"type":"object","required":["incident_ids","assigned_to"],"title":"BulkAssign","description":"Bulk assignment."},"BulkCaseCreate":{"properties":{"incident_ids":{"items":{"type":"string"},"type":"array","title":"Incident Ids","description":"List of incident entity IDs"},"incidents":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Incidents","description":"Full incident objects with entity, entity_type, risk_score, etc."},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id","description":"Tenant ID for case creation"},"case_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case Title","description":"Title for case (or auto-generate)"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To","description":"Assign to analyst"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority","description":"Override priority"},"merge_into_single_case":{"type":"boolean","title":"Merge Into Single Case","description":"Create one case or individual cases","default":true}},"type":"object","required":["incident_ids"],"title":"BulkCaseCreate","description":"Bulk case creation from incidents."},"BulkDisposition":{"properties":{"incident_ids":{"items":{"type":"string"},"type":"array","title":"Incident Ids","description":"List of incident entity IDs"},"disposition":{"$ref":"#/components/schemas/DispositionType","description":"Disposition type"},"disposition_reason":{"type":"string","title":"Disposition Reason","description":"Reason for disposition"},"create_cases":{"type":"boolean","title":"Create Cases","description":"Create cases for true positives","default":false},"create_suppression":{"type":"boolean","title":"Create Suppression","description":"Create suppression rule for false positives","default":false}},"type":"object","required":["incident_ids","disposition","disposition_reason"],"title":"BulkDisposition","description":"Bulk disposition update."},"BulkOperationResult":{"properties":{"success":{"type":"boolean","title":"Success"},"processed":{"type":"integer","title":"Processed"},"failed":{"type":"integer","title":"Failed"},"details":{"additionalProperties":true,"type":"object","title":"Details"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","processed","failed","details","message"],"title":"BulkOperationResult","description":"Result of bulk operation."},"BulkStageUpdate":{"properties":{"updates":{"items":{"$ref":"#/components/schemas/StageUpdate"},"type":"array","title":"Updates"}},"type":"object","required":["updates"],"title":"BulkStageUpdate"},"BulkTag":{"properties":{"incident_ids":{"items":{"type":"string"},"type":"array","title":"Incident Ids","description":"List of incident entity IDs"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"Tags to add"},"create_cases":{"type":"boolean","title":"Create Cases","description":"Create cases if they don't exist","default":false}},"type":"object","required":["incident_ids","tags"],"title":"BulkTag","description":"Bulk tagging."},"CacheInvalidateResponse":{"properties":{"status":{"type":"string","title":"Status"},"deleted_entries":{"type":"integer","title":"Deleted Entries"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","deleted_entries","message"],"title":"CacheInvalidateResponse","description":"Cache invalidation response"},"CacheRefreshStatusResponse":{"properties":{"last_refresh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Refresh"},"next_refresh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Next Refresh"},"refresh_interval":{"type":"integer","title":"Refresh Interval"},"message":{"type":"string","title":"Message"}},"type":"object","required":["refresh_interval","message"],"title":"CacheRefreshStatusResponse","description":"Cache refresh timing status"},"CacheStatsResponse":{"properties":{"hits":{"type":"integer","title":"Hits"},"misses":{"type":"integer","title":"Misses"},"sets":{"type":"integer","title":"Sets"},"invalidations":{"type":"integer","title":"Invalidations"},"total_requests":{"type":"integer","title":"Total Requests"},"hit_rate_percent":{"type":"number","title":"Hit Rate Percent"},"backend":{"type":"string","title":"Backend"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["hits","misses","sets","invalidations","total_requests","hit_rate_percent","backend"],"title":"CacheStatsResponse","description":"Cache statistics response"},"CacheWarmResponse":{"properties":{"status":{"type":"string","title":"Status"},"warmed_queries":{"type":"integer","title":"Warmed Queries"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","warmed_queries","message"],"title":"CacheWarmResponse","description":"Cache warming response"},"Case":{"properties":{"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title","description":"Case title/summary"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Detailed case description"},"priority":{"$ref":"#/components/schemas/CasePriority","description":"Case priority level","default":"medium"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Case category (malware, phishing, etc.)"},"subcategory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subcategory","description":"Case subcategory"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"Case tags for organization"},"id":{"type":"integer","title":"Id","description":"Case ID"},"case_number":{"type":"string","title":"Case Number","description":"Human-readable case number"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Tenant identifier"},"status":{"$ref":"#/components/schemas/CaseStatus","description":"Case status","default":"open"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity","description":"Case severity"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To","description":"Assignee email/ID"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At","description":"Assignment timestamp"},"team":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team","description":"Assigned team"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type","description":"Source type"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id","description":"Source identifier"},"source_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Data","description":"Source metadata"},"related_entities":{"items":{"$ref":"#/components/schemas/EntityReference"},"type":"array","title":"Related Entities","description":"Related entities"},"affected_systems":{"items":{"type":"string"},"type":"array","title":"Affected Systems","description":"Affected systems"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"},"created_by":{"type":"string","title":"Created By","description":"Creator email/ID"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last update timestamp"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By","description":"Last updater email/ID"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At","description":"Resolution timestamp"},"resolved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By","description":"Resolver email/ID"},"resolution_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Summary","description":"Resolution summary"},"resolution_action":{"anyOf":[{"$ref":"#/components/schemas/ResolutionAction"},{"type":"null"}],"description":"Resolution action"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition","description":"Case disposition (true_positive, false_positive, etc.)"},"disposition_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Reason","description":"Disposition reason/notes"},"disposition_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Disposition At","description":"Disposition timestamp"},"disposition_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition By","description":"Who set the disposition"},"sla_deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sla Deadline","description":"SLA deadline"},"sla_status":{"$ref":"#/components/schemas/SLAStatus","description":"SLA status","default":"on_track"},"first_response_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Response At","description":"First response timestamp"},"first_response_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Response By","description":"First responder"},"customer_visible":{"type":"boolean","title":"Customer Visible","description":"Customer visibility","default":false},"customer_impact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Impact","description":"Customer impact"},"customer_notified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Customer Notified At","description":"Customer notification time"},"comment_count":{"type":"integer","title":"Comment Count","description":"Number of comments","default":0},"attachment_count":{"type":"integer","title":"Attachment Count","description":"Number of attachments","default":0},"activity_count":{"type":"integer","title":"Activity Count","description":"Number of activities","default":0},"recurrence_count":{"type":"integer","title":"Recurrence Count","description":"Times an incident recurred for this case","default":0},"last_recurrence_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Recurrence At","description":"Last recurrence timestamp"}},"type":"object","required":["title","id","case_number","tenant_id","created_at","created_by","updated_at"],"title":"Case","description":"Full case model with all fields."},"CaseActivity":{"properties":{"id":{"type":"integer","title":"Id","description":"Activity ID"},"case_id":{"type":"integer","title":"Case Id","description":"Case ID"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Tenant ID"},"activity_type":{"$ref":"#/components/schemas/ActivityType","description":"Activity type"},"actor":{"type":"string","title":"Actor","description":"User who performed action"},"actor_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Role","description":"Actor role"},"field_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Name","description":"Changed field name"},"old_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Value","description":"Previous value"},"new_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Value","description":"New value"},"description":{"type":"string","title":"Description","description":"Human-readable description"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional context"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Activity timestamp"},"customer_visible":{"type":"boolean","title":"Customer Visible","description":"Customer visibility","default":false}},"type":"object","required":["id","case_id","tenant_id","activity_type","actor","description","created_at"],"title":"CaseActivity","description":"Case activity/audit trail entry."},"CaseAskRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/CaseSocgptTurn"},"type":"array","minItems":1,"title":"Messages","description":"Full conversation so far; the last item must be role=user."}},"type":"object","required":["messages"],"title":"CaseAskRequest","description":"Multi-turn Ask-SOCGPT request. The client holds the conversation and replays it each call (the\nserver is stateless); the last turn must be the analyst's new question."},"CaseAttachment":{"properties":{"id":{"type":"integer","title":"Id","description":"Attachment ID"},"case_id":{"type":"integer","title":"Case Id","description":"Case ID"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Tenant ID"},"filename":{"type":"string","title":"Filename","description":"Original filename"},"file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size","description":"File size in bytes"},"file_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Type","description":"MIME type"},"file_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path","description":"Legacy storage path (deprecated)"},"file_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Hash","description":"SHA256 hash"},"uploaded_by":{"type":"string","title":"Uploaded By","description":"Uploader email/ID"},"uploaded_at":{"type":"string","format":"date-time","title":"Uploaded At","description":"Upload timestamp"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"File description"},"scan_status":{"type":"string","title":"Scan Status","description":"Virus scan status","default":"pending"},"scan_results":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Scan Results","description":"Scan results"},"is_malicious":{"type":"boolean","title":"Is Malicious","description":"Malicious flag","default":false},"customer_visible":{"type":"boolean","title":"Customer Visible","description":"Customer visibility","default":false}},"type":"object","required":["id","case_id","tenant_id","filename","uploaded_by","uploaded_at"],"title":"CaseAttachment","description":"Case file attachment."},"CaseComment":{"properties":{"comment_text":{"type":"string","minLength":1,"title":"Comment Text","description":"Comment text"},"comment_type":{"type":"string","title":"Comment Type","description":"Comment type (note, analysis, etc.)","default":"note"},"is_internal":{"type":"boolean","title":"Is Internal","description":"Internal-only comment","default":true},"customer_visible":{"type":"boolean","title":"Customer Visible","description":"Customer visibility","default":false},"id":{"type":"integer","title":"Id","description":"Comment ID"},"case_id":{"type":"integer","title":"Case Id","description":"Case ID"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Tenant ID"},"author":{"type":"string","title":"Author","description":"Comment author"},"author_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Role","description":"Author role"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Last update timestamp"},"caller_permissions":{"items":{"type":"string"},"type":"array","title":"Caller Permissions","description":"Action verbs the requesting caller can perform on THIS comment after RBAC perm + scope (own = caller authored, tenant = any). UI gates the per-comment Edit / Delete buttons against this. Possible values: ``update``, ``delete``."}},"type":"object","required":["comment_text","id","case_id","tenant_id","author","created_at"],"title":"CaseComment","description":"Full comment model."},"CaseCommentCreate":{"properties":{"comment_text":{"type":"string","minLength":1,"title":"Comment Text","description":"Comment text"},"comment_type":{"type":"string","title":"Comment Type","description":"Comment type (note, analysis, etc.)","default":"note"},"is_internal":{"type":"boolean","title":"Is Internal","description":"Internal-only comment","default":true},"customer_visible":{"type":"boolean","title":"Customer Visible","description":"Customer visibility","default":false}},"type":"object","required":["comment_text"],"title":"CaseCommentCreate","description":"Request model for creating a comment."},"CaseCreate":{"properties":{"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title","description":"Case title/summary"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Detailed case description"},"priority":{"$ref":"#/components/schemas/CasePriority","description":"Case priority level","default":"medium"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Case category (malware, phishing, etc.)"},"subcategory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subcategory","description":"Case subcategory"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"Case tags for organization"},"status":{"anyOf":[{"$ref":"#/components/schemas/CaseStatus"},{"type":"null"}],"description":"Initial status (defaults to open if omitted)"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type","description":"Source type (soc_incident, manual, api)"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id","description":"Source identifier"},"source_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Data","description":"Source metadata"},"related_entities":{"items":{"$ref":"#/components/schemas/EntityReference"},"type":"array","title":"Related Entities","description":"Related entities"},"affected_systems":{"items":{"type":"string"},"type":"array","title":"Affected Systems","description":"Affected system IDs"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To","description":"Assignee email/ID"},"team":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team","description":"Assigned team"},"customer_visible":{"type":"boolean","title":"Customer Visible","description":"Customer visibility flag","default":false},"customer_impact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Impact","description":"Customer impact level"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition","description":"Initial disposition (e.g. true_positive, false_positive) when set at creation"},"disposition_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Reason","description":"Reason/notes when disposition is set at creation"}},"type":"object","required":["title"],"title":"CaseCreate","description":"Request model for creating a new case."},"CaseDetailResponse":{"properties":{"case":{"$ref":"#/components/schemas/Case","description":"Case details"},"activities":{"items":{"$ref":"#/components/schemas/CaseActivity"},"type":"array","title":"Activities","description":"Case activities"},"comments":{"items":{"$ref":"#/components/schemas/CaseComment"},"type":"array","title":"Comments","description":"Case comments"},"attachments":{"items":{"$ref":"#/components/schemas/CaseAttachment"},"type":"array","title":"Attachments","description":"Case attachments"},"evidence":{"items":{"$ref":"#/components/schemas/app__models__cases__CaseEvidence"},"type":"array","title":"Evidence","description":"Case evidence"},"socgpt_material":{"items":{"$ref":"#/components/schemas/CaseSocgptMaterial"},"type":"array","title":"Socgpt Material","description":"Analyst-inserted SOCGPT responses (with threaded notes)"},"tasks":{"items":{"$ref":"#/components/schemas/CaseTask"},"type":"array","title":"Tasks","description":"Case tasks"},"relationships":{"items":{"$ref":"#/components/schemas/CaseRelationship"},"type":"array","title":"Relationships","description":"Case relationships"},"linked_incidents":{"items":{"$ref":"#/components/schemas/LinkedIncident"},"type":"array","title":"Linked Incidents","description":"FAST incidents/clusters currently in this case's active membership list"},"caller_permissions":{"items":{"type":"string"},"type":"array","title":"Caller Permissions","description":"Action verbs the requesting caller is allowed to perform on THIS case (after both RBAC perm + scope checks against the row's assignee/team/tenant). UI uses this to gate buttons per-case instead of by the user's general perms — e.g. an own-scoped updater sees the Edit button only on cases they actually own. Possible values: ``read``, ``update``, ``delete``, ``transition``, ``comment``."}},"type":"object","required":["case"],"title":"CaseDetailResponse","description":"Response model for case detail with related data."},"CaseEvidenceCreate":{"properties":{"evidence_type":{"$ref":"#/components/schemas/EvidenceType","description":"Type of evidence"},"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title","description":"Evidence title/label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Evidence description"},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Evidence data (JSON)"},"source_index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Index","description":"Elasticsearch index if from ES"},"source_doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Doc Id","description":"Elasticsearch document ID"},"customer_visible":{"type":"boolean","title":"Customer Visible","description":"Customer visibility","default":false}},"type":"object","required":["evidence_type","title","data"],"title":"CaseEvidenceCreate","description":"Request model for manually adding evidence."},"CasePriority":{"type":"string","enum":["critical","high","medium","low"],"title":"CasePriority","description":"Case priority levels (aligned with SOC P1-P4)."},"CaseRelationship":{"properties":{"target_case_id":{"type":"integer","title":"Target Case Id","description":"Target case ID"},"relationship_type":{"$ref":"#/components/schemas/RelationshipType","description":"Relationship type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Relationship description"},"id":{"type":"integer","title":"Id","description":"Relationship ID"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Tenant ID"},"source_case_id":{"type":"integer","title":"Source Case Id","description":"Source case ID"},"created_by":{"type":"string","title":"Created By","description":"Creator email/ID"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"}},"type":"object","required":["target_case_id","relationship_type","id","tenant_id","source_case_id","created_by","created_at"],"title":"CaseRelationship","description":"Full case relationship model."},"CaseResolve":{"properties":{"resolution_summary":{"type":"string","minLength":1,"title":"Resolution Summary","description":"Resolution summary"},"resolution_action":{"$ref":"#/components/schemas/ResolutionAction","description":"Resolution action taken"},"close_case":{"type":"boolean","title":"Close Case","description":"Also close the case","default":false}},"type":"object","required":["resolution_summary","resolution_action"],"title":"CaseResolve","description":"Request model for resolving a case."},"CaseSocgptMaterial":{"properties":{"id":{"type":"integer","title":"Id"},"case_id":{"type":"integer","title":"Case Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"question":{"type":"string","title":"Question"},"answer":{"type":"string","title":"Answer"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"conversation":{"anyOf":[{"items":{"$ref":"#/components/schemas/CaseSocgptTurn"},"type":"array"},{"type":"null"}],"title":"Conversation"},"customer_visible":{"type":"boolean","title":"Customer Visible","default":false},"inserted_by":{"type":"string","title":"Inserted By"},"inserted_by_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inserted By Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"notes":{"items":{"$ref":"#/components/schemas/CaseSocgptNote"},"type":"array","title":"Notes","description":"Threaded analyst annotations"},"caller_permissions":{"items":{"type":"string"},"type":"array","title":"Caller Permissions","description":"Verbs the caller may perform on THIS item (delete, annotate)."}},"type":"object","required":["id","case_id","tenant_id","question","answer","inserted_by","created_at"],"title":"CaseSocgptMaterial","description":"Full inserted SOCGPT material item, with its threaded analyst notes."},"CaseSocgptMaterialCreate":{"properties":{"question":{"type":"string","minLength":1,"title":"Question","description":"The analyst prompt that produced this answer"},"answer":{"type":"string","minLength":1,"title":"Answer","description":"The SOCGPT answer to persist as case material"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model that produced it (provenance)"},"conversation":{"anyOf":[{"items":{"$ref":"#/components/schemas/CaseSocgptTurn"},"type":"array"},{"type":"null"}],"title":"Conversation","description":"Full turn list at insert time"},"customer_visible":{"type":"boolean","title":"Customer Visible","description":"Customer visibility","default":false}},"type":"object","required":["question","answer"],"title":"CaseSocgptMaterialCreate","description":"Request model for inserting a SOCGPT answer into the case as persistent material."},"CaseSocgptNote":{"properties":{"note_text":{"type":"string","minLength":1,"title":"Note Text","description":"Annotation text"},"id":{"type":"integer","title":"Id"},"material_id":{"type":"integer","title":"Material Id"},"case_id":{"type":"integer","title":"Case Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"author":{"type":"string","title":"Author"},"author_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"caller_permissions":{"items":{"type":"string"},"type":"array","title":"Caller Permissions","description":"Verbs the caller may perform on THIS note (update, delete)."}},"type":"object","required":["note_text","id","material_id","case_id","tenant_id","author","created_at"],"title":"CaseSocgptNote","description":"Full threaded note on a SOCGPT material item."},"CaseSocgptNoteCreate":{"properties":{"note_text":{"type":"string","minLength":1,"title":"Note Text","description":"Annotation text"}},"type":"object","required":["note_text"],"title":"CaseSocgptNoteCreate","description":"Request model for adding a threaded note to an inserted SOCGPT material item."},"CaseSocgptTurn":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role","description":"Turn author"},"content":{"type":"string","minLength":1,"title":"Content","description":"Turn text"}},"type":"object","required":["role","content"],"title":"CaseSocgptTurn","description":"One turn of the (ephemeral, client-held) Ask-SOCGPT conversation."},"CaseStats":{"properties":{"total_cases":{"type":"integer","title":"Total Cases","description":"Total number of cases","default":0},"open_cases":{"type":"integer","title":"Open Cases","description":"Open cases","default":0},"in_progress_cases":{"type":"integer","title":"In Progress Cases","description":"Cases in progress","default":0},"waiting_cases":{"type":"integer","title":"Waiting Cases","description":"Cases waiting","default":0},"resolved_cases":{"type":"integer","title":"Resolved Cases","description":"Resolved cases","default":0},"closed_cases":{"type":"integer","title":"Closed Cases","description":"Closed cases","default":0},"critical_cases":{"type":"integer","title":"Critical Cases","description":"Critical priority cases","default":0},"high_cases":{"type":"integer","title":"High Cases","description":"High priority cases","default":0},"medium_cases":{"type":"integer","title":"Medium Cases","description":"Medium priority cases","default":0},"low_cases":{"type":"integer","title":"Low Cases","description":"Low priority cases","default":0},"sla_breached":{"type":"integer","title":"Sla Breached","description":"SLA breached cases","default":0},"sla_at_risk":{"type":"integer","title":"Sla At Risk","description":"SLA at risk cases","default":0},"unassigned_cases":{"type":"integer","title":"Unassigned Cases","description":"Unassigned cases","default":0},"avg_time_to_resolution_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Time To Resolution Hours","description":"Average resolution time"},"avg_time_to_first_response_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Time To First Response Hours","description":"Average first response time"}},"type":"object","title":"CaseStats","description":"Case statistics for dashboard."},"CaseStatus":{"type":"string","enum":["open","in_progress","waiting","resolved","closed"],"title":"CaseStatus","description":"Case status options."},"CaseTask":{"properties":{"id":{"type":"integer","title":"Id","description":"Task ID"},"case_id":{"type":"integer","title":"Case Id","description":"Case ID"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Tenant ID"},"title":{"type":"string","title":"Title","description":"Task title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Task description"},"status":{"type":"string","title":"Status","description":"Task status","default":"pending"},"priority":{"$ref":"#/components/schemas/CasePriority","description":"Task priority","default":"medium"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To","description":"Assignee email/ID"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At","description":"Assignment timestamp"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"},"created_by":{"type":"string","title":"Created By","description":"Creator email/ID"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"Completion timestamp"},"completed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed By","description":"Completer email/ID"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date","description":"Due date"},"sort_order":{"type":"integer","title":"Sort Order","description":"Sort order","default":0}},"type":"object","required":["id","case_id","tenant_id","title","created_at","created_by"],"title":"CaseTask","description":"Full task model."},"CaseUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Title","description":"Case title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Case description"},"status":{"anyOf":[{"$ref":"#/components/schemas/CaseStatus"},{"type":"null"}],"description":"Case status"},"priority":{"anyOf":[{"$ref":"#/components/schemas/CasePriority"},{"type":"null"}],"description":"Case priority"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Case category"},"subcategory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subcategory","description":"Case subcategory"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"Case tags"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To","description":"Assignee email/ID"},"team":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team","description":"Assigned team"},"customer_visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customer Visible","description":"Customer visibility"},"customer_impact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Impact","description":"Customer impact level"},"related_entities":{"anyOf":[{"items":{"$ref":"#/components/schemas/EntityReference"},"type":"array"},{"type":"null"}],"title":"Related Entities","description":"Related entities to link"}},"type":"object","title":"CaseUpdate","description":"Request model for updating a case."},"CategoryInsightsRequest":{"properties":{"tenant":{"type":"string","title":"Tenant"},"total_logs":{"type":"integer","title":"Total Logs"},"low_value_count":{"type":"integer","title":"Low Value Count"},"low_value_pct":{"type":"number","title":"Low Value Pct"},"avg_log_size_bytes":{"type":"integer","title":"Avg Log Size Bytes"},"time_range_days":{"type":"number","title":"Time Range Days"},"category_breakdown":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Category Breakdown"},"cost_projection":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cost Projection"}},"type":"object","required":["tenant","total_logs","low_value_count","low_value_pct","avg_log_size_bytes","time_range_days"],"title":"CategoryInsightsRequest","description":"Request body for category insights."},"ChatRequest":{"properties":{"message":{"type":"string","title":"Message"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"tenant_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Context"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode","default":"security"},"news_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"News Context"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"type":"object","required":["message"],"title":"ChatRequest","description":"Request to send a chat message."},"ChatResponse":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"messages":{"items":{"$ref":"#/components/schemas/ChatResponseMessage"},"type":"array","title":"Messages"},"tenant_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Context"}},"type":"object","required":["conversation_id","messages"],"title":"ChatResponse","description":"Response from chat endpoint."},"ChatResponseMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"tool_calls":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"tool_results":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tool Results"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["role","content","timestamp"],"title":"ChatResponseMessage","description":"A message in the chat response."},"CheckPointFirewallIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: cp-*)"},"type":{"type":"string","const":"checkpoint-firewall","title":"Type","default":"checkpoint-firewall"},"host":{"type":"string","title":"Host","description":"Firewall hostname or IP address"},"username":{"type":"string","title":"Username","description":"Admin username"},"password":{"type":"string","title":"Password","description":"Admin password"},"port":{"type":"integer","title":"Port","description":"Management API port","default":443},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain","description":"Domain (leave blank for default)"},"address_group":{"type":"string","title":"Address Group","description":"Address group for blocklists","default":"SOAR-Blocklist"},"verify_tls":{"type":"boolean","title":"Verify Tls","description":"Verify TLS certificate","default":false}},"type":"object","required":["integration_id","host","username","password"],"title":"CheckPointFirewallIntegration","description":"Check Point Firewall integration - ID prefix: cp-*"},"CheckRequest":{"properties":{"entities":{"items":{"$ref":"#/components/schemas/EntityItem"},"type":"array","title":"Entities"},"predicted_event":{"type":"string","title":"Predicted Event"}},"type":"object","required":["entities","predicted_event"],"title":"CheckRequest"},"CheckResponse":{"properties":{"existing":{"items":{"$ref":"#/components/schemas/ExistingRule"},"type":"array","title":"Existing"},"new":{"items":{"$ref":"#/components/schemas/NewEntity"},"type":"array","title":"New"}},"type":"object","required":["existing","new"],"title":"CheckResponse"},"ChiselAuthEntry":{"properties":{"client_id":{"type":"string","title":"Client Id"},"token":{"type":"string","title":"Token"}},"type":"object","required":["client_id","token"],"title":"ChiselAuthEntry","description":"Auth entry for Chisel server"},"ChiselAuthResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/ChiselAuthEntry"},"type":"array","title":"Entries"},"auth_file_content":{"type":"string","title":"Auth File Content"}},"type":"object","required":["entries","auth_file_content"],"title":"ChiselAuthResponse","description":"Response model for Chisel auth file content"},"ClientStatus":{"type":"string","enum":["pending","approved","rejected","disconnected"],"title":"ClientStatus","description":"Tunnel client approval status"},"ClusterInitMode":{"type":"string","enum":["fresh","convert"],"title":"ClusterInitMode","description":"Mode for cluster initialization"},"ClusterMember":{"properties":{"incident_id":{"type":"string","title":"Incident Id"},"entity_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Ref"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"priority_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Band"},"board_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board Priority"},"board_entered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board Entered At"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"is_current":{"type":"boolean","title":"Is Current","default":false}},"type":"object","required":["incident_id"],"title":"ClusterMember","description":"One sibling incident in the same cluster (docs/52 fast_clusters-* member_incident_ids) — the\ncase-detail drawer's CLUSTER card list item. Before this, the drawer only showed the bare\ncluster_id string; there was no way to see WHICH incidents actually make up the cluster or jump\nto one. `is_current` marks the incident whose drawer is already open, so it renders inline rather\nthan as an unlabeled duplicate of the entry the analyst is already looking at."},"ClusterStatus":{"properties":{"cluster_name":{"type":"string","title":"Cluster Name","description":"Name of the Elasticsearch cluster"},"cluster_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Uuid","description":"Cluster UUID"},"status":{"type":"string","title":"Status","description":"Cluster health status (green/yellow/red)"},"node_count":{"type":"integer","title":"Node Count","description":"Total number of nodes","default":0},"data_node_count":{"type":"integer","title":"Data Node Count","description":"Number of data nodes","default":0},"disk_total_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Disk Total Gb","description":"Total disk space across cluster"},"disk_used_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Disk Used Gb","description":"Used disk space across cluster"},"disk_used_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Disk Used Percent","description":"Disk usage percentage"},"replica_count":{"type":"integer","title":"Replica Count","description":"Number of data replicas (minimum 2)","default":2},"calculated_shards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Calculated Shards","description":"Calculated shards per index based on data volume"},"avg_daily_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Daily Gb","description":"Average daily data volume in GB used for shard calculation"},"relocating_shards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Relocating Shards","description":"Number of shards currently relocating"},"relocating_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Relocating Bytes","description":"Total bytes of shards currently relocating"},"relocating_bytes_done":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Relocating Bytes Done","description":"Bytes already transferred for current relocations"},"relocating_bytes_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Relocating Bytes Remaining","description":"Bytes remaining in current relocations"},"relocation_rate_mbps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Relocation Rate Mbps","description":"Current transfer rate in MB/s (sampled)"},"relocation_eta_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Relocation Eta Seconds","description":"Estimated time remaining in seconds"},"rebalance_total_shards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rebalance Total Shards","description":"Total shards that need to relocate for balance"},"rebalance_total_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rebalance Total Bytes","description":"Total bytes that need to move for balance"},"rebalance_pending_shards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rebalance Pending Shards","description":"Shards waiting to relocate"},"rebalance_pending_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rebalance Pending Bytes","description":"Bytes waiting to relocate"},"active_shards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Shards","description":"Number of active shards"},"unassigned_shards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unassigned Shards","description":"Number of unassigned shards"},"initializing_shards":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Initializing Shards","description":"Number of shards currently initializing"},"has_voting_only_node":{"type":"boolean","title":"Has Voting Only Node","description":"Whether cluster has a voting-only node","default":false},"is_single_node":{"type":"boolean","title":"Is Single Node","description":"Whether this is a single-node setup","default":true},"can_add_nodes":{"type":"boolean","title":"Can Add Nodes","description":"Whether more nodes can be added","default":true},"max_nodes":{"type":"integer","title":"Max Nodes","description":"Maximum allowed nodes","default":7}},"type":"object","required":["cluster_name","status"],"title":"ClusterStatus","description":"Current cluster status information"},"ClusterStatusResponse":{"properties":{"cluster":{"$ref":"#/components/schemas/ClusterStatus"},"is_configured":{"type":"boolean","title":"Is Configured","description":"Whether cluster management is configured","default":false},"initialized":{"type":"boolean","title":"Initialized","description":"Whether cluster is initialized (alias for is_configured)","default":false},"active_operation":{"anyOf":[{"$ref":"#/components/schemas/Operation"},{"type":"null"}],"description":"Currently active operation"},"degraded":{"type":"boolean","title":"Degraded","description":"True when the live cluster read failed and this snapshot was served from the last-good cache instead of fresh data. The UI shows a 'couldn't refresh' indicator but keeps displaying the cached values.","default":false}},"type":"object","required":["cluster"],"title":"ClusterStatusResponse","description":"Response for cluster status endpoint"},"ConfigDetailResponse":{"properties":{"application":{"type":"string","title":"Application"},"hash_key":{"type":"string","title":"Hash Key"},"parameters":{"items":{"$ref":"#/components/schemas/ConfigParameterResponse"},"type":"array","title":"Parameters"},"allow_remote_config":{"type":"boolean","title":"Allow Remote Config"}},"type":"object","required":["application","hash_key","parameters","allow_remote_config"],"title":"ConfigDetailResponse","description":"Response for application config details."},"ConfigParameterResponse":{"properties":{"key":{"type":"string","title":"Key"},"value":{"type":"string","title":"Value"},"description":{"type":"string","title":"Description","default":""},"data_type":{"type":"string","title":"Data Type","default":"string"},"default_value":{"type":"string","title":"Default Value","default":""},"min_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Value"},"max_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Value"},"pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern"},"view_roles":{"items":{"type":"string"},"type":"array","title":"View Roles","default":[]},"edit_roles":{"items":{"type":"string"},"type":"array","title":"Edit Roles","default":[]},"can_view":{"type":"boolean","title":"Can View","default":false},"can_edit":{"type":"boolean","title":"Can Edit","default":false},"display_name":{"type":"string","title":"Display Name","default":""},"display_group":{"type":"string","title":"Display Group","default":""},"display_category":{"type":"string","title":"Display Category","default":""}},"type":"object","required":["key","value"],"title":"ConfigParameterResponse","description":"Response for config parameter details."},"ConfigPayload":{"properties":{"config":{"title":"Config"}},"type":"object","required":["config"],"title":"ConfigPayload"},"ConfigResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"skip_path_prefixes":{"items":{"type":"string"},"type":"array","title":"Skip Path Prefixes"},"payload_redact_patterns":{"items":{"type":"string"},"type":"array","title":"Payload Redact Patterns"},"minimum_redact_patterns":{"items":{"type":"string"},"type":"array","title":"Minimum Redact Patterns","description":"Hardcoded patterns that PUT cannot remove. Read-only."},"flush_interval_seconds":{"type":"integer","title":"Flush Interval Seconds"},"flush_batch_size":{"type":"integer","title":"Flush Batch Size"},"queue_max_size":{"type":"integer","title":"Queue Max Size"},"anonymous_event_rate_limit_per_minute":{"type":"integer","title":"Anonymous Event Rate Limit Per Minute"}},"type":"object","required":["enabled","skip_path_prefixes","payload_redact_patterns","minimum_redact_patterns","flush_interval_seconds","flush_batch_size","queue_max_size","anonymous_event_rate_limit_per_minute"],"title":"ConfigResponse"},"ConfigUpdate":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"skip_path_prefixes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Skip Path Prefixes"},"payload_redact_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Payload Redact Patterns"},"flush_interval_seconds":{"anyOf":[{"type":"integer","maximum":300.0,"minimum":1.0},{"type":"null"}],"title":"Flush Interval Seconds"},"flush_batch_size":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Flush Batch Size"},"queue_max_size":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":100.0},{"type":"null"}],"title":"Queue Max Size"},"anonymous_event_rate_limit_per_minute":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Anonymous Event Rate Limit Per Minute"}},"type":"object","title":"ConfigUpdate"},"ConnectionMode":{"type":"string","enum":["local","remote"],"title":"ConnectionMode","description":"How to connect to this tenant's services"},"CorrelationMapResponse":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/GraphNode"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/GraphEdge"},"type":"array","title":"Edges"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"},"tenant":{"type":"string","title":"Tenant"},"time_range":{"type":"string","title":"Time Range"}},"type":"object","required":["nodes","edges","summary","tenant","time_range"],"title":"CorrelationMapResponse","description":"Complete correlation map graph data"},"CountryStats":{"properties":{"country_code":{"type":"string","title":"Country Code"},"country_name":{"type":"string","title":"Country Name"},"attack_count":{"type":"integer","title":"Attack Count"},"as_source":{"type":"integer","title":"As Source"},"as_destination":{"type":"integer","title":"As Destination"},"avg_risk_score":{"type":"number","title":"Avg Risk Score"},"top_threat_type":{"type":"string","title":"Top Threat Type"}},"type":"object","required":["country_code","country_name","attack_count","as_source","as_destination","avg_risk_score","top_threat_type"],"title":"CountryStats","description":"Threat statistics for a country"},"CreateAlertRequest":{"properties":{"connector_name":{"type":"string","title":"Connector Name"},"threshold_hours":{"type":"number","maximum":720.0,"minimum":0.25,"title":"Threshold Hours"},"email_recipients":{"items":{"type":"string"},"type":"array","title":"Email Recipients"},"enabled":{"type":"boolean","title":"Enabled","default":true},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["connector_name","threshold_hours"],"title":"CreateAlertRequest"},"CreateConnectorInstanceRequest":{"properties":{"connector_type":{"type":"string","title":"Connector Type"},"display_name":{"type":"string","title":"Display Name"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},"type":"object","required":["connector_type","display_name","config"],"title":"CreateConnectorInstanceRequest"},"CreateInstanceRequest":{"properties":{"connector_type":{"type":"string","title":"Connector Type"},"display_name":{"type":"string","title":"Display Name"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"},"customer_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Prefix"}},"type":"object","required":["connector_type","display_name","config"],"title":"CreateInstanceRequest"},"CreateJobRequest":{"properties":{"type":{"type":"string","title":"Type","description":"Job type: archive_export or restore"},"index_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Index Pattern"},"index_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Index Name"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"timestamp_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestamp Field"},"archive_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archive Path"},"decryption_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decryption Password"}},"type":"object","required":["type"],"title":"CreateJobRequest"},"CreateRequest":{"properties":{"entities":{"items":{"$ref":"#/components/schemas/EntityItem"},"type":"array","title":"Entities"},"predicted_event":{"type":"string","title":"Predicted Event"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"source_project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Project"}},"type":"object","required":["entities","predicted_event"],"title":"CreateRequest"},"CreateResponse":{"properties":{"created":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Created"},"failed":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Failed"}},"type":"object","required":["created","failed"],"title":"CreateResponse"},"CreateUserRequest":{"properties":{"email":{"type":"string","title":"Email","description":"User email address"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password","description":"User password (min 12 chars). Required unless email_temp_password is true, in which case it is ignored."},"email_temp_password":{"type":"boolean","title":"Email Temp Password","description":"When true, ignore `password`: the server generates a temporary password, forces a change on first login, and emails it to the user with login instructions.","default":false},"username":{"type":"string","title":"Username","description":"Username"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"User first name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"User last name"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles","description":"Keycloak realm roles. Normally derived on the server from rbac_role_ids — leave empty on create unless you are also directly assigning a realm role (e.g. the seeded sysadmin account via setup_keycloak.sh)."},"rbac_role_ids":{"items":{"type":"string"},"type":"array","title":"Rbac Role Ids","description":"pre-rbac-svc role UUIDs to assign to the new user. System role assignments mirror to the equivalent Keycloak realm role (admin → esm-admin, operator → esm-operator, viewer → esm-viewer, sysadmin → sysadmin); custom-role assignments don't touch Keycloak."}},"type":"object","required":["email","username"],"title":"CreateUserRequest","description":"Request model for creating a new user."},"CrowdStrikeIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (edr-crowdstrike)"},"type":{"type":"string","const":"edr-crowdstrike","title":"Type","default":"edr-crowdstrike"},"vendor":{"type":"string","const":"crowdstrike","title":"Vendor","default":"crowdstrike"},"base_url":{"type":"string","title":"Base Url","description":"CrowdStrike API base URL","default":"https://api.crowdstrike.com"},"client_id":{"type":"string","title":"Client Id","description":"API client ID"},"client_secret":{"type":"string","title":"Client Secret","description":"API client secret"}},"type":"object","required":["integration_id","client_id","client_secret"],"title":"CrowdStrikeIntegration","description":"CrowdStrike Falcon (EDR) integration - ID prefix: edr-crowdstrike"},"DecideRequest":{"properties":{"decision":{"type":"string","enum":["approve","override","contain","reopen","classify"],"title":"Decision"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"reopen_tier":{"anyOf":[{"type":"string","enum":["T1","T2","T3"]},{"type":"null"}],"title":"Reopen Tier"},"label":{"anyOf":[{"type":"string","enum":["true_positive","false_positive","benign_true_positive"]},{"type":"null"}],"title":"Label"}},"type":"object","required":["decision"],"title":"DecideRequest"},"DecideResponse":{"properties":{"incident_id":{"type":"string","title":"Incident Id"},"state":{"type":"string","title":"State"},"current_tier":{"type":"string","title":"Current Tier"},"hitl":{"$ref":"#/components/schemas/HitlInfo"}},"type":"object","required":["incident_id","state","current_tier","hitl"],"title":"DecideResponse"},"DecommissionNodeRequest":{"properties":{"force":{"type":"boolean","title":"Force","description":"Force decommission even if it may cause data loss","default":false}},"type":"object","title":"DecommissionNodeRequest","description":"Request to decommission a node"},"DeleteEndpointTarget":{"properties":{"tenant_id":{"type":"string","maxLength":128,"minLength":1,"title":"Tenant Id"},"hostname":{"type":"string","maxLength":255,"minLength":1,"title":"Hostname"},"asset_ip":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Asset Ip"}},"type":"object","required":["tenant_id","hostname"],"title":"DeleteEndpointTarget"},"DeleteEndpointsRequest":{"properties":{"targets":{"items":{"$ref":"#/components/schemas/DeleteEndpointTarget"},"type":"array","maxItems":500,"minItems":1,"title":"Targets"},"confirm":{"type":"string","title":"Confirm","description":"Must equal \"confirm\" to proceed"}},"type":"object","required":["targets","confirm"],"title":"DeleteEndpointsRequest"},"DeleteRuleRequest":{"properties":{"rule_id":{"type":"string","minLength":1,"title":"Rule Id"},"rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Name"}},"type":"object","required":["rule_id"],"title":"DeleteRuleRequest"},"DenyResetResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"message":{"type":"string","title":"Message","default":"Request denied."}},"type":"object","required":["request_id"],"title":"DenyResetResponse"},"DetectionDetail":{"properties":{"id":{"type":"string","title":"Id"},"timestamp":{"type":"string","title":"Timestamp","default":""},"detection_name":{"type":"string","title":"Detection Name","default":"Detection"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"severity":{"anyOf":[{},{"type":"null"}],"title":"Severity"},"entity":{"type":"string","title":"Entity","default":""},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"},"source_index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Index"}},"type":"object","required":["id"],"title":"DetectionDetail","description":"Single detection record"},"DetectionSummary":{"properties":{"id":{"type":"string","title":"Id"},"tenant":{"type":"string","title":"Tenant"},"detected_event":{"type":"string","title":"Detected Event"},"risk_score":{"type":"number","title":"Risk Score"},"mitre_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Id"},"mitre_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Category"},"asset_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Ip"},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"timestamp":{"type":"string","title":"Timestamp"},"correlated_logs":{"type":"integer","title":"Correlated Logs","default":0},"monte_carlo_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monte Carlo Confidence"},"ai_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ai Confidence"},"is_accurate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Accurate"},"validated":{"type":"boolean","title":"Validated","default":false},"detection_type":{"type":"string","title":"Detection Type","default":"asset"}},"type":"object","required":["id","tenant","detected_event","risk_score","timestamp"],"title":"DetectionSummary","description":"Summary of a detection event"},"DetectionsListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"detections":{"items":{"$ref":"#/components/schemas/DetectionSummary"},"type":"array","title":"Detections"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"tenant":{"type":"string","title":"Tenant"}},"type":"object","required":["total","detections","page","page_size","tenant"],"title":"DetectionsListResponse","description":"Paginated detections list"},"DeterministicInfo":{"properties":{"risk":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Band"},"floor_active":{"type":"boolean","title":"Floor Active","default":false},"floor_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floor Reason"},"driving_signals":{"items":{"type":"string"},"type":"array","title":"Driving Signals"},"criticality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Criticality"},"criticality_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Criticality Reason"}},"type":"object","title":"DeterministicInfo"},"DispositionInfo":{"properties":{"label":{"anyOf":[{"type":"string","enum":["true_positive","false_positive","benign_true_positive","uncertain"]},{"type":"null"}],"title":"Label"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"cited_fields":{"items":{"type":"string"},"type":"array","title":"Cited Fields"}},"type":"object","title":"DispositionInfo"},"DispositionType":{"type":"string","enum":["false_positive","true_positive","benign","inconclusive"],"title":"DispositionType","description":"Case disposition types."},"DispositionUpdate":{"properties":{"disposition":{"$ref":"#/components/schemas/DispositionType","description":"Disposition type"},"disposition_reason":{"type":"string","minLength":1,"title":"Disposition Reason","description":"Reason for disposition"},"create_suppression_rule":{"type":"boolean","title":"Create Suppression Rule","description":"Create suppression rule from this?","default":false},"suppression_duration_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppression Duration Days","description":"Days to suppress (null = permanent)"}},"type":"object","required":["disposition","disposition_reason"],"title":"DispositionUpdate","description":"Request model for updating case disposition."},"EntityAtRisk":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"entity_value":{"type":"string","title":"Entity Value"},"risk_score":{"type":"number","title":"Risk Score"},"detection_count":{"type":"integer","title":"Detection Count","default":0},"prediction_count":{"type":"integer","title":"Prediction Count","default":0},"tenant":{"type":"string","title":"Tenant"}},"type":"object","required":["entity_type","entity_value","risk_score","tenant"],"title":"EntityAtRisk","description":"Entity with aggregated risk metrics"},"EntityCritCreate":{"properties":{"value":{"type":"string","title":"Value"},"kind":{"type":"string","title":"Kind","default":""},"family":{"type":"string","title":"Family","default":"hostname"},"tier":{"type":"string","title":"Tier"},"description":{"type":"string","title":"Description","default":""},"tag":{"type":"string","title":"Tag","default":""}},"type":"object","required":["value","tier"],"title":"EntityCritCreate"},"EntityCritMode":{"properties":{"mode":{"type":"string","title":"Mode"}},"type":"object","required":["mode"],"title":"EntityCritMode"},"EntityCritUpdate":{"properties":{"value":{"type":"string","title":"Value"},"kind":{"type":"string","title":"Kind"},"tier":{"type":"string","title":"Tier"},"description":{"type":"string","title":"Description","default":""},"tag":{"type":"string","title":"Tag","default":""},"status":{"type":"string","title":"Status","default":"active"}},"type":"object","required":["value","kind","tier"],"title":"EntityCritUpdate"},"EntityDetailResponse":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"entity_value":{"type":"string","title":"Entity Value"},"total_alerts":{"type":"integer","title":"Total Alerts"},"avg_risk":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Risk"},"avg_semantic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Semantic"},"risk_histogram":{"$ref":"#/components/schemas/ScoreHistogram"},"semantic_histogram":{"$ref":"#/components/schemas/ScoreHistogram"},"detection_count":{"type":"integer","title":"Detection Count","default":0},"prediction_count":{"type":"integer","title":"Prediction Count","default":0},"related_users":{"items":{"type":"string"},"type":"array","title":"Related Users"},"related_hostnames":{"items":{"type":"string"},"type":"array","title":"Related Hostnames"},"related_ips":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Related Ips"},"recent_alerts":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Recent Alerts"},"tenant":{"type":"string","title":"Tenant"},"tenants_found":{"items":{"type":"string"},"type":"array","title":"Tenants Found","default":[]}},"type":"object","required":["entity_type","entity_value","total_alerts","risk_histogram","semantic_histogram","related_users","related_hostnames","related_ips","recent_alerts","tenant"],"title":"EntityDetailResponse","description":"Detailed view of a single entity"},"EntityItem":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"entity_value":{"type":"string","title":"Entity Value"}},"type":"object","required":["entity_type","entity_value"],"title":"EntityItem"},"EntityMetrics":{"properties":{"key":{"type":"string","title":"Key"},"alert_count":{"type":"integer","title":"Alert Count"},"avg_risk":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Risk"},"max_risk":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Risk"},"avg_semantic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Semantic"},"max_semantic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Semantic"},"risk_histogram":{"$ref":"#/components/schemas/ScoreHistogram"},"semantic_histogram":{"$ref":"#/components/schemas/ScoreHistogram"},"unique_hostnames":{"type":"integer","title":"Unique Hostnames","default":0},"unique_users":{"type":"integer","title":"Unique Users","default":0},"unique_assets":{"type":"integer","title":"Unique Assets","default":0},"nlp_count":{"type":"integer","title":"Nlp Count","default":0},"detection_count":{"type":"integer","title":"Detection Count","default":0},"prediction_count":{"type":"integer","title":"Prediction Count","default":0}},"type":"object","required":["key","alert_count","risk_histogram","semantic_histogram"],"title":"EntityMetrics","description":"Metrics for a single entity"},"EntityReference":{"properties":{"type":{"type":"string","title":"Type","description":"Entity type (user, asset, ip, domain, etc.)"},"id":{"type":"string","title":"Id","description":"Entity identifier"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Entity display name"},"risk_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Risk Score","description":"Entity risk score"}},"type":"object","required":["type","id"],"title":"EntityReference","description":"Reference to a related entity (user, asset, etc.)."},"EntityReportRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"time_range":{"type":"string","title":"Time Range","default":"24h"},"entity_type":{"type":"string","title":"Entity Type"},"entity_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Value"},"top_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top N"},"asset_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Tag"}},"type":"object","required":["tenant_id","entity_type"],"title":"EntityReportRequest","description":"Request to generate an entity report"},"EntityReportResponse":{"properties":{"report_id":{"type":"string","title":"Report Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"generated_at":{"type":"string","title":"Generated At"},"time_range":{"type":"string","title":"Time Range"},"entity_type":{"type":"string","title":"Entity Type"},"entity_count":{"type":"integer","title":"Entity Count"},"report_markdown":{"type":"string","title":"Report Markdown"},"entities_analyzed":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Entities Analyzed"}},"type":"object","required":["report_id","tenant_id","generated_at","time_range","entity_type","entity_count","report_markdown","entities_analyzed"],"title":"EntityReportResponse","description":"Generated entity report"},"EntityRisk":{"properties":{"entity":{"type":"string","title":"Entity"},"entity_type":{"type":"string","title":"Entity Type"},"alert_count":{"type":"integer","title":"Alert Count"},"avg_risk":{"type":"number","title":"Avg Risk"},"max_risk":{"type":"number","title":"Max Risk"},"detection_count":{"type":"integer","title":"Detection Count"},"prediction_count":{"type":"integer","title":"Prediction Count"}},"type":"object","required":["entity","entity_type","alert_count","avg_risk","max_risk","detection_count","prediction_count"],"title":"EntityRisk","description":"Entity with risk metrics"},"EnvPredictionsListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"predictions":{"items":{"$ref":"#/components/schemas/PredictionSummary"},"type":"array","title":"Predictions"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"tenant":{"type":"string","title":"Tenant"}},"type":"object","required":["total","predictions","page","page_size","tenant"],"title":"EnvPredictionsListResponse","description":"Paginated environment predictions list"},"EscalationItem":{"properties":{"from_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Tier"},"to_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To State"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent"},"ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ts"}},"type":"object","title":"EscalationItem"},"EvidenceAlert":{"properties":{"event_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Name"},"severity":{"anyOf":[{},{"type":"null"}],"title":"Severity"},"timestamp_event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestamp Event"},"source_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Ip"},"destination_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Ip"},"risk":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Risk"},"sigma":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sigma"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"}},"type":"object","title":"EvidenceAlert"},"EvidenceCorrelated":{"properties":{"index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Index"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","title":"EvidenceCorrelated"},"EvidenceCveMatch":{"properties":{"cve":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cve"},"cvss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cvss"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"published":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published"}},"type":"object","title":"EvidenceCveMatch","description":"A CVE the evidence layer matched from alert/detection text (T3 `cve_matches`,\ndocs/49 §7). Shape matches the worker's `_curate_cve`."},"EvidenceDetection":{"properties":{"detected_event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Event"},"analysis_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Summary"},"recommended_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Action"},"risk_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Risk Score"},"mitre_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Id"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","title":"EvidenceDetection"},"EvidenceEstateHit":{"properties":{"indicator_or_ttp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indicator Or Ttp"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"hit_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hit Count"},"host_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Host Count"},"sample_entity_refs":{"items":{"type":"string"},"type":"array","title":"Sample Entity Refs"}},"type":"object","title":"EvidenceEstateHit","description":"One estate-wide hunt result — an IOC or Sigma/MITRE TTP swept fleet-wide (T3\n`estate_hits`, docs/49 §7). Shape matches the worker's `_curate_estate_hit`."},"EvidenceIocMatch":{"properties":{"indicator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indicator"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"feed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed"}},"type":"object","title":"EvidenceIocMatch"},"EvidencePrediction":{"properties":{"predicted_event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Predicted Event"},"risk_score_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Risk Score Pct"},"recommended_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Action"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"}},"type":"object","title":"EvidencePrediction"},"EvidenceRelatedEntity":{"properties":{"entity_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Ref"},"alert_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alert Count"},"max_risk":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Risk"},"top_alert_summaries":{"items":{"type":"string"},"type":"array","title":"Top Alert Summaries"}},"type":"object","title":"EvidenceRelatedEntity","description":"A lateral-movement candidate: another entity the fast-worker's evidence layer\nfound sharing an IP/user with this case (T2 `related_entities`, docs/49 §7). Shape\nmatches the worker's `_curate_related_entity` exactly (source of truth)."},"EvidenceSignalPrevalence":{"properties":{"signal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"fleet_alerts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fleet Alerts"},"host_alerts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Host Alerts"},"known_fp_modes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Known Fp Modes"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"EvidenceSignalPrevalence","description":"Baseline/prevalence of a driving detection signal (a fired Sigma rule id or MITRE technique): how\ncommon it is across the ESTATE vs on THIS entity — the primary FP↔TP discriminator (docs/49 §5). Shape\nmatches the worker's curated `signal_prevalence`.\n\n2026-07-12: `name`/`known_fp_modes`/`status` were missing from this model — the worker (evidence.py's\n`signal_prevalence()`) has always computed and persisted them (a Sigma rule's human-readable title,\nresolved from the incident's own fired matches; the rule author's documented FP scenarios; its SigmaHQ\nmaturity label), but Pydantic silently drops any field a response model doesn't declare, so every rule\nrendered as a bare UUID in the drawer even though the frontend (`fast.html`) was already written to\ndisplay `p.name` when present. Same bug class as the earlier `EvidenceDetection.source` fix."},"EvidenceType":{"type":"string","enum":["detection","prediction","log_entry","entity_snapshot","screenshot","network_capture","manual"],"title":"EvidenceType","description":"Evidence type categories."},"ExistingRule":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"entity_value":{"type":"string","title":"Entity Value"},"rule_id":{"type":"string","title":"Rule Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["entity_type","entity_value","rule_id"],"title":"ExistingRule"},"ExpandRecipientsRequest":{"properties":{"recipients":{"items":{"$ref":"#/components/schemas/_Recipient"},"type":"array","title":"Recipients"}},"type":"object","required":["recipients"],"title":"ExpandRecipientsRequest"},"ExpandRecipientsResponse":{"properties":{"emails":{"items":{"type":"string"},"type":"array","title":"Emails","default":[]},"user_ids":{"items":{"type":"string"},"type":"array","title":"User Ids","default":[]},"users":{"additionalProperties":{"type":"string"},"type":"object","title":"Users","default":{}}},"type":"object","title":"ExpandRecipientsResponse"},"ExpandRequest":{"properties":{"subscribers":{"items":{"$ref":"#/components/schemas/_SubscriberRef"},"type":"array","title":"Subscribers"}},"type":"object","required":["subscribers"],"title":"ExpandRequest"},"ExpandResponse":{"properties":{"emails":{"items":{"type":"string"},"type":"array","title":"Emails","default":[]},"members":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Members","default":{}},"user_emails":{"additionalProperties":{"type":"string"},"type":"object","title":"User Emails","default":{}}},"type":"object","title":"ExpandResponse"},"ExplainBreachLogRequest":{"properties":{"raw":{"additionalProperties":true,"type":"object","title":"Raw"}},"type":"object","required":["raw"],"title":"ExplainBreachLogRequest"},"ExplainChatRequest":{"properties":{"history":{"items":{"$ref":"#/components/schemas/app__api__test_deployment__ChatHistoryMessage"},"type":"array","title":"History","default":[]},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"ExplainChatRequest"},"ExplainDetectionChatRequest":{"properties":{"detection_data":{"additionalProperties":true,"type":"object","title":"Detection Data"},"doc_id":{"type":"string","title":"Doc Id"},"tenant":{"type":"string","title":"Tenant"},"event_type":{"type":"string","title":"Event Type","default":"detection"},"initial_analysis":{"type":"string","title":"Initial Analysis","default":""},"history":{"items":{"$ref":"#/components/schemas/app__api__log_details__ChatHistoryMessage"},"type":"array","title":"History","default":[]},"message":{"type":"string","title":"Message"}},"type":"object","required":["detection_data","doc_id","tenant","message"],"title":"ExplainDetectionChatRequest","description":"Request body for a follow-up chat turn on a detection/prediction analysis."},"ExplainDetectionRequest":{"properties":{"detection_data":{"additionalProperties":true,"type":"object","title":"Detection Data"},"doc_id":{"type":"string","title":"Doc Id"},"tenant":{"type":"string","title":"Tenant"},"event_type":{"type":"string","title":"Event Type","default":"detection"}},"type":"object","required":["detection_data","doc_id","tenant"],"title":"ExplainDetectionRequest","description":"Request body for detection/prediction explanation."},"ExplainLogChatRequest":{"properties":{"log_data":{"additionalProperties":true,"type":"object","title":"Log Data"},"doc_id":{"type":"string","title":"Doc Id"},"tenant":{"type":"string","title":"Tenant"},"initial_analysis":{"type":"string","title":"Initial Analysis","default":""},"history":{"items":{"$ref":"#/components/schemas/app__api__log_details__ChatHistoryMessage"},"type":"array","title":"History","default":[]},"message":{"type":"string","title":"Message"}},"type":"object","required":["log_data","doc_id","tenant","message"],"title":"ExplainLogChatRequest","description":"Request body for a follow-up chat turn on a log explanation."},"ExplainPredictionEvidenceRequest":{"properties":{"tenant":{"type":"string","title":"Tenant"},"prediction_title":{"type":"string","title":"Prediction Title"},"prediction_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prediction Summary"},"prediction_confidence":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Prediction Confidence"},"prediction_consensus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prediction Consensus"},"prediction_analysis_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prediction Analysis Summary"},"prediction_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prediction Description"},"prediction_confidence_factors":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prediction Confidence Factors"},"evidence_logs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Evidence Logs"}},"type":"object","required":["tenant","prediction_title","evidence_logs"],"title":"ExplainPredictionEvidenceRequest","description":"Request body: prediction context plus correlated log rows (NLP + timestamp per doc)."},"FacetsResponse":{"properties":{"users":{"items":{"type":"string"},"type":"array","title":"Users"},"activities":{"items":{"type":"string"},"type":"array","title":"Activities"},"outcomes":{"items":{"type":"string"},"type":"array","title":"Outcomes"}},"type":"object","required":["users","activities","outcomes"],"title":"FacetsResponse"},"FastCaseCard":{"properties":{"incident_id":{"type":"string","title":"Incident Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"entity_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Ref"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"},"board_entered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board Entered At"},"current_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Tier"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"priority_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Band"},"deterministic":{"$ref":"#/components/schemas/DeterministicInfo"},"disposition":{"$ref":"#/components/schemas/DispositionInfo"},"recommended_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Action"},"mitre":{"items":{"type":"string"},"type":"array","title":"Mitre"},"kill_chain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain"},"cluster_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Id"},"cluster_incident_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cluster Incident Count"},"hitl":{"$ref":"#/components/schemas/HitlInfo"},"last_activity":{"anyOf":[{"$ref":"#/components/schemas/LastActivity"},{"type":"null"}]},"board_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board Priority"}},"type":"object","required":["incident_id"],"title":"FastCaseCard","description":"Single case row — used by the T1/T2/T3/HITL queue lists."},"FastCaseDetail":{"properties":{"incident_id":{"type":"string","title":"Incident Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"entity_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Ref"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"},"board_entered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board Entered At"},"current_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Tier"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"priority_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Band"},"deterministic":{"$ref":"#/components/schemas/DeterministicInfo"},"disposition":{"$ref":"#/components/schemas/DispositionInfo"},"recommended_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommended Action"},"mitre":{"items":{"type":"string"},"type":"array","title":"Mitre"},"kill_chain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kill Chain"},"cluster_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Id"},"cluster_incident_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cluster Incident Count"},"hitl":{"$ref":"#/components/schemas/HitlInfo"},"last_activity":{"anyOf":[{"$ref":"#/components/schemas/LastActivity"},{"type":"null"}]},"board_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board Priority"},"attack_story":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attack Story"},"timeline":{"items":{"$ref":"#/components/schemas/TimelineItem"},"type":"array","title":"Timeline"},"scope":{"$ref":"#/components/schemas/ScopeInfo"},"tier_history":{"items":{"$ref":"#/components/schemas/TierHistoryItem"},"type":"array","title":"Tier History"},"provenance":{"$ref":"#/components/schemas/ProvenanceInfo"},"recent_activity":{"items":{"$ref":"#/components/schemas/ActivityEvent"},"type":"array","title":"Recent Activity"},"evidence":{"$ref":"#/components/schemas/app__api__fast_data__CaseEvidence"},"escalations":{"items":{"$ref":"#/components/schemas/EscalationItem"},"type":"array","title":"Escalations"},"cluster_members":{"items":{"$ref":"#/components/schemas/ClusterMember"},"type":"array","title":"Cluster Members"},"cluster_members_truncated":{"type":"integer","title":"Cluster Members Truncated","default":0}},"type":"object","required":["incident_id"],"title":"FastCaseDetail","description":"Full case — used by the case detail modal (timeline + tier history + activity)."},"FastControlState":{"properties":{"paused":{"type":"boolean","title":"Paused","default":false},"min_priority":{"type":"string","title":"Min Priority","default":"P2"},"include_p3p4":{"type":"boolean","title":"Include P3P4","default":false},"by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"By"},"ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ts"}},"type":"object","title":"FastControlState"},"FastControlUpdate":{"properties":{"paused":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Paused"},"min_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Priority"},"include_p3p4":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include P3P4"}},"type":"object","title":"FastControlUpdate"},"FastDocResponse":{"properties":{"found":{"type":"boolean","title":"Found","default":false},"doc_id":{"type":"string","title":"Doc Id"},"index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Index"},"source":{"additionalProperties":true,"type":"object","title":"Source"}},"type":"object","required":["doc_id"],"title":"FastDocResponse","description":"One source evidence document (an alert / detection / prediction /\nthreat-intel doc) fetched by its ES `_id` — backs the case-detail drawer's\nSupporting Evidence tab, where clicking a row opens the full source doc in\nan in-place \"Log Details\" drawer. Degrades to found=false / empty source\n(never an error) when nothing matches, same as every other FAST endpoint."},"FeedSource":{"properties":{"id":{"type":"string","title":"Id","description":"Unique source identifier (slug)"},"name":{"type":"string","title":"Name","description":"Display name"},"feed_url":{"type":"string","title":"Feed Url","description":"RSS/Atom feed URL"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether source is enabled for fetching","default":true},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url","description":"Source icon/logo URL"},"category":{"type":"string","title":"Category","description":"Source category","default":"general"}},"type":"object","required":["id","name","feed_url"],"title":"FeedSource","description":"RSS feed source configuration."},"FileIdRequest":{"properties":{"file_id":{"type":"string","minLength":1,"title":"File Id"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"}},"type":"object","required":["file_id"],"title":"FileIdRequest"},"FilterChip":{"properties":{"field":{"type":"string","maxLength":64,"minLength":1,"title":"Field"},"op":{"type":"string","enum":["is","is not","contains","between",">","<"],"title":"Op"},"value":{"title":"Value"}},"type":"object","required":["field","op","value"],"title":"FilterChip"},"FilterRule":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","default":""},"regex":{"type":"string","title":"Regex"},"ignore_case":{"type":"boolean","title":"Ignore Case","default":true},"drop_record":{"type":"boolean","title":"Drop Record","default":false},"exclude_record":{"type":"boolean","title":"Exclude Record","default":false},"enabled":{"type":"boolean","title":"Enabled","default":true},"priority":{"type":"integer","title":"Priority","default":0},"alert":{"type":"boolean","title":"Alert","default":false},"alert_severity":{"type":"string","title":"Alert Severity","default":"info"},"alert_recipients":{"items":{"type":"string"},"type":"array","title":"Alert Recipients"},"alert_email_fields":{"items":{"type":"string"},"type":"array","title":"Alert Email Fields"},"alert_window_secs":{"type":"integer","title":"Alert Window Secs","default":0},"alert_category":{"type":"string","title":"Alert Category","default":"ingest_filter_alert"},"tenant":{"type":"string","title":"Tenant","default":""}},"type":"object","required":["name","regex"],"title":"FilterRule"},"FilterRules":{"properties":{"save_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Save Date"},"rules":{"items":{"$ref":"#/components/schemas/FilterRule"},"type":"array","title":"Rules","default":[]}},"type":"object","title":"FilterRules"},"FlowDetailsResponse":{"properties":{"flow":{"$ref":"#/components/schemas/NetworkFlow"},"related_flows":{"items":{"$ref":"#/components/schemas/NetworkFlow"},"type":"array","title":"Related Flows"},"src_ip_history":{"additionalProperties":true,"type":"object","title":"Src Ip History"},"dst_ip_history":{"additionalProperties":true,"type":"object","title":"Dst Ip History"}},"type":"object","required":["flow","related_flows","src_ip_history","dst_ip_history"],"title":"FlowDetailsResponse","description":"Detailed flow information for drawer view"},"FortinetFirewallIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: forti-*)"},"type":{"type":"string","const":"fortinet-firewall","title":"Type","default":"fortinet-firewall"},"host":{"type":"string","title":"Host","description":"Firewall hostname or IP address"},"api_key":{"type":"string","title":"Api Key","description":"API key"},"port":{"type":"integer","title":"Port","description":"API port","default":443},"vdom":{"type":"string","title":"Vdom","description":"Virtual domain","default":"root"},"address_group":{"type":"string","title":"Address Group","description":"Address group for blocklists","default":"SOAR-Blocklist"},"verify_tls":{"type":"boolean","title":"Verify Tls","description":"Verify TLS certificate","default":false}},"type":"object","required":["integration_id","host","api_key"],"title":"FortinetFirewallIntegration","description":"Fortinet FortiGate Firewall integration - ID prefix: forti-*"},"GenerateDslRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"tenant":{"type":"string","title":"Tenant","default":""},"index_pattern":{"type":"string","title":"Index Pattern","default":""},"fields":{"items":{"type":"string"},"type":"array","title":"Fields","default":[]}},"type":"object","required":["prompt"],"title":"GenerateDslRequest","description":"Request body for natural-language → Elasticsearch query DSL generation."},"GenerateRequest":{"properties":{"prompt_id":{"type":"string","title":"Prompt Id"}},"type":"object","required":["prompt_id"],"title":"GenerateRequest"},"GeoThreatPoint":{"properties":{"country":{"type":"string","title":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"threat_count":{"type":"integer","title":"Threat Count"},"avg_risk_score":{"type":"number","title":"Avg Risk Score"},"threat_types":{"additionalProperties":{"type":"integer"},"type":"object","title":"Threat Types"}},"type":"object","required":["country","latitude","longitude","threat_count","avg_risk_score","threat_types"],"title":"GeoThreatPoint","description":"Represents aggregated threats at a geographic location"},"GlobalHistogram":{"properties":{"buckets":{"items":{"type":"integer"},"type":"array","title":"Buckets"}},"type":"object","required":["buckets"],"title":"GlobalHistogram","description":"Global histogram for score distribution across ALL logs (not just visible entities)"},"GlobalThreatResponse":{"properties":{"summary":{"additionalProperties":true,"type":"object","title":"Summary"},"threat_flows":{"items":{"$ref":"#/components/schemas/ThreatFlow"},"type":"array","title":"Threat Flows"},"source_heatmap":{"items":{"$ref":"#/components/schemas/GeoThreatPoint"},"type":"array","title":"Source Heatmap"},"destination_heatmap":{"items":{"$ref":"#/components/schemas/GeoThreatPoint"},"type":"array","title":"Destination Heatmap"},"top_source_countries":{"items":{"$ref":"#/components/schemas/CountryStats"},"type":"array","title":"Top Source Countries"},"top_target_countries":{"items":{"$ref":"#/components/schemas/CountryStats"},"type":"array","title":"Top Target Countries"},"threat_distribution":{"items":{"$ref":"#/components/schemas/ThreatTypeDistribution"},"type":"array","title":"Threat Distribution"},"timeline":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Timeline"},"tenant":{"type":"string","title":"Tenant"},"time_range":{"type":"string","title":"Time Range"}},"type":"object","required":["summary","threat_flows","source_heatmap","destination_heatmap","top_source_countries","top_target_countries","threat_distribution","timeline","tenant","time_range"],"title":"GlobalThreatResponse","description":"Complete global threat intelligence response"},"GoogleGmailIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: email-google-*)"},"type":{"type":"string","const":"google-gmail","title":"Type","default":"google-gmail"},"provider":{"type":"string","const":"google","title":"Provider","default":"google"},"service_account_info":{"additionalProperties":true,"type":"object","title":"Service Account Info","description":"Google service account JSON key (inline dict)"},"delegated_user":{"type":"string","title":"Delegated User","description":"User to send as (domain-wide delegation)"},"from_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Address","description":"From address (defaults to delegated user)"}},"type":"object","required":["integration_id","service_account_info","delegated_user"],"title":"GoogleGmailIntegration","description":"Google Gmail (Email) integration - ID prefix: email-google-*"},"GraphEdge":{"properties":{"source":{"type":"string","title":"Source"},"target":{"type":"string","title":"Target"},"relationship":{"type":"string","title":"Relationship"},"count":{"type":"integer","title":"Count"},"avg_risk_score":{"type":"number","title":"Avg Risk Score"},"color":{"type":"string","title":"Color"},"edge_type":{"type":"string","title":"Edge Type","default":"alert"}},"type":"object","required":["source","target","relationship","count","avg_risk_score","color"],"title":"GraphEdge","description":"Represents an edge (co-occurrence) in the correlation graph"},"GraphNode":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"size":{"type":"integer","title":"Size"},"risk_score":{"type":"number","title":"Risk Score"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}}},"type":"object","required":["id","name","category","size","risk_score"],"title":"GraphNode","description":"Represents a node in the correlation graph"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HasCaseRequest":{"properties":{"entities":{"items":{"type":"string"},"type":"array","title":"Entities","default":[]}},"type":"object","title":"HasCaseRequest"},"HealthResponse":{"properties":{"cooling_down":{"type":"boolean","title":"Cooling Down"},"cooldown_seconds_remaining":{"type":"integer","title":"Cooldown Seconds Remaining"},"dropped_events_while_cooling":{"type":"integer","title":"Dropped Events While Cooling"},"dropped_events_overflow":{"type":"integer","title":"Dropped Events Overflow"},"queue_depth":{"type":"integer","title":"Queue Depth"},"queue_max":{"type":"integer","title":"Queue Max"}},"type":"object","required":["cooling_down","cooldown_seconds_remaining","dropped_events_while_cooling","dropped_events_overflow","queue_depth","queue_max"],"title":"HealthResponse"},"HeartbeatRequest":{"properties":{"node_id":{"type":"string","title":"Node Id","description":"Node identifier"},"es_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Es Status","description":"Elasticsearch status (started/stopped/error)"},"metrics":{"additionalProperties":true,"type":"object","title":"Metrics","description":"Node metrics (disk_percent, heap_percent, load_avg, etc.)"}},"type":"object","required":["node_id"],"title":"HeartbeatRequest","description":"Heartbeat request from node agent"},"HeartbeatResponse":{"properties":{"acknowledged":{"type":"boolean","title":"Acknowledged","description":"Whether heartbeat was acknowledged","default":true},"commands":{"items":{"$ref":"#/components/schemas/AgentCommand"},"type":"array","title":"Commands","description":"Pending commands for the agent"}},"type":"object","title":"HeartbeatResponse","description":"Response to heartbeat request"},"HitlInfo":{"properties":{"pending":{"type":"boolean","title":"Pending","default":false},"decided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By"},"decision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision"},"decided_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"HitlInfo"},"IncidentDetailsResponse":{"properties":{"entity":{"type":"string","title":"Entity"},"entity_type":{"type":"string","title":"Entity Type"},"tenant_id":{"type":"string","title":"Tenant Id"},"time_range":{"type":"string","title":"Time Range"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"},"alerts":{"items":{"$ref":"#/components/schemas/AlertDetail"},"type":"array","title":"Alerts"},"detections":{"items":{"$ref":"#/components/schemas/DetectionDetail"},"type":"array","title":"Detections"},"predictions":{"items":{"$ref":"#/components/schemas/PredictionDetail"},"type":"array","title":"Predictions"},"cognito":{"items":{"$ref":"#/components/schemas/DetectionDetail"},"type":"array","title":"Cognito","default":[]},"total_alerts":{"type":"integer","title":"Total Alerts","default":0},"total_detections":{"type":"integer","title":"Total Detections","default":0},"total_predictions":{"type":"integer","title":"Total Predictions","default":0},"total_cognito":{"type":"integer","title":"Total Cognito","default":0},"alerts_limit":{"type":"integer","title":"Alerts Limit","default":50},"detections_limit":{"type":"integer","title":"Detections Limit","default":50},"predictions_limit":{"type":"integer","title":"Predictions Limit","default":50},"cognito_limit":{"type":"integer","title":"Cognito Limit","default":50}},"type":"object","required":["entity","entity_type","tenant_id","time_range","summary","alerts","detections","predictions"],"title":"IncidentDetailsResponse","description":"Full incident details with alerts, detections, and predictions"},"IncidentListResponse":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"total":{"type":"integer","title":"Total","default":0},"multi_case_total":{"type":"integer","title":"Multi Case Total","default":0},"incidents":{"items":{"$ref":"#/components/schemas/app__api__fast_data__IncidentCard"},"type":"array","title":"Incidents"}},"type":"object","required":["tenant_id"],"title":"IncidentListResponse"},"InitializeClusterRequest":{"properties":{"mode":{"$ref":"#/components/schemas/ClusterInitMode","description":"Initialization mode"},"cluster_name":{"type":"string","title":"Cluster Name","description":"Name for the new cluster"},"data_node_ips":{"items":{"type":"string"},"type":"array","title":"Data Node Ips","description":"IP addresses or hostnames for data nodes (2-6)"},"voting_only_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voting Only Ip","description":"IP or hostname for voting-only node (optional)"}},"type":"object","required":["mode","cluster_name","data_node_ips"],"title":"InitializeClusterRequest","description":"Request to initialize a new cluster"},"IntegrationCreateResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Operation status"},"integration_id":{"type":"string","title":"Integration Id","description":"Created integration ID"}},"type":"object","required":["status","integration_id"],"title":"IntegrationCreateResponse"},"IntegrationDeleteResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Operation status"},"integration_id":{"type":"string","title":"Integration Id","description":"Deleted integration ID"}},"type":"object","required":["status","integration_id"],"title":"IntegrationDeleteResponse"},"IntegrationListItem":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Integration ID"},"type":{"type":"string","title":"Type","description":"Integration type"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Address or URL for this integration"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel","description":"Notification channel (email/slack/teams) if notify-capable"}},"type":"object","required":["integration_id","type"],"title":"IntegrationListItem"},"IntegrationListResponse":{"properties":{"integrations":{"items":{"$ref":"#/components/schemas/IntegrationListItem"},"type":"array","title":"Integrations","description":"List of integrations"}},"type":"object","required":["integrations"],"title":"IntegrationListResponse"},"IntegrationUpdateResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Operation status"},"integration_id":{"type":"string","title":"Integration Id","description":"Updated integration ID"}},"type":"object","required":["status","integration_id"],"title":"IntegrationUpdateResponse"},"KanbanAdjudicate":{"properties":{"entity":{"type":"string","title":"Entity"},"entity_type":{"type":"string","title":"Entity Type"},"risk_score":{"type":"number","title":"Risk Score","default":0.0},"priority":{"type":"string","title":"Priority","default":"P3"},"verdict":{"type":"string","title":"Verdict"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["entity","entity_type","verdict"],"title":"KanbanAdjudicate"},"KanbanAssignment":{"properties":{"assignee":{"type":"string","title":"Assignee"},"assigned_at":{"type":"string","title":"Assigned At"},"assigned_by":{"type":"string","title":"Assigned By"}},"type":"object","required":["assignee","assigned_at","assigned_by"],"title":"KanbanAssignment"},"KanbanBoard":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"timestamp":{"type":"string","title":"Timestamp"},"time_range":{"type":"string","title":"Time Range"},"rows":{"items":{"$ref":"#/components/schemas/KanbanBoardRow"},"type":"array","title":"Rows"},"summary":{"$ref":"#/components/schemas/KanbanBoardSummary"},"posture":{"anyOf":[{"$ref":"#/components/schemas/PostureSummary"},{"type":"null"}]},"quiet_entries":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Quiet Entries"},"evidenceless_count":{"type":"integer","title":"Evidenceless Count","default":0},"evidenceless_entities":{"items":{"type":"string"},"type":"array","title":"Evidenceless Entities"}},"type":"object","required":["tenant_id","timestamp","time_range","rows","summary"],"title":"KanbanBoard","description":"Full board state. Designed for agent consumption as well as the UI."},"KanbanBoardCell":{"properties":{"priority":{"type":"string","title":"Priority"},"stage":{"type":"string","title":"Stage"},"cards":{"items":{"$ref":"#/components/schemas/KanbanCardState"},"type":"array","title":"Cards"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["priority","stage","cards","count"],"title":"KanbanBoardCell","description":"One cell in the matrix: a priority × stage intersection."},"KanbanBoardRow":{"properties":{"priority":{"type":"string","title":"Priority"},"label":{"type":"string","title":"Label"},"color":{"type":"string","title":"Color"},"cells":{"additionalProperties":{"$ref":"#/components/schemas/KanbanBoardCell"},"type":"object","title":"Cells"}},"type":"object","required":["priority","label","color","cells"],"title":"KanbanBoardRow","description":"One priority row containing all four stage cells."},"KanbanBoardSummary":{"properties":{"total":{"type":"integer","title":"Total"},"by_stage":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Stage"},"by_priority":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Priority"},"overdue_sla_count":{"type":"integer","title":"Overdue Sla Count"},"column_limit":{"type":"integer","title":"Column Limit","default":0},"by_disposition":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Disposition","default":{}}},"type":"object","required":["total","by_stage","by_priority","overdue_sla_count"],"title":"KanbanBoardSummary"},"KanbanCardState":{"properties":{"entity_key":{"type":"string","title":"Entity Key"},"stage":{"type":"string","title":"Stage"},"priority":{"type":"string","title":"Priority"},"severity":{"type":"string","title":"Severity"},"title":{"type":"string","title":"Title"},"entity":{"type":"string","title":"Entity"},"entity_type":{"type":"string","title":"Entity Type"},"risk_score":{"type":"number","title":"Risk Score"},"triage_score":{"type":"number","title":"Triage Score"},"alert_count":{"type":"integer","title":"Alert Count"},"relevant_count":{"type":"integer","title":"Relevant Count","default":0},"detection_count":{"type":"integer","title":"Detection Count"},"detection_distinct":{"type":"integer","title":"Detection Distinct","default":0},"prediction_count":{"type":"integer","title":"Prediction Count"},"cognito_count":{"type":"integer","title":"Cognito Count","default":0},"recommended_action":{"type":"string","title":"Recommended Action"},"minutes_ago":{"type":"number","title":"Minutes Ago"},"sla_minutes":{"type":"integer","title":"Sla Minutes"},"queue_minutes":{"type":"integer","title":"Queue Minutes","default":0},"sla_breached":{"type":"boolean","title":"Sla Breached","default":false},"queued_at_ts":{"type":"integer","title":"Queued At Ts","default":0},"first_seen_ts":{"type":"integer","title":"First Seen Ts","default":0},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"xdr_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xdr Type"},"doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Id"},"source_index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Index"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"predicted_next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Predicted Next"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"evidence_quality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Quality"},"notes":{"items":{"$ref":"#/components/schemas/KanbanNote"},"type":"array","title":"Notes","default":[]},"fast_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fast Status"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition","default":""},"is_working":{"type":"boolean","title":"Is Working","default":false},"fast_state_label":{"type":"string","title":"Fast State Label","default":"Not in F.A.S.T."},"fast_tier":{"type":"string","title":"Fast Tier","default":"none"},"fast_color":{"type":"string","title":"Fast Color","default":"slate"},"fast_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fast Case Id"},"evidence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence"},"disposition_floor":{"type":"boolean","title":"Disposition Floor","default":false},"floor_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floor Reason"},"criticality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Criticality"},"criticality_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Criticality Reason"},"pre_criticality_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Criticality Priority"},"would_be_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Would Be Priority"}},"type":"object","required":["entity_key","stage","priority","severity","title","entity","entity_type","risk_score","triage_score","alert_count","detection_count","prediction_count","recommended_action","minutes_ago","sla_minutes"],"title":"KanbanCardState","description":"Full Kanban state for a single incident card — primary unit for agent consumption."},"KanbanEntityAction":{"properties":{"entity":{"type":"string","title":"Entity"},"entity_type":{"type":"string","title":"Entity Type"},"risk_score":{"type":"number","title":"Risk Score","default":0.0},"priority":{"type":"string","title":"Priority","default":"P3"}},"type":"object","required":["entity","entity_type"],"title":"KanbanEntityAction"},"KanbanNote":{"properties":{"text":{"type":"string","title":"Text"},"author":{"type":"string","title":"Author"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["text","author","timestamp"],"title":"KanbanNote","description":"A note attached to a Kanban card — written by an analyst or an AI agent."},"KanbanTransition":{"properties":{"from_stage":{"type":"string","title":"From Stage"},"to_stage":{"type":"string","title":"To Stage"},"by":{"type":"string","title":"By"},"at":{"type":"string","title":"At"}},"type":"object","required":["from_stage","to_stage","by","at"],"title":"KanbanTransition"},"KillChainStage":{"properties":{"stage":{"type":"string","title":"Stage"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["stage","count","percentage"],"title":"KillChainStage","description":"Kill chain stage with count"},"LLMConnectionTest":{"properties":{"name":{"type":"string","title":"Name","description":"Purpose name; default model and stored-key fallback","default":""},"use_cyberllm":{"type":"boolean","title":"Use Cyberllm","default":true},"url":{"type":"string","title":"Url","default":""},"model":{"type":"string","title":"Model","default":""},"api_key":{"type":"string","title":"Api Key","description":"Blank = use the stored key for `name`","default":""},"clear_api_key":{"type":"boolean","title":"Clear Api Key","description":"Ignore the stored key (dialog 'clear' ticked)","default":false},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature"}},"type":"object","title":"LLMConnectionTest","description":"Unsaved dialog values to test. Nothing is persisted."},"LLMModelCreate":{"properties":{"name":{"type":"string","title":"Name","description":"Unique model name (becomes Redis key suffix)"},"use_cyberllm":{"type":"boolean","title":"Use Cyberllm","description":"Use CyberLLM hosted GPUs","default":true},"help_text":{"type":"string","title":"Help Text","description":"Description of what this model is used for","default":""},"url":{"type":"string","title":"Url","description":"Custom LLM endpoint URL","default":""},"model":{"type":"string","title":"Model","description":"Custom model identifier","default":""},"api_key":{"type":"string","title":"Api Key","description":"Custom API key (blank = use default)","default":""},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature","description":"Sampling temperature (blank = caller default)"},"max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tokens","description":"Completion (output) token cap (blank = caller default)"},"context_window":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Context Window","description":"Model's total prompt+completion window in tokens"}},"type":"object","required":["name"],"title":"LLMModelCreate","description":"Request to add a new LLM model configuration."},"LLMModelUpdate":{"properties":{"use_cyberllm":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Cyberllm"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature"},"max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tokens"},"context_window":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Context Window"}},"type":"object","title":"LLMModelUpdate","description":"Request to update an existing LLM model configuration.\n\nOmitted fields are left unchanged. For temperature / max_tokens /\ncontext_window, an explicit null clears the stored value."},"LanguageUpdateRequest":{"properties":{"ActiveLanguage":{"type":"string","title":"Activelanguage"}},"type":"object","required":["ActiveLanguage"],"title":"LanguageUpdateRequest","description":"Request body for POST /language (same as pre-ui-webapp)."},"LastActivity":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ts"}},"type":"object","title":"LastActivity","description":"The single most-recent fast_activity row for a case — powers the queue card's\nlive agent-role ticker. All optional; null when the case has no activity yet."},"LinkedIncident":{"properties":{"source_type":{"type":"string","title":"Source Type","description":"Origin type (fast_incident, fast_cluster)"},"source_id":{"type":"string","title":"Source Id","description":"Incident/cluster identifier (e.g. inc-id or CLU-id)"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Display title for the linked incident"},"entity_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Ref","description":"Primary entity reference (e.g. host/user/ip) for the linked incident"},"id":{"type":"integer","title":"Id","description":"Linked-incident row ID"},"case_id":{"type":"integer","title":"Case Id","description":"Case ID"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Tenant ID"},"linked_at":{"type":"string","format":"date-time","title":"Linked At","description":"When this incident was linked"},"linked_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked By","description":"Who linked it ('system' for the auto-seeded origin entry)"}},"type":"object","required":["source_type","source_id","id","case_id","tenant_id","linked_at"],"title":"LinkedIncident","description":"Full linked-incident record -- one entry in a case's active membership list."},"LinkedIncidentCreate":{"properties":{"source_type":{"type":"string","title":"Source Type","description":"Origin type (fast_incident, fast_cluster)"},"source_id":{"type":"string","title":"Source Id","description":"Incident/cluster identifier (e.g. inc-id or CLU-id)"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Display title for the linked incident"},"entity_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Ref","description":"Primary entity reference (e.g. host/user/ip) for the linked incident"}},"type":"object","required":["source_type","source_id"],"title":"LinkedIncidentCreate","description":"Request model for linking a FAST incident/cluster to a case."},"LinuxDNSServerIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: linux-dns-*)"},"type":{"type":"string","const":"linux-dns-server","title":"Type","default":"linux-dns-server"},"host":{"type":"string","title":"Host","description":"DNS server hostname or IP address"},"username":{"type":"string","title":"Username","description":"SSH username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password","description":"SSH password (if not using key)"},"ssh_private_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Private Key","description":"SSH private key content (paste key)"},"port":{"type":"integer","title":"Port","description":"SSH port","default":22}},"type":"object","required":["integration_id","host","username"],"title":"LinuxDNSServerIntegration","description":"Linux DNS Server (SSH) integration - ID prefix: linux-dns-*"},"LinuxFirewallIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: linux-fw-*)"},"type":{"type":"string","const":"linux-firewall","title":"Type","default":"linux-firewall"},"host":{"type":"string","title":"Host","description":"Firewall hostname or IP address"},"username":{"type":"string","title":"Username","description":"SSH username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password","description":"SSH password (if not using key)"},"ssh_private_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Private Key","description":"SSH private key content (paste key)"},"port":{"type":"integer","title":"Port","description":"SSH port","default":22}},"type":"object","required":["integration_id","host","username"],"title":"LinuxFirewallIntegration","description":"Linux Firewall (SSH) integration - ID prefix: linux-fw-*"},"LinuxServerIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: linux-srv-*)"},"type":{"type":"string","const":"linux-server","title":"Type","default":"linux-server"},"host":{"type":"string","title":"Host","description":"Server hostname or IP address"},"username":{"type":"string","title":"Username","description":"SSH username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password","description":"SSH password (if not using key)"},"ssh_private_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Private Key","description":"SSH private key content (paste key)"},"port":{"type":"integer","title":"Port","description":"SSH port","default":22}},"type":"object","required":["integration_id","host","username"],"title":"LinuxServerIntegration","description":"Linux Server (SSH) integration - ID prefix: linux-srv-*"},"LinuxSystemIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: linux-sys-*)"},"type":{"type":"string","const":"linux-system","title":"Type","default":"linux-system"},"host":{"type":"string","title":"Host","description":"Hostname or IP address"},"username":{"type":"string","title":"Username","description":"SSH username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password","description":"SSH password (if not using key)"},"ssh_private_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ssh Private Key","description":"SSH private key content (paste key)"},"port":{"type":"integer","title":"Port","description":"SSH port","default":22}},"type":"object","required":["integration_id","host","username"],"title":"LinuxSystemIntegration","description":"Linux System (SSH) integration - ID prefix: linux-sys-*"},"LocalTenantCreateRequest":{"properties":{"client_id":{"type":"string","maxLength":50,"minLength":1,"title":"Client Id","description":"Unique client identifier"},"hostname":{"type":"string","maxLength":100,"minLength":1,"title":"Hostname","description":"Client hostname"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description","description":"Client description"},"es_url":{"type":"string","title":"Es Url","description":"Direct Elasticsearch URL (e.g., 'http://localhost:9200')"},"redis_host":{"type":"string","title":"Redis Host","description":"Direct Redis host (e.g., 'localhost')"},"redis_port":{"type":"integer","title":"Redis Port","description":"Direct Redis port","default":6379},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token","description":"Auth token for SSO to tenant web UI"},"webui_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webui Url","description":"URL to tenant's web UI"}},"type":"object","required":["client_id","hostname","es_url","redis_host"],"title":"LocalTenantCreateRequest","description":"Request model for creating a local tenant (admin-only)"},"LogChatRequest":{"properties":{"history":{"items":{"$ref":"#/components/schemas/app__api__test_deployment__ChatHistoryMessage"},"type":"array","title":"History","default":[]},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"LogChatRequest"},"LogCollectRequest":{"properties":{"since_minutes":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"Since Minutes","default":30}},"type":"object","title":"LogCollectRequest"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email","description":"User email address"},"password":{"type":"string","minLength":1,"title":"Password","description":"User password"},"totp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Totp","description":"TOTP code (6 digits) or recovery code, supplied on second step when 2FA is enrolled"}},"type":"object","required":["email","password"],"title":"LoginRequest","description":"Request model for user login."},"LoginResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Login success status"},"message":{"type":"string","title":"Message","description":"Response message"},"user":{"anyOf":[{"$ref":"#/components/schemas/UserInfo"},{"type":"null"}],"description":"User info if successful"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step","description":"When set to 'otp_required', client must prompt for the 6-digit TOTP code and resubmit /login with `totp` populated."}},"type":"object","required":["success","message"],"title":"LoginResponse","description":"Response model for successful login."},"LogoutResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Logout success status"},"message":{"type":"string","title":"Message","description":"Response message"}},"type":"object","required":["success","message"],"title":"LogoutResponse","description":"Response model for logout."},"MCPScanResult":{"properties":{"discovered":{"type":"integer","title":"Discovered"},"added":{"type":"integer","title":"Added"},"skipped":{"type":"integer","title":"Skipped"},"servers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Servers"}},"type":"object","required":["discovered","added","skipped","servers"],"title":"MCPScanResult","description":"Result of a K8s service discovery scan."},"MCPServerCreate":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for the server"},"name":{"type":"string","title":"Name","description":"Human-readable name"},"url":{"type":"string","title":"Url","description":"MCP endpoint URL (e.g., http://localhost:8082/mcp)"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether to connect immediately","default":true},"timeout":{"type":"number","title":"Timeout","description":"Connection timeout in seconds","default":60.0},"tool_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Prefix","description":"Prefix for tool names"},"priority":{"type":"integer","title":"Priority","description":"Priority for conflict resolution (lower wins)","default":100},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"Tags for categorization"}},"type":"object","required":["id","name","url"],"title":"MCPServerCreate","description":"Request to add a new MCP server at runtime."},"MCPServerEnabledUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether the server should be enabled"}},"type":"object","required":["enabled"],"title":"MCPServerEnabledUpdate","description":"Request to enable or disable an MCP server."},"MCPServerStatus":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"enabled":{"type":"boolean","title":"Enabled"},"connected":{"type":"boolean","title":"Connected"},"tool_count":{"type":"integer","title":"Tool Count"},"last_connected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Connected"},"server_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Server Info"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"tenant_mappings":{"additionalProperties":{"type":"string"},"type":"object","title":"Tenant Mappings","default":{}},"tenants":{"items":{"type":"string"},"type":"array","title":"Tenants","default":[]}},"type":"object","required":["id","name","url","enabled","connected","tool_count","last_connected","server_info","error","tags"],"title":"MCPServerStatus","description":"Status of a single MCP server."},"MCPServerUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Human-readable name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"MCP endpoint URL"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled","description":"Whether the server is enabled"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timeout","description":"Connection timeout in seconds"},"tool_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Prefix","description":"Prefix for tool names"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority","description":"Priority for conflict resolution (lower wins)"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"Tags for categorization"}},"type":"object","title":"MCPServerUpdate","description":"Request to update an existing MCP server."},"MCPServersResponse":{"properties":{"total":{"type":"integer","title":"Total"},"connected":{"type":"integer","title":"Connected"},"servers":{"items":{"$ref":"#/components/schemas/MCPServerStatus"},"type":"array","title":"Servers"}},"type":"object","required":["total","connected","servers"],"title":"MCPServersResponse","description":"Response containing all MCP server statuses."},"MCPTenantMappingsUpdate":{"properties":{"tenant_mappings":{"additionalProperties":{"type":"string"},"type":"object","title":"Tenant Mappings","description":"Mapping of ESM tenant slugs to external IDs"}},"type":"object","required":["tenant_mappings"],"title":"MCPTenantMappingsUpdate","description":"Request to update tenant access for an MCP server."},"MCPToolTestRequest":{"properties":{"arguments":{"additionalProperties":true,"type":"object","title":"Arguments","description":"Tool arguments"}},"type":"object","title":"MCPToolTestRequest","description":"Request to test an MCP tool."},"MicrosoftDefenderIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (edr-defender)"},"type":{"type":"string","const":"edr-defender","title":"Type","default":"edr-defender"},"vendor":{"type":"string","const":"defender","title":"Vendor","default":"defender"},"base_url":{"type":"string","title":"Base Url","description":"Defender API base URL","default":"https://api.securitycenter.microsoft.com"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Azure AD tenant ID"},"client_id":{"type":"string","title":"Client Id","description":"Azure AD client ID"},"client_secret":{"type":"string","title":"Client Secret","description":"Azure AD client secret"}},"type":"object","required":["integration_id","tenant_id","client_id","client_secret"],"title":"MicrosoftDefenderIntegration","description":"Microsoft Defender for Endpoint (EDR) integration - ID prefix: edr-defender"},"MsspConfig":{"properties":{"url":{"type":"string","title":"Url","description":"Current MSSP URL (empty if unset)","default":""},"enabled":{"type":"boolean","title":"Enabled","description":"Whether this tenant is configured to connect to an MSSP","default":false},"eligible":{"type":"boolean","title":"Eligible","description":"Whether this server may register as a downstream of an MSSP. False when this server is itself managing remote tenants — daisy-chaining is not supported.","default":true},"ineligible_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ineligible Reason","description":"Human-readable explanation when eligible=False"},"managed_tenants":{"items":{},"type":"array","title":"Managed Tenants","description":"List of {client_id, hostname, status} for tenant-type, remote-mode clients this server is managing. Populated only when eligible=False."}},"type":"object","title":"MsspConfig"},"MsspConfigRequest":{"properties":{"url":{"type":"string","title":"Url","description":"MSSP Server URL. Empty string clears the saved URL."}},"type":"object","required":["url"],"title":"MsspConfigRequest"},"MsspConfigResponse":{"properties":{"config":{"$ref":"#/components/schemas/MsspConfig"}},"type":"object","required":["config"],"title":"MsspConfigResponse"},"MsspSettingsRequest":{"properties":{"allow_remote_config":{"type":"boolean","title":"Allow Remote Config","description":"Whether the MSSP may view & modify this tenant's config"}},"type":"object","required":["allow_remote_config"],"title":"MsspSettingsRequest"},"MsspSettingsResponse":{"properties":{"allow_remote_config":{"type":"boolean","title":"Allow Remote Config"}},"type":"object","required":["allow_remote_config"],"title":"MsspSettingsResponse"},"NDRMetrics":{"properties":{"total_flows":{"type":"integer","title":"Total Flows"},"anomalous_flows":{"type":"integer","title":"Anomalous Flows"},"anomaly_rate":{"type":"number","title":"Anomaly Rate"},"total_bytes":{"type":"integer","title":"Total Bytes"},"total_packets":{"type":"integer","title":"Total Packets"},"unique_src_ips":{"type":"integer","title":"Unique Src Ips"},"unique_dst_ips":{"type":"integer","title":"Unique Dst Ips"},"top_protocols":{"additionalProperties":{"type":"integer"},"type":"object","title":"Top Protocols"},"malicious_src_count":{"type":"integer","title":"Malicious Src Count"},"malicious_dst_count":{"type":"integer","title":"Malicious Dst Count"},"ddos_attack_count":{"type":"integer","title":"Ddos Attack Count","default":0},"ddos_attacker_count":{"type":"integer","title":"Ddos Attacker Count","default":0},"ddos_victim_count":{"type":"integer","title":"Ddos Victim Count","default":0},"ddos_attack_types":{"additionalProperties":{"type":"integer"},"type":"object","title":"Ddos Attack Types","default":{}}},"type":"object","required":["total_flows","anomalous_flows","anomaly_rate","total_bytes","total_packets","unique_src_ips","unique_dst_ips","top_protocols","malicious_src_count","malicious_dst_count"],"title":"NDRMetrics","description":"NDR operational metrics"},"NDRTriageResponse":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"timestamp":{"type":"string","title":"Timestamp"},"time_range":{"type":"string","title":"Time Range"},"metrics":{"$ref":"#/components/schemas/NDRMetrics"},"anomalous_flows":{"items":{"$ref":"#/components/schemas/NetworkFlow"},"type":"array","title":"Anomalous Flows"},"top_src_talkers":{"items":{"$ref":"#/components/schemas/TopTalker"},"type":"array","title":"Top Src Talkers"},"top_dst_talkers":{"items":{"$ref":"#/components/schemas/TopTalker"},"type":"array","title":"Top Dst Talkers"},"country_distribution":{"additionalProperties":{"type":"integer"},"type":"object","title":"Country Distribution"},"detected_applications":{"additionalProperties":{"type":"integer"},"type":"object","title":"Detected Applications"}},"type":"object","required":["tenant_id","timestamp","time_range","metrics","anomalous_flows","top_src_talkers","top_dst_talkers","country_distribution","detected_applications"],"title":"NDRTriageResponse","description":"Complete NDR triage response"},"NetworkAnalyticsResponse":{"properties":{"total_alerts":{"type":"integer","title":"Total Alerts"},"unique_source_ips":{"type":"integer","title":"Unique Source Ips"},"unique_dest_ips":{"type":"integer","title":"Unique Dest Ips"},"global_avg_risk":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Global Avg Risk"},"global_avg_semantic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Global Avg Semantic"},"source_ips":{"items":{"$ref":"#/components/schemas/EntityMetrics"},"type":"array","title":"Source Ips"},"dest_ips":{"items":{"$ref":"#/components/schemas/EntityMetrics"},"type":"array","title":"Dest Ips"},"filter_applied":{"type":"string","title":"Filter Applied"},"tenant":{"type":"string","title":"Tenant"}},"type":"object","required":["total_alerts","unique_source_ips","unique_dest_ips","source_ips","dest_ips","filter_applied","tenant"],"title":"NetworkAnalyticsResponse","description":"Network analytics with both source and destination IPs"},"NetworkFlow":{"properties":{"id":{"type":"string","title":"Id"},"timestamp":{"type":"string","title":"Timestamp"},"src_ip":{"type":"string","title":"Src Ip"},"dst_ip":{"type":"string","title":"Dst Ip"},"src_port":{"type":"integer","title":"Src Port"},"dst_port":{"type":"integer","title":"Dst Port"},"protocol":{"type":"integer","title":"Protocol"},"packets":{"type":"integer","title":"Packets"},"bytes":{"type":"integer","title":"Bytes"},"duration_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Ms"},"src_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Src Country"},"src_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Src City"},"dst_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dst Country"},"dst_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dst City"},"src_reputation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Src Reputation"},"dst_reputation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dst Reputation"},"ndr_anomaly":{"type":"boolean","title":"Ndr Anomaly","default":false},"anomaly_contributors":{"items":{"$ref":"#/components/schemas/AnomalyContributor"},"type":"array","title":"Anomaly Contributors","default":[]},"nlp_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nlp Text"},"detected_protocol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Protocol"},"protocol_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Protocol Confidence"},"dpi_risk_score":{"type":"integer","title":"Dpi Risk Score","default":0},"dpi_is_suspicious":{"type":"boolean","title":"Dpi Is Suspicious","default":false},"dpi_is_encrypted":{"type":"boolean","title":"Dpi Is Encrypted","default":false},"dpi_is_long_running":{"type":"boolean","title":"Dpi Is Long Running","default":false},"dpi_is_periodic":{"type":"boolean","title":"Dpi Is Periodic","default":false},"dpi_dga_detected":{"type":"boolean","title":"Dpi Dga Detected","default":false},"dpi_dga_confidence":{"type":"number","title":"Dpi Dga Confidence","default":0.0},"dpi_tls_self_signed":{"type":"boolean","title":"Dpi Tls Self Signed","default":false},"dpi_tls_unsafe_cipher":{"type":"boolean","title":"Dpi Tls Unsafe Cipher","default":false},"bytes_per_second":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bytes Per Second"},"packets_per_second":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Packets Per Second"},"ddos_is_attacker":{"type":"boolean","title":"Ddos Is Attacker","default":false},"ddos_is_victim":{"type":"boolean","title":"Ddos Is Victim","default":false},"ddos_attack_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ddos Attack Type"},"ddos_attack_confidence":{"type":"number","title":"Ddos Attack Confidence","default":0.0},"ddos_src_pps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ddos Src Pps"},"ddos_src_bps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ddos Src Bps"},"ddos_dst_pps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ddos Dst Pps"},"ddos_dst_bps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ddos Dst Bps"},"ddos_src_flow_count":{"type":"integer","title":"Ddos Src Flow Count","default":0},"ddos_dst_flow_count":{"type":"integer","title":"Ddos Dst Flow Count","default":0},"tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool"},"log_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Source"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"full_document":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Full Document"}},"type":"object","required":["id","timestamp","src_ip","dst_ip","src_port","dst_port","protocol","packets","bytes"],"title":"NetworkFlow","description":"Single network flow record"},"NewEntity":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"entity_value":{"type":"string","title":"Entity Value"}},"type":"object","required":["entity_type","entity_value"],"title":"NewEntity"},"NodeHealthCheckRequest":{"properties":{"node_ip":{"type":"string","title":"Node Ip","description":"Node IP or hostname to check"},"agent_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Port","description":"Agent port override"}},"type":"object","required":["node_ip"],"title":"NodeHealthCheckRequest","description":"Request to check a single node's health and binding status"},"NodeHealthCheckResponse":{"properties":{"reachable":{"type":"boolean","title":"Reachable"},"bound":{"type":"boolean","title":"Bound"},"node_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Node Id"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"transport_reachable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Transport Reachable"},"transport_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transport Error"}},"type":"object","required":["reachable","bound"],"title":"NodeHealthCheckResponse","description":"Response with node health and binding status"},"NodeInfo":{"properties":{"node_id":{"type":"string","title":"Node Id","description":"Unique node identifier"},"ip":{"type":"string","title":"Ip","description":"Node IP address or hostname"},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname","description":"Node hostname"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Elasticsearch node name"},"roles":{"items":{"$ref":"#/components/schemas/NodeRole"},"type":"array","title":"Roles","description":"Node roles"},"status":{"$ref":"#/components/schemas/NodeStatus","description":"Current node status","default":"pending"},"is_local":{"type":"boolean","title":"Is Local","description":"Whether this is the local node (cannot be decommissioned)","default":false},"disk_total_gb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Disk Total Gb","description":"Total disk space in GB"},"disk_used_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Disk Used Percent","description":"Disk usage percentage"},"heap_max_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Heap Max Mb","description":"Max heap size in MB"},"heap_used_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Heap Used Percent","description":"Heap usage percentage"},"load_avg_1m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Load Avg 1M","description":"1-minute load average"},"load_avg_5m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Load Avg 5M","description":"5-minute load average"},"load_avg_15m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Load Avg 15M","description":"15-minute load average"},"cpu_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Percent","description":"CPU usage percentage"},"search_latency_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Search Latency Ms","description":"Average search query latency in milliseconds"},"shard_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shard Count","description":"Number of shards on this node"},"es_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Es Version","description":"Elasticsearch version"},"agent_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Version","description":"Node agent version"},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Joined At","description":"When the node joined the cluster"},"last_heartbeat":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Heartbeat","description":"Last heartbeat timestamp"}},"type":"object","required":["node_id","ip"],"title":"NodeInfo","description":"Information about a cluster node"},"NodeReachabilityRequest":{"properties":{"addresses":{"items":{"type":"string"},"type":"array","title":"Addresses","description":"List of node addresses to check"},"agent_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Port","description":"Agent port to use (overrides saved config)"}},"type":"object","required":["addresses"],"title":"NodeReachabilityRequest","description":"Request to check node reachability"},"NodeReachabilityResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/NodeReachabilityResult"},"type":"array","title":"Results"},"all_reachable":{"type":"boolean","title":"All Reachable"}},"type":"object","required":["results","all_reachable"],"title":"NodeReachabilityResponse","description":"Response containing reachability results for all nodes"},"NodeReachabilityResult":{"properties":{"address":{"type":"string","title":"Address"},"reachable":{"type":"boolean","title":"Reachable"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["address","reachable"],"title":"NodeReachabilityResult","description":"Result of a single node reachability check"},"NodeRole":{"type":"string","enum":["data","master","voting_only","ingest","coordinating"],"title":"NodeRole","description":"Elasticsearch node roles"},"NodeStatus":{"type":"string","enum":["pending","joining","active","draining","leaving","offline","error","decommissioned"],"title":"NodeStatus","description":"Status of a cluster node"},"NodesResponse":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/NodeInfo"},"type":"array","title":"Nodes"},"total_count":{"type":"integer","title":"Total Count","description":"Total number of nodes"},"degraded":{"type":"boolean","title":"Degraded","description":"True when the live cluster read failed and this node list was served from the last-good cache instead of fresh data.","default":false}},"type":"object","required":["nodes","total_count"],"title":"NodesResponse","description":"Response for nodes list endpoint"},"NoteOut":{"properties":{"id":{"type":"string","title":"Id"},"doc_id":{"type":"string","title":"Doc Id"},"tenant":{"type":"string","title":"Tenant"},"event_type":{"type":"string","title":"Event Type"},"note":{"type":"string","title":"Note"},"author":{"type":"string","title":"Author"},"timestamp":{"type":"string","title":"Timestamp"},"updated_at":{"type":"string","title":"Updated At"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"entities":{"items":{"type":"string"},"type":"array","title":"Entities"}},"type":"object","required":["id","doc_id","tenant","event_type","note","author","timestamp","updated_at","tags"],"title":"NoteOut"},"NoteUpdate":{"properties":{"note":{"type":"string","maxLength":10000,"minLength":1,"title":"Note"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["note"],"title":"NoteUpdate"},"Office365EmailIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: email-o365-*)"},"type":{"type":"string","const":"office365-email","title":"Type","default":"office365-email"},"provider":{"type":"string","const":"office365","title":"Provider","default":"office365"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Azure AD tenant ID"},"client_id":{"type":"string","title":"Client Id","description":"Azure AD client ID"},"client_secret":{"type":"string","title":"Client Secret","description":"Azure AD client secret"},"from_address":{"type":"string","title":"From Address","description":"Sender mailbox (must have Mail.Send permission)"}},"type":"object","required":["integration_id","tenant_id","client_id","client_secret","from_address"],"title":"Office365EmailIntegration","description":"Office 365 (Email via Microsoft Graph) integration - ID prefix: email-o365-*"},"OktaIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: okta-*)"},"type":{"type":"string","const":"okta","title":"Type","default":"okta"},"org_url":{"type":"string","title":"Org Url","description":"Okta organization URL"},"api_token":{"type":"string","title":"Api Token","description":"Okta API token"}},"type":"object","required":["integration_id","org_url","api_token"],"title":"OktaIntegration","description":"Okta integration - ID prefix: okta-*"},"Operation":{"properties":{"operation_id":{"type":"string","title":"Operation Id","description":"Unique operation identifier"},"type":{"$ref":"#/components/schemas/OperationType","description":"Operation type"},"status":{"$ref":"#/components/schemas/OperationStatus","description":"Operation status","default":"pending"},"progress_percent":{"type":"integer","title":"Progress Percent","description":"Progress percentage (0-100)","default":0},"current_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Step","description":"Current step name"},"steps":{"items":{"$ref":"#/components/schemas/OperationStep"},"type":"array","title":"Steps","description":"Operation steps"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"When operation started"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When operation completed"},"initiated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initiated By","description":"User who initiated the operation"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if failed"},"target_nodes":{"items":{"type":"string"},"type":"array","title":"Target Nodes","description":"Nodes involved in operation"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result","description":"Operation result data"}},"type":"object","required":["operation_id","type"],"title":"Operation","description":"A cluster operation (initialize, add node, decommission, etc.)"},"OperationResponse":{"properties":{"operation_id":{"type":"string","title":"Operation Id","description":"Created operation ID"},"message":{"type":"string","title":"Message","description":"Status message"}},"type":"object","required":["operation_id","message"],"title":"OperationResponse","description":"Response for operation creation endpoints"},"OperationStatus":{"type":"string","enum":["pending","in_progress","completed","failed","cancelled"],"title":"OperationStatus","description":"Status of a cluster operation"},"OperationStep":{"properties":{"name":{"type":"string","title":"Name","description":"Step name"},"description":{"type":"string","title":"Description","description":"Step description"},"status":{"$ref":"#/components/schemas/OperationStatus","description":"Step status","default":"pending"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"When step started"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When step completed"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if failed"}},"type":"object","required":["name","description"],"title":"OperationStep","description":"A step in a cluster operation"},"OperationType":{"type":"string","enum":["initialize","add_node","decommission_node","reconfigure","replace_node","remove_remote_nodes"],"title":"OperationType","description":"Types of cluster operations"},"OverviewResponse":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"generated_at":{"type":"string","title":"Generated At"},"tier_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tier Counts"},"state_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"State Counts"},"disposition_mix":{"additionalProperties":{"type":"integer"},"type":"object","title":"Disposition Mix"},"throughput":{"additionalProperties":true,"type":"object","title":"Throughput"},"sla":{"additionalProperties":true,"type":"object","title":"Sla"},"mitre_heatmap":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Mitre Heatmap"},"total_open_cases":{"type":"integer","title":"Total Open Cases","default":0},"total_cases":{"type":"integer","title":"Total Cases","default":0},"llm_used_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Llm Used Pct"},"outcomes":{"additionalProperties":true,"type":"object","title":"Outcomes"},"landscape":{"additionalProperties":true,"type":"object","title":"Landscape"},"degraded":{"type":"boolean","title":"Degraded","default":false}},"type":"object","required":["tenant_id","generated_at"],"title":"OverviewResponse"},"OverviewStats":{"properties":{"detections_count":{"type":"integer","title":"Detections Count"},"gen1_detections_count":{"type":"integer","title":"Gen1 Detections Count","default":0},"gen2_detections_count":{"type":"integer","title":"Gen2 Detections Count","default":0},"gen3_detections_count":{"type":"integer","title":"Gen3 Detections Count","default":0},"agentic_detections_count":{"type":"integer","title":"Agentic Detections Count","default":0},"ueba_detections_count":{"type":"integer","title":"Ueba Detections Count","default":0},"vendor_detections_count":{"type":"integer","title":"Vendor Detections Count","default":0},"total_detections_count":{"type":"integer","title":"Total Detections Count","default":0},"predictions_count":{"type":"integer","title":"Predictions Count"},"threatcasts_count":{"type":"integer","title":"Threatcasts Count"},"env_predictions_count":{"type":"integer","title":"Env Predictions Count","default":0},"logs_ingested_count":{"type":"integer","title":"Logs Ingested Count","default":0},"logs_ingested_windowed_count":{"type":"integer","title":"Logs Ingested Windowed Count","default":0},"avg_risk_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Risk Score"},"detections_24h_change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Detections 24H Change"},"predictions_24h_change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Predictions 24H Change"}},"type":"object","required":["detections_count","predictions_count","threatcasts_count"],"title":"OverviewStats","description":"Overview statistics"},"PDFExportRequest":{"properties":{"type":{"type":"string","enum":["alert","chat"],"title":"Type","description":"Type of export: 'alert' for alert reports, 'chat' for SOCGPT conversations"},"theme":{"type":"string","enum":["dark","light"],"title":"Theme","description":"Color theme for the PDF","default":"dark"},"content":{"type":"string","title":"Content","description":"Markdown content to render in the PDF"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Optional metadata to include in the PDF header (doc_id, timestamp, tenant, classification, severity, title)"}},"type":"object","required":["type","content"],"title":"PDFExportRequest","description":"Request model for PDF export"},"PaloAltoFirewallIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: pa-*)"},"type":{"type":"string","const":"palo-alto-firewall","title":"Type","default":"palo-alto-firewall"},"host":{"type":"string","title":"Host","description":"Firewall hostname or IP address"},"api_key":{"type":"string","title":"Api Key","description":"API key"},"vsys":{"type":"string","title":"Vsys","description":"Virtual system name","default":"vsys1"},"address_group":{"type":"string","title":"Address Group","description":"Address group for blocklists","default":"SOAR-Blocklist"},"verify_tls":{"type":"boolean","title":"Verify Tls","description":"Verify TLS certificate","default":false}},"type":"object","required":["integration_id","host","api_key"],"title":"PaloAltoFirewallIntegration","description":"Palo Alto Networks Firewall integration - ID prefix: pa-*"},"PortConfiguration":{"properties":{"es_http_port":{"type":"integer","title":"Es Http Port","description":"Elasticsearch HTTP port","default":30002},"es_transport_port":{"type":"integer","title":"Es Transport Port","description":"Elasticsearch transport port","default":30626},"agent_port":{"type":"integer","title":"Agent Port","description":"Node agent HTTPS port","default":8080}},"type":"object","title":"PortConfiguration","description":"Configuration for ES and agent ports"},"PostureChatHistoryMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"}},"type":"object","required":["role","content"],"title":"PostureChatHistoryMessage"},"PostureChatRequest":{"properties":{"posture_data":{"additionalProperties":true,"type":"object","title":"Posture Data","default":{}},"report_id":{"type":"string","title":"Report Id","default":""},"tenant":{"type":"string","title":"Tenant","default":""},"context_label":{"type":"string","title":"Context Label","default":"Posture Report"},"initial_analysis":{"type":"string","title":"Initial Analysis","default":""},"history":{"items":{"$ref":"#/components/schemas/PostureChatHistoryMessage"},"type":"array","title":"History","default":[]},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"PostureChatRequest","description":"Follow-up chat turn grounded in a single posture report or forecast."},"PostureReportRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"time_range":{"type":"string","title":"Time Range","default":"24h"},"priority_filter":{"type":"string","title":"Priority Filter","default":"P1"},"asset_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Tag"}},"type":"object","required":["tenant_id"],"title":"PostureReportRequest","description":"Request to generate a posture report"},"PostureReportResponse":{"properties":{"report_id":{"type":"string","title":"Report Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"generated_at":{"type":"string","title":"Generated At"},"time_range":{"type":"string","title":"Time Range"},"priority_filter":{"type":"string","title":"Priority Filter"},"incident_count":{"type":"integer","title":"Incident Count"},"report_markdown":{"type":"string","title":"Report Markdown"},"incidents_analyzed":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Incidents Analyzed"}},"type":"object","required":["report_id","tenant_id","generated_at","time_range","priority_filter","incident_count","report_markdown","incidents_analyzed"],"title":"PostureReportResponse","description":"Generated posture report"},"PostureSummary":{"properties":{"overall_risk":{"type":"string","title":"Overall Risk"},"risk_color":{"type":"string","title":"Risk Color"},"executive_summary":{"type":"string","title":"Executive Summary"},"alert_volume_24h":{"type":"integer","title":"Alert Volume 24H"},"critical_alerts":{"type":"integer","title":"Critical Alerts"},"high_alerts":{"type":"integer","title":"High Alerts"},"medium_alerts":{"type":"integer","title":"Medium Alerts"},"low_alerts":{"type":"integer","title":"Low Alerts"},"detection_coverage":{"type":"number","title":"Detection Coverage"},"avg_risk_score":{"type":"number","title":"Avg Risk Score"},"recommended_actions":{"items":{"type":"string"},"type":"array","title":"Recommended Actions"},"fast_working_count":{"type":"integer","title":"Fast Working Count","default":0},"awaiting_review":{"type":"integer","title":"Awaiting Review","default":0},"awaiting_critical":{"type":"integer","title":"Awaiting Critical","default":0}},"type":"object","required":["overall_risk","risk_color","executive_summary","alert_volume_24h","critical_alerts","high_alerts","medium_alerts","low_alerts","detection_coverage","avg_risk_score","recommended_actions"],"title":"PostureSummary","description":"Risk banner and SOC metrics sourced from SecurityPostureResponse."},"PredictionDetail":{"properties":{"id":{"type":"string","title":"Id"},"timestamp":{"type":"string","title":"Timestamp","default":""},"prediction_type":{"type":"string","title":"Prediction Type","default":"Prediction"},"confidence":{"anyOf":[{},{"type":"null"}],"title":"Confidence"},"entity":{"type":"string","title":"Entity","default":""},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"}},"type":"object","required":["id"],"title":"PredictionDetail","description":"Single prediction record"},"PredictionSummary":{"properties":{"id":{"type":"string","title":"Id"},"tenant":{"type":"string","title":"Tenant"},"predicted_event":{"type":"string","title":"Predicted Event"},"probability":{"type":"string","title":"Probability"},"risk_score":{"type":"number","title":"Risk Score"},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname"},"asset_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Ip"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"timestamp":{"type":"string","title":"Timestamp"},"correlated_logs":{"type":"integer","title":"Correlated Logs","default":0},"consensus_prediction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consensus Prediction"},"lockheed_martin_prediction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lockheed Martin Prediction"},"mitre_framework_prediction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mitre Framework Prediction"},"soc_expert_analyst_prediction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Soc Expert Analyst Prediction"},"predicted_detection_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Predicted Detection Tool"},"model_agreement":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Model Agreement"},"ai_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ai Confidence"},"prioritized":{"type":"boolean","title":"Prioritized","default":false},"prediction_type":{"type":"string","title":"Prediction Type","default":"asset"}},"type":"object","required":["id","tenant","predicted_event","probability","risk_score","timestamp"],"title":"PredictionSummary","description":"Summary of a prediction event"},"PredictionsListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"predictions":{"items":{"$ref":"#/components/schemas/PredictionSummary"},"type":"array","title":"Predictions"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"tenant":{"type":"string","title":"Tenant"}},"type":"object","required":["total","predictions","page","page_size","tenant"],"title":"PredictionsListResponse","description":"Paginated predictions list"},"PredictionsOverviewResponse":{"properties":{"stats":{"$ref":"#/components/schemas/OverviewStats"},"kill_chain_stages":{"items":{"$ref":"#/components/schemas/KillChainStage"},"type":"array","title":"Kill Chain Stages"},"threat_types":{"items":{"$ref":"#/components/schemas/ThreatTypeCount"},"type":"array","title":"Threat Types"},"top_entities":{"items":{"$ref":"#/components/schemas/EntityAtRisk"},"type":"array","title":"Top Entities"},"recent_detections":{"items":{"$ref":"#/components/schemas/DetectionSummary"},"type":"array","title":"Recent Detections"},"recent_predictions":{"items":{"$ref":"#/components/schemas/PredictionSummary"},"type":"array","title":"Recent Predictions"},"recent_threatcasts":{"items":{"$ref":"#/components/schemas/ThreatcastSummary"},"type":"array","title":"Recent Threatcasts"},"recent_env_predictions":{"items":{"$ref":"#/components/schemas/PredictionSummary"},"type":"array","title":"Recent Env Predictions","default":[]},"tenant":{"type":"string","title":"Tenant"},"time_range":{"type":"string","title":"Time Range"}},"type":"object","required":["stats","kill_chain_stages","threat_types","top_entities","recent_detections","recent_predictions","recent_threatcasts","tenant","time_range"],"title":"PredictionsOverviewResponse","description":"Full overview response"},"ProvenanceInfo":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Version"},"llm_used":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Llm Used"}},"type":"object","title":"ProvenanceInfo"},"PublicResetRequest":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email","description":"The user's account email"}},"type":"object","required":["email"],"title":"PublicResetRequest","description":"Public-facing payload from the login page's Forgot-Password dialog."},"PublicResetResponse":{"properties":{"message":{"type":"string","title":"Message","description":"Generic acknowledgement.","default":"If an account exists for that email, your administrator has been notified."}},"type":"object","title":"PublicResetResponse","description":"Generic response — identical regardless of whether the email matched a\nreal account, to prevent enumeration attacks."},"RefreshNowResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"last_refresh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Refresh"},"next_refresh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Next Refresh"}},"type":"object","required":["status","message"],"title":"RefreshNowResponse","description":"Response for manual refresh request"},"RelatedCase":{"properties":{"incident_id":{"type":"string","title":"Incident Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"entity_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Ref"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"current_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Tier"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"priority_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Band"},"risk":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Risk"},"disposition_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Label"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"match_reason":{"type":"string","title":"Match Reason"}},"type":"object","required":["incident_id","match_reason"],"title":"RelatedCase","description":"One other FAST case related to the case-detail drawer's case — the Related\ntab's list item. `match_reason` is a short human-readable explanation of WHY\nit surfaced (same entity / shared host / shared IOC / same kill-chain session)."},"RelatedCasesResponse":{"properties":{"incident_id":{"type":"string","title":"Incident Id"},"total":{"type":"integer","title":"Total","default":0},"related":{"items":{"$ref":"#/components/schemas/RelatedCase"},"type":"array","title":"Related"}},"type":"object","required":["incident_id"],"title":"RelatedCasesResponse"},"RelationshipType":{"type":"string","enum":["duplicate","related","blocks","blocked_by","parent","child"],"title":"RelationshipType","description":"Case relationship types."},"ReplaceNodeRequest":{"properties":{"replacement_ip":{"type":"string","title":"Replacement Ip","description":"IP address or hostname of the replacement node"}},"type":"object","required":["replacement_ip"],"title":"ReplaceNodeRequest","description":"Request to replace a node with a new one"},"ReplicaCountResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"replica_count":{"type":"integer","title":"Replica Count"}},"type":"object","required":["success","message","replica_count"],"title":"ReplicaCountResponse","description":"Response for replica count operations"},"ResetRequestListResponse":{"properties":{"requests":{"items":{"$ref":"#/components/schemas/ResetRequestSummary"},"type":"array","title":"Requests"},"pending_count":{"type":"integer","title":"Pending Count","description":"Number of requests still in 'pending' state"}},"type":"object","required":["requests","pending_count"],"title":"ResetRequestListResponse"},"ResetRequestSummary":{"properties":{"request_id":{"type":"string","title":"Request Id","description":"UUID identifying this request"},"email":{"type":"string","title":"Email","description":"The email the user entered"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"Keycloak user id, if the email mapped to a real account"},"user_exists":{"type":"boolean","title":"User Exists","description":"False if the email didn't match — request is dropped silently from public view"},"status":{"type":"string","enum":["pending","approved","denied"],"title":"Status","description":"Current request state"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By","description":"Email of the admin who approved (or denied) this request"}},"type":"object","required":["request_id","email","user_exists","status","created_at"],"title":"ResetRequestSummary","description":"One row in the admin's pending-requests list."},"ResolutionAction":{"type":"string","enum":["blocked","contained","mitigated","false_positive","duplicate","no_action","investigated","escalated","automated"],"title":"ResolutionAction","description":"Resolution action types."},"ResolveUserEmailsRequest":{"properties":{"user_ids":{"items":{"type":"string"},"type":"array","title":"User Ids"}},"type":"object","required":["user_ids"],"title":"ResolveUserEmailsRequest"},"ResolveUserEmailsResponse":{"properties":{"emails":{"additionalProperties":{"type":"string"},"type":"object","title":"Emails","default":{}}},"type":"object","title":"ResolveUserEmailsResponse"},"RuleListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"pages":{"type":"integer","title":"Pages"},"rules":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rules"}},"type":"object","required":["total","page","page_size","pages","rules"],"title":"RuleListResponse"},"RuleType":{"type":"string","enum":["ip","domain","user","asset","signature","entity","pattern"],"title":"RuleType","description":"Suppression rule types."},"SDRSInsightsRequest":{"properties":{"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"},"score":{"type":"number","title":"Score","default":0},"grade":{"type":"string","title":"Grade","default":"N/A"},"detection":{"type":"number","title":"Detection","default":0},"correlation":{"type":"number","title":"Correlation","default":0},"quality":{"type":"number","title":"Quality","default":0},"total_sources":{"type":"integer","title":"Total Sources","default":0},"total_events":{"type":"integer","title":"Total Events","default":0},"average_score":{"type":"number","title":"Average Score","default":0},"sources":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Sources"},"pivots":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Pivots"},"primitives":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Primitives"},"categories":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Categories"},"format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Format"}},"type":"object","title":"SDRSInsightsRequest","description":"Request body for SDRS AI analysis."},"SLAStatus":{"type":"string","enum":["on_track","at_risk","breached"],"title":"SLAStatus","description":"SLA compliance status."},"SMTPEmailIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: email-smtp-*)"},"type":{"type":"string","const":"smtp-email","title":"Type","default":"smtp-email"},"provider":{"type":"string","const":"smtp","title":"Provider","default":"smtp"},"smtp_server":{"type":"string","title":"Smtp Server","description":"SMTP server hostname (e.g. smtp.gmail.com)"},"smtp_port":{"type":"integer","title":"Smtp Port","description":"SMTP port (587 for STARTTLS, 465 for SSL)","default":587},"username":{"type":"string","title":"Username","description":"SMTP login username"},"password":{"type":"string","title":"Password","description":"SMTP password or app password"},"from_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Address","description":"From address (defaults to username)"}},"type":"object","required":["integration_id","smtp_server","username","password"],"title":"SMTPEmailIntegration","description":"Generic SMTP Email integration - ID prefix: email-smtp-*"},"SOCMetrics":{"properties":{"alert_volume_24h":{"type":"integer","title":"Alert Volume 24H"},"total_unique_entities":{"type":"integer","title":"Total Unique Entities"},"critical_alerts":{"type":"integer","title":"Critical Alerts"},"high_alerts":{"type":"integer","title":"High Alerts"},"medium_alerts":{"type":"integer","title":"Medium Alerts"},"low_alerts":{"type":"integer","title":"Low Alerts"},"detection_coverage":{"type":"number","title":"Detection Coverage"},"avg_risk_score":{"type":"number","title":"Avg Risk Score"}},"type":"object","required":["alert_volume_24h","total_unique_entities","critical_alerts","high_alerts","medium_alerts","low_alerts","detection_coverage","avg_risk_score"],"title":"SOCMetrics","description":"SOC operational metrics"},"ScheduledActionCreate":{"properties":{"title":{"type":"string","title":"Title"},"prompt":{"type":"string","title":"Prompt"},"interval":{"additionalProperties":true,"type":"object","title":"Interval"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["title","prompt","interval"],"title":"ScheduledActionCreate"},"ScheduledActionToggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"ScheduledActionToggle"},"ScheduledActionUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"interval":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Interval"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"ScheduledActionUpdate"},"ScheduledPromptCreate":{"properties":{"title":{"type":"string","title":"Title"},"prompt":{"type":"string","title":"Prompt"},"interval":{"additionalProperties":true,"type":"object","title":"Interval"},"enabled":{"type":"boolean","title":"Enabled","default":true},"sub_tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sub Tenant"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["title","prompt","interval"],"title":"ScheduledPromptCreate"},"ScheduledPromptToggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"ScheduledPromptToggle"},"ScopeInfo":{"properties":{"hosts":{"items":{"type":"string"},"type":"array","title":"Hosts"},"users":{"items":{"type":"string"},"type":"array","title":"Users"},"ips":{"items":{"type":"string"},"type":"array","title":"Ips"}},"type":"object","title":"ScopeInfo"},"ScoreHistogram":{"properties":{"buckets":{"items":{"type":"integer"},"type":"array","title":"Buckets"}},"type":"object","required":["buckets"],"title":"ScoreHistogram","description":"10-bucket histogram for score distribution (0-9, 10-19, ..., 90-99)"},"SearchRequest":{"properties":{"tenant":{"type":"string","minLength":1,"title":"Tenant"},"scope":{"type":"string","enum":["logs","detections","predictions"],"title":"Scope"},"find":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Find"},"filters":{"items":{"$ref":"#/components/schemas/FilterChip"},"type":"array","title":"Filters"},"when":{"$ref":"#/components/schemas/TimeWindow"},"page_size":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Page Size","default":100},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["tenant","scope","when"],"title":"SearchRequest"},"SearchResponse":{"properties":{"hits":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Hits"},"total":{"$ref":"#/components/schemas/SearchTotal"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false},"took_ms":{"type":"integer","title":"Took Ms"},"tenants_queried":{"items":{"type":"string"},"type":"array","title":"Tenants Queried"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["hits","total","took_ms","tenants_queried"],"title":"SearchResponse"},"SearchTotal":{"properties":{"value":{"type":"integer","title":"Value"},"relation":{"type":"string","enum":["eq","gte"],"title":"Relation"}},"type":"object","required":["value","relation"],"title":"SearchTotal"},"SecurityPostureResponse":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"timestamp":{"type":"string","title":"Timestamp"},"overall_risk":{"type":"string","title":"Overall Risk"},"risk_color":{"type":"string","title":"Risk Color"},"executive_summary":{"type":"string","title":"Executive Summary"},"incidents":{"items":{"$ref":"#/components/schemas/app__api__soc_operations__IncidentCard"},"type":"array","title":"Incidents"},"total_incidents":{"type":"integer","title":"Total Incidents","description":"Total number of paginable incidents (response only returns the requested page)."},"top_risky_users":{"items":{"$ref":"#/components/schemas/EntityRisk"},"type":"array","title":"Top Risky Users"},"top_risky_assets":{"items":{"$ref":"#/components/schemas/EntityRisk"},"type":"array","title":"Top Risky Assets"},"external_connections":{"items":{"$ref":"#/components/schemas/EntityRisk"},"type":"array","title":"External Connections"},"soc_metrics":{"$ref":"#/components/schemas/SOCMetrics"},"recommended_actions":{"items":{"type":"string"},"type":"array","title":"Recommended Actions"},"threat_exposure":{"additionalProperties":true,"type":"object","title":"Threat Exposure"},"window_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Window End"}},"type":"object","required":["tenant_id","timestamp","overall_risk","risk_color","executive_summary","incidents","total_incidents","top_risky_users","top_risky_assets","external_connections","soc_metrics","recommended_actions"],"title":"SecurityPostureResponse","description":"Complete security posture report"},"SentinelOneIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (edr-sentinelone)"},"type":{"type":"string","const":"edr-sentinelone","title":"Type","default":"edr-sentinelone"},"vendor":{"type":"string","const":"sentinelone","title":"Vendor","default":"sentinelone"},"base_url":{"type":"string","title":"Base Url","description":"SentinelOne instance URL"},"api_token":{"type":"string","title":"Api Token","description":"API token"}},"type":"object","required":["integration_id","base_url","api_token"],"title":"SentinelOneIntegration","description":"SentinelOne (EDR) integration - ID prefix: edr-sentinelone"},"ServiceNowIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: snow-*)"},"type":{"type":"string","const":"servicenow","title":"Type","default":"servicenow"},"instance_url":{"type":"string","title":"Instance Url","description":"ServiceNow instance URL"},"auth_method":{"type":"string","enum":["basic","oauth2"],"title":"Auth Method","description":"Authentication method","default":"basic"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username","description":"Username (required for basic auth)"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password","description":"Password (required for basic auth)"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"Client ID (required for oauth2)"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret","description":"Client secret (required for oauth2)"},"default_assignment_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Assignment Group","description":"Default assignment group"},"default_category":{"type":"string","title":"Default Category","description":"Default category","default":"Security"},"caller_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caller Id","description":"Default caller/reporter"}},"type":"object","required":["integration_id","instance_url"],"title":"ServiceNowIntegration","description":"ServiceNow integration - ID prefix: snow-*"},"SetConfigRequest":{"properties":{"hash_key":{"type":"string","title":"Hash Key","description":"Redis hash key","default":"config"},"value":{"type":"string","title":"Value","description":"New value for the config parameter"}},"type":"object","required":["value"],"title":"SetConfigRequest","description":"Request body for setting a config value."},"SetConfigResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"error":{"type":"string","title":"Error","default":""},"old_value":{"type":"string","title":"Old Value","default":""},"new_value":{"type":"string","title":"New Value","default":""}},"type":"object","required":["success"],"title":"SetConfigResponse","description":"Response for set config operation."},"SetTriageProfileRequest":{"properties":{"profile":{"type":"string","title":"Profile"}},"type":"object","required":["profile"],"title":"SetTriageProfileRequest"},"SiemEnabledRequest":{"properties":{"hash_key":{"type":"string","title":"Hash Key","description":"Redis hash key (destination identifier)","default":"config"},"value":{"type":"string","title":"Value","description":"'true' or 'false'"},"destination":{"type":"string","title":"Destination","description":"Optional destination slug (unused, kept for compatibility)","default":""}},"type":"object","required":["value"],"title":"SiemEnabledRequest","description":"Request body for toggling a SIEM destination's enabled state.\n\nEach destination has its own Redis hash (e.g. pre-log2nlp:splunk),\nso ``hash_key`` already identifies the destination."},"SiemHistogramRequest":{"properties":{"index_pattern":{"type":"string","title":"Index Pattern"},"query":{"additionalProperties":true,"type":"object","title":"Query"},"hours":{"type":"integer","maximum":8760.0,"minimum":-1.0,"title":"Hours","default":24},"range_seconds":{"type":"integer","maximum":31536000.0,"minimum":-1.0,"title":"Range Seconds","default":0},"from_iso":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"From Iso"},"to_iso":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"To Iso"},"size":{"type":"integer","maximum":500.0,"minimum":0.0,"title":"Size","default":0},"from_offset":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"From Offset","default":0},"sort_order":{"type":"string","pattern":"^(asc|desc)$","title":"Sort Order","default":"desc"},"buckets":{"type":"integer","maximum":120.0,"minimum":6.0,"title":"Buckets","default":48}},"type":"object","required":["index_pattern"],"title":"SiemHistogramRequest"},"SiemSearchRequest":{"properties":{"index_pattern":{"type":"string","title":"Index Pattern"},"query":{"additionalProperties":true,"type":"object","title":"Query"},"hours":{"type":"integer","maximum":8760.0,"minimum":-1.0,"title":"Hours","default":24},"range_seconds":{"type":"integer","maximum":31536000.0,"minimum":-1.0,"title":"Range Seconds","default":0},"from_iso":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"From Iso"},"to_iso":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"To Iso"},"size":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Size","default":100},"from_offset":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"From Offset","default":0},"sort_order":{"type":"string","pattern":"^(asc|desc)$","title":"Sort Order","default":"desc"}},"type":"object","required":["index_pattern"],"title":"SiemSearchRequest"},"SlackIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: slack-*)"},"type":{"type":"string","const":"slack","title":"Type","default":"slack"},"provider":{"type":"string","const":"slack","title":"Provider","default":"slack"},"bot_token":{"type":"string","title":"Bot Token","description":"Slack Bot API token (xoxb-...)"},"default_channel":{"type":"string","title":"Default Channel","description":"Default channel name or ID (e.g. #soc-alerts or C06HBU3PX7Z)","default":""}},"type":"object","required":["integration_id","bot_token"],"title":"SlackIntegration","description":"Slack integration - ID prefix: slack-*"},"StageUpdate":{"properties":{"entity_key":{"type":"string","title":"Entity Key"},"stage":{"type":"string","title":"Stage"},"by":{"type":"string","title":"By","default":"analyst"}},"type":"object","required":["entity_key","stage"],"title":"StageUpdate"},"StarCreate":{"properties":{"item_type":{"type":"string","enum":["incident","log","detection","prediction","case"],"title":"Item Type"},"item_id":{"type":"string","maxLength":512,"minLength":1,"title":"Item Id"},"tenant":{"type":"string","maxLength":128,"minLength":1,"title":"Tenant"},"scope":{"type":"string","enum":["private","shared"],"title":"Scope","default":"private"},"label":{"type":"string","maxLength":512,"title":"Label","default":""},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["item_type","item_id","tenant"],"title":"StarCreate"},"StarOut":{"properties":{"id":{"type":"string","title":"Id"},"item_type":{"type":"string","title":"Item Type"},"item_id":{"type":"string","title":"Item Id"},"tenant":{"type":"string","title":"Tenant"},"scope":{"type":"string","title":"Scope"},"owner":{"type":"string","title":"Owner"},"label":{"type":"string","title":"Label"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","item_type","item_id","tenant","scope","owner","label","metadata","created_at"],"title":"StarOut"},"StartRunRequest":{"properties":{"mode":{"type":"string","pattern":"^(full|verify)$","title":"Mode","default":"full"},"duration_seconds":{"anyOf":[{"type":"integer","maximum":14400.0,"minimum":60.0},{"type":"null"}],"title":"Duration Seconds"}},"type":"object","title":"StartRunRequest"},"SuppressionRule":{"properties":{"id":{"type":"integer","title":"Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"rule_type":{"$ref":"#/components/schemas/RuleType"},"match_criteria":{"additionalProperties":true,"type":"object","title":"Match Criteria"},"applies_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applies To"},"is_active":{"type":"boolean","title":"Is Active","default":true},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"type":"string","title":"Created By"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"match_count":{"type":"integer","title":"Match Count","default":0},"last_matched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Matched At"}},"type":"object","required":["id","tenant_id","name","description","rule_type","match_criteria","applies_to","start_date","end_date","created_at","created_by","updated_at","updated_by","last_matched_at"],"title":"SuppressionRule","description":"Full suppression rule model."},"SuppressionRuleCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name","description":"Rule name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Rule description"},"rule_type":{"$ref":"#/components/schemas/RuleType","description":"Type of rule"},"match_criteria":{"additionalProperties":true,"type":"object","title":"Match Criteria","description":"Matching criteria as JSON"},"applies_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applies To","description":"Scope - incident type, category, or null for all"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date","description":"When rule becomes active"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date","description":"When rule expires (null = permanent)"}},"type":"object","required":["name","rule_type","match_criteria"],"title":"SuppressionRuleCreate","description":"Request model for creating a suppression rule."},"SuppressionRuleUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"match_criteria":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Match Criteria"},"applies_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applies To"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"}},"type":"object","title":"SuppressionRuleUpdate","description":"Request model for updating a suppression rule."},"TeamsIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: teams-*)"},"type":{"type":"string","const":"teams","title":"Type","default":"teams"},"provider":{"type":"string","const":"teams","title":"Provider","default":"teams"},"webhook_url":{"type":"string","title":"Webhook Url","description":"Teams incoming webhook URL"},"default_channel_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Channel Label","description":"Default channel label for reference"}},"type":"object","required":["integration_id","webhook_url"],"title":"TeamsIntegration","description":"Microsoft Teams integration - ID prefix: teams-*"},"TenantInfo":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"host":{"type":"string","title":"Host"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["id","name","host","enabled"],"title":"TenantInfo","description":"Tenant information"},"TenantStatus":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"status":{"type":"string","title":"Status"},"status_color":{"type":"string","title":"Status Color"},"message":{"type":"string","title":"Message"},"last_update":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Update"},"age_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Age Seconds"},"connected":{"type":"boolean","title":"Connected","default":false}},"type":"object","required":["tenant_id","status","status_color","message"],"title":"TenantStatus","description":"Tenant connection and health status"},"TenantUpdateRequest":{"properties":{"hostname":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Hostname","description":"Client hostname"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description","description":"Client description"},"es_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Es Url","description":"Direct Elasticsearch URL (local mode only)"},"redis_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redis Host","description":"Direct Redis host (local mode only)"},"redis_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Redis Port","description":"Direct Redis port (local mode only)"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token","description":"Auth token for SSO to tenant web UI"},"webui_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webui Url","description":"URL to tenant's web UI"}},"type":"object","title":"TenantUpdateRequest","description":"Request model for updating an existing tenant"},"ThreatFlow":{"properties":{"source_ip":{"type":"string","title":"Source Ip"},"source_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Country"},"source_country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Country Code"},"source_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source City"},"source_lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Source Lat"},"source_lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Source Lon"},"dest_ip":{"type":"string","title":"Dest Ip"},"dest_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Country"},"dest_country_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest Country Code"},"dest_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dest City"},"dest_lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dest Lat"},"dest_lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dest Lon"},"threat_type":{"type":"string","title":"Threat Type"},"classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification"},"risk_score":{"type":"number","title":"Risk Score"},"risk_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Source"},"value_score":{"type":"number","title":"Value Score","default":0},"priority_score":{"type":"number","title":"Priority Score","default":0},"display_priority":{"type":"number","title":"Display Priority","default":0},"count":{"type":"integer","title":"Count"},"first_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Seen"},"last_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Seen"}},"type":"object","required":["source_ip","dest_ip","threat_type","risk_score","count"],"title":"ThreatFlow","description":"Represents a threat flow from source to destination"},"ThreatTypeCount":{"properties":{"event_type":{"type":"string","title":"Event Type"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["event_type","count"],"title":"ThreatTypeCount","description":"Threat type with count"},"ThreatTypeDistribution":{"properties":{"threat_type":{"type":"string","title":"Threat Type"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"},"avg_risk_score":{"type":"number","title":"Avg Risk Score"}},"type":"object","required":["threat_type","count","percentage","avg_risk_score"],"title":"ThreatTypeDistribution","description":"Distribution of threat types"},"ThreatcastSummary":{"properties":{"id":{"type":"string","title":"Id"},"tenant":{"type":"string","title":"Tenant"},"predicted_event":{"type":"string","title":"Predicted Event"},"predicted_date":{"type":"string","title":"Predicted Date"},"probability":{"type":"string","title":"Probability"},"risk_score":{"type":"number","title":"Risk Score"},"asset_ip":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Asset Ip"},"hostname":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Hostname"},"username":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Username"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["id","tenant","predicted_event","predicted_date","probability","risk_score","timestamp"],"title":"ThreatcastSummary","description":"Summary of a threatcast (future threat prediction)"},"ThreatcastsListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"threatcasts":{"items":{"$ref":"#/components/schemas/ThreatcastSummary"},"type":"array","title":"Threatcasts"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"tenant":{"type":"string","title":"Tenant"}},"type":"object","required":["total","threatcasts","page","page_size","tenant"],"title":"ThreatcastsListResponse","description":"Paginated threatcasts list"},"TierHistoryItem":{"properties":{"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent"},"ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ts"},"cited_fields":{"items":{"type":"string"},"type":"array","title":"Cited Fields"},"escalation_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Note"}},"type":"object","title":"TierHistoryItem"},"TimeWindow":{"properties":{"preset":{"anyOf":[{"type":"string","enum":["15m","1h","24h","7d","30d"]},{"type":"null"}],"title":"Preset"},"from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},"type":"object","title":"TimeWindow"},"TimelineItem":{"properties":{"ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ts"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"}},"type":"object","title":"TimelineItem"},"TopTalker":{"properties":{"ip":{"type":"string","title":"Ip"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"flow_count":{"type":"integer","title":"Flow Count"},"total_bytes":{"type":"integer","title":"Total Bytes"},"total_packets":{"type":"integer","title":"Total Packets"},"anomaly_count":{"type":"integer","title":"Anomaly Count"},"reputation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reputation"}},"type":"object","required":["ip","flow_count","total_bytes","total_packets","anomaly_count"],"title":"TopTalker","description":"Top talker entity with traffic metrics"},"TriageProfileInfo":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"}},"type":"object","required":["name","label","description"],"title":"TriageProfileInfo"},"TriageProfilePreview":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"time_range":{"type":"string","title":"Time Range"},"active_profile":{"type":"string","title":"Active Profile"},"preview_profile":{"type":"string","title":"Preview Profile"},"active_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Active Counts"},"preview_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Preview Counts"},"deltas":{"additionalProperties":{"type":"integer"},"type":"object","title":"Deltas"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["tenant_id","time_range","active_profile","preview_profile","active_counts","preview_counts","deltas","total"],"title":"TriageProfilePreview"},"TriageProfileState":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"active":{"type":"string","title":"Active"},"using_default":{"type":"boolean","title":"Using Default"},"available":{"items":{"$ref":"#/components/schemas/TriageProfileInfo"},"type":"array","title":"Available"}},"type":"object","required":["tenant_id","active","using_default","available"],"title":"TriageProfileState"},"TunnelClientResponse":{"properties":{"client_id":{"type":"string","title":"Client Id"},"hostname":{"type":"string","title":"Hostname"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"$ref":"#/components/schemas/ClientStatus"},"client_type":{"type":"string","title":"Client Type","default":"tenant"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"connection_mode":{"$ref":"#/components/schemas/ConnectionMode","default":"remote"},"services":{"additionalProperties":{"type":"integer"},"type":"object","title":"Services","default":{}},"allocated_ports":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Allocated Ports"},"es_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Es Url"},"redis_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redis Host"},"redis_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Redis Port"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token"},"webui_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webui Url"},"registered_at":{"type":"string","format":"date-time","title":"Registered At"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"disconnected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Disconnected At"},"signature_verified":{"type":"boolean","title":"Signature Verified","default":false}},"type":"object","required":["client_id","hostname","description","status","registered_at","approved_at"],"title":"TunnelClientResponse","description":"Response model for single tunnel client"},"TunnelClientsListResponse":{"properties":{"clients":{"items":{"$ref":"#/components/schemas/TunnelClientResponse"},"type":"array","title":"Clients"},"count":{"type":"integer","title":"Count"},"pending_count":{"type":"integer","title":"Pending Count"},"approved_count":{"type":"integer","title":"Approved Count"},"rejected_count":{"type":"integer","title":"Rejected Count"},"disconnected_count":{"type":"integer","title":"Disconnected Count","default":0},"psrp_count":{"type":"integer","title":"Psrp Count","default":0}},"type":"object","required":["clients","count","pending_count","approved_count","rejected_count"],"title":"TunnelClientsListResponse","description":"Response model for listing tunnel clients"},"TunnelPortMappingsResponse":{"properties":{"mappings":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"Mappings"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["mappings","count"],"title":"TunnelPortMappingsResponse","description":"Response model for all approved port mappings"},"TunnelRegistrationRequest":{"properties":{"client_id":{"type":"string","maxLength":50,"minLength":1,"title":"Client Id","description":"Unique client identifier"},"hostname":{"type":"string","maxLength":100,"minLength":1,"title":"Hostname","description":"Client hostname"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description","description":"Client description"},"services":{"additionalProperties":{"type":"integer"},"type":"object","title":"Services","description":"Service name to local port mapping (e.g., {'grpc_es': 50051})"},"client_type":{"type":"string","title":"Client Type","description":"Client type: 'tenant' or 'psrp'","default":"tenant"},"label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Label","description":"Human-readable device label"},"config_signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Signature","description":"Base64 signature from config.txt"},"signed_config":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Config","description":"Original signed JSON content from config.txt"},"service_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Token","description":"Service token for tenant web UI access"}},"type":"object","required":["client_id","hostname","services"],"title":"TunnelRegistrationRequest","description":"Request model for remote client self-registration"},"TunnelStatusResponse":{"properties":{"client_id":{"type":"string","title":"Client Id"},"status":{"$ref":"#/components/schemas/ClientStatus"},"allocated_ports":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Allocated Ports"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"remotes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Remotes"}},"type":"object","required":["client_id","status"],"title":"TunnelStatusResponse","description":"Response model for client status polling"},"TunnelUnregisterRequest":{"properties":{"client_id":{"type":"string","title":"Client Id","description":"Client identifier to unregister"},"token":{"type":"string","title":"Token","description":"Chisel authentication token for verification"}},"type":"object","required":["client_id","token"],"title":"TunnelUnregisterRequest","description":"Request model for client self-unregistration"},"UpdateAlertRequest":{"properties":{"threshold_hours":{"anyOf":[{"type":"number","maximum":720.0,"minimum":0.25},{"type":"null"}],"title":"Threshold Hours"},"email_recipients":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Email Recipients"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"UpdateAlertRequest"},"UpdateConnectorInstanceRequest":{"properties":{"config":{"additionalProperties":true,"type":"object","title":"Config"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},"type":"object","required":["config"],"title":"UpdateConnectorInstanceRequest"},"UpdateFileRequest":{"properties":{"file_id":{"type":"string","minLength":1,"title":"File Id"},"type":{"type":"string","enum":["AssetIP","HostName","UserName","URL"],"title":"Type"},"value":{"type":"string","maxLength":2048,"minLength":1,"title":"Value"}},"type":"object","required":["file_id","type","value"],"title":"UpdateFileRequest"},"UpdateGlobalConfigRequest":{"properties":{"default_connector_instance_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Connector Instance Id","description":"Default connector for all indices"},"export_enabled":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Enabled","description":"Global export enabled ('true'/'false')"},"export_after_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export After Days","description":"Global default export after days"},"export_before_delete":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Before Delete","description":"Export before delete ('true'/'false')"},"low_value_delete_enabled":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Low Value Delete Enabled","description":"Auto-delete low-value logs ('true'/'false')"},"low_value_grace_hours":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Low Value Grace Hours","description":"Grace hours before low-value logs eligible for delete"},"low_value_connector_instance_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Low Value Connector Instance Id","description":"Connector for low-value exports; empty = use default"}},"type":"object","title":"UpdateGlobalConfigRequest"},"UpdateIndexMappingRequest":{"properties":{"connector_instance_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connector Instance Id","description":"Connector instance ID to assign"},"export_enabled":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Enabled","description":"'true' or 'false'"},"export_after_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export After Days","description":"Number of days before export"}},"type":"object","title":"UpdateIndexMappingRequest"},"UpdateInstanceRequest":{"properties":{"config":{"additionalProperties":true,"type":"object","title":"Config"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},"type":"object","required":["config"],"title":"UpdateInstanceRequest"},"UpdatePortConfigRequest":{"properties":{"es_http_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Es Http Port","description":"Elasticsearch HTTP port"},"es_transport_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Es Transport Port","description":"Elasticsearch transport port"},"agent_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Port","description":"Node agent HTTPS port"}},"type":"object","title":"UpdatePortConfigRequest","description":"Request to update port configuration"},"UpdateReplicaCountRequest":{"properties":{"replica_count":{"type":"integer","title":"Replica Count","description":"Number of replicas (minimum 2)"}},"type":"object","required":["replica_count"],"title":"UpdateReplicaCountRequest","description":"Request to update cluster replica count"},"UpdateRequest":{"properties":{"notes":{"type":"string","title":"Notes"}},"type":"object","required":["notes"],"title":"UpdateRequest"},"UpdateRuleRequest":{"properties":{"rule_id":{"type":"string","minLength":1,"title":"Rule Id"},"rule_name":{"type":"string","maxLength":60,"minLength":1,"title":"Rule Name"},"content":{"type":"string","title":"Content","default":""},"type":{"type":"string","enum":["AssetIP","HostName","UserName","URL"],"title":"Type"},"value":{"type":"string","maxLength":2048,"title":"Value","default":""}},"type":"object","required":["rule_id","rule_name","type"],"title":"UpdateRuleRequest"},"UpdateTagRequest":{"properties":{"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},"type":"object","title":"UpdateTagRequest"},"UpdateUserRequest":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username","description":"Username"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"User first name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"User last name"},"roles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Roles","description":"User roles"},"rbac_role_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Rbac Role Ids","description":"pre-rbac-svc role UUIDs to assign (full replace). When set the server syncs assignments by diffing against the current set and mirrors any system-role change to the equivalent Keycloak realm role. Leave None to keep RBAC assignments untouched."},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"User active status"},"password":{"anyOf":[{"type":"string","minLength":12},{"type":"null"}],"title":"Password","description":"New password (min 12 chars)"}},"type":"object","title":"UpdateUserRequest","description":"Request model for updating a user."},"UpgradeHostRequest":{"properties":{"host":{"type":"string","maxLength":255,"minLength":1,"title":"Host"},"scheduled_at":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Scheduled At"},"version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Version"}},"type":"object","required":["host"],"title":"UpgradeHostRequest"},"UrlEntryRequest":{"properties":{"file_type":{"type":"string","enum":["AssetIP","HostName","UserName","URL"],"title":"File Type"},"asset_value":{"type":"string","maxLength":2048,"minLength":1,"title":"Asset Value"}},"type":"object","required":["file_type","asset_value"],"title":"UrlEntryRequest"},"UserInfo":{"properties":{"user_id":{"type":"string","title":"User Id","description":"Unique user identifier"},"email":{"type":"string","title":"Email","description":"User email address"},"username":{"type":"string","title":"Username","description":"Username"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"User first name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"User last name"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles","description":"User roles"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id","description":"Managing-tenant UUID (from Keycloak tenant_id claim). None in single-tenant dev or pre-migration tokens."},"is_active":{"type":"boolean","title":"Is Active","description":"User active status","default":true},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Account creation timestamp"},"last_login":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login","description":"Last login timestamp"}},"type":"object","required":["user_id","email","username"],"title":"UserInfo","description":"User information model."},"UserNewsPreferences":{"properties":{"sources":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Sources","description":"source_id -> enabled/disabled"}},"type":"object","title":"UserNewsPreferences","description":"Per-user source toggle preferences."},"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"},"WhitelistEntry":{"properties":{"id":{"type":"integer","title":"Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"entity_type":{"type":"string","title":"Entity Type"},"entity_value":{"type":"string","title":"Entity Value"},"reason":{"type":"string","title":"Reason"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"whitelist_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whitelist For"},"is_active":{"type":"boolean","title":"Is Active","default":true},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"type":"string","title":"Created By"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"}},"type":"object","required":["id","tenant_id","entity_type","entity_value","reason","category","whitelist_for","start_date","end_date","created_at","created_by","updated_at","updated_by"],"title":"WhitelistEntry","description":"Full whitelist entry model."},"WhitelistEntryCreate":{"properties":{"entity_type":{"type":"string","title":"Entity Type","description":"Entity type (user, asset, ip, domain)"},"entity_value":{"type":"string","title":"Entity Value","description":"Entity value to whitelist"},"reason":{"type":"string","minLength":1,"title":"Reason","description":"Why is this whitelisted?"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Category (infrastructure, testing, etc.)"},"whitelist_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whitelist For","description":"Specific alert types, or null for all"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date","description":"Expiration date (null = permanent)"}},"type":"object","required":["entity_type","entity_value","reason"],"title":"WhitelistEntryCreate","description":"Request model for creating a whitelist entry."},"WinServerIntegration":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Unique identifier (prefix: win-srv-*)"},"type":{"type":"string","const":"win-server","title":"Type","default":"win-server"},"host":{"type":"string","title":"Host","description":"Server hostname or IP address"},"username":{"type":"string","title":"Username","description":"Administrator username"},"password":{"type":"string","title":"Password","description":"Administrator password"},"port":{"type":"integer","title":"Port","description":"WinRM port","default":5986},"scheme":{"type":"string","enum":["https","http"],"title":"Scheme","description":"WinRM scheme","default":"https"},"verify_tls":{"type":"boolean","title":"Verify Tls","description":"Verify TLS certificate","default":false}},"type":"object","required":["integration_id","host","username","password"],"title":"WinServerIntegration","description":"Windows Server (WinRM) integration - ID prefix: win-srv-*"},"_Recipient":{"properties":{"kind":{"type":"string","title":"Kind"},"value":{"type":"string","title":"Value"}},"type":"object","required":["kind","value"],"title":"_Recipient"},"_SubscriberRef":{"properties":{"kind":{"type":"string","title":"Kind"},"slug":{"type":"string","title":"Slug"}},"type":"object","required":["kind","slug"],"title":"_SubscriberRef"},"app__api__cases__BulkDeleteRequest":{"properties":{"case_ids":{"items":{"type":"integer"},"type":"array","title":"Case Ids"}},"type":"object","required":["case_ids"],"title":"BulkDeleteRequest","description":"Request to delete multiple cases in one roundtrip."},"app__api__fast_data__CaseEvidence":{"properties":{"alerts":{"items":{"$ref":"#/components/schemas/EvidenceAlert"},"type":"array","title":"Alerts"},"detections":{"items":{"$ref":"#/components/schemas/EvidenceDetection"},"type":"array","title":"Detections"},"ioc_matches":{"items":{"$ref":"#/components/schemas/EvidenceIocMatch"},"type":"array","title":"Ioc Matches"},"predictions":{"items":{"$ref":"#/components/schemas/EvidencePrediction"},"type":"array","title":"Predictions"},"killchain":{"additionalProperties":true,"type":"object","title":"Killchain"},"correlated":{"items":{"$ref":"#/components/schemas/EvidenceCorrelated"},"type":"array","title":"Correlated"},"related_entities":{"items":{"$ref":"#/components/schemas/EvidenceRelatedEntity"},"type":"array","title":"Related Entities"},"estate_hits":{"items":{"$ref":"#/components/schemas/EvidenceEstateHit"},"type":"array","title":"Estate Hits"},"cve_matches":{"items":{"$ref":"#/components/schemas/EvidenceCveMatch"},"type":"array","title":"Cve Matches"},"signal_prevalence":{"items":{"$ref":"#/components/schemas/EvidenceSignalPrevalence"},"type":"array","title":"Signal Prevalence"}},"type":"object","title":"CaseEvidence","description":"The case's evidentiary trail — the data behind the case-detail drawer's\nSupporting Evidence tab (docs/49 follow-up: this is additive, not part of\nthe original §4.1 fast_incidents contract). Every sub-list defaults empty so\nthe UI can degrade a section-at-a-time instead of needing the whole block."},"app__api__fast_data__CaseListResponse":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"total":{"type":"integer","title":"Total","default":0},"cases":{"items":{"$ref":"#/components/schemas/FastCaseCard"},"type":"array","title":"Cases"}},"type":"object","required":["tenant_id"],"title":"CaseListResponse"},"app__api__fast_data__IncidentCard":{"properties":{"cluster_id":{"type":"string","title":"Cluster Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"case_count":{"type":"integer","title":"Case Count","default":0},"entity_count":{"type":"integer","title":"Entity Count","default":0},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"mitre_tactics":{"items":{"type":"string"},"type":"array","title":"Mitre Tactics"},"max_risk":{"type":"integer","title":"Max Risk","default":0},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"last_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Seen"},"focus_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focus Case Id"}},"type":"object","required":["cluster_id"],"title":"IncidentCard","description":"One row in the browsable Incidents queue (top-level discoverability fix — the incident graph is\notherwise only reachable from a case's drawer or a multi-case queue card's chip, so there was no place\nto FIND a tracked incident). Backed by the fast_clusters-* registry (docs/52), not a live fast_incidents\nquery — every field here is a passthrough/derivation of what the grouper already wrote."},"app__api__kanban_api__NoteCreate":{"properties":{"entity_key":{"type":"string","title":"Entity Key"},"text":{"type":"string","title":"Text"},"author":{"type":"string","title":"Author","default":"analyst"}},"type":"object","required":["entity_key","text"],"title":"NoteCreate"},"app__api__log_details__ChatHistoryMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"}},"type":"object","required":["role","content"],"title":"ChatHistoryMessage"},"app__api__log_details__ExplainLogRequest":{"properties":{"log_data":{"additionalProperties":true,"type":"object","title":"Log Data"},"doc_id":{"type":"string","title":"Doc Id"},"tenant":{"type":"string","title":"Tenant"}},"type":"object","required":["log_data","doc_id","tenant"],"title":"ExplainLogRequest","description":"Request body for log explanation."},"app__api__notes_api__NoteCreate":{"properties":{"doc_id":{"type":"string","maxLength":512,"minLength":1,"title":"Doc Id"},"tenant":{"type":"string","maxLength":128,"minLength":1,"title":"Tenant"},"event_type":{"type":"string","title":"Event Type","default":"log"},"note":{"type":"string","maxLength":10000,"minLength":1,"title":"Note"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"entities":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Entities"}},"type":"object","required":["doc_id","tenant","note"],"title":"NoteCreate"},"app__api__prompt_reports__BulkDeleteRequest":{"properties":{"file_names":{"items":{"type":"string"},"type":"array","title":"File Names"}},"type":"object","required":["file_names"],"title":"BulkDeleteRequest"},"app__api__soar_logs__ExplainLogRequest":{"properties":{"raw":{"additionalProperties":true,"type":"object","title":"Raw"}},"type":"object","required":["raw"],"title":"ExplainLogRequest"},"app__api__soc_operations__IncidentCard":{"properties":{"priority":{"type":"string","title":"Priority"},"severity":{"type":"string","title":"Severity"},"title":{"type":"string","title":"Title"},"entity":{"type":"string","title":"Entity"},"entity_type":{"type":"string","title":"Entity Type"},"risk_score":{"type":"number","title":"Risk Score"},"triage_score":{"type":"number","title":"Triage Score","default":0.0},"semantic_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Semantic Score"},"alert_count":{"type":"integer","title":"Alert Count"},"relevant_count":{"type":"integer","title":"Relevant Count","default":0},"first_seen_ts":{"type":"integer","title":"First Seen Ts","default":0},"last_seen_ts":{"type":"integer","title":"Last Seen Ts","default":0},"top_hr_event":{"type":"string","title":"Top Hr Event","default":""},"hr_event_share":{"type":"number","title":"Hr Event Share","default":0.0},"detection_count":{"type":"integer","title":"Detection Count"},"detection_distinct":{"type":"integer","title":"Detection Distinct","default":0},"prediction_count":{"type":"integer","title":"Prediction Count"},"cognito_count":{"type":"integer","title":"Cognito Count","default":0},"recommended_action":{"type":"string","title":"Recommended Action"},"minutes_ago":{"type":"number","title":"Minutes Ago"},"sla_minutes":{"type":"integer","title":"Sla Minutes"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"criticality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Criticality"},"criticality_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Criticality Reason"},"pre_criticality_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Criticality Priority"},"would_be_priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Would Be Priority"},"evidence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence"},"disposition_floor":{"type":"boolean","title":"Disposition Floor","default":false},"floor_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Floor Reason"},"xdr_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xdr Type"},"doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Id"},"source_index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Index"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"predicted_next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Predicted Next"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"evidence_quality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Quality"}},"type":"object","required":["priority","severity","title","entity","entity_type","risk_score","alert_count","detection_count","prediction_count","recommended_action","minutes_ago","sla_minutes"],"title":"IncidentCard","description":"Single incident for triage queue"},"app__api__test_deployment__ChatHistoryMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content","default":""}},"type":"object","required":["role"],"title":"ChatHistoryMessage"},"app__models__cases__CaseEvidence":{"properties":{"id":{"type":"integer","title":"Id","description":"Evidence ID"},"case_id":{"type":"integer","title":"Case Id","description":"Case ID"},"tenant_id":{"type":"string","title":"Tenant Id","description":"Tenant ID"},"evidence_type":{"$ref":"#/components/schemas/EvidenceType","description":"Type of evidence"},"title":{"type":"string","title":"Title","description":"Evidence title/label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Evidence description"},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Evidence data (JSON)"},"data_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Hash","description":"SHA256 hash of data for integrity"},"source_index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Index","description":"Elasticsearch index if from ES"},"source_doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Doc Id","description":"Elasticsearch document ID"},"captured_at":{"type":"string","format":"date-time","title":"Captured At","description":"When evidence was captured"},"captured_by":{"type":"string","title":"Captured By","description":"Who/what captured the evidence"},"customer_visible":{"type":"boolean","title":"Customer Visible","description":"Customer visibility","default":false}},"type":"object","required":["id","case_id","tenant_id","evidence_type","title","data","captured_at","captured_by"],"title":"CaseEvidence","description":"Full evidence model - structured data captured as case evidence."},"app__models__cases__CaseListResponse":{"properties":{"cases":{"items":{"$ref":"#/components/schemas/Case"},"type":"array","title":"Cases","description":"List of cases"},"total":{"type":"integer","title":"Total","description":"Total number of cases matching filters"},"page":{"type":"integer","title":"Page","description":"Current page number"},"page_size":{"type":"integer","title":"Page Size","description":"Items per page"},"pages":{"type":"integer","title":"Pages","description":"Total number of pages"}},"type":"object","required":["cases","total","page","page_size","pages"],"title":"CaseListResponse","description":"Response model for case list."}}}}