{
  "components": {
    "schemas": {
      "APIDescription": {
        "properties": {
          "asset_id": {
            "type": "string"
          },
          "base_url": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "endpoint": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "in_scope": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "operations": {
            "type": "integer"
          },
          "origins": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "out_of_scope": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "read_only": {
            "type": "integer"
          },
          "sha256": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          },
          "tenant_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "withheld": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "asset_id",
          "name",
          "format",
          "operations",
          "in_scope",
          "read_only",
          "withheld",
          "origins",
          "size",
          "sha256",
          "created_at"
        ],
        "type": "object"
      },
      "AWSCredential": {
        "properties": {
          "access_key_id": {
            "description": "Instead of role_arn: the access key ID of a read-only IAM user (SecurityAudit policy).",
            "type": "string"
          },
          "member_role": {
            "description": "With organization: the read-only role's name in each member account (default: role_arn's name).",
            "type": "string"
          },
          "organization": {
            "description": "With role_arn in the management or delegated administrator account: review every active member account.",
            "type": "boolean"
          },
          "role_arn": {
            "description": "Keyless: the ARN of a read-only role (SecurityAudit) whose trust policy names Echetleos's identity provider and this organization's subject (GET /v1/cloud/federation gives both). No key is stored.",
            "type": "string"
          },
          "secret_access_key": {
            "description": "Its secret access key; sealed, never returned.",
            "type": "string"
          },
          "session_token": {
            "description": "Only for temporary credentials.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AcceptInviteRequest": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "Your name.",
            "type": "string"
          },
          "password": {
            "description": "At least 12 characters. Stored only as a bcrypt hash.",
            "type": "string"
          },
          "token": {
            "description": "The token from the #invite= link.",
            "type": "string"
          }
        },
        "required": [
          "token",
          "password"
        ],
        "type": "object"
      },
      "AcceptRequest": {
        "additionalProperties": false,
        "properties": {
          "expires": {
            "description": "Until when, YYYY-MM-DD (through the end of that day, UTC) or RFC 3339; at most a year ahead. The finding reopens by itself then.",
            "type": "string"
          },
          "reason": {
            "description": "Why the risk is acceptable (compensating controls, business need). Required.",
            "type": "string"
          }
        },
        "required": [
          "reason",
          "expires"
        ],
        "type": "object"
      },
      "Accepted": {
        "properties": {
          "accepted": {
            "type": "integer"
          },
          "refused": {
            "type": "integer"
          }
        },
        "required": [
          "accepted",
          "refused"
        ],
        "type": "object"
      },
      "AiModelRequest": {
        "additionalProperties": false,
        "properties": {
          "model": {
            "description": "A model the endpoint serves, or empty for the server's default. Omit to keep.",
            "type": "string"
          },
          "off": {
            "description": "Turn the language model off (true) or back on (false) for the organization. Omit to keep.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AiModelView": {
        "properties": {
          "choosable": {
            "description": "The server's model endpoint serves several models, so the organization can choose one.",
            "type": "boolean"
          },
          "configured": {
            "description": "This server has a language model at all.",
            "type": "boolean"
          },
          "default_model": {
            "description": "The server's default model.",
            "type": "string"
          },
          "effective_model": {
            "description": "The model the next run uses.",
            "type": "string"
          },
          "model": {
            "description": "The organization's choice; empty means the server's default.",
            "type": "string"
          },
          "models": {
            "description": "Models the endpoint serves.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "models_error": {
            "type": "string"
          },
          "off": {
            "description": "The organization turned the language model off: ai-mode runs use the deterministic playbook and Ask Echetleos is unavailable.",
            "type": "boolean"
          },
          "primary": {
            "description": "When set, a different provider is tried first and the choice applies to the backstop.",
            "type": "string"
          },
          "provider": {
            "description": "The provider whose model the organization chooses.",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          }
        },
        "required": [
          "configured",
          "off",
          "choosable",
          "models"
        ],
        "type": "object"
      },
      "AiTestRequest": {
        "additionalProperties": false,
        "properties": {
          "model": {
            "description": "Model to try; empty tries the organization's current model.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "AiTestResponse": {
        "properties": {
          "detail": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "ok": {
            "description": "The model answered and called the tool it was offered, so it can drive the AI operator.",
            "type": "boolean"
          },
          "seconds": {
            "description": "How long the answer took. One planning step of a real run sends a much longer prompt.",
            "type": "number"
          }
        },
        "required": [
          "model",
          "ok",
          "seconds",
          "detail"
        ],
        "type": "object"
      },
      "ApiDescriptionRequest": {
        "additionalProperties": false,
        "properties": {
          "base_url": {
            "description": "The API's address, for documents whose servers are relative or missing.",
            "type": "string"
          },
          "document": {
            "description": "The document as text: OpenAPI 3 / Swagger 2 (JSON or YAML), a Postman v2 collection (JSON), or a GraphQL schema (SDL or introspection JSON). At most 2 MB.",
            "type": "string"
          },
          "endpoint": {
            "description": "A GraphQL schema's endpoint, e.g. https://api.bank.example/graphql.",
            "type": "string"
          },
          "format": {
            "description": "openapi3, swagger2, postman or graphql; detected when left out.",
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "document"
        ],
        "type": "object"
      },
      "ApiKeyCreatedResponse": {
        "properties": {
          "api_key": {
            "description": "The key. Shown only in this response; only its hash is stored.",
            "type": "string"
          },
          "key": {
            "$ref": "#/components/schemas/ApiKeyView"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "api_key",
          "note"
        ],
        "type": "object"
      },
      "ApiKeyResponse": {
        "properties": {
          "api_key": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "api_key",
          "note"
        ],
        "type": "object"
      },
      "ApiKeyView": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "expired": {
            "type": "boolean"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_used_at": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "organization": {
            "description": "The organization's own key (owner scope, no expiry). It cannot be revoked here; rotate it under Organization.",
            "type": "boolean"
          },
          "prefix": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "scope",
          "prefix",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "Approval": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "decided_at": {
            "format": "date-time",
            "type": "string"
          },
          "decided_by": {
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "rationale": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "requested_by": {
            "type": "string"
          },
          "requested_for": {
            "type": "string"
          },
          "run_ended": {
            "format": "date-time",
            "type": "string"
          },
          "run_error": {
            "type": "string"
          },
          "run_partial": {
            "type": "boolean"
          },
          "run_summary": {
            "type": "string"
          },
          "running": {
            "type": "boolean"
          },
          "state": {
            "enum": [
              "pending",
              "approved",
              "denied",
              "withdrawn"
            ],
            "type": "string"
          },
          "stopped_at": {
            "format": "date-time",
            "type": "string"
          },
          "stopped_by": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "engagement_id",
          "tenant_id",
          "tool",
          "target",
          "rationale",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "ApprovedCheck": {
        "properties": {
          "after_run": {
            "type": "boolean"
          },
          "approval_id": {
            "type": "string"
          },
          "completed": {
            "type": "boolean"
          },
          "decided_at": {
            "format": "date-time",
            "type": "string"
          },
          "decided_by": {
            "type": "string"
          },
          "ended_at": {
            "format": "date-time",
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "partial": {
            "type": "boolean"
          },
          "requested_by": {
            "type": "string"
          },
          "requested_for": {
            "type": "string"
          },
          "running": {
            "type": "boolean"
          },
          "stopped_by": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "why": {
            "type": "string"
          }
        },
        "required": [
          "approval_id",
          "tool",
          "level",
          "target",
          "completed"
        ],
        "type": "object"
      },
      "AskRequest": {
        "additionalProperties": false,
        "properties": {
          "history": {
            "description": "Earlier turns of this conversation, oldest first. The server keeps no conversation: the client sends it back. The last 10 turns are used.",
            "items": {
              "$ref": "#/components/schemas/AskTurn"
            },
            "type": "array"
          },
          "question": {
            "description": "Up to 2,000 characters.",
            "type": "string"
          }
        },
        "required": [
          "question"
        ],
        "type": "object"
      },
      "AskTurn": {
        "properties": {
          "role": {
            "description": "user or assistant.",
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "role",
          "text"
        ],
        "type": "object"
      },
      "Asset": {
        "properties": {
          "branch": {
            "type": "string"
          },
          "bssids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "business_owner": {
            "type": "string"
          },
          "cloud_account": {
            "type": "string"
          },
          "connection": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "criticality": {
            "enum": [
              "low",
              "medium",
              "high",
              "crown_jewel"
            ],
            "type": "string"
          },
          "frameworks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "isolated": {
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "domain",
              "ip",
              "cidr",
              "url"
            ],
            "type": "string"
          },
          "runner_id": {
            "type": "string"
          },
          "surface_last_run": {
            "format": "date-time",
            "type": "string"
          },
          "surface_weekly": {
            "type": "boolean"
          },
          "swift": {
            "type": "boolean"
          },
          "tenant_id": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "verification": {
            "$ref": "#/components/schemas/Verification"
          },
          "wifi_auth": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "kind",
          "value",
          "verification",
          "created_at"
        ],
        "type": "object"
      },
      "AssetContextRequest": {
        "additionalProperties": false,
        "properties": {
          "business_owner": {
            "description": "Who answers for the asset in the business (a name or an email); empty clears it. Omit to keep.",
            "type": "string"
          },
          "criticality": {
            "description": "low, medium, high or crown_jewel; empty clears it (reads as medium). Omit to keep.",
            "enum": [
              "low",
              "medium",
              "high",
              "crown_jewel"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "AssetView": {
        "properties": {
          "branch": {
            "type": "string"
          },
          "bssids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "business_owner": {
            "type": "string"
          },
          "challenge": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OwnershipChallenge"
              }
            ],
            "description": "Only while verification is pending: where to publish the proof and what to publish."
          },
          "cloud_account": {
            "type": "string"
          },
          "connection": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "criticality": {
            "enum": [
              "low",
              "medium",
              "high",
              "crown_jewel"
            ],
            "type": "string"
          },
          "frameworks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "isolated": {
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "domain",
              "ip",
              "cidr",
              "url"
            ],
            "type": "string"
          },
          "runner_id": {
            "type": "string"
          },
          "surface_last_run": {
            "format": "date-time",
            "type": "string"
          },
          "surface_weekly": {
            "type": "boolean"
          },
          "swift": {
            "type": "boolean"
          },
          "tenant_id": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "verification": {
            "$ref": "#/components/schemas/Verification"
          },
          "wifi_auth": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "kind",
          "value",
          "verification",
          "created_at"
        ],
        "type": "object"
      },
      "AssignRequest": {
        "additionalProperties": false,
        "properties": {
          "owner": {
            "description": "Email of an active person of the organization; empty removes the owner.",
            "type": "string"
          },
          "reason": {
            "description": "Why; recorded in the audit trail.",
            "type": "string"
          }
        },
        "required": [
          "owner"
        ],
        "type": "object"
      },
      "AuditEvent": {
        "properties": {
          "action": {
            "type": "string"
          },
          "actor": {
            "type": "string"
          },
          "allowed": {
            "type": "boolean"
          },
          "detail": {
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "time": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "time",
          "actor",
          "action",
          "target",
          "detail",
          "allowed"
        ],
        "type": "object"
      },
      "AuthHost": {
        "properties": {
          "detail": {
            "type": "string"
          },
          "finding_id": {
            "type": "string"
          },
          "host": {
            "type": "string"
          }
        },
        "required": [
          "host",
          "detail",
          "finding_id"
        ],
        "type": "object"
      },
      "AuthScan": {
        "properties": {
          "documented": {
            "items": {
              "$ref": "#/components/schemas/AuthHost"
            },
            "type": "array"
          },
          "not_scanned": {
            "items": {
              "$ref": "#/components/schemas/AuthHost"
            },
            "type": "array"
          },
          "requirement": {
            "type": "string"
          },
          "scanned": {
            "items": {
              "$ref": "#/components/schemas/AuthHost"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "requirement",
          "status",
          "scanned",
          "not_scanned",
          "documented"
        ],
        "type": "object"
      },
      "Authorizer": {
        "properties": {
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "AzureCredential": {
        "properties": {
          "client_id": {
            "description": "Application (client) ID of an app registration with the Reader role.",
            "type": "string"
          },
          "client_secret": {
            "description": "Leave empty for keyless access (a federated identity credential that trusts Echetleos; GET /v1/cloud/federation). Otherwise a client secret, sealed and never returned.",
            "type": "string"
          },
          "tenant_id": {
            "description": "Directory (tenant) ID.",
            "type": "string"
          }
        },
        "required": [
          "tenant_id",
          "client_id"
        ],
        "type": "object"
      },
      "BillingPayer": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "BillingView": {
        "properties": {
          "billed_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingPayer"
              }
            ],
            "description": "The managed service provider that pays for this organization's plan."
          },
          "can_checkout": {
            "description": "Upgrade (Checkout) is possible: billing is on and there is no live subscription.",
            "type": "boolean"
          },
          "can_manage": {
            "description": "Manage billing (Customer Portal) is possible: a Stripe customer exists.",
            "type": "boolean"
          },
          "cancel_at_period_end": {
            "type": "boolean"
          },
          "clients": {
            "description": "For a provider: each client, and whether you pay for its plan.",
            "items": {
              "$ref": "#/components/schemas/ClientBilling"
            },
            "type": "array"
          },
          "default_plan": {
            "description": "Name of the plan that applies without a subscription, and after a failed payment's grace period.",
            "type": "string"
          },
          "enabled": {
            "description": "false when the server has no Stripe configuration: then nothing is limited (self-hosted and demo installs).",
            "type": "boolean"
          },
          "grace_until": {
            "description": "After a failed payment the plan stays until then; afterwards the default plan applies. Nothing is deleted.",
            "format": "date-time",
            "type": "string"
          },
          "modules": {
            "items": {
              "$ref": "#/components/schemas/PlanModule"
            },
            "type": "array"
          },
          "next_invoice_at": {
            "description": "End of the current billing period, from the subscription: the next invoice, or the end of the subscription when cancel_at_period_end.",
            "format": "date-time",
            "type": "string"
          },
          "payment_failed_at": {
            "format": "date-time",
            "type": "string"
          },
          "plan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Plan"
              }
            ],
            "description": "The plan in effect."
          },
          "plans": {
            "items": {
              "$ref": "#/components/schemas/PlanOffer"
            },
            "type": "array"
          },
          "source": {
            "description": "Why it is in effect: default (no subscription), subscription, provider (paid for by a managed service provider) or unlimited (billing off).",
            "type": "string"
          },
          "status": {
            "description": "The Stripe subscription status: active, trialing, past_due, unpaid, canceled, incomplete…",
            "type": "string"
          },
          "subscribed_plan": {
            "description": "The plan paid for, when it is not the plan in effect (the grace period after a failed payment ended).",
            "type": "string"
          },
          "usage": {
            "items": {
              "$ref": "#/components/schemas/UsageLine"
            },
            "type": "array"
          }
        },
        "required": [
          "enabled",
          "plan",
          "source",
          "default_plan",
          "usage",
          "modules",
          "plans",
          "can_checkout",
          "can_manage"
        ],
        "type": "object"
      },
      "CheckResponse": {
        "properties": {
          "error": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          }
        },
        "required": [
          "ok"
        ],
        "type": "object"
      },
      "CheckoutRequest": {
        "additionalProperties": false,
        "properties": {
          "plan": {
            "description": "The plan to subscribe to (its id, from GET /v1/billing).",
            "type": "string"
          }
        },
        "required": [
          "plan"
        ],
        "type": "object"
      },
      "ClientBilling": {
        "properties": {
          "billed": {
            "description": "You pay for the client's plan.",
            "type": "boolean"
          },
          "client_id": {
            "type": "string"
          },
          "client_name": {
            "type": "string"
          },
          "delegation_id": {
            "type": "string"
          },
          "plan": {
            "description": "The plan in effect for the client.",
            "type": "string"
          }
        },
        "required": [
          "delegation_id",
          "client_id",
          "client_name",
          "billed",
          "plan"
        ],
        "type": "object"
      },
      "ClientBillingRequest": {
        "additionalProperties": false,
        "properties": {
          "billed": {
            "description": "true: your organization pays for the client's plan; false: it stops paying.",
            "type": "boolean"
          }
        },
        "required": [
          "billed"
        ],
        "type": "object"
      },
      "ClientBillingResponse": {
        "properties": {
          "billed": {
            "type": "boolean"
          },
          "delegation": {
            "$ref": "#/components/schemas/Delegation"
          },
          "plan": {
            "description": "The plan now in effect for the client.",
            "type": "string"
          }
        },
        "required": [
          "delegation",
          "billed",
          "plan"
        ],
        "type": "object"
      },
      "ClientSummary": {
        "properties": {
          "delegation": {
            "$ref": "#/components/schemas/Delegation"
          },
          "engagements": {
            "type": "integer"
          },
          "last_run": {
            "type": "string"
          },
          "last_run_at": {
            "format": "date-time",
            "type": "string"
          },
          "next_scheduled": {
            "format": "date-time",
            "type": "string"
          },
          "owner_joined": {
            "type": "boolean"
          },
          "pending_approvals": {
            "type": "integer"
          },
          "risk": {
            "$ref": "#/components/schemas/Risk"
          },
          "running": {
            "type": "integer"
          },
          "verified_assets": {
            "type": "integer"
          }
        },
        "required": [
          "delegation",
          "owner_joined",
          "verified_assets",
          "engagements",
          "running",
          "pending_approvals"
        ],
        "type": "object"
      },
      "ClientsResponse": {
        "properties": {
          "clients": {
            "items": {
              "$ref": "#/components/schemas/ClientSummary"
            },
            "type": "array"
          },
          "provider_id": {
            "type": "string"
          }
        },
        "required": [
          "provider_id",
          "clients"
        ],
        "type": "object"
      },
      "CloudAccount": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "external": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "last_scan_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_status": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "principal": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "prowler": {
            "type": "boolean"
          },
          "prowler_by": {
            "type": "string"
          },
          "prowler_next": {
            "type": "string"
          },
          "scope": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "provider",
          "name",
          "principal",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "CloudAccountView": {
        "properties": {
          "account": {
            "$ref": "#/components/schemas/CloudAccount"
          },
          "latest": {
            "$ref": "#/components/schemas/CloudScan"
          },
          "running": {
            "type": "boolean"
          }
        },
        "required": [
          "account",
          "running"
        ],
        "type": "object"
      },
      "CloudEndpoint": {
        "properties": {
          "kind": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "proven": {
            "type": "boolean"
          },
          "resource": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "what": {
            "type": "string"
          },
          "why": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "value",
          "proven"
        ],
        "type": "object"
      },
      "CloudFinding": {
        "properties": {
          "check": {
            "type": "string"
          },
          "controls": {
            "items": {
              "$ref": "#/components/schemas/ControlRef"
            },
            "type": "array"
          },
          "cves": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "detail": {
            "type": "string"
          },
          "epss": {
            "$ref": "#/components/schemas/EPSSInfo"
          },
          "kev": {
            "$ref": "#/components/schemas/KEVInfo"
          },
          "location": {
            "type": "string"
          },
          "more": {
            "type": "integer"
          },
          "remediation": {
            "type": "string"
          },
          "resources": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "check",
          "title",
          "severity",
          "detail",
          "remediation"
        ],
        "type": "object"
      },
      "CloudResponse": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/CloudAccountView"
            },
            "type": "array"
          },
          "enabled": {
            "type": "boolean"
          },
          "prowler": {
            "$ref": "#/components/schemas/ProwlerInfo"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "enabled",
          "accounts",
          "prowler"
        ],
        "type": "object"
      },
      "CloudScan": {
        "properties": {
          "account_id": {
            "type": "string"
          },
          "checks": {
            "type": "integer"
          },
          "counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "covered": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ended_at": {
            "format": "date-time",
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/CloudFinding"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "inventory": {
            "items": {
              "$ref": "#/components/schemas/CloudEndpoint"
            },
            "type": "array"
          },
          "notes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "provider": {
            "type": "string"
          },
          "prowler": {
            "$ref": "#/components/schemas/ProwlerRun"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "triggered_by": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "account_id",
          "provider",
          "state",
          "triggered_by",
          "started_at",
          "checks",
          "findings",
          "counts"
        ],
        "type": "object"
      },
      "CodeConnectionRequest": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "provider": {
            "description": "github or gitlab (github.com and gitlab.com).",
            "type": "string"
          },
          "token": {
            "description": "A read-only token: a GitHub fine-grained personal access token with Contents and Metadata read on the repositories to scan, or a GitLab group or project access token with read_api and read_repository. Stored sealed, never returned.",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "token"
        ],
        "type": "object"
      },
      "CodeConnectionView": {
        "properties": {
          "account": {
            "description": "The user or bot the token belongs to.",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "pr_checks": {
            "description": "Pull (merge) requests to its repositories are checked.",
            "type": "boolean"
          },
          "pr_checks_by": {
            "description": "Who turned the checks on.",
            "type": "string"
          },
          "pr_fail_on": {
            "description": "A request fails when it adds an issue at or above this.",
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "provider": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "provider",
          "name",
          "account",
          "created_by",
          "created_at",
          "pr_checks"
        ],
        "type": "object"
      },
      "CodeLocation": {
        "properties": {
          "commit": {
            "type": "string"
          },
          "lines": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "path": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "path"
        ],
        "type": "object"
      },
      "CompleteRequest": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "type": "string"
          },
          "refused": {
            "type": "boolean"
          },
          "summary": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ComplianceSummary": {
        "properties": {
          "accepted_findings": {
            "type": "integer"
          },
          "authenticated_scanning": {
            "$ref": "#/components/schemas/AuthScan"
          },
          "disclaimer": {
            "type": "string"
          },
          "false_positive_findings": {
            "type": "integer"
          },
          "frameworks": {
            "items": {
              "$ref": "#/components/schemas/FrameworkSummary"
            },
            "type": "array"
          },
          "mapped_findings": {
            "type": "integer"
          },
          "resolved_findings": {
            "type": "integer"
          },
          "unmapped_findings": {
            "type": "integer"
          }
        },
        "required": [
          "frameworks",
          "mapped_findings",
          "unmapped_findings",
          "resolved_findings",
          "accepted_findings",
          "false_positive_findings",
          "disclaimer"
        ],
        "type": "object"
      },
      "ConnectCloudRequest": {
        "additionalProperties": false,
        "properties": {
          "aws": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AWSCredential"
              }
            ],
            "description": "For provider aws."
          },
          "azure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AzureCredential"
              }
            ],
            "description": "For provider azure."
          },
          "gcp": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GCPCredential"
              }
            ],
            "description": "For provider gcp."
          },
          "name": {
            "description": "A label, e.g. Production AWS.",
            "type": "string"
          },
          "provider": {
            "description": "aws, azure or gcp.",
            "type": "string"
          },
          "scope": {
            "description": "Optional: AWS regions, Azure subscription IDs or GCP project IDs to review. Empty: everything the credential can read.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "provider"
        ],
        "type": "object"
      },
      "ConsoleLine": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "kind": {
            "description": "cmd (a command a tool started), out / err (its output), end (how it ended), run / done / fail (a check starting and its result), event (an audit event), deny (a refused action), finding (a new finding).",
            "type": "string"
          },
          "seq": {
            "type": "integer"
          },
          "text": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          }
        },
        "required": [
          "seq",
          "at",
          "kind",
          "text"
        ],
        "type": "object"
      },
      "ConsoleResponse": {
        "properties": {
          "lines": {
            "items": {
              "$ref": "#/components/schemas/ConsoleLine"
            },
            "type": "array"
          },
          "live": {
            "description": "This instance holds the run's console. False when another instance runs it, or it ended over two hours ago.",
            "type": "boolean"
          },
          "next": {
            "description": "Pass as after to get only newer lines.",
            "type": "integer"
          },
          "state": {
            "enum": [
              "pending",
              "running",
              "paused",
              "completed",
              "aborted"
            ],
            "type": "string"
          }
        },
        "required": [
          "lines",
          "next",
          "live",
          "state"
        ],
        "type": "object"
      },
      "ControlRef": {
        "properties": {
          "evidence": {
            "type": "boolean"
          },
          "framework": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "framework",
          "id",
          "title"
        ],
        "type": "object"
      },
      "CreateAPIKeyRequest": {
        "additionalProperties": false,
        "properties": {
          "expires_days": {
            "description": "Days until the key stops working, 1 to 365; omit or 0 for a key that does not expire.",
            "type": "integer"
          },
          "name": {
            "description": "1–40 letters, digits, dots, underscores or hyphens; unique in the organization. Its actions are recorded as api_key:\u003cname\u003e.",
            "type": "string"
          },
          "scope": {
            "description": "read (GET only), operate (what an operator can do) or owner (what an owner can do, including people and single sign-on).",
            "type": "string"
          }
        },
        "required": [
          "name",
          "scope"
        ],
        "type": "object"
      },
      "CreateAssetRequest": {
        "additionalProperties": false,
        "properties": {
          "branch": {
            "description": "With kind repo: the branch code engagements scan (default: the repository's default branch).",
            "type": "string"
          },
          "bssids": {
            "description": "With kind ssid: the network's authorized access points (aa:bb:cc:dd:ee:ff); any other access point broadcasting the name is reported as rogue.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "connection": {
            "description": "With kind repo: the code connection that reads it.",
            "type": "string"
          },
          "isolated": {
            "description": "With runner_id: the range must NOT be reachable from the runner's network (e.g. the cardholder data environment). It is tested for segmentation, not scanned.",
            "type": "boolean"
          },
          "kind": {
            "description": "What to register: domain, ip, cidr, url, or repo (a repository read through a code connection).",
            "enum": [
              "domain",
              "ip",
              "cidr",
              "url"
            ],
            "type": "string"
          },
          "method": {
            "description": "How ownership is proven: dns_txt (default) or http_file.",
            "enum": [
              "dns_txt",
              "http_file",
              "parent_domain"
            ],
            "type": "string"
          },
          "runner_id": {
            "description": "Register a private range (RFC 1918 / ULA, /20 at most) tested from inside your network by this runner. An owner attests the organization controls it; nothing to publish.",
            "type": "string"
          },
          "swift": {
            "description": "A Swift-related component (secure zone, operator PC, connector, or a platform hosting them). Once an engagement has one, SWIFT CSCF gaps count only findings on such assets.",
            "type": "boolean"
          },
          "value": {
            "description": "The target, e.g. example.com, 203.0.113.7, 203.0.113.0/24 or https://app.example.com.",
            "type": "string"
          },
          "wifi_auth": {
            "description": "With kind ssid: the security it must use: enterprise (802.1X), personal (pre-shared key / SAE) or open (a guest network).",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "value"
        ],
        "type": "object"
      },
      "CreateAssetResponse": {
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/Asset"
          },
          "challenge": {
            "$ref": "#/components/schemas/OwnershipChallenge"
          }
        },
        "required": [
          "asset",
          "challenge"
        ],
        "type": "object"
      },
      "CreateEngagementRequest": {
        "additionalProperties": false,
        "properties": {
          "asset_ids": {
            "description": "Verified assets to test; all must be covered by the RoE.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "exclude_hosts": {
            "description": "Without roe_id: hosts never to touch.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "exclude_paths": {
            "description": "Without roe_id: URL paths never to touch.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "focus": {
            "description": "Run only these checks (for example from a test request's plan); each must be permitted by the level. Intrusive ones are queued for approval.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "level": {
            "description": "Without roe_id: recon (default: passive checks, no Rules of Engagement), scan or pentest (see POST /v1/roe).",
            "type": "string"
          },
          "max_rps": {
            "description": "Without roe_id: request-rate ceiling (default 5).",
            "type": "number"
          },
          "mode": {
            "description": "deterministic (default) or ai.",
            "enum": [
              "deterministic",
              "ai"
            ],
            "type": "string"
          },
          "name": {
            "description": "Engagement name.",
            "type": "string"
          },
          "request": {
            "description": "The person's request in their own words, kept with the engagement and given to the AI operator as what to focus on. It never changes scope or the rules.",
            "type": "string"
          },
          "roe_id": {
            "description": "Saved Rules of Engagement to run under. Omit it for passive checks (recon level, no rate limit or exclusions given): they need no Rules of Engagement. Omit it and give level scan or pentest (or recon with a rate limit or exclusions) to set the rules with the engagement: creating it is then the authorization, recorded with who created it.",
            "type": "string"
          }
        },
        "required": [
          "asset_ids"
        ],
        "type": "object"
      },
      "CreateHookRequest": {
        "additionalProperties": false,
        "properties": {
          "asset_ids": {
            "description": "Verified assets tested on every deploy.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "fail_on": {
            "description": "Lowest severity that fails the gate: critical, high (default), medium or low.",
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "mode": {
            "description": "deterministic (default) or ai.",
            "enum": [
              "deterministic",
              "ai"
            ],
            "type": "string"
          },
          "name": {
            "description": "Hook name, e.g. the service it guards.",
            "type": "string"
          },
          "only_new": {
            "description": "Count only issues new since the previous deploy (default true).",
            "type": "boolean"
          },
          "roe_id": {
            "description": "The signed Rules of Engagement. Omit it for passive checks (recon level), which need none.",
            "type": "string"
          }
        },
        "required": [
          "asset_ids"
        ],
        "type": "object"
      },
      "CreateInviteRequest": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "description": "Work email of the person to invite.",
            "type": "string"
          },
          "role": {
            "description": "owner, operator or viewer.",
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          }
        },
        "required": [
          "email",
          "role"
        ],
        "type": "object"
      },
      "CreateRoERequest": {
        "additionalProperties": false,
        "properties": {
          "allow_intrusive": {
            "description": "Older form of level: true means pentest. Ignored when level is set.",
            "type": "boolean"
          },
          "approve_each_check": {
            "description": "Four eyes on every intrusive check: each check above recon waits for a person other than the one who asked for it to approve it. Default false: the signed rules are the authorization, and every check their level allows runs within their scope, window and rate.",
            "type": "boolean"
          },
          "asset_ids": {
            "description": "Verified assets these rules cover.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "exclude_hosts": {
            "description": "Hosts never to touch.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "exclude_paths": {
            "description": "URL paths never to touch.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "expires_days": {
            "description": "Days until the authorization expires: 1 to 365 (default 30).",
            "type": "integer"
          },
          "level": {
            "description": "How far testing may go: recon (passive and light checks), scan (adds Nikto and ffuf content discovery; no attack payloads) or pentest (adds ZAP active, Wapiti, sqlmap and dalfox confirmation). Signing the rules authorizes every check their level allows; set approve_each_check to have each check above recon wait for a second person. Default: recon, or pentest when allow_intrusive is true.",
            "type": "string"
          },
          "max_rps": {
            "description": "Request-rate ceiling for every module: 1 to 100 requests per second (0: the default, 5).",
            "type": "number"
          },
          "name": {
            "description": "Name of the rules; default: the level and the assets.",
            "type": "string"
          },
          "on_behalf_of": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Authorizer"
              }
            ],
            "description": "Who authorized the test, if not the signer (a provider names its client's authorizer here): a name and an email, shown as stated next to the signer."
          },
          "signed_by": {
            "description": "Deprecated: kept as on_behalf_of's name. The signer is always the signed-in person (or the API key), from their account.",
            "type": "string"
          },
          "supersedes": {
            "description": "Sign this RoE as a revision of an earlier one (for example to permit intrusive checks). The earlier RoE stops authorizing anything new, and schedules and deploy hooks under it move to the revision when it covers their assets.",
            "type": "string"
          },
          "window": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TimeWindow"
              }
            ],
            "description": "UTC testing window; empty means any time."
          }
        },
        "required": [
          "asset_ids"
        ],
        "type": "object"
      },
      "CreateRunnerRequest": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "A name for the runner, e.g. the site or network it sits in.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateSIEMRequest": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "syslog_tls: host:port of the TLS syslog receiver (port defaults to 6514). Plain syslog is refused.",
            "type": "string"
          },
          "backfill_days": {
            "description": "Also export the last N days of the audit trail (0–365). Default 0: only events from now on.",
            "type": "integer"
          },
          "ca_pem": {
            "description": "PEM CA certificate(s) to trust instead of the public roots, for a receiver behind a private PKI.",
            "type": "string"
          },
          "facility": {
            "description": "syslog_tls: local0–local7, audit, authpriv or user (default local4).",
            "type": "string"
          },
          "index": {
            "description": "splunk_hec: index (default: the token's default index).",
            "type": "string"
          },
          "kind": {
            "description": "splunk_hec, syslog_tls or https_json.",
            "type": "string"
          },
          "name": {
            "description": "Destination name.",
            "type": "string"
          },
          "relay": {
            "description": "With runner_id: the destination's name in the runner's relay configuration.",
            "type": "string"
          },
          "runner_id": {
            "description": "Relay through this runner, for a SIEM reachable only inside your network. Then give relay and kind only: the address and token are configured on the runner host.",
            "type": "string"
          },
          "sourcetype": {
            "description": "splunk_hec: sourcetype (default echetleos:audit).",
            "type": "string"
          },
          "token": {
            "description": "splunk_hec: the HEC token (required). https_json: an optional bearer token. Sealed at rest, never returned.",
            "type": "string"
          },
          "url": {
            "description": "splunk_hec and https_json: the https URL. For Splunk, the HEC address (https://splunk.bank.example:8088) or its …/services/collector/event URL. Sealed at rest; only the host is shown.",
            "type": "string"
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "CreateScheduleRequest": {
        "additionalProperties": false,
        "properties": {
          "asset_ids": {
            "description": "Verified assets to test on every run.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "every": {
            "description": "daily, weekly or monthly.",
            "type": "string"
          },
          "mode": {
            "description": "deterministic (default) or ai.",
            "enum": [
              "deterministic",
              "ai"
            ],
            "type": "string"
          },
          "name": {
            "description": "Schedule name.",
            "type": "string"
          },
          "roe_id": {
            "description": "The signed Rules of Engagement. Omit it for passive checks (recon level), which need none.",
            "type": "string"
          },
          "start_at": {
            "description": "First run (RFC 3339). Default: now.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "asset_ids",
          "every"
        ],
        "type": "object"
      },
      "CreateTicketingRelayRequest": {
        "additionalProperties": false,
        "properties": {
          "auto_create": {
            "description": "File tickets automatically when an assessment completes.",
            "type": "boolean"
          },
          "kind": {
            "description": "jira or servicenow.",
            "type": "string"
          },
          "min_severity": {
            "description": "Lowest severity filed automatically (default high).",
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "name": {
            "description": "Integration name.",
            "type": "string"
          },
          "relay": {
            "description": "The system's name in the runner's relay configuration, which holds its address, project or table, and credential.",
            "type": "string"
          },
          "runner_id": {
            "description": "The runner that files the tickets.",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "runner_id",
          "relay"
        ],
        "type": "object"
      },
      "CreateTicketingRequest": {
        "additionalProperties": false,
        "properties": {
          "auto_create": {
            "description": "File tickets automatically when an assessment completes.",
            "type": "boolean"
          },
          "base_url": {
            "description": "https URL of the Jira site or ServiceNow instance.",
            "type": "string"
          },
          "issue_type": {
            "description": "Jira issue type (default Bug).",
            "type": "string"
          },
          "kind": {
            "description": "jira or servicenow.",
            "type": "string"
          },
          "min_severity": {
            "description": "Lowest severity filed automatically (default high).",
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "name": {
            "description": "Integration name.",
            "type": "string"
          },
          "project": {
            "description": "Jira project key.",
            "type": "string"
          },
          "table": {
            "description": "ServiceNow table (default incident).",
            "type": "string"
          },
          "token": {
            "description": "API token or password; sealed at rest, never returned.",
            "type": "string"
          },
          "username": {
            "description": "Jira account email (empty for a Data Center token) or ServiceNow user.",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "base_url",
          "token"
        ],
        "type": "object"
      },
      "CreateUserRequest": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "description": "Work email; unique across the platform.",
            "type": "string"
          },
          "name": {
            "description": "Display name.",
            "type": "string"
          },
          "password": {
            "description": "At least 8 characters. Stored only as a bcrypt hash.",
            "type": "string"
          },
          "role": {
            "description": "owner, operator or viewer.",
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          }
        },
        "required": [
          "email",
          "role",
          "password"
        ],
        "type": "object"
      },
      "CreateWebhookRequest": {
        "additionalProperties": false,
        "properties": {
          "events": {
            "description": "Events to send: engagement.completed, deploy.gate, retest.verified, schedule.paused.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "format": {
            "description": "json (signed), slack or teams.",
            "type": "string"
          },
          "name": {
            "description": "Webhook name.",
            "type": "string"
          },
          "url": {
            "description": "Public https endpoint. Slack/Teams URLs are masked in every response.",
            "type": "string"
          }
        },
        "required": [
          "url",
          "format",
          "events"
        ],
        "type": "object"
      },
      "DecideAcceptanceRequest": {
        "additionalProperties": false,
        "properties": {
          "approve": {
            "description": "true approves the acceptance; false rejects it.",
            "type": "boolean"
          },
          "note": {
            "description": "The approver's note.",
            "type": "string"
          }
        },
        "required": [
          "approve"
        ],
        "type": "object"
      },
      "DecideApprovalRequest": {
        "additionalProperties": false,
        "properties": {
          "approve": {
            "description": "true runs the gated action; false denies it (or withdraws it, when the caller requested it or is the person behind the request).",
            "type": "boolean"
          },
          "reason": {
            "description": "Why, in your own words (optional, up to 500 characters): kept on the approval (reason), shown in the report and written to the audit trail.",
            "type": "string"
          }
        },
        "required": [
          "approve"
        ],
        "type": "object"
      },
      "DecisionBasis": {
        "properties": {
          "parts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          }
        },
        "required": [
          "severity"
        ],
        "type": "object"
      },
      "Delegation": {
        "properties": {
          "client_id": {
            "type": "string"
          },
          "client_name": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_used_at": {
            "format": "date-time",
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "provider_id": {
            "type": "string"
          },
          "provider_name": {
            "type": "string"
          },
          "revoked_at": {
            "format": "date-time",
            "type": "string"
          },
          "revoked_by": {
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "provider_id",
          "provider_name",
          "client_id",
          "client_name",
          "role",
          "state",
          "origin",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "DeletedResponse": {
        "properties": {
          "deleted": {
            "type": "string"
          }
        },
        "required": [
          "deleted"
        ],
        "type": "object"
      },
      "DeployAcceptedResponse": {
        "properties": {
          "engagement_id": {
            "type": "string"
          },
          "state": {
            "enum": [
              "pending",
              "running",
              "paused",
              "completed",
              "aborted"
            ],
            "type": "string"
          },
          "status_url": {
            "type": "string"
          }
        },
        "required": [
          "engagement_id",
          "state",
          "status_url"
        ],
        "type": "object"
      },
      "DeployBusyResponse": {
        "properties": {
          "engagement_id": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "engagement_id"
        ],
        "type": "object"
      },
      "DeployHook": {
        "properties": {
          "asset_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "fail_on": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_engagement_id": {
            "type": "string"
          },
          "last_run": {
            "format": "date-time",
            "type": "string"
          },
          "mode": {
            "enum": [
              "deterministic",
              "ai"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "only_new": {
            "type": "boolean"
          },
          "roe_id": {
            "type": "string"
          },
          "runs": {
            "type": "integer"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "asset_ids",
          "roe_id",
          "mode",
          "fail_on",
          "only_new",
          "enabled",
          "runs",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "DeployInfo": {
        "additionalProperties": false,
        "properties": {
          "environment": {
            "type": "string"
          },
          "pipeline_url": {
            "type": "string"
          },
          "ref": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "Discovery": {
        "properties": {
          "asset_id": {
            "type": "string"
          },
          "ended_at": {
            "format": "date-time",
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "gone": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "hosts": {
            "items": {
              "$ref": "#/components/schemas/SurfaceHost"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "issue_count": {
            "type": "integer"
          },
          "new_hosts": {
            "type": "integer"
          },
          "notes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "resolving": {
            "type": "integer"
          },
          "root": {
            "type": "string"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "third_party": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "total": {
            "type": "integer"
          },
          "triggered_by": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "asset_id",
          "root",
          "state",
          "triggered_by",
          "started_at",
          "hosts",
          "total",
          "resolving",
          "new_hosts",
          "issue_count"
        ],
        "type": "object"
      },
      "EPSSInfo": {
        "properties": {
          "cve": {
            "type": "string"
          },
          "date": {
            "description": "The day the scores were computed (YYYY-MM-DD).",
            "type": "string"
          },
          "percentile": {
            "type": "number"
          },
          "score": {
            "type": "number"
          }
        },
        "required": [
          "cve",
          "score",
          "percentile"
        ],
        "type": "object"
      },
      "EgressResponse": {
        "properties": {
          "addresses": {
            "description": "Public IPs or ranges the service's scans come from; empty when the operator has not published them.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "addresses",
          "note"
        ],
        "type": "object"
      },
      "Engagement": {
        "properties": {
          "asset_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "coverage": {
            "items": {
              "$ref": "#/components/schemas/ScanCoverage"
            },
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "deploy": {
            "$ref": "#/components/schemas/DeployInfo"
          },
          "ended_at": {
            "format": "date-time",
            "type": "string"
          },
          "hook_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "mode": {
            "enum": [
              "deterministic",
              "ai"
            ],
            "type": "string"
          },
          "modules": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "path": {
            "items": {
              "$ref": "#/components/schemas/PathStep"
            },
            "type": "array"
          },
          "planner": {
            "$ref": "#/components/schemas/PlannerNotes"
          },
          "pull_request": {
            "$ref": "#/components/schemas/PRCheck"
          },
          "report_masks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "request": {
            "type": "string"
          },
          "rerun_from": {
            "type": "string"
          },
          "retest": {
            "$ref": "#/components/schemas/RetestResult"
          },
          "retest_of": {
            "type": "string"
          },
          "risk": {
            "$ref": "#/components/schemas/Risk"
          },
          "roe_id": {
            "type": "string"
          },
          "run": {
            "type": "integer"
          },
          "run_modules": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "run_of": {
            "type": "string"
          },
          "runner_id": {
            "type": "string"
          },
          "schedule_id": {
            "type": "string"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "started_by": {
            "type": "string"
          },
          "started_for": {
            "type": "string"
          },
          "state": {
            "enum": [
              "pending",
              "running",
              "paused",
              "completed",
              "aborted"
            ],
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "trigger": {
            "type": "string"
          },
          "unreached": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "asset_ids",
          "roe_id",
          "mode",
          "state",
          "created_at"
        ],
        "type": "object"
      },
      "EngagementTicketsResponse": {
        "properties": {
          "by_finding": {
            "additionalProperties": {
              "items": {
                "$ref": "#/components/schemas/TicketView"
              },
              "type": "array"
            },
            "type": "object"
          },
          "pending": {
            "additionalProperties": {
              "items": {
                "$ref": "#/components/schemas/RelayTaskView"
              },
              "type": "array"
            },
            "type": "object"
          }
        },
        "required": [
          "by_finding"
        ],
        "type": "object"
      },
      "EnrollRequest": {
        "additionalProperties": false,
        "properties": {
          "addresses": {
            "description": "The machine's own network addresses (its vantage point).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "allowlist": {
            "description": "Ranges the runner's operator lets it touch; it refuses anything else.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "capabilities": {
            "description": "Optional modules its operator turned on, e.g. wifi_survey.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "hostname": {
            "description": "Host name of the machine.",
            "type": "string"
          },
          "os": {
            "description": "Operating system and architecture.",
            "type": "string"
          },
          "public_key": {
            "description": "The runner's Ed25519 public key, base64. The private key never leaves the runner.",
            "type": "string"
          },
          "token": {
            "description": "The one-time enrollment token shown when the runner was created.",
            "type": "string"
          },
          "version": {
            "description": "Runner version.",
            "type": "string"
          }
        },
        "required": [
          "token",
          "public_key"
        ],
        "type": "object"
      },
      "EnrollResponse": {
        "properties": {
          "name": {
            "type": "string"
          },
          "runner_id": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "vulndb_key": {
            "type": "string"
          }
        },
        "required": [
          "runner_id",
          "tenant_id",
          "name"
        ],
        "type": "object"
      },
      "ErrorResponse": {
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "EventsRequest": {
        "additionalProperties": false,
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/RunnerEvent"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "FalsePositive": {
        "properties": {
          "basis": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DecisionBasis"
              }
            ],
            "description": "The evidence it was marked on; a finding that goes beyond it reopens the issue."
          },
          "confirmed_at": {
            "format": "date-time",
            "type": "string"
          },
          "confirmed_by": {
            "description": "The second person, for Medium severity and above.",
            "type": "string"
          },
          "justification": {
            "type": "string"
          },
          "marked_at": {
            "format": "date-time",
            "type": "string"
          },
          "marked_by": {
            "type": "string"
          },
          "note": {
            "description": "What the second person wrote.",
            "type": "string"
          },
          "state": {
            "description": "pending (waiting for a second person) or confirmed. Empty on records from before confirmation existed: they count as confirmed.",
            "type": "string"
          }
        },
        "required": [
          "justification",
          "marked_by",
          "marked_at"
        ],
        "type": "object"
      },
      "FalsePositiveRequest": {
        "additionalProperties": false,
        "properties": {
          "justification": {
            "description": "Why this is not a real issue. Required.",
            "type": "string"
          }
        },
        "required": [
          "justification"
        ],
        "type": "object"
      },
      "FederationSetup": {
        "properties": {
          "audiences": {
            "description": "The audience each cloud sees.",
            "items": {
              "$ref": "#/components/schemas/InboundStep"
            },
            "type": "array"
          },
          "available": {
            "type": "boolean"
          },
          "aws_cloudformation": {
            "type": "string"
          },
          "aws_member_cloudformation": {
            "type": "string"
          },
          "issuer": {
            "description": "The identity provider your cloud trusts.",
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "setup": {
            "description": "How to grant read-only access in each cloud.",
            "items": {
              "$ref": "#/components/schemas/InboundStep"
            },
            "type": "array"
          },
          "subject": {
            "description": "This organization's subject: what the trust condition names.",
            "type": "string"
          }
        },
        "required": [
          "available",
          "subject"
        ],
        "type": "object"
      },
      "FileTicketRequest": {
        "additionalProperties": false,
        "properties": {
          "integration_id": {
            "description": "The ticketing integration to file into.",
            "type": "string"
          }
        },
        "required": [
          "integration_id"
        ],
        "type": "object"
      },
      "FileTicketResponse": {
        "properties": {
          "created": {
            "type": "boolean"
          },
          "queued": {
            "type": "boolean"
          },
          "task": {
            "$ref": "#/components/schemas/RelayTask"
          },
          "ticket": {
            "$ref": "#/components/schemas/TicketLink"
          }
        },
        "required": [
          "created"
        ],
        "type": "object"
      },
      "Finding": {
        "properties": {
          "asset": {
            "type": "string"
          },
          "code": {
            "$ref": "#/components/schemas/CodeLocation"
          },
          "compliance": {
            "items": {
              "$ref": "#/components/schemas/ControlRef"
            },
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "cves": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cvss": {
            "type": "number"
          },
          "cwes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "engagement_id": {
            "type": "string"
          },
          "epss": {
            "$ref": "#/components/schemas/EPSSInfo"
          },
          "evidence": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kev": {
            "$ref": "#/components/schemas/KEVInfo"
          },
          "location": {
            "type": "string"
          },
          "package": {
            "$ref": "#/components/schemas/PackageRef"
          },
          "parts": {
            "items": {
              "$ref": "#/components/schemas/FindingPart"
            },
            "type": "array"
          },
          "priority": {
            "$ref": "#/components/schemas/Priority"
          },
          "recommendation": {
            "type": "string"
          },
          "refs": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "remediation": {
            "$ref": "#/components/schemas/Remediation"
          },
          "reported_by": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rule": {
            "type": "string"
          },
          "seen_at": {
            "format": "date-time",
            "type": "string"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "tenant_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "verified_at": {
            "format": "date-time",
            "type": "string"
          },
          "verified_by": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "engagement_id",
          "tenant_id",
          "title",
          "severity",
          "asset",
          "evidence",
          "recommendation",
          "created_at"
        ],
        "type": "object"
      },
      "FindingPart": {
        "properties": {
          "cves": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "evidence": {
            "type": "string"
          },
          "fix": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "severity"
        ],
        "type": "object"
      },
      "FindingsRequest": {
        "additionalProperties": false,
        "properties": {
          "findings": {
            "items": {
              "$ref": "#/components/schemas/Finding"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "FixedMember": {
        "properties": {
          "due_at": {
            "description": "Its own deadline, by its severity.",
            "format": "date-time",
            "type": "string"
          },
          "finding_id": {
            "type": "string"
          },
          "fixed_at": {
            "format": "date-time",
            "type": "string"
          },
          "opened_at": {
            "description": "When its SLA clock started: the issue's.",
            "format": "date-time",
            "type": "string"
          },
          "retest_id": {
            "description": "The retest that verified it fixed.",
            "type": "string"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "finding_id",
          "title",
          "severity",
          "opened_at",
          "fixed_at"
        ],
        "type": "object"
      },
      "FrameworkSummary": {
        "properties": {
          "framework": {
            "type": "string"
          },
          "gap_label": {
            "type": "string"
          },
          "gaps": {
            "type": "integer"
          },
          "mandatory_gaps": {
            "type": "integer"
          },
          "note": {
            "type": "string"
          },
          "requirements": {
            "items": {
              "$ref": "#/components/schemas/Requirement"
            },
            "type": "array"
          },
          "unit": {
            "type": "string"
          }
        },
        "required": [
          "framework",
          "unit",
          "gap_label",
          "gaps",
          "requirements"
        ],
        "type": "object"
      },
      "FrameworksRequest": {
        "additionalProperties": false,
        "properties": {
          "frameworks": {
            "description": "The compliance frameworks in scope for the asset, by name (GET /v1/compliance/frameworks lists them). Empty: the default (ISO 27001, NIST CSF, OWASP; GDPR for an EU asset; SWIFT CSCF for a Swift-related one).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "frameworks"
        ],
        "type": "object"
      },
      "FrameworksResponse": {
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/Asset"
          },
          "effective": {
            "description": "The frameworks reports use for the asset: its setting, or the default.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "asset",
          "effective"
        ],
        "type": "object"
      },
      "GCPCredential": {
        "properties": {
          "service_account_email": {
            "description": "With workload_identity_provider: a read-only service account to impersonate. Empty: the roles are granted to the pool's principal directly.",
            "type": "string"
          },
          "service_account_json": {
            "description": "Instead of workload_identity_provider: the service account's JSON key; sealed, never returned.",
            "type": "string"
          },
          "workload_identity_provider": {
            "description": "Keyless: projects/\u003cnumber\u003e/locations/global/workloadIdentityPools/\u003cpool\u003e/providers/\u003cprovider\u003e, an OIDC provider that trusts Echetleos (GET /v1/cloud/federation).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "GateFinding": {
        "properties": {
          "asset": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "severity",
          "asset"
        ],
        "type": "object"
      },
      "GateResult": {
        "properties": {
          "baseline_engagement_id": {
            "type": "string"
          },
          "blocking": {
            "items": {
              "$ref": "#/components/schemas/GateFinding"
            },
            "type": "array"
          },
          "counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "engagement_id": {
            "type": "string"
          },
          "fail_on": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "new_findings": {
            "type": "integer"
          },
          "note": {
            "type": "string"
          },
          "only_new": {
            "type": "boolean"
          },
          "state": {
            "enum": [
              "pending",
              "running",
              "paused",
              "completed",
              "aborted"
            ],
            "type": "string"
          },
          "verdict": {
            "type": "string"
          }
        },
        "required": [
          "engagement_id",
          "state",
          "verdict",
          "fail_on",
          "only_new",
          "counts",
          "new_findings",
          "blocking"
        ],
        "type": "object"
      },
      "GrantProviderRequest": {
        "additionalProperties": false,
        "properties": {
          "provider_id": {
            "description": "The provider's organization ID (they find it on their Clients page).",
            "type": "string"
          },
          "role": {
            "description": "operator (run assessments, decide approvals) or viewer (read only).",
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          }
        },
        "required": [
          "provider_id",
          "role"
        ],
        "type": "object"
      },
      "HealthResponse": {
        "properties": {
          "ai_enabled": {
            "type": "boolean"
          },
          "demo": {
            "description": "The server runs the demo organization (ECHETLEOS_DEMO not 0); the dashboard then offers the demo API key.",
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "time": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "status",
          "time",
          "ai_enabled",
          "demo"
        ],
        "type": "object"
      },
      "HeartbeatResponse": {
        "properties": {
          "cancel": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "cancel"
        ],
        "type": "object"
      },
      "HookSecretResponse": {
        "properties": {
          "hook": {
            "$ref": "#/components/schemas/DeployHook"
          },
          "note": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "trigger_url": {
            "type": "string"
          }
        },
        "required": [
          "hook",
          "token",
          "trigger_url",
          "note"
        ],
        "type": "object"
      },
      "IdentityRequest": {
        "additionalProperties": false,
        "properties": {
          "api_origins": {
            "description": "Further HTTPS origins on the asset that take the same session, e.g. the API a single-page app calls.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "exclude_paths": {
            "description": "Paths kept away from scanners while signed in, besides the logout and password-change pages found automatically.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kind": {
            "description": "headers, oauth2_client_credentials, form or cookie.",
            "type": "string"
          },
          "logged_in_text": {
            "description": "Text shown only when signed in.",
            "type": "string"
          },
          "logged_in_url": {
            "description": "A page only a signed-in user can open (2xx without a redirect).",
            "type": "string"
          },
          "login_url": {
            "description": "Form login: the page with the login form.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "password_field": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "secrets": {
            "$ref": "#/components/schemas/IdentitySecrets"
          },
          "token_url": {
            "description": "OAuth 2.0 token endpoint (HTTPS, on the asset).",
            "type": "string"
          },
          "totp_field": {
            "description": "Field for the one-time code: in the login form, or in a second form at totp_url.",
            "type": "string"
          },
          "totp_url": {
            "type": "string"
          },
          "url": {
            "description": "Where the signed-in application starts. Its origin is the only one the session is sent to (plus api_origins).",
            "type": "string"
          },
          "username_field": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "kind",
          "url"
        ],
        "type": "object"
      },
      "IdentitySecrets": {
        "properties": {
          "client_id": {
            "type": "string"
          },
          "client_secret": {
            "type": "string"
          },
          "cookies": {
            "description": "Session cookie(s) as name=value; name2=value2.",
            "type": "string"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Static request headers by name, e.g. {\"X-Api-Key\": \"…\"}; replaces every stored header.",
            "type": "object"
          },
          "password": {
            "type": "string"
          },
          "token": {
            "description": "Bearer token, sent as Authorization: Bearer \u003ctoken\u003e.",
            "type": "string"
          },
          "totp_seed": {
            "description": "The base32 secret (or otpauth:// URI) an authenticator app is given, for the one-time code.",
            "type": "string"
          },
          "username": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "IdentityTest": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "excluded_paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ok": {
            "type": "boolean"
          },
          "steps": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "at",
          "ok",
          "detail"
        ],
        "type": "object"
      },
      "InboundAccepted": {
        "properties": {
          "action": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "retest_id": {
            "type": "string"
          }
        },
        "required": [
          "action"
        ],
        "type": "object"
      },
      "InboundRequest": {
        "additionalProperties": false,
        "properties": {
          "done_statuses": {
            "description": "Extra status names that count as resolved (Jira's done category and ServiceNow's Resolved/Closed always do). Left out, the ones set before are kept.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "retest_on_resolve": {
            "description": "Retest an issue as soon as its ticket is resolved.",
            "type": "boolean"
          },
          "rotate": {
            "description": "Issue a new webhook secret; the old one stops working.",
            "type": "boolean"
          }
        },
        "required": [
          "retest_on_resolve"
        ],
        "type": "object"
      },
      "InboundResponse": {
        "properties": {
          "integration": {
            "$ref": "#/components/schemas/TicketIntegration"
          },
          "secret": {
            "description": "Shown when it is created or rotated, never again.",
            "type": "string"
          },
          "setup": {
            "items": {
              "$ref": "#/components/schemas/InboundStep"
            },
            "type": "array"
          },
          "url": {
            "description": "Where the ticketing system posts.",
            "type": "string"
          }
        },
        "required": [
          "integration",
          "url",
          "setup"
        ],
        "type": "object"
      },
      "InboundStep": {
        "properties": {
          "steps": {
            "type": "string"
          },
          "system": {
            "type": "string"
          }
        },
        "required": [
          "system",
          "steps"
        ],
        "type": "object"
      },
      "InfoRating": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "note": {
            "description": "What the retest still saw, and how it rated it.",
            "type": "string"
          },
          "retest": {
            "description": "That retest's name.",
            "type": "string"
          },
          "retest_id": {
            "description": "The retest that rated it Info.",
            "type": "string"
          },
          "was": {
            "description": "The issue's severity before.",
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          }
        },
        "required": [
          "retest_id",
          "at",
          "was"
        ],
        "type": "object"
      },
      "InstallStep": {
        "properties": {
          "command": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          }
        },
        "required": [
          "platform",
          "command"
        ],
        "type": "object"
      },
      "IntelFeedStatus": {
        "properties": {
          "entries": {
            "type": "integer"
          },
          "error": {
            "description": "Why the last refresh on this instance failed; the previous copy stays in use.",
            "type": "string"
          },
          "fetched_at": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "released": {
            "format": "date-time",
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "source": {
            "description": "Where it is downloaded from; empty when the feed is turned off.",
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "source",
          "entries"
        ],
        "type": "object"
      },
      "InventoryAssetsRequest": {
        "additionalProperties": false,
        "properties": {
          "values": {
            "description": "Endpoints from the account's latest scan inventory (IP addresses, load balancer or CDN names, DNS zones). Only proven ones are added.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "values"
        ],
        "type": "object"
      },
      "InventoryAssetsResponse": {
        "properties": {
          "added": {
            "items": {
              "$ref": "#/components/schemas/Asset"
            },
            "type": "array"
          },
          "skipped": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Endpoints not added, and why.",
            "type": "object"
          }
        },
        "required": [
          "added",
          "skipped"
        ],
        "type": "object"
      },
      "Invite": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "revoked_at": {
            "format": "date-time",
            "type": "string"
          },
          "revoked_by": {
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "used_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "email",
          "role",
          "expires_at",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "InviteInfoResponse": {
        "properties": {
          "email": {
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "organization": {
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          }
        },
        "required": [
          "organization",
          "email",
          "role",
          "expires_at"
        ],
        "type": "object"
      },
      "InviteResponse": {
        "properties": {
          "invite": {
            "$ref": "#/components/schemas/Invite"
          },
          "note": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "invite",
          "url",
          "note"
        ],
        "type": "object"
      },
      "InviteTokenRequest": {
        "additionalProperties": false,
        "properties": {
          "token": {
            "description": "The token from the #invite= link.",
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "type": "object"
      },
      "Job": {
        "properties": {
          "assets": {
            "items": {
              "$ref": "#/components/schemas/JobAsset"
            },
            "type": "array"
          },
          "engagement_id": {
            "type": "string"
          },
          "exclude_hosts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "expires": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "max_rps": {
            "type": "number"
          },
          "modules": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "runner_name": {
            "type": "string"
          },
          "window": {
            "$ref": "#/components/schemas/TimeWindow"
          }
        },
        "required": [
          "id",
          "engagement_id",
          "runner_name",
          "assets",
          "max_rps",
          "window",
          "expires",
          "modules"
        ],
        "type": "object"
      },
      "JobAsset": {
        "properties": {
          "bssids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "isolated": {
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "domain",
              "ip",
              "cidr",
              "url"
            ],
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "wifi_auth": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "value"
        ],
        "type": "object"
      },
      "KEVInfo": {
        "properties": {
          "cve": {
            "type": "string"
          },
          "date_added": {
            "format": "date-time",
            "type": "string"
          },
          "due_date": {
            "format": "date-time",
            "type": "string"
          },
          "known_ransomware_use": {
            "description": "CISA knows of its use in ransomware campaigns.",
            "type": "boolean"
          },
          "name": {
            "description": "CISA's name for the vulnerability.",
            "type": "string"
          }
        },
        "required": [
          "cve",
          "date_added",
          "due_date"
        ],
        "type": "object"
      },
      "LoginRequest": {
        "additionalProperties": false,
        "properties": {
          "device": {
            "description": "The device token an earlier sign-in from this browser returned for this email: its sign-ins are counted on their own, so failures by others at the same address cannot lock it out.",
            "type": "string"
          },
          "email": {
            "description": "Work email address.",
            "type": "string"
          },
          "password": {
            "description": "Password.",
            "type": "string"
          }
        },
        "required": [
          "email",
          "password"
        ],
        "type": "object"
      },
      "LoginResponse": {
        "properties": {
          "challenge": {
            "description": "The signed, single-use token for the second step. It is not a session and opens nothing else.",
            "type": "string"
          },
          "challenge_expires": {
            "format": "date-time",
            "type": "string"
          },
          "device": {
            "description": "A device token for this account: send it back as device on the next sign-in from this browser.",
            "type": "string"
          },
          "expires": {
            "format": "date-time",
            "type": "string"
          },
          "token": {
            "description": "The session token for Authorization: Bearer. Absent when a second step is needed.",
            "type": "string"
          },
          "two_factor": {
            "description": "Set instead of a session: code — send the authenticator's code (or a recovery code) with the challenge to POST /v1/login/two-factor; enroll — the organization requires two-factor sign-in: set it up with POST /v1/login/two-factor/setup, then send the first code to POST /v1/login/two-factor.",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "type": "object"
      },
      "MeResponse": {
        "properties": {
          "actor": {
            "type": "string"
          },
          "authenticated": {
            "type": "boolean"
          },
          "delegation": {
            "$ref": "#/components/schemas/Delegation"
          },
          "key_name": {
            "description": "A named API key's name; empty for the organization's own key.",
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          },
          "scope": {
            "description": "An API key's scope: read, operate or owner.",
            "type": "string"
          },
          "tenant": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "authenticated",
          "kind",
          "role"
        ],
        "type": "object"
      },
      "OnboardClientRequest": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "The client organization's name.",
            "type": "string"
          },
          "owner_email": {
            "description": "The client's owner; they receive a one-time link and set their own password.",
            "type": "string"
          },
          "role": {
            "description": "Your access in the client: operator (default) or viewer.",
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "owner_email"
        ],
        "type": "object"
      },
      "OnboardResponse": {
        "properties": {
          "client": {
            "$ref": "#/components/schemas/OrgResponse"
          },
          "delegation": {
            "$ref": "#/components/schemas/Delegation"
          },
          "owner_invite": {
            "$ref": "#/components/schemas/InviteResponse"
          }
        },
        "required": [
          "client",
          "delegation",
          "owner_invite"
        ],
        "type": "object"
      },
      "OrgResponse": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "onboarded_by": {
            "type": "string"
          },
          "provider": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "provider",
          "created_at"
        ],
        "type": "object"
      },
      "OrgSettingsRequest": {
        "additionalProperties": false,
        "properties": {
          "source_keys": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Your own API keys for keyed sources, by source name; an empty string removes one. Stored encrypted, never returned.",
            "type": "object"
          },
          "third_party_sources": {
            "description": "Opt in to (true) or out of (false) third-party subdomain sources; omit to keep.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "OrgSettingsResponse": {
        "properties": {
          "available": {
            "description": "subfinder, which queries the sources, is installed on this server.",
            "type": "boolean"
          },
          "detail": {
            "type": "string"
          },
          "keys_supported": {
            "description": "This server can store API keys encrypted (it has ECHETLEOS_SECRET_KEY).",
            "type": "boolean"
          },
          "privacy_note": {
            "type": "string"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/SettingsSource"
            },
            "type": "array"
          },
          "third_party_sources": {
            "description": "Attack-surface discovery may send verified domain names to the third-party sources listed. Off by default.",
            "type": "boolean"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          }
        },
        "required": [
          "third_party_sources",
          "privacy_note",
          "sources",
          "available",
          "keys_supported"
        ],
        "type": "object"
      },
      "OrgTwoFactorRequest": {
        "additionalProperties": false,
        "properties": {
          "required": {
            "description": "Require two-factor sign-in for everyone who signs in with a password.",
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      },
      "OrgTwoFactorView": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "enrolled": {
            "description": "Of those, how many have two-factor sign-in on.",
            "type": "integer"
          },
          "password_users": {
            "description": "Active people who sign in with a password.",
            "type": "integer"
          },
          "reason": {
            "type": "string"
          },
          "required": {
            "description": "Everyone who signs in with a password must use a second factor; people without one set it up at their next sign-in.",
            "type": "boolean"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          }
        },
        "required": [
          "required",
          "available",
          "password_users",
          "enrolled"
        ],
        "type": "object"
      },
      "OverviewChanges": {
        "properties": {
          "awaiting_approvals": {
            "type": "integer"
          },
          "basis": {
            "description": "retest: the latest test is a retest, and these are its fix verification's outcomes on the site; comparison: the latest test compared with the previous comparable one (same schedule, deploy hook, or assets and checks); first_test: nothing tested the site before; not_comparable: earlier tests of the site ran other checks.",
            "type": "string"
          },
          "fixed": {
            "description": "A retest: verified fixed. A comparison: open before and no longer found by a check that completed (resolved, as the engagement's trend counts it; only a retest verifies a fix and closes the issue).",
            "type": "integer"
          },
          "new": {
            "description": "Not found before.",
            "type": "integer"
          },
          "not_rechecked": {
            "description": "Open before, but the check that found it did not complete this time: neither fixed nor still open.",
            "type": "integer"
          },
          "pending": {
            "description": "The retest's fix verification has not concluded yet: it waits for approval-gated checks.",
            "type": "boolean"
          },
          "rated_info": {
            "description": "Open before, now rated Info (expected on this kind of site, harmless, or an advisory).",
            "type": "integer"
          },
          "reopened": {
            "description": "Verified fixed before, found again.",
            "type": "integer"
          },
          "since": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OverviewRun"
              }
            ],
            "description": "What the latest test is compared with: the engagement a retest verified, or the previous comparable test."
          },
          "still_open": {
            "type": "integer"
          }
        },
        "required": [
          "basis",
          "fixed",
          "new",
          "reopened",
          "rated_info",
          "still_open",
          "not_rechecked"
        ],
        "type": "object"
      },
      "OverviewIssue": {
        "properties": {
          "asset": {
            "description": "Where it was found (a host, an address or a URL on the site).",
            "type": "string"
          },
          "due_at": {
            "format": "date-time",
            "type": "string"
          },
          "engagement_id": {
            "description": "The engagement with the issue's latest finding: its evidence.",
            "type": "string"
          },
          "id": {
            "description": "The issue: GET /v1/remediation/{id}.",
            "type": "string"
          },
          "kev": {
            "description": "In CISA's Known Exploited Vulnerabilities catalog.",
            "type": "boolean"
          },
          "overdue": {
            "type": "boolean"
          },
          "owner": {
            "description": "Email of the person who owns the fix.",
            "type": "string"
          },
          "priority": {
            "$ref": "#/components/schemas/Priority"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "asset",
          "severity",
          "priority",
          "engagement_id"
        ],
        "type": "object"
      },
      "OverviewNext": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "every": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "schedule_id": {
            "type": "string"
          }
        },
        "required": [
          "schedule_id",
          "name",
          "every",
          "at"
        ],
        "type": "object"
      },
      "OverviewOrg": {
        "properties": {
          "acceptances_waiting": {
            "description": "Risk acceptances waiting for a second person's approval.",
            "type": "integer"
          },
          "approvals_waiting": {
            "description": "Intrusive checks waiting for approval.",
            "type": "integer"
          },
          "never_tested": {
            "description": "Verified assets no engagement has completed on.",
            "type": "integer"
          },
          "open": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SeverityCounts"
              }
            ],
            "description": "Open issues by severity, across the organization (accepted risks, false positives, verified fixes and issues rated Info are not open)."
          },
          "overdue": {
            "description": "Open issues past their due date.",
            "type": "integer"
          },
          "posture": {
            "description": "The verdict on the organization's open issues in one sentence, worded as the report's executive summary words it (graded by the worst open severity), e.g. \"Moderate risk: no critical or high issue, but one medium-severity weakness …\".",
            "type": "string"
          },
          "running": {
            "description": "Engagements running or paused now.",
            "type": "integer"
          },
          "sites": {
            "description": "Verified assets.",
            "type": "integer"
          },
          "stale": {
            "description": "Verified assets last tested 90 or more days ago.",
            "type": "integer"
          },
          "tested": {
            "description": "Whether any engagement has completed. Until one has, the posture says nothing can be concluded.",
            "type": "boolean"
          },
          "unverified": {
            "description": "Assets waiting for proof of ownership: nothing is tested on them yet.",
            "type": "integer"
          }
        },
        "required": [
          "posture",
          "tested",
          "open",
          "overdue",
          "acceptances_waiting",
          "approvals_waiting",
          "sites",
          "unverified",
          "never_tested",
          "stale",
          "running"
        ],
        "type": "object"
      },
      "OverviewResponse": {
        "properties": {
          "generated_at": {
            "format": "date-time",
            "type": "string"
          },
          "organization": {
            "$ref": "#/components/schemas/OverviewOrg"
          },
          "sites": {
            "description": "Every verified asset, highest risk first; those never tested last.",
            "items": {
              "$ref": "#/components/schemas/OverviewSite"
            },
            "type": "array"
          }
        },
        "required": [
          "generated_at",
          "organization",
          "sites"
        ],
        "type": "object"
      },
      "OverviewRun": {
        "properties": {
          "days_ago": {
            "description": "Whole days since it ended.",
            "type": "integer"
          },
          "ended_at": {
            "format": "date-time",
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "report": {
            "description": "Its report: GET this path (HTML; report.pdf and report for PDF and JSON).",
            "type": "string"
          },
          "retest_of": {
            "description": "For a retest: the engagement whose findings it verified.",
            "type": "string"
          },
          "risk": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Risk"
              }
            ],
            "description": "That engagement's own score (over all its assets) as found when its run ended: frozen then, so later fixes, accepted risks and false positives are in the site's risk, not here."
          },
          "state": {
            "enum": [
              "pending",
              "running",
              "paused",
              "completed",
              "aborted"
            ],
            "type": "string"
          }
        },
        "required": [
          "engagement_id",
          "name",
          "state"
        ],
        "type": "object"
      },
      "OverviewSite": {
        "properties": {
          "accepted": {
            "description": "Accepted risks on the site (not open).",
            "type": "integer"
          },
          "asset_id": {
            "type": "string"
          },
          "business_owner": {
            "type": "string"
          },
          "changes": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OverviewChanges"
              }
            ],
            "description": "What changed at the site's latest test. Absent until it is tested."
          },
          "criticality": {
            "enum": [
              "low",
              "medium",
              "high",
              "crown_jewel"
            ],
            "type": "string"
          },
          "kind": {
            "enum": [
              "domain",
              "ip",
              "cidr",
              "url"
            ],
            "type": "string"
          },
          "last_test": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OverviewRun"
              }
            ],
            "description": "The latest completed engagement or retest that included the site."
          },
          "next_run": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OverviewNext"
              }
            ],
            "description": "The next run of an active schedule that includes the site."
          },
          "open": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SeverityCounts"
              }
            ],
            "description": "The site's open issues by severity."
          },
          "overdue": {
            "description": "Of them, past their due date.",
            "type": "integer"
          },
          "posture": {
            "description": "The verdict on the site's open issues, in the report's words.",
            "type": "string"
          },
          "risk": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Risk"
              }
            ],
            "description": "The site's current risk: the report's formula over its open issues as they stand now, so a retest's verdicts, accepted risks and false positives count, and so do issues an earlier test found that the latest did not re-check. Absent until the site is tested."
          },
          "running": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OverviewRun"
              }
            ],
            "description": "An engagement including the site that is running or paused now."
          },
          "status": {
            "description": "tested, stale (last tested 90 or more days ago) or never_tested.",
            "type": "string"
          },
          "top": {
            "description": "The open issues to fix first (at most 3): by priority, then due date, as the remediation queue ranks them.",
            "items": {
              "$ref": "#/components/schemas/OverviewIssue"
            },
            "type": "array"
          },
          "value": {
            "type": "string"
          },
          "words": {
            "description": "The grade in words, as the engagement panel's risk card says it, e.g. \"Grade B · worst open issue: medium\".",
            "type": "string"
          }
        },
        "required": [
          "asset_id",
          "value",
          "kind",
          "status",
          "open",
          "overdue",
          "accepted",
          "top"
        ],
        "type": "object"
      },
      "OwnershipChallenge": {
        "properties": {
          "location": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "location",
          "value"
        ],
        "type": "object"
      },
      "PRCheck": {
        "properties": {
          "authorized_by": {
            "type": "string"
          },
          "base": {
            "type": "string"
          },
          "base_ref": {
            "type": "string"
          },
          "fail_on": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "head": {
            "type": "string"
          },
          "link": {
            "type": "string"
          },
          "new": {
            "items": {
              "$ref": "#/components/schemas/PRFinding"
            },
            "type": "array"
          },
          "note": {
            "type": "string"
          },
          "number": {
            "type": "integer"
          },
          "provider": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "verdict": {
            "type": "string"
          }
        },
        "required": [
          "provider",
          "repo",
          "number",
          "head",
          "fail_on",
          "verdict"
        ],
        "type": "object"
      },
      "PRFinding": {
        "properties": {
          "blocking": {
            "type": "boolean"
          },
          "line": {
            "type": "integer"
          },
          "path": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "severity"
        ],
        "type": "object"
      },
      "PackageRef": {
        "properties": {
          "ecosystem": {
            "type": "string"
          },
          "fixed": {
            "type": "string"
          },
          "license": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "purl": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "ecosystem",
          "name",
          "version"
        ],
        "type": "object"
      },
      "PathStep": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "because": {
            "type": "string"
          },
          "check": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "target": {
            "type": "string"
          }
        },
        "required": [
          "because",
          "check",
          "target",
          "outcome",
          "at"
        ],
        "type": "object"
      },
      "PersonResponse": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "email": {
            "type": "string"
          },
          "external_id": {
            "type": "string"
          },
          "family_name": {
            "type": "string"
          },
          "given_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "keys_stopped": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "last_login_at": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          },
          "sessions_ended": {
            "type": "integer"
          },
          "source": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "two_factor": {
            "description": "Two-factor sign-in is on (password sign-in only).",
            "type": "boolean"
          },
          "username": {
            "type": "string"
          },
          "warning": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "email",
          "name",
          "role",
          "created_at",
          "two_factor"
        ],
        "type": "object"
      },
      "Plan": {
        "properties": {
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "limits": {
            "$ref": "#/components/schemas/PlanLimits"
          },
          "modules": {
            "items": {
              "enum": [
                "approvals",
                "cloud",
                "siem",
                "mssp"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "price_label": {
            "description": "Display only; Stripe's price is what is charged.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "limits",
          "modules"
        ],
        "type": "object"
      },
      "PlanLimitError": {
        "properties": {
          "error": {
            "type": "string"
          },
          "limit": {
            "description": "verified_assets, runners, concurrent_engagements, scheduled_engagements, seats, or module:approvals, module:cloud, module:siem, module:mssp.",
            "type": "string"
          },
          "max": {
            "description": "What the plan allows (0 for a module it does not include).",
            "type": "integer"
          },
          "plan": {
            "description": "The plan in effect.",
            "type": "string"
          },
          "upgrade": {
            "description": "The first plan that allows it; empty when no plan does.",
            "type": "string"
          },
          "upgrade_via": {
            "description": "Who can lift the limit, and where.",
            "type": "string"
          },
          "used": {
            "description": "How many are in use (0 for a module).",
            "type": "integer"
          }
        },
        "required": [
          "error",
          "limit",
          "plan",
          "used",
          "max",
          "upgrade_via"
        ],
        "type": "object"
      },
      "PlanLimits": {
        "properties": {
          "concurrent_engagements": {
            "description": "Engagements running at the same time. -1 is unlimited.",
            "type": "integer"
          },
          "runners": {
            "description": "Runners that are not revoked. -1 is unlimited.",
            "type": "integer"
          },
          "scheduled_engagements": {
            "description": "Active (not paused) schedules. -1 is unlimited.",
            "type": "integer"
          },
          "seats": {
            "description": "People with an active account plus open invites. -1 is unlimited.",
            "type": "integer"
          },
          "verified_assets": {
            "description": "Verified assets (domains, IPs, ranges, URLs, attested internal ranges). -1 is unlimited.",
            "type": "integer"
          }
        },
        "required": [
          "verified_assets",
          "runners",
          "concurrent_engagements",
          "scheduled_engagements",
          "seats"
        ],
        "type": "object"
      },
      "PlanModule": {
        "properties": {
          "included": {
            "type": "boolean"
          },
          "label": {
            "type": "string"
          },
          "module": {
            "enum": [
              "approvals",
              "cloud",
              "siem",
              "mssp"
            ],
            "type": "string"
          }
        },
        "required": [
          "module",
          "label",
          "included"
        ],
        "type": "object"
      },
      "PlanOffer": {
        "properties": {
          "current": {
            "description": "The plan in effect.",
            "type": "boolean"
          },
          "default": {
            "description": "The plan without a subscription.",
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "limits": {
            "$ref": "#/components/schemas/PlanLimits"
          },
          "modules": {
            "items": {
              "enum": [
                "approvals",
                "cloud",
                "siem",
                "mssp"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "price_label": {
            "description": "Display only; Stripe's price is what is charged.",
            "type": "string"
          },
          "purchasable": {
            "description": "Sold online with Checkout.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "limits",
          "modules",
          "purchasable",
          "current",
          "default"
        ],
        "type": "object"
      },
      "PlannedCheck": {
        "properties": {
          "description": {
            "type": "string"
          },
          "level": {
            "description": "The lowest testing level that permits it; above recon it waits for an approval.",
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "description",
          "level"
        ],
        "type": "object"
      },
      "PlannerNotes": {
        "properties": {
          "model": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "model",
          "text"
        ],
        "type": "object"
      },
      "PollRequest": {
        "additionalProperties": false,
        "properties": {
          "addresses": {
            "description": "The machine's own network addresses.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "allowlist": {
            "description": "Ranges the runner's operator lets it touch.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "capabilities": {
            "description": "Optional modules its operator turned on, e.g. wifi_survey.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "hostname": {
            "description": "Host name of the machine.",
            "type": "string"
          },
          "os": {
            "description": "Operating system and architecture.",
            "type": "string"
          },
          "relays": {
            "description": "Relay destinations configured on the runner host (names and kinds only).",
            "items": {
              "$ref": "#/components/schemas/RelayTarget"
            },
            "type": "array"
          },
          "version": {
            "description": "Runner version.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PollResponse": {
        "properties": {
          "job": {
            "$ref": "#/components/schemas/Job"
          },
          "poll_after_s": {
            "type": "integer"
          },
          "vulndb_key": {
            "type": "string"
          }
        },
        "required": [
          "poll_after_s"
        ],
        "type": "object"
      },
      "PrChecksRequest": {
        "additionalProperties": false,
        "properties": {
          "enabled": {
            "description": "Check every pull (merge) request to the connection's repositories.",
            "type": "boolean"
          },
          "fail_on": {
            "description": "Fail a request that adds an issue at or above: critical, high (default), medium or low.",
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "rotate": {
            "description": "Issue a new webhook secret; the old one stops working.",
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object"
      },
      "PrChecksResponse": {
        "properties": {
          "connection": {
            "$ref": "#/components/schemas/CodeConnectionView"
          },
          "secret": {
            "description": "Shown when it is created or rotated, never again.",
            "type": "string"
          },
          "setup": {
            "items": {
              "$ref": "#/components/schemas/InboundStep"
            },
            "type": "array"
          },
          "url": {
            "description": "Where GitHub or GitLab posts.",
            "type": "string"
          }
        },
        "required": [
          "connection",
          "url",
          "setup"
        ],
        "type": "object"
      },
      "PrHookAccepted": {
        "properties": {
          "action": {
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "action"
        ],
        "type": "object"
      },
      "Priority": {
        "properties": {
          "band": {
            "description": "P1 (act now, score 75+), P2 (50+), P3 (25+), P4.",
            "type": "string"
          },
          "factors": {
            "description": "How the score was reached, one line per factor.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "score": {
            "type": "integer"
          }
        },
        "required": [
          "score",
          "band",
          "factors"
        ],
        "type": "object"
      },
      "ProviderRoleRequest": {
        "additionalProperties": false,
        "properties": {
          "role": {
            "description": "operator or viewer.",
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          }
        },
        "required": [
          "role"
        ],
        "type": "object"
      },
      "ProwlerInfo": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "available"
        ],
        "type": "object"
      },
      "ProwlerRequest": {
        "additionalProperties": false,
        "properties": {
          "enabled": {
            "description": "Add Prowler's checks to every scan of this account.",
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object"
      },
      "ProwlerRun": {
        "properties": {
          "accounts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "detail": {
            "type": "string"
          },
          "failed": {
            "type": "integer"
          },
          "findings": {
            "type": "integer"
          },
          "read_only": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "seconds": {
            "type": "integer"
          },
          "state": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "state",
          "failed",
          "findings",
          "seconds"
        ],
        "type": "object"
      },
      "PublicCheck": {
        "properties": {
          "checks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "ended_at": {
            "format": "date-time",
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/Finding"
            },
            "type": "array"
          },
          "host": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/PublicCheckResult"
            },
            "type": "array"
          },
          "risk": {
            "$ref": "#/components/schemas/Risk"
          },
          "state": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "host",
          "created_by",
          "created_at",
          "state",
          "checks",
          "findings"
        ],
        "type": "object"
      },
      "PublicCheckRequest": {
        "additionalProperties": false,
        "properties": {
          "checks": {
            "description": "Only these of dns_lookup, email_security, tls_inspect and security_headers (a test request's public_checks); empty: all four.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "host": {
            "description": "A public website's host name (example.com), or its URL; addresses, ports and internal names are refused.",
            "type": "string"
          }
        },
        "required": [
          "host"
        ],
        "type": "object"
      },
      "PublicCheckResult": {
        "properties": {
          "check": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "check"
        ],
        "type": "object"
      },
      "PutSSORequest": {
        "additionalProperties": false,
        "properties": {
          "client_id": {
            "description": "OIDC client ID.",
            "type": "string"
          },
          "client_secret": {
            "description": "OIDC client secret; empty keeps the current one. Sealed, never returned.",
            "type": "string"
          },
          "default_role": {
            "description": "Role for new people who match no mapped group.",
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          },
          "domains": {
            "description": "Email domains that may sign in; each must be a verified domain asset.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "enforce_sso": {
            "description": "Refuse password sign-in to everyone except owners.",
            "type": "boolean"
          },
          "group_roles": {
            "additionalProperties": {
              "enum": [
                "owner",
                "operator",
                "viewer"
              ],
              "type": "string"
            },
            "description": "IdP group name or ID → role.",
            "type": "object"
          },
          "issuer": {
            "description": "OIDC issuer URL, exactly as in its discovery document.",
            "type": "string"
          },
          "jit": {
            "description": "Create accounts at first sign-in.",
            "type": "boolean"
          },
          "metadata_url": {
            "description": "https URL to download the SAML IdP metadata from.",
            "type": "string"
          },
          "metadata_xml": {
            "description": "SAML IdP metadata XML; empty keeps the current one.",
            "type": "string"
          },
          "protocol": {
            "description": "saml or oidc.",
            "type": "string"
          },
          "slug": {
            "description": "Organization ID used in sign-in links (3-40 lowercase letters, digits, hyphens).",
            "type": "string"
          }
        },
        "required": [
          "slug",
          "protocol",
          "domains",
          "default_role"
        ],
        "type": "object"
      },
      "ReasonRequest": {
        "additionalProperties": false,
        "properties": {
          "reason": {
            "description": "Why; recorded in the audit trail. Required.",
            "type": "string"
          }
        },
        "required": [
          "reason"
        ],
        "type": "object"
      },
      "RecoveryCodesResponse": {
        "properties": {
          "note": {
            "type": "string"
          },
          "recovery_codes": {
            "description": "Ten one-time codes, shown only now. Each works once in place of a code.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/TwoFactorStatus"
          }
        },
        "required": [
          "recovery_codes",
          "status",
          "note"
        ],
        "type": "object"
      },
      "RedirectResponse": {
        "properties": {
          "url": {
            "description": "A Stripe page (Checkout or the Customer Portal): send the browser there.",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "RelayPollRequest": {
        "additionalProperties": false,
        "properties": {
          "relays": {
            "description": "Relay destinations configured on the runner host (names and kinds; never addresses or credentials).",
            "items": {
              "$ref": "#/components/schemas/RelayTarget"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "RelayPollResponse": {
        "properties": {
          "poll_after_s": {
            "description": "When to ask again if this response carried no work.",
            "type": "integer"
          },
          "siem": {
            "items": {
              "$ref": "#/components/schemas/SIEMBatch"
            },
            "type": "array"
          },
          "tickets": {
            "items": {
              "$ref": "#/components/schemas/TicketTask"
            },
            "type": "array"
          }
        },
        "required": [
          "poll_after_s"
        ],
        "type": "object"
      },
      "RelayStatus": {
        "properties": {
          "configured": {
            "description": "The runner reports this relay name, with this kind, in its local relay configuration.",
            "type": "boolean"
          },
          "online": {
            "description": "The runner checked in within the last 90 seconds.",
            "type": "boolean"
          },
          "problem": {
            "description": "Why the runner cannot deliver now, if it cannot.",
            "type": "string"
          },
          "runner_id": {
            "type": "string"
          },
          "runner_name": {
            "type": "string"
          },
          "runner_state": {
            "type": "string"
          }
        },
        "required": [
          "runner_id",
          "runner_name",
          "runner_state",
          "online",
          "configured"
        ],
        "type": "object"
      },
      "RelayTarget": {
        "properties": {
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "kind"
        ],
        "type": "object"
      },
      "RelayTask": {
        "properties": {
          "actor": {
            "type": "string"
          },
          "attempts": {
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "finding_id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "integration_id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "link_id": {
            "type": "string"
          },
          "not_before": {
            "format": "date-time",
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "runner_id": {
            "type": "string"
          },
          "sent_at": {
            "format": "date-time",
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "runner_id",
          "integration_id",
          "kind",
          "state",
          "actor",
          "attempts",
          "created_at"
        ],
        "type": "object"
      },
      "RelayTaskView": {
        "properties": {
          "actor": {
            "type": "string"
          },
          "attempts": {
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "finding_id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "integration_id": {
            "type": "string"
          },
          "integration_name": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "link_id": {
            "type": "string"
          },
          "not_before": {
            "format": "date-time",
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "runner_id": {
            "type": "string"
          },
          "sent_at": {
            "format": "date-time",
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "runner_id",
          "integration_id",
          "kind",
          "state",
          "actor",
          "attempts",
          "created_at",
          "integration_name"
        ],
        "type": "object"
      },
      "Remediation": {
        "properties": {
          "acceptance": {
            "$ref": "#/components/schemas/RiskAcceptance"
          },
          "asset": {
            "type": "string"
          },
          "cves": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cvss": {
            "type": "number"
          },
          "due_at": {
            "format": "date-time",
            "type": "string"
          },
          "due_basis": {
            "description": "Where the due date comes from, e.g. \"SLA high: 30 days\" or \"CISA KEV due date\".",
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "exposure": {
            "type": "string"
          },
          "false_positive": {
            "$ref": "#/components/schemas/FalsePositive"
          },
          "finding_id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "first_seen": {
            "format": "date-time",
            "type": "string"
          },
          "fixed_at": {
            "format": "date-time",
            "type": "string"
          },
          "fixed_members": {
            "items": {
              "$ref": "#/components/schemas/FixedMember"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "info_cves": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "last_seen": {
            "format": "date-time",
            "type": "string"
          },
          "opened_at": {
            "format": "date-time",
            "type": "string"
          },
          "overdue": {
            "type": "boolean"
          },
          "overdue_notified_at": {
            "format": "date-time",
            "type": "string"
          },
          "owner": {
            "description": "Email of the person who owns the fix.",
            "type": "string"
          },
          "parts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rated_info": {
            "$ref": "#/components/schemas/InfoRating"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "fingerprint",
          "title",
          "asset",
          "severity",
          "status",
          "first_seen",
          "last_seen",
          "opened_at",
          "finding_id",
          "engagement_id",
          "updated_at",
          "version"
        ],
        "type": "object"
      },
      "RemediationItem": {
        "properties": {
          "acceptance": {
            "$ref": "#/components/schemas/RiskAcceptance"
          },
          "asset": {
            "type": "string"
          },
          "business_owner": {
            "type": "string"
          },
          "criticality": {
            "enum": [
              "low",
              "medium",
              "high",
              "crown_jewel"
            ],
            "type": "string"
          },
          "cves": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cvss": {
            "type": "number"
          },
          "due_at": {
            "format": "date-time",
            "type": "string"
          },
          "due_basis": {
            "description": "Where the due date comes from, e.g. \"SLA high: 30 days\" or \"CISA KEV due date\".",
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "epss": {
            "$ref": "#/components/schemas/EPSSInfo"
          },
          "exposure": {
            "type": "string"
          },
          "false_positive": {
            "$ref": "#/components/schemas/FalsePositive"
          },
          "finding_id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "first_seen": {
            "format": "date-time",
            "type": "string"
          },
          "fixed_at": {
            "format": "date-time",
            "type": "string"
          },
          "fixed_members": {
            "items": {
              "$ref": "#/components/schemas/FixedMember"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "info_cves": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kev": {
            "$ref": "#/components/schemas/KEVInfo"
          },
          "last_seen": {
            "format": "date-time",
            "type": "string"
          },
          "opened_at": {
            "format": "date-time",
            "type": "string"
          },
          "overdue": {
            "type": "boolean"
          },
          "overdue_notified_at": {
            "format": "date-time",
            "type": "string"
          },
          "owner": {
            "description": "Email of the person who owns the fix.",
            "type": "string"
          },
          "parts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "priority": {
            "$ref": "#/components/schemas/Priority"
          },
          "rated_info": {
            "$ref": "#/components/schemas/InfoRating"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "fingerprint",
          "title",
          "asset",
          "severity",
          "status",
          "first_seen",
          "last_seen",
          "opened_at",
          "finding_id",
          "engagement_id",
          "updated_at",
          "version",
          "priority"
        ],
        "type": "object"
      },
      "RemediationListResponse": {
        "properties": {
          "intel": {
            "description": "The exploit-intelligence feeds in use on this server.",
            "items": {
              "$ref": "#/components/schemas/IntelFeedStatus"
            },
            "type": "array"
          },
          "items": {
            "description": "The organization's issues, most urgent first (priority, then due date).",
            "items": {
              "$ref": "#/components/schemas/RemediationItem"
            },
            "type": "array"
          },
          "sla": {
            "$ref": "#/components/schemas/SLAPerformance"
          }
        },
        "required": [
          "items",
          "sla",
          "intel"
        ],
        "type": "object"
      },
      "Repo": {
        "properties": {
          "asset": {
            "type": "string"
          },
          "default_branch": {
            "type": "string"
          },
          "full_name": {
            "type": "string"
          },
          "private": {
            "type": "boolean"
          },
          "web_url": {
            "type": "string"
          }
        },
        "required": [
          "full_name",
          "asset",
          "default_branch",
          "private",
          "web_url"
        ],
        "type": "object"
      },
      "ReportMasksRequest": {
        "additionalProperties": false,
        "properties": {
          "paths": {
            "description": "Paths to mask in the report, each starting with /. Empty: none (moved WordPress login paths are masked anyway).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "paths"
        ],
        "type": "object"
      },
      "ReportMasksResponse": {
        "properties": {
          "detected": {
            "description": "Moved WordPress login paths found in the findings: masked as /login-redacted without asking.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "paths",
          "detected"
        ],
        "type": "object"
      },
      "ReportResponse": {
        "properties": {
          "compliance": {
            "$ref": "#/components/schemas/ComplianceSummary"
          },
          "engagement": {
            "$ref": "#/components/schemas/Engagement"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/AuditEvent"
            },
            "type": "array"
          },
          "executive": {
            "description": "NOW: the executive summary as of executive_as_of (Markdown), rebuilt from the current findings, whose states are the issues' current records: a retest, a verified fix, an accepted risk or a reclassification is reflected. It also says the score as found when that differs.",
            "type": "string"
          },
          "executive_as_of": {
            "description": "When executive was built: now.",
            "format": "date-time",
            "type": "string"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/Finding"
            },
            "type": "array"
          },
          "provisional": {
            "description": "Set while approved checks are still running: \"N approved check(s) still running: results may change\". A report version issued now is marked provisional.",
            "type": "string"
          },
          "risk_found": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Risk"
              }
            ],
            "description": "AS FOUND: the run's score frozen when it ended (the same as engagement.risk and its trend point). Later decisions and checks approved after the run ended never change it."
          },
          "risk_now": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Risk"
              }
            ],
            "description": "NOW: the report's formula over this engagement's findings as they stand now (fixes verified, accepted risks and false positives do not count). Absent until the run has been scored."
          },
          "runs": {
            "description": "The runs of this engagement's first run, the first run first: running an engagement again creates its next run.",
            "items": {
              "$ref": "#/components/schemas/RunRef"
            },
            "type": "array"
          },
          "sla": {
            "$ref": "#/components/schemas/SLAPerformance"
          },
          "summary": {
            "description": "AS FOUND: the full summary (Markdown) written when the run ended, and never rewritten; summary_as_of says when. It does not reflect fixes verified, risks accepted or false positives marked since: executive does.",
            "type": "string"
          },
          "summary_as_of": {
            "description": "When the run ended: the moment summary and risk_found describe.",
            "format": "date-time",
            "type": "string"
          },
          "tested": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Tested"
              }
            ],
            "description": "What the run actually tested: the highest level among the checks that completed (recon, scan, pentest; empty when none did), the level the rules authorize, the completed checks, and how each approved check ended (after_run: approved after the run had ended)."
          },
          "versions": {
            "description": "The report's issued versions, oldest first (GET /v1/engagements/{id}/reports).",
            "items": {
              "$ref": "#/components/schemas/ReportVersion"
            },
            "type": "array"
          }
        },
        "required": [
          "engagement",
          "summary",
          "executive_as_of",
          "findings",
          "compliance",
          "events",
          "tested",
          "versions",
          "runs"
        ],
        "type": "object"
      },
      "ReportVersion": {
        "properties": {
          "checks_running": {
            "type": "integer"
          },
          "engagement_id": {
            "type": "string"
          },
          "engagement_state": {
            "enum": [
              "pending",
              "running",
              "paused",
              "completed",
              "aborted"
            ],
            "type": "string"
          },
          "file_sha256": {
            "type": "string"
          },
          "findings": {
            "type": "integer"
          },
          "format": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "issued_at": {
            "format": "date-time",
            "type": "string"
          },
          "issued_by": {
            "type": "string"
          },
          "number": {
            "type": "integer"
          },
          "provisional": {
            "type": "boolean"
          },
          "sha256": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "engagement_id",
          "number",
          "sha256",
          "file_sha256",
          "size",
          "issued_at",
          "issued_by",
          "format",
          "engagement_state",
          "findings"
        ],
        "type": "object"
      },
      "RequestApprovalRequest": {
        "additionalProperties": false,
        "properties": {
          "rationale": {
            "description": "Why it is needed; shown to whoever decides.",
            "type": "string"
          },
          "target": {
            "description": "An in-scope host or URL.",
            "type": "string"
          },
          "tool": {
            "description": "An approval-gated module, e.g. nikto_scan, wapiti_scan, zap_active, sqlmap_confirm, ffuf_discover, dalfox_confirm.",
            "type": "string"
          }
        },
        "required": [
          "tool",
          "target"
        ],
        "type": "object"
      },
      "Requirement": {
        "properties": {
          "evidence": {
            "type": "boolean"
          },
          "finding_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "findings": {
            "type": "integer"
          },
          "framework": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "worst": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          }
        },
        "required": [
          "framework",
          "id",
          "title",
          "status",
          "worst",
          "findings",
          "finding_ids"
        ],
        "type": "object"
      },
      "RetestItem": {
        "properties": {
          "asset": {
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "finding_id": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "finding_id",
          "title",
          "severity",
          "asset",
          "status"
        ],
        "type": "object"
      },
      "RetestResult": {
        "properties": {
          "awaiting_approvals": {
            "type": "integer"
          },
          "fixed": {
            "type": "integer"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/RetestItem"
            },
            "type": "array"
          },
          "new": {
            "type": "integer"
          },
          "not_retested": {
            "type": "integer"
          },
          "reclassified": {
            "type": "integer"
          },
          "reopened": {
            "type": "integer"
          },
          "still_open": {
            "type": "integer"
          },
          "verified_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "fixed",
          "still_open",
          "reopened",
          "new",
          "not_retested",
          "items",
          "verified_at"
        ],
        "type": "object"
      },
      "Risk": {
        "properties": {
          "counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "grade": {
            "type": "string"
          },
          "open": {
            "type": "integer"
          },
          "points": {
            "type": "integer"
          },
          "score": {
            "type": "integer"
          },
          "ungraded": {
            "type": "string"
          }
        },
        "required": [
          "score",
          "grade",
          "points",
          "open",
          "counts"
        ],
        "type": "object"
      },
      "RiskAcceptance": {
        "properties": {
          "basis": {
            "$ref": "#/components/schemas/DecisionBasis"
          },
          "decided_at": {
            "format": "date-time",
            "type": "string"
          },
          "decided_by": {
            "type": "string"
          },
          "ended_at": {
            "description": "When it expired or was withdrawn.",
            "format": "date-time",
            "type": "string"
          },
          "ended_by": {
            "type": "string"
          },
          "expires": {
            "format": "date-time",
            "type": "string"
          },
          "note": {
            "description": "What the approver wrote.",
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "requested_at": {
            "format": "date-time",
            "type": "string"
          },
          "requested_by": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "required": [
          "state",
          "reason",
          "expires",
          "requested_by",
          "requested_at"
        ],
        "type": "object"
      },
      "RiskPoint": {
        "properties": {
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "authorized": {
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "grade": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "new": {
            "type": "integer"
          },
          "not_retested": {
            "type": "integer"
          },
          "open": {
            "type": "integer"
          },
          "points": {
            "type": "integer"
          },
          "resolved": {
            "type": "integer"
          },
          "retest_of": {
            "type": "string"
          },
          "run": {
            "type": "integer"
          },
          "score": {
            "type": "integer"
          },
          "ungraded": {
            "type": "boolean"
          }
        },
        "required": [
          "engagement_id",
          "name",
          "at",
          "score",
          "points",
          "grade",
          "open",
          "new",
          "resolved",
          "kind"
        ],
        "type": "object"
      },
      "RoE": {
        "properties": {
          "allow_intrusive": {
            "type": "boolean"
          },
          "approve_each_check": {
            "type": "boolean"
          },
          "asset_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "exclude_hosts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "exclude_paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "expires": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "max_rps": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "on_behalf_of": {
            "$ref": "#/components/schemas/Authorizer"
          },
          "signed_at": {
            "format": "date-time",
            "type": "string"
          },
          "signed_by": {
            "type": "string"
          },
          "signer_email": {
            "type": "string"
          },
          "signer_name": {
            "type": "string"
          },
          "superseded_by": {
            "type": "string"
          },
          "supersedes": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "window": {
            "$ref": "#/components/schemas/TimeWindow"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "asset_ids",
          "window",
          "max_rps",
          "exclude_hosts",
          "exclude_paths",
          "allow_intrusive",
          "signed_by",
          "signed_at",
          "expires"
        ],
        "type": "object"
      },
      "RoleRequest": {
        "additionalProperties": false,
        "properties": {
          "role": {
            "description": "owner, operator or viewer.",
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          }
        },
        "required": [
          "role"
        ],
        "type": "object"
      },
      "RunRef": {
        "properties": {
          "ended_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "risk": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Risk"
              }
            ],
            "description": "The run's score as found when it ended (frozen)."
          },
          "run": {
            "description": "Its number among the runs: 1 for the first run.",
            "type": "integer"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "state": {
            "enum": [
              "pending",
              "running",
              "paused",
              "completed",
              "aborted"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "run",
          "state"
        ],
        "type": "object"
      },
      "Runner": {
        "properties": {
          "addresses": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "allowlist": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "enroll_expires": {
            "format": "date-time",
            "type": "string"
          },
          "enrolled_at": {
            "format": "date-time",
            "type": "string"
          },
          "hostname": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_seen": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "os": {
            "type": "string"
          },
          "public_key": {
            "type": "string"
          },
          "relays": {
            "items": {
              "$ref": "#/components/schemas/RelayTarget"
            },
            "type": "array"
          },
          "revoked_at": {
            "format": "date-time",
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "state",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "RunnerEnrollment": {
        "properties": {
          "enrollment_token": {
            "description": "One-time token, shown once; valid for 24 hours.",
            "type": "string"
          },
          "expires": {
            "format": "date-time",
            "type": "string"
          },
          "install": {
            "description": "Commands to download, enroll and start the runner.",
            "items": {
              "$ref": "#/components/schemas/InstallStep"
            },
            "type": "array"
          },
          "runner": {
            "$ref": "#/components/schemas/Runner"
          }
        },
        "required": [
          "runner",
          "enrollment_token",
          "expires",
          "install"
        ],
        "type": "object"
      },
      "RunnerEvent": {
        "properties": {
          "action": {
            "type": "string"
          },
          "allowed": {
            "type": "boolean"
          },
          "detail": {
            "type": "string"
          },
          "target": {
            "type": "string"
          }
        },
        "required": [
          "action",
          "allowed"
        ],
        "type": "object"
      },
      "RunnerJob": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "ended_at": {
            "format": "date-time",
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "events": {
            "type": "integer"
          },
          "findings": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "last_beat": {
            "format": "date-time",
            "type": "string"
          },
          "modules": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "picked_at": {
            "format": "date-time",
            "type": "string"
          },
          "runner_id": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "runner_id",
          "engagement_id",
          "state",
          "created_at",
          "findings",
          "events"
        ],
        "type": "object"
      },
      "RunnerView": {
        "properties": {
          "job": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunnerJob"
              }
            ],
            "description": "The current or most recent job."
          },
          "online": {
            "description": "Checked in within the last 90 seconds.",
            "type": "boolean"
          },
          "runner": {
            "$ref": "#/components/schemas/Runner"
          }
        },
        "required": [
          "runner",
          "online"
        ],
        "type": "object"
      },
      "SCIMGroup": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "external_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "members": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "tenant_id": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "display_name",
          "members",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "SIEMAck": {
        "additionalProperties": false,
        "properties": {
          "delivered": {
            "description": "How many of the batch's events, from the first, the SIEM accepted.",
            "type": "integer"
          },
          "error": {
            "description": "Why the rest was not delivered (secrets and addresses removed).",
            "type": "string"
          },
          "last_event_id": {
            "description": "The id of the last event delivered (required when delivered \u003e 0).",
            "type": "string"
          },
          "token": {
            "description": "The batch's token.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SIEMAckResponse": {
        "properties": {
          "advanced": {
            "type": "boolean"
          }
        },
        "required": [
          "advanced"
        ],
        "type": "object"
      },
      "SIEMBatch": {
        "properties": {
          "destination_id": {
            "type": "string"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/AuditEvent"
            },
            "type": "array"
          },
          "kind": {
            "type": "string"
          },
          "relay": {
            "description": "The destination's name in the runner's relay configuration.",
            "type": "string"
          },
          "token": {
            "type": "string"
          }
        },
        "required": [
          "destination_id",
          "relay",
          "kind",
          "token",
          "events"
        ],
        "type": "object"
      },
      "SIEMProgress": {
        "properties": {
          "cursor": {
            "type": "integer"
          },
          "delivered": {
            "type": "integer"
          },
          "failures": {
            "type": "integer"
          },
          "last_delivery_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "last_error_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_event_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_event_id": {
            "type": "string"
          }
        },
        "required": [
          "cursor",
          "delivered",
          "failures"
        ],
        "type": "object"
      },
      "SLAPerformance": {
        "properties": {
          "accepted": {
            "type": "integer"
          },
          "on_time_rate": {
            "type": "number"
          },
          "overdue": {
            "type": "integer"
          },
          "pending_acceptances": {
            "type": "integer"
          },
          "pending_false_positives": {
            "type": "integer"
          },
          "policy": {
            "$ref": "#/components/schemas/SLAPolicy"
          },
          "severities": {
            "items": {
              "$ref": "#/components/schemas/SLASeverityPerformance"
            },
            "type": "array"
          }
        },
        "required": [
          "policy",
          "severities",
          "on_time_rate",
          "overdue",
          "accepted",
          "pending_acceptances",
          "pending_false_positives"
        ],
        "type": "object"
      },
      "SLAPolicy": {
        "properties": {
          "critical_days": {
            "type": "integer"
          },
          "high_days": {
            "type": "integer"
          },
          "kev_due_dates": {
            "type": "boolean"
          },
          "low_days": {
            "type": "integer"
          },
          "medium_days": {
            "type": "integer"
          }
        },
        "required": [
          "critical_days",
          "high_days",
          "medium_days",
          "low_days",
          "kev_due_dates"
        ],
        "type": "object"
      },
      "SLASeverityPerformance": {
        "properties": {
          "accepted": {
            "type": "integer"
          },
          "false_positive": {
            "type": "integer"
          },
          "fixed_late": {
            "type": "integer"
          },
          "fixed_on_time": {
            "type": "integer"
          },
          "mean_days_to_fix": {
            "type": "number"
          },
          "open_on_time": {
            "type": "integer"
          },
          "overdue": {
            "type": "integer"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "sla_days": {
            "description": "The policy's deadline; 0 means none.",
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "required": [
          "severity",
          "sla_days",
          "total",
          "fixed_on_time",
          "fixed_late",
          "open_on_time",
          "overdue",
          "accepted",
          "false_positive"
        ],
        "type": "object"
      },
      "SSOConfig": {
        "properties": {
          "client_id": {
            "type": "string"
          },
          "default_role": {
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          },
          "domains": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "enabled": {
            "type": "boolean"
          },
          "enforce_sso": {
            "type": "boolean"
          },
          "group_roles": {
            "additionalProperties": {
              "enum": [
                "owner",
                "operator",
                "viewer"
              ],
              "type": "string"
            },
            "type": "object"
          },
          "idp_cert_expires": {
            "format": "date-time",
            "type": "string"
          },
          "idp_entity_id": {
            "type": "string"
          },
          "idp_metadata_url": {
            "type": "string"
          },
          "idp_sso_url": {
            "type": "string"
          },
          "issuer": {
            "type": "string"
          },
          "jit": {
            "type": "boolean"
          },
          "last_error": {
            "type": "string"
          },
          "last_error_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_login_at": {
            "format": "date-time",
            "type": "string"
          },
          "protocol": {
            "type": "string"
          },
          "scim_last_sync": {
            "format": "date-time",
            "type": "string"
          },
          "scim_token_created_at": {
            "format": "date-time",
            "type": "string"
          },
          "scim_token_hint": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "sp_cert": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          }
        },
        "required": [
          "tenant_id",
          "slug",
          "protocol",
          "enabled",
          "domains",
          "default_role",
          "jit",
          "enforce_sso",
          "updated_by",
          "updated_at"
        ],
        "type": "object"
      },
      "SSOSettings": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "config": {
            "$ref": "#/components/schemas/SSOConfig"
          },
          "groups": {
            "items": {
              "$ref": "#/components/schemas/SCIMGroup"
            },
            "type": "array"
          },
          "public_url": {
            "type": "string"
          },
          "public_url_problem": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "scim_groups": {
            "type": "integer"
          },
          "scim_url": {
            "type": "string"
          },
          "scim_users": {
            "type": "integer"
          },
          "unverified_domains": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "urls": {
            "$ref": "#/components/schemas/URLs"
          }
        },
        "required": [
          "available",
          "config",
          "scim_users",
          "scim_groups"
        ],
        "type": "object"
      },
      "SbomResult": {
        "properties": {
          "findings": {
            "type": "integer"
          },
          "format": {
            "type": "string"
          },
          "malicious": {
            "description": "Packages known to be malicious.",
            "type": "integer"
          },
          "matched": {
            "description": "Ecosystems and releases whose packages were matched.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "no_data": {
            "description": "Releases with no vulnerability data published (their packages were not matched).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "subject": {
            "type": "string"
          },
          "total": {
            "type": "integer"
          },
          "unmatched": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object"
          },
          "vulnerable": {
            "description": "Packages with at least one advisory that has a fix.",
            "type": "integer"
          }
        },
        "required": [
          "format",
          "total",
          "matched",
          "vulnerable",
          "malicious",
          "findings"
        ],
        "type": "object"
      },
      "ScanCoverage": {
        "properties": {
          "api_endpoints": {
            "type": "integer"
          },
          "at": {
            "format": "date-time",
            "type": "string"
          },
          "authenticated": {
            "type": "boolean"
          },
          "detail": {
            "type": "string"
          },
          "excluded_paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "identity": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "relogins": {
            "type": "integer"
          },
          "requests": {
            "type": "integer"
          },
          "session_lost": {
            "type": "boolean"
          },
          "slot": {
            "type": "string"
          },
          "tool": {
            "type": "string"
          },
          "with_session": {
            "type": "integer"
          }
        },
        "required": [
          "tool",
          "origin",
          "authenticated",
          "requests",
          "with_session",
          "at"
        ],
        "type": "object"
      },
      "ScanIdentity": {
        "properties": {
          "api_origins": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "asset_id": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "exclude_paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "last_test": {
            "$ref": "#/components/schemas/IdentityTest"
          },
          "logged_in_text": {
            "type": "string"
          },
          "logged_in_url": {
            "type": "string"
          },
          "login_url": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "password_field": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "secrets_set": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "slot": {
            "description": "\"a\" (user A, the one scans sign in as) or \"b\" (user B, kept for access-control comparison).",
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "token_url": {
            "type": "string"
          },
          "totp_field": {
            "type": "string"
          },
          "totp_url": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "username_field": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "asset_id",
          "slot",
          "name",
          "kind",
          "url",
          "secrets_set",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "Schedule": {
        "properties": {
          "asset_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "every": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_engagement_id": {
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "last_run": {
            "format": "date-time",
            "type": "string"
          },
          "mode": {
            "enum": [
              "deterministic",
              "ai"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "next_run": {
            "format": "date-time",
            "type": "string"
          },
          "roe_id": {
            "type": "string"
          },
          "runs": {
            "type": "integer"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "asset_ids",
          "roe_id",
          "mode",
          "every",
          "enabled",
          "next_run",
          "runs",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "ScimTokenResponse": {
        "properties": {
          "scim_url": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/SSOSettings"
          },
          "token": {
            "type": "string"
          }
        },
        "required": [
          "token",
          "scim_url",
          "state"
        ],
        "type": "object"
      },
      "SessionResponse": {
        "properties": {
          "device": {
            "type": "string"
          },
          "expires": {
            "format": "date-time",
            "type": "string"
          },
          "recovery_codes": {
            "description": "Shown once, when two-factor sign-in was just set up: ten one-time codes for when the authenticator is not at hand. Store them safely.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "recovery_codes_left": {
            "description": "Set when this sign-in used up a recovery code: how many are left.",
            "type": "integer"
          },
          "token": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "required": [
          "token",
          "user",
          "expires"
        ],
        "type": "object"
      },
      "SessionsEndedResponse": {
        "properties": {
          "sessions_ended": {
            "type": "integer"
          }
        },
        "required": [
          "sessions_ended"
        ],
        "type": "object"
      },
      "SettingsSource": {
        "properties": {
          "active": {
            "description": "The next discovery sends the domain to this source.",
            "type": "boolean"
          },
          "holds": {
            "type": "string"
          },
          "hosts": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "key_set": {
            "description": "The organization stored its own API key for this source (the key is never returned).",
            "type": "boolean"
          },
          "keyed": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "service": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "service",
          "holds",
          "hosts",
          "keyed",
          "active"
        ],
        "type": "object"
      },
      "SeverityCounts": {
        "properties": {
          "critical": {
            "type": "integer"
          },
          "high": {
            "type": "integer"
          },
          "low": {
            "type": "integer"
          },
          "medium": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "required": [
          "total",
          "critical",
          "high",
          "medium",
          "low"
        ],
        "type": "object"
      },
      "SiemCreatedResponse": {
        "properties": {
          "destination": {
            "$ref": "#/components/schemas/SiemView"
          },
          "note": {
            "type": "string"
          },
          "signing_secret": {
            "description": "https_json: the HMAC key of X-Echetleos-Signature. Shown only once.",
            "type": "string"
          }
        },
        "required": [
          "destination"
        ],
        "type": "object"
      },
      "SiemListResponse": {
        "properties": {
          "destinations": {
            "items": {
              "$ref": "#/components/schemas/SiemView"
            },
            "type": "array"
          },
          "enabled": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "enabled",
          "destinations"
        ],
        "type": "object"
      },
      "SiemView": {
        "properties": {
          "backfill_from": {
            "format": "date-time",
            "type": "string"
          },
          "ca_pem": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "facility": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "index": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "lag_seconds": {
            "description": "Age of the oldest event not yet delivered; 0 when up to date.",
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "pending": {
            "description": "Events not yet delivered, counted up to 10000 (10000 means at least that many).",
            "type": "integer"
          },
          "progress": {
            "$ref": "#/components/schemas/SIEMProgress"
          },
          "relay": {
            "type": "string"
          },
          "relay_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RelayStatus"
              }
            ],
            "description": "For a destination relayed by a runner: the runner's state."
          },
          "runner_id": {
            "type": "string"
          },
          "sourcetype": {
            "type": "string"
          },
          "state": {
            "description": "up_to_date, catching_up, waiting_for_runner (relayed: its runner cannot deliver now), failing or disabled.",
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "kind",
          "host",
          "enabled",
          "created_by",
          "created_at",
          "progress",
          "state",
          "pending",
          "lag_seconds"
        ],
        "type": "object"
      },
      "SlaRequest": {
        "additionalProperties": false,
        "properties": {
          "critical_days": {
            "description": "Days to fix a critical finding (0: no deadline).",
            "type": "integer"
          },
          "high_days": {
            "type": "integer"
          },
          "kev_due_dates": {
            "description": "A finding in CISA's KEV catalog is due no later than CISA's due date.",
            "type": "boolean"
          },
          "low_days": {
            "type": "integer"
          },
          "medium_days": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "SlaResponse": {
        "properties": {
          "default": {
            "description": "true while the organization has not set its own policy.",
            "type": "boolean"
          },
          "policy": {
            "$ref": "#/components/schemas/SLAPolicy"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "updated_by": {
            "type": "string"
          }
        },
        "required": [
          "policy",
          "default"
        ],
        "type": "object"
      },
      "SsoBeginRequest": {
        "additionalProperties": false,
        "properties": {
          "bind": {
            "description": "base64url(SHA-256(verifier)); the browser keeps the verifier.",
            "type": "string"
          },
          "slug": {
            "description": "Organization ID.",
            "type": "string"
          }
        },
        "required": [
          "slug",
          "bind"
        ],
        "type": "object"
      },
      "SsoBeginResponse": {
        "properties": {
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "SsoExchangeError": {
        "properties": {
          "code": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "code"
        ],
        "type": "object"
      },
      "SsoExchangeRequest": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "description": "One-time code from the #sso_code= redirect.",
            "type": "string"
          },
          "verifier": {
            "description": "The verifier whose hash was sent to /v1/sso/begin.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "verifier"
        ],
        "type": "object"
      },
      "SsoRequiredResponse": {
        "properties": {
          "error": {
            "type": "string"
          },
          "sso_slug": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "sso_slug"
        ],
        "type": "object"
      },
      "SsoTestResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "message"
        ],
        "type": "object"
      },
      "StatusResponse": {
        "properties": {
          "status": {
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "StripeWebhookResult": {
        "properties": {
          "event": {
            "type": "string"
          },
          "outcome": {
            "description": "applied, duplicate (already applied: a replay or a retry), ignored or stale (older than what was applied).",
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "event",
          "type",
          "outcome"
        ],
        "type": "object"
      },
      "Summary": {
        "properties": {
          "findings": {
            "type": "integer"
          },
          "results": {
            "type": "integer"
          },
          "suppressed": {
            "type": "integer"
          },
          "tools": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "tools",
          "results",
          "suppressed",
          "findings"
        ],
        "type": "object"
      },
      "SurfaceHost": {
        "properties": {
          "asset_id": {
            "type": "string"
          },
          "cname": {
            "type": "string"
          },
          "first_seen": {
            "format": "date-time",
            "type": "string"
          },
          "ips": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "issues": {
            "items": {
              "$ref": "#/components/schemas/SurfaceIssue"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "new": {
            "type": "boolean"
          },
          "resolves": {
            "type": "boolean"
          },
          "sources": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "wildcard": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "resolves",
          "sources",
          "first_seen",
          "new"
        ],
        "type": "object"
      },
      "SurfaceIssue": {
        "properties": {
          "detail": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "severity",
          "title",
          "detail"
        ],
        "type": "object"
      },
      "SurfaceResponse": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "roots": {
            "items": {
              "$ref": "#/components/schemas/SurfaceRoot"
            },
            "type": "array"
          }
        },
        "required": [
          "available",
          "roots"
        ],
        "type": "object"
      },
      "SurfaceRoot": {
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/Asset"
          },
          "latest": {
            "$ref": "#/components/schemas/Discovery"
          },
          "not_eligible": {
            "type": "string"
          },
          "running": {
            "type": "boolean"
          },
          "runs": {
            "type": "integer"
          }
        },
        "required": [
          "asset",
          "running",
          "runs"
        ],
        "type": "object"
      },
      "SurfaceScheduleRequest": {
        "additionalProperties": false,
        "properties": {
          "weekly": {
            "description": "Re-run discovery for this domain every week.",
            "type": "boolean"
          }
        },
        "required": [
          "weekly"
        ],
        "type": "object"
      },
      "SwiftRequest": {
        "additionalProperties": false,
        "properties": {
          "swift": {
            "description": "true: the asset is a Swift-related component.",
            "type": "boolean"
          }
        },
        "required": [
          "swift"
        ],
        "type": "object"
      },
      "TestPlan": {
        "properties": {
          "asset_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "assets": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "checks": {
            "items": {
              "$ref": "#/components/schemas/PlannedCheck"
            },
            "type": "array"
          },
          "focus": {
            "description": "The checks to run (as focus when the engagement is created); empty means the full playbook at the level.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "description": "What the plan could not honour, or changed, and why.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "plan": {
            "description": "What will happen, in plain words.",
            "type": "string"
          },
          "planned_by": {
            "description": "The model that planned it, or keyword matching when the organization has no model.",
            "type": "string"
          },
          "public_checks": {
            "description": "The public checks to run on them (TLS, security headers, DNS, email).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "public_hosts": {
            "description": "Sites not verified as yours: start a public check of each (POST /v1/public-checks).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "request": {
            "type": "string"
          }
        },
        "required": [
          "request",
          "name",
          "asset_ids",
          "assets",
          "level",
          "focus",
          "checks",
          "plan",
          "notes",
          "planned_by"
        ],
        "type": "object"
      },
      "TestRequestBody": {
        "additionalProperties": false,
        "properties": {
          "request": {
            "description": "What to test, in your own words (up to 2,000 characters).",
            "type": "string"
          }
        },
        "required": [
          "request"
        ],
        "type": "object"
      },
      "Tested": {
        "properties": {
          "approved": {
            "items": {
              "$ref": "#/components/schemas/ApprovedCheck"
            },
            "type": "array"
          },
          "authorized": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "modules": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "running": {
            "type": "integer"
          }
        },
        "required": [
          "authorized"
        ],
        "type": "object"
      },
      "TicketIntegration": {
        "properties": {
          "auto_create": {
            "type": "boolean"
          },
          "base_url": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "done_statuses": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "enabled": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "inbound_version": {
            "type": "integer"
          },
          "issue_type": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "last_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "last_status": {
            "type": "string"
          },
          "min_severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "relay": {
            "type": "string"
          },
          "retest_on_resolve": {
            "type": "boolean"
          },
          "runner_id": {
            "type": "string"
          },
          "table": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "tickets": {
            "type": "integer"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "kind",
          "base_url",
          "min_severity",
          "auto_create",
          "enabled",
          "tickets",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "TicketLink": {
        "properties": {
          "closed_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "external_id": {
            "type": "string"
          },
          "finding_id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "fixed_noted_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "integration_id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "resolved_at": {
            "format": "date-time",
            "type": "string"
          },
          "retest_id": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "integration_id",
          "kind",
          "fingerprint",
          "finding_id",
          "engagement_id",
          "key",
          "external_id",
          "url",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "TicketResult": {
        "additionalProperties": false,
        "properties": {
          "close_error": {
            "description": "ticket.comment with close: why the ticket could not be closed (the comment was posted).",
            "type": "string"
          },
          "closed": {
            "description": "ticket.comment with close: the ticket was closed (or was already done).",
            "type": "boolean"
          },
          "error": {
            "description": "Why the task failed (secrets and addresses removed).",
            "type": "string"
          },
          "existing": {
            "description": "ticket.create: the ticket already existed (found by the finding's reference).",
            "type": "boolean"
          },
          "external_id": {
            "description": "ticket.create: the Jira issue id or ServiceNow sys_id.",
            "type": "string"
          },
          "key": {
            "description": "ticket.create: the issue key or record number, e.g. SEC-42 or INC0010001.",
            "type": "string"
          },
          "reopen": {
            "description": "ticket.comment with reopen: reopened, or open (it was not done: left as it is).",
            "type": "string"
          },
          "reopen_error": {
            "description": "ticket.comment with reopen: why the ticket could not be reopened (the comment says so).",
            "type": "string"
          },
          "url": {
            "description": "ticket.create: the ticket's address.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "TicketTask": {
        "properties": {
          "action": {
            "description": "ticket.create or ticket.comment.",
            "type": "string"
          },
          "close": {
            "type": "string"
          },
          "engagement_name": {
            "type": "string"
          },
          "external_id": {
            "type": "string"
          },
          "finding": {
            "$ref": "#/components/schemas/Finding"
          },
          "id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "relay": {
            "description": "The ticketing system's name in the runner's relay configuration.",
            "type": "string"
          },
          "reopen": {
            "type": "boolean"
          },
          "retry": {
            "type": "boolean"
          },
          "system": {
            "description": "jira or servicenow.",
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "relay",
          "system",
          "action"
        ],
        "type": "object"
      },
      "TicketView": {
        "properties": {
          "closed_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "engagement_id": {
            "type": "string"
          },
          "external_id": {
            "type": "string"
          },
          "finding_id": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "fixed_noted_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "integration_id": {
            "type": "string"
          },
          "integration_name": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "resolved_at": {
            "format": "date-time",
            "type": "string"
          },
          "retest_id": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "integration_id",
          "kind",
          "fingerprint",
          "finding_id",
          "engagement_id",
          "key",
          "external_id",
          "url",
          "created_by",
          "created_at",
          "integration_name"
        ],
        "type": "object"
      },
      "TicketingCredentialsRequest": {
        "additionalProperties": false,
        "properties": {
          "token": {
            "description": "New API token or password.",
            "type": "string"
          },
          "username": {
            "description": "New username; omit to keep the current one.",
            "type": "string"
          }
        },
        "required": [
          "token"
        ],
        "type": "object"
      },
      "TicketingListResponse": {
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "integrations": {
            "items": {
              "$ref": "#/components/schemas/TicketingView"
            },
            "type": "array"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "enabled",
          "integrations"
        ],
        "type": "object"
      },
      "TicketingSettingsRequest": {
        "additionalProperties": false,
        "properties": {
          "auto_create": {
            "description": "Turn automatic filing on or off; omit to keep.",
            "type": "boolean"
          },
          "min_severity": {
            "description": "Lowest severity filed automatically; omit to keep.",
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "TicketingView": {
        "properties": {
          "auto_create": {
            "type": "boolean"
          },
          "base_url": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "done_statuses": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "enabled": {
            "type": "boolean"
          },
          "failed_tasks": {
            "description": "Requests the runner gave up on (filing the finding again re-queues it).",
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "inbound_version": {
            "type": "integer"
          },
          "issue_type": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "last_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "last_status": {
            "type": "string"
          },
          "min_severity": {
            "enum": [
              "info",
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "queued": {
            "description": "Requests waiting for the runner.",
            "type": "integer"
          },
          "relay": {
            "type": "string"
          },
          "relay_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RelayStatus"
              }
            ],
            "description": "For an integration relayed by a runner: the runner's state."
          },
          "retest_on_resolve": {
            "type": "boolean"
          },
          "runner_id": {
            "type": "string"
          },
          "table": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "tickets": {
            "type": "integer"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "kind",
          "base_url",
          "min_severity",
          "auto_create",
          "enabled",
          "tickets",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "TimeWindow": {
        "properties": {
          "end_hour_utc": {
            "type": "integer"
          },
          "start_hour_utc": {
            "type": "integer"
          },
          "weekdays": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          }
        },
        "required": [
          "start_hour_utc",
          "end_hour_utc",
          "weekdays"
        ],
        "type": "object"
      },
      "ToolInfo": {
        "properties": {
          "available": {
            "type": "boolean"
          },
          "binary": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "intrusive": {
            "type": "boolean"
          },
          "kind": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "kind",
          "intrusive",
          "level",
          "available",
          "description"
        ],
        "type": "object"
      },
      "TrendResponse": {
        "properties": {
          "basis": {
            "type": "string"
          },
          "points": {
            "items": {
              "$ref": "#/components/schemas/RiskPoint"
            },
            "type": "array"
          }
        },
        "required": [
          "basis",
          "points"
        ],
        "type": "object"
      },
      "TwoFactorChallengeRequest": {
        "additionalProperties": false,
        "properties": {
          "challenge": {
            "description": "From the sign-in reply (two_factor: enroll).",
            "type": "string"
          }
        },
        "required": [
          "challenge"
        ],
        "type": "object"
      },
      "TwoFactorCodeRequest": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "description": "A current 6-digit code from the authenticator app (turning off and new recovery codes also take a recovery code).",
            "type": "string"
          }
        },
        "required": [
          "code"
        ],
        "type": "object"
      },
      "TwoFactorLoginRequest": {
        "additionalProperties": false,
        "properties": {
          "challenge": {
            "description": "From the sign-in reply.",
            "type": "string"
          },
          "code": {
            "description": "The 6-digit code from the authenticator app, or one of the recovery codes (not while setting up).",
            "type": "string"
          }
        },
        "required": [
          "challenge",
          "code"
        ],
        "type": "object"
      },
      "TwoFactorSetupResponse": {
        "properties": {
          "note": {
            "type": "string"
          },
          "otpauth_uri": {
            "description": "otpauth://totp/… — what the QR code holds.",
            "type": "string"
          },
          "qr_code": {
            "description": "The URI as a QR code: a PNG data: URI for an \u003cimg\u003e.",
            "type": "string"
          },
          "secret": {
            "description": "The base32 secret, to type into an authenticator app.",
            "type": "string"
          }
        },
        "required": [
          "secret",
          "otpauth_uri",
          "note"
        ],
        "type": "object"
      },
      "TwoFactorStatus": {
        "properties": {
          "applies": {
            "description": "false for accounts that sign in through the identity provider, which handles their second factor.",
            "type": "boolean"
          },
          "available": {
            "description": "false when the server cannot store second factors (no ECHETLEOS_SECRET_KEY).",
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "enabled_at": {
            "format": "date-time",
            "type": "string"
          },
          "pending": {
            "description": "A setup was started and waits for its first code.",
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "recovery_codes_left": {
            "type": "integer"
          },
          "required": {
            "description": "The organization requires two-factor sign-in for password sign-in.",
            "type": "boolean"
          }
        },
        "required": [
          "available",
          "applies",
          "enabled",
          "recovery_codes_left",
          "required"
        ],
        "type": "object"
      },
      "URLs": {
        "properties": {
          "acs_url": {
            "type": "string"
          },
          "entity_id": {
            "type": "string"
          },
          "metadata_url": {
            "type": "string"
          },
          "redirect_uri": {
            "type": "string"
          },
          "start_url": {
            "type": "string"
          }
        },
        "required": [
          "start_url",
          "redirect_uri",
          "entity_id",
          "acs_url",
          "metadata_url"
        ],
        "type": "object"
      },
      "UpdateOrgRequest": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "New organization name; omit to keep.",
            "type": "string"
          },
          "provider": {
            "description": "Act as a managed service provider for client organizations; omit to keep.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "UpdateSIEMRequest": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "syslog_tls: new host:port.",
            "type": "string"
          },
          "ca_pem": {
            "description": "PEM CA certificate(s); empty to trust the public roots again.",
            "type": "string"
          },
          "facility": {
            "description": "syslog_tls: facility.",
            "type": "string"
          },
          "index": {
            "description": "splunk_hec: index; empty for the token's default.",
            "type": "string"
          },
          "name": {
            "description": "New name.",
            "type": "string"
          },
          "sourcetype": {
            "description": "splunk_hec: sourcetype; empty for echetleos:audit.",
            "type": "string"
          },
          "token": {
            "description": "New token (rotation). For https_json, an empty string removes the bearer token.",
            "type": "string"
          },
          "url": {
            "description": "splunk_hec and https_json: new https URL.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "UsageLine": {
        "properties": {
          "label": {
            "type": "string"
          },
          "limit": {
            "enum": [
              "verified_assets",
              "runners",
              "concurrent_engagements",
              "scheduled_engagements",
              "seats"
            ],
            "type": "string"
          },
          "max": {
            "description": "-1 is unlimited.",
            "type": "integer"
          },
          "used": {
            "type": "integer"
          }
        },
        "required": [
          "limit",
          "label",
          "used",
          "max"
        ],
        "type": "object"
      },
      "User": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "email": {
            "type": "string"
          },
          "external_id": {
            "type": "string"
          },
          "family_name": {
            "type": "string"
          },
          "given_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_login_at": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "email",
          "name",
          "role",
          "created_at"
        ],
        "type": "object"
      },
      "UserView": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "disabled": {
            "type": "boolean"
          },
          "email": {
            "type": "string"
          },
          "external_id": {
            "type": "string"
          },
          "family_name": {
            "type": "string"
          },
          "given_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_login_at": {
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "operator",
              "viewer"
            ],
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "two_factor": {
            "description": "Two-factor sign-in is on (password sign-in only).",
            "type": "boolean"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "email",
          "name",
          "role",
          "created_at",
          "two_factor"
        ],
        "type": "object"
      },
      "Verification": {
        "properties": {
          "last_error": {
            "type": "string"
          },
          "method": {
            "enum": [
              "dns_txt",
              "http_file",
              "parent_domain"
            ],
            "type": "string"
          },
          "state": {
            "enum": [
              "pending",
              "verified",
              "failed"
            ],
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "verified_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "method",
          "token",
          "state"
        ],
        "type": "object"
      },
      "VulnDBRequest": {
        "additionalProperties": false,
        "properties": {
          "have": {
            "description": "SHA-256 (hex) of the release file the runner already has.",
            "type": "string"
          },
          "release": {
            "description": "Distribution release, as OSV.dev names it: Debian:12, Ubuntu:22.04:LTS, Alpine:v3.20, Rocky Linux:9, AlmaLinux:9, Red Hat:enterprise_linux:9.",
            "type": "string"
          }
        },
        "required": [
          "release"
        ],
        "type": "object"
      },
      "Webhook": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "events": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "format": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_delivery_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "last_status": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "name",
          "url",
          "format",
          "events",
          "enabled",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "WebhookCreatedResponse": {
        "properties": {
          "note": {
            "type": "string"
          },
          "secret": {
            "type": "string"
          },
          "webhook": {
            "$ref": "#/components/schemas/Webhook"
          }
        },
        "required": [
          "webhook",
          "secret",
          "note"
        ],
        "type": "object"
      },
      "WebhookTestResponse": {
        "properties": {
          "delivered": {
            "type": "boolean"
          },
          "error": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          }
        },
        "required": [
          "status",
          "delivered"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "apiKey": {
        "description": "An API key, for automation: the organization's own key (owner rights; recorded as `api_key`, or `api_key:\u003clabel\u003e` with `X-Actor`), or a named key an owner created with a scope — `read` (GET only), `operate` (what an operator can do) or `owner` — and an optional expiry (recorded as `api_key:\u003cname\u003e`, or `api_key:\u003cname\u003e/\u003clabel\u003e` with `X-Actor`). A key never appears as a person, never approves an intrusive check, and cannot request or approve a risk acceptance.",
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      },
      "hookToken": {
        "description": "A deploy hook's token (shown once when the hook is created or rotated). It can only start that hook's run and read its verdict.",
        "scheme": "bearer",
        "type": "http"
      },
      "runnerSignature": {
        "description": "An enrolled runner's Ed25519 signature (base64) over `echetleos-runner-v1\\n\u003cmethod\u003e\\n\u003cpath\u003e\\n\u003ctimestamp\u003e\\n\u003cnonce\u003e\\n\u003chex sha256 of the body\u003e`, sent with X-Echetleos-Runner (its ID), X-Echetleos-Timestamp (Unix seconds, within 5 minutes) and X-Echetleos-Nonce (32 hex characters, single use). The runner binary does this.",
        "in": "header",
        "name": "X-Echetleos-Signature",
        "type": "apiKey"
      },
      "scimToken": {
        "description": "The organization's SCIM token (Single sign-on settings). Only for /scim/v2.",
        "scheme": "bearer",
        "type": "http"
      },
      "session": {
        "description": "A person's session token from `POST /v1/login` (and, with two-factor sign-in, `POST /v1/login/two-factor`) or single sign-on. Valid for 12 hours.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Authorization-gated security assessment. Every route under `/v1` is stable: changes are additive. Errors are JSON `{\"error\": \"…\"}`. The human-readable reference is at `/docs`.",
    "title": "Echetleos API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/docs": {
      "get": {
        "description": "**Access:** No credentials.",
        "operationId": "getDocs",
        "responses": {
          "200": {
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          }
        },
        "security": [],
        "summary": "This reference",
        "tags": [
          "System"
        ]
      }
    },
    "/downloads/runner/{file}": {
      "get": {
        "description": "`echetleos-runner-linux-amd64`, `-linux-arm64`, `-darwin-arm64`, `-darwin-amd64`, `-windows-amd64.exe`, or `SHA256SUMS`.\n\n**Access:** No credentials.",
        "operationId": "getDownloadsRunnerByFile",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [],
        "summary": "Download the runner",
        "tags": [
          "Runners"
        ]
      }
    },
    "/healthz": {
      "get": {
        "description": "**Access:** No credentials.",
        "operationId": "getHealthz",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            },
            "description": "OK"
          }
        },
        "security": [],
        "summary": "Health check",
        "tags": [
          "System"
        ]
      }
    },
    "/oidc/.well-known/openid-configuration": {
      "get": {
        "description": "What AWS, Azure and Google read to trust Echetleos's tokens.\n\n**Access:** No credentials.",
        "operationId": "getOidcWellKnownOpenidConfiguration",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [],
        "summary": "Identity provider discovery (public)",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/oidc/jwks": {
      "get": {
        "description": "**Access:** No credentials.",
        "operationId": "getOidcJwks",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [],
        "summary": "Identity provider signing keys (public)",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/scim/v2/Groups": {
      "get": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "getScimV2Groups",
        "parameters": [
          {
            "description": "`displayName eq \"…\"`, `externalId eq \"…\"` or `id eq \"…\"`.",
            "in": "query",
            "name": "filter",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`members` to omit members.",
            "in": "query",
            "name": "excludedAttributes",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "List or find groups",
        "tags": [
          "SCIM"
        ]
      },
      "post": {
        "description": "Membership becomes a role through the single sign-on group mapping.\n\n**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "postScimV2Groups",
        "requestBody": {
          "content": {
            "application/scim+json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Create a group",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/scim/v2/Groups/{id}": {
      "delete": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "deleteScimV2GroupsById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Delete a group",
        "tags": [
          "SCIM"
        ]
      },
      "get": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "getScimV2GroupsById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Get a group",
        "tags": [
          "SCIM"
        ]
      },
      "patch": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "patchScimV2GroupsById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/scim+json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Add or remove members, rename (PatchOp)",
        "tags": [
          "SCIM"
        ]
      },
      "put": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "putScimV2GroupsById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/scim+json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Replace a group",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/scim/v2/ResourceTypes": {
      "get": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "getScimV2ResourceTypes",
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Resource types",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/scim/v2/Schemas": {
      "get": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "getScimV2Schemas",
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Schemas",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/scim/v2/ServiceProviderConfig": {
      "get": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "getScimV2ServiceProviderConfig",
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Capabilities",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/scim/v2/Users": {
      "get": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "getScimV2Users",
        "parameters": [
          {
            "description": "`userName eq \"…\"`, `externalId eq \"…\"`, `emails.value eq \"…\"` or `id eq \"…\"`.",
            "in": "query",
            "name": "filter",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "1-based.",
            "in": "query",
            "name": "startIndex",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "At most 200.",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "List or find users",
        "tags": [
          "SCIM"
        ]
      },
      "post": {
        "description": "The email must be in the organization's single sign-on domains. 409 if the address is already in use.\n\n**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "postScimV2Users",
        "requestBody": {
          "content": {
            "application/scim+json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Create a user",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/scim/v2/Users/{id}": {
      "delete": {
        "description": "Ends the person's sessions. Refused (409) for the last active owner.\n\n**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "deleteScimV2UsersById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Delete a user",
        "tags": [
          "SCIM"
        ]
      },
      "get": {
        "description": "**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "getScimV2UsersById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Get a user",
        "tags": [
          "SCIM"
        ]
      },
      "patch": {
        "description": "`active: false` deactivates the account and ends its sessions at once. Refused (409) if it would leave no active owner.\n\n**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "patchScimV2UsersById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/scim+json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Update a user (PatchOp)",
        "tags": [
          "SCIM"
        ]
      },
      "put": {
        "description": "An omitted `active` keeps the current state.\n\n**Access:** The SCIM token (Authorization: Bearer).",
        "operationId": "putScimV2UsersById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/scim+json": {
              "schema": {
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ],
        "summary": "Replace a user",
        "tags": [
          "SCIM"
        ]
      }
    },
    "/sso/{slug}/acs": {
      "post": {
        "description": "HTTP-POST binding. Unsolicited (IdP-initiated) responses are bounced into a normal sign-in.\n\n**Access:** No credentials.",
        "operationId": "postSsoBySlugAcs",
        "parameters": [
          {
            "description": "The organization ID used for single sign-on.",
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "See Other",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [],
        "summary": "SAML assertion consumer service",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/sso/{slug}/callback": {
      "get": {
        "description": "Called by the identity provider's redirect. Sends the browser to `/#sso_code=…` or `/#sso_error=\u003ccode\u003e`.\n\n**Access:** No credentials.",
        "operationId": "getSsoBySlugCallback",
        "parameters": [
          {
            "description": "The organization ID used for single sign-on.",
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "See Other",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [],
        "summary": "OIDC redirect URI",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/sso/{slug}/metadata": {
      "get": {
        "description": "**Access:** No credentials.",
        "operationId": "getSsoBySlugMetadata",
        "parameters": [
          {
            "description": "The organization ID used for single sign-on.",
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Present to download as a file.",
            "in": "query",
            "name": "download",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/samlmetadata+xml": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [],
        "summary": "SAML service-provider metadata",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/sso/{slug}/start": {
      "get": {
        "description": "Opens the dashboard with the organization filled in; one click by the person starts the sign-in.\n\n**Access:** No credentials.",
        "operationId": "getSsoBySlugStart",
        "parameters": [
          {
            "description": "The organization ID used for single sign-on.",
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Found",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [],
        "summary": "Sign-in link (bookmark / IdP tile)",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/v1/api-descriptions": {
      "get": {
        "description": "Uploaded API descriptions with what they contain: operations, those on hosts the asset covers, and those never sent (DELETE, GraphQL mutations). The documents themselves are not returned.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getApiDescriptions",
        "parameters": [
          {
            "description": "Only this asset's descriptions.",
            "in": "query",
            "name": "asset",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/APIDescription"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "API descriptions",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/api-keys": {
      "get": {
        "description": "The organization's own key first (`organization: true`, owner scope), then the named keys, each with its scope, who created it, its expiry and when it was last used (to the minute). Never the keys themselves.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "getApiKeys",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List API keys",
        "tags": [
          "Organization"
        ]
      },
      "post": {
        "description": "Scope `read` (GET only), `operate` (what an operator can do) or `owner` (what an owner can do, including people and single sign-on); optionally expiring within a year. The key is returned once and stored as a hash. Its actions are recorded as `api_key:\u003cname\u003e`. Whatever its scope, a key never approves an intrusive check or a risk acceptance. Created by a signed-in owner (403 for an API key), so every key traces back to a person. Audited (`api_key.create`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postApiKeys",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "expires_days": 90,
                "name": "github-actions",
                "scope": "operate"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateAPIKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyCreatedResponse"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Create a named API key",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/api-keys/{id}": {
      "delete": {
        "description": "It stops working at once. The organization's own key is rotated instead (400). Audited (`api_key.revoke`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteApiKeysById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Revoke a named API key",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/approvals": {
      "get": {
        "description": "Each request with its state (`pending`, `approved`, `denied`, or `withdrawn` by its requester), who requested it (and `requested_for`, the person behind it), who decided and why (`reason`), whether an approved check is still `running`, and how it ended: `run_ended`, `run_summary`, `run_error`, `run_partial` (stopped at its time limit) and `stopped_by` (who pressed the kill switch on it). An empty list is `[]`.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getApprovals",
        "parameters": [
          {
            "description": "Only this engagement's requests.",
            "in": "query",
            "name": "engagement",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Approval"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List approval requests",
        "tags": [
          "Approvals"
        ]
      }
    },
    "/v1/approvals/{id}/decide": {
      "post": {
        "description": "Needs the owner or operator role; viewers get 403. The decision is attributed to the caller, never to a name in the body. Approving (`approve: true`) takes a signed-in person: an API key cannot approve (403, audited as `rbac.deny`), and four eyes applies — the person who requested the check, or the person behind a request that was not a person's (`requested_for`: who started the run, or created the key or schedule that did), cannot approve it either (403, audited as `approval.refused`). Anyone with the role may decline (`approve: false`), an API key included: declined by the requester (or the person behind the request) it is `withdrawn` (audited `approval.withdraw`), by anyone else `denied` (`approval.deny`). An optional `reason` is kept on the approval and in the audit trail. 400 for an approval already decided.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "postApprovalsByIdDecide",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "approve": true,
                "reason": "Release freeze lifted; the target owner agreed to the window"
              },
              "schema": {
                "$ref": "#/components/schemas/DecideApprovalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Approval"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Approve, deny or withdraw an intrusive action",
        "tags": [
          "Approvals"
        ]
      }
    },
    "/v1/assets": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getAssets",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AssetView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List assets",
        "tags": [
          "Assets"
        ]
      },
      "post": {
        "description": "Returns the ownership challenge to publish: a DNS TXT record or a file under `/.well-known/`. Then call verify. A subdomain of a domain you already verified is registered as verified right away (`parent_domain`).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postAssets",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "kind": "domain",
                "method": "dns_txt",
                "value": "bank.example"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateAssetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateAssetResponse"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Register an asset",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/assets/{id}": {
      "delete": {
        "description": "For an address registered by mistake. A verified asset cannot be removed: rules of engagement and engagements refer to it.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "deleteAssetsById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Remove an asset that was never verified",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/assets/{id}/api-descriptions": {
      "post": {
        "description": "An OpenAPI 3 or Swagger 2 document (JSON or YAML), a Postman v2 collection or a GraphQL schema (SDL or introspection JSON) for a verified web asset. The scans start from its endpoints: the GET endpoints seed the ZAP baseline, katana, ffuf and Wapiti; an approved ZAP active scan imports the whole description with ZAP's OpenAPI, Postman and GraphQL add-ons. Only endpoints on hosts the asset covers are used. DELETE operations and GraphQL mutations are never sent. At most 10 per asset, 2 MB each.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postAssetsByIdApiDescriptions",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "document": "{\"openapi\":\"3.0.3\",\"info\":{\"title\":\"Accounts\",\"version\":\"2\"},\"servers\":[{\"url\":\"https://api.bank.example/v2\"}],\"paths\":{\"/accounts/{id}\":{\"get\":{}}}}",
                "name": "Accounts API v2"
              },
              "schema": {
                "$ref": "#/components/schemas/ApiDescriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIDescription"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Request Entity Too Large"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Upload an API description",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/assets/{id}/api-descriptions/{did}": {
      "delete": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "deleteAssetsByIdApiDescriptionsByDid",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "",
            "in": "path",
            "name": "did",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Delete an API description",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/assets/{id}/context": {
      "post": {
        "description": "Criticality (low, medium, high, crown_jewel) raises or lowers the priority of the asset's findings; the business owner is shown with them. Changes prioritization, never what is tested. Audited (`asset.context`).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postAssetsByIdContext",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "business_owner": "Head of Payments",
                "criticality": "crown_jewel"
              },
              "schema": {
                "$ref": "#/components/schemas/AssetContextRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Asset"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Set business criticality and owner",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/assets/{id}/discover": {
      "post": {
        "description": "Runs in the background (poll the discovery). Passive: certificate-transparency logs and DNS lookups only, never a connection to the hosts. Only for verified domain assets.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postAssetsByIdDiscover",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Discovery"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Discover a verified domain's hosts",
        "tags": [
          "Attack surface"
        ]
      }
    },
    "/v1/assets/{id}/frameworks": {
      "post": {
        "description": "Reports map the asset's findings only to these frameworks. Empty: the default (ISO 27001, NIST CSF, OWASP Top 10 and ASVS; GDPR for an EU asset (.eu or an EU/EEA country domain); SWIFT CSCF for a Swift-related one). Changes reporting, never what is tested. Audited (`asset.frameworks`).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postAssetsByIdFrameworks",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "frameworks": [
                  "ISO/IEC 27001:2022",
                  "PCI DSS v4.0"
                ]
              },
              "schema": {
                "$ref": "#/components/schemas/FrameworksRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FrameworksResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Set the compliance frameworks in scope",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/assets/{id}/identities/{slot}": {
      "delete": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteAssetsByIdIdentitiesBySlot",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "",
            "in": "path",
            "name": "slot",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Delete a scan identity",
        "tags": [
          "Assets"
        ]
      },
      "put": {
        "description": "How the web scanners sign in to a verified web asset: static headers or a bearer token (`headers`), an OAuth 2.0 client-credentials token endpoint (`oauth2_client_credentials`), a login form with an optional TOTP seed for multi-factor authentication (`form`), or a session cookie (`cookie`). Every address must be on the asset; credentials go only over HTTPS (plain HTTP only to the application's own plain-HTTP origin). Secrets are sealed with the server's secret key at once and never returned; a secret left out keeps its stored value, an empty string removes it. While signed in, scanners are kept away from logout and password-change pages, and the session is renewed when the logged-in check fails. Owners only.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "putAssetsByIdIdentitiesBySlot",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "",
            "in": "path",
            "name": "slot",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "kind": "form",
                "logged_in_text": "Sign out",
                "login_url": "https://online.bank.example/login",
                "name": "Retail customer A",
                "password_field": "password",
                "secrets": {
                  "password": "a-long-test-passphrase",
                  "totp_seed": "JBSWY3DPEHPK3PXP",
                  "username": "test.customer.a"
                },
                "totp_field": "otp",
                "url": "https://online.bank.example/accounts",
                "username_field": "username"
              },
              "schema": {
                "$ref": "#/components/schemas/IdentityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScanIdentity"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Set a scan identity (user a or b)",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/assets/{id}/identities/{slot}/test": {
      "post": {
        "description": "Signs in once now, through a scope gate of this asset alone at two requests a second, and runs the logged-in check. Returns success or failure, the requests made (addresses without query values, status codes) and the logout and password-change pages that scans will be kept away from. Never a secret. At most one test every 15 seconds per identity, so the test account is not locked out.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postAssetsByIdIdentitiesBySlotTest",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "",
            "in": "path",
            "name": "slot",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityTest"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Test sign-in",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/assets/{id}/surface": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postAssetsByIdSurface",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "weekly": true
              },
              "schema": {
                "$ref": "#/components/schemas/SurfaceScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Asset"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Weekly discovery on or off",
        "tags": [
          "Attack surface"
        ]
      }
    },
    "/v1/assets/{id}/swift": {
      "post": {
        "description": "Swift-related components are the secure zone, operator PCs, connectors and the platforms hosting them. Once an engagement includes a marked asset, its SWIFT CSCF gaps count only findings on marked assets. Changes reporting, never what is tested.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postAssetsByIdSwift",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "swift": true
              },
              "schema": {
                "$ref": "#/components/schemas/SwiftRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Asset"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Mark as Swift-related (or not)",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/assets/{id}/verify": {
      "post": {
        "description": "The asset becomes testable only when the state is `verified`.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postAssetsByIdVerify",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Asset"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Check the ownership proof now",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/billing": {
      "get": {
        "description": "The plan in effect and why, each limit against current usage, the premium modules, the subscription (status, next invoice date, grace period after a failed payment) and the plans on offer. With billing off (`enabled: false`) nothing is limited.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "getBilling",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingView"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Plan, limits and usage",
        "tags": [
          "Billing"
        ]
      }
    },
    "/v1/billing/checkout": {
      "post": {
        "description": "Returns the Checkout URL to send the browser to. The buyer gives their own email and payment details to Stripe; Echetleos never sees a card. The plan changes when Stripe confirms the payment (webhook). 409 while a subscription is live: change the plan under Manage billing.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postBillingCheckout",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "plan": "professional"
              },
              "schema": {
                "$ref": "#/components/schemas/CheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RedirectResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Upgrade: subscribe with Stripe Checkout",
        "tags": [
          "Billing"
        ]
      }
    },
    "/v1/billing/portal": {
      "post": {
        "description": "Payment methods, invoices, plan changes and cancellation, on Stripe's page. 409 before the first subscription.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postBillingPortal",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RedirectResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Manage billing: open the Stripe Customer Portal",
        "tags": [
          "Billing"
        ]
      }
    },
    "/v1/billing/webhook": {
      "post": {
        "description": "Called by Stripe, not by people. Public, but a request is applied only with a valid `Stripe-Signature: t=\u003cunix\u003e,v1=\u003chex\u003e`: an HMAC-SHA256 of `\u003ct\u003e.\u003craw body\u003e` with the endpoint's signing secret, timestamped within 5 minutes. Each event ID is applied once; a replay or a retry answers `duplicate`. Applied: `checkout.session.completed`, `customer.subscription.created`, `.updated`, `.deleted`, `invoice.payment_failed` (grace period, then the default plan; nothing is deleted) and `invoice.paid`. 400 for a missing or wrong signature; 500 when an event could not be applied, so Stripe retries it.\n\n**Access:** No credentials.",
        "operationId": "postBillingWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "A Stripe event, exactly as Stripe sent it: the signature covers the raw bytes",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StripeWebhookResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Request Entity Too Large"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [],
        "summary": "Stripe webhook (public, signature-verified)",
        "tags": [
          "Billing"
        ]
      }
    },
    "/v1/clients": {
      "get": {
        "description": "Each client with your access, its latest risk grade and open findings, running assessments, pending approvals and next scheduled run. Your organization ID (`provider_id`) is what clients enter to grant you access.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getClients",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientsResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Provider console: all clients",
        "tags": [
          "Managed service providers"
        ]
      },
      "post": {
        "description": "Creates the organization with your access (operator or viewer) and returns a one-time owner invite link to send to the client. You never learn the client's API key or its owner's password.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postClients",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "Bank Example S.A.",
                "owner_email": "ciso@bank.example",
                "role": "operator"
              },
              "schema": {
                "$ref": "#/components/schemas/OnboardClientRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardResponse"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Onboard a client organization",
        "tags": [
          "Managed service providers"
        ]
      }
    },
    "/v1/clients/{id}": {
      "delete": {
        "description": "`{id}` is the delegation ID. The client organization and its data stay with the client.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteClientsById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Delegation"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "End your access to a client",
        "tags": [
          "Managed service providers"
        ]
      }
    },
    "/v1/clients/{id}/billing": {
      "post": {
        "description": "`{id}` is the delegation ID. While you pay, a client without its own subscription has your plan; its limits count the client organization's own usage, not pooled with yours. Needs your plan's provider-console module (402) and active access to the client; when the access is revoked, the client falls back to its own plan.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postClientsByIdBilling",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "billed": true
              },
              "schema": {
                "$ref": "#/components/schemas/ClientBillingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientBillingResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Pay for a client's plan",
        "tags": [
          "Managed service providers"
        ]
      }
    },
    "/v1/clients/{id}/invite": {
      "post": {
        "description": "Only while the client has no owner yet; earlier owner links stop working. `{id}` is the delegation ID.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postClientsByIdInvite",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "email": "ciso@bank.example",
                "role": "owner"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateInviteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteResponse"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "New owner invite for a client you created",
        "tags": [
          "Managed service providers"
        ]
      }
    },
    "/v1/cloud": {
      "get": {
        "description": "Each account with its latest finished scan: findings by severity, affected resources, and the PCI DSS, ISO 27001, NIST CSF, SWIFT CSCF and CIS controls they touch.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getCloud",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloudResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Cloud accounts and their latest findings",
        "tags": [
          "Cloud posture"
        ]
      },
      "post": {
        "description": "AWS: an access key of a dedicated IAM user with the SecurityAudit policy. Azure: an app registration with Reader (and Security Reader). GCP: a service-account key with Viewer and Security Reviewer. The credential is sealed and never returned.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postCloud",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "aws": {
                  "access_key_id": "AKIAIOSFODNN7EXAMPLE",
                  "secret_access_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
                },
                "name": "Production AWS",
                "provider": "aws",
                "scope": [
                  "eu-central-1",
                  "eu-west-1"
                ]
              },
              "schema": {
                "$ref": "#/components/schemas/ConnectCloudRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloudAccount"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Connect a cloud account (read-only)",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/v1/cloud/federation": {
      "get": {
        "description": "Echetleos is an OpenID Connect identity provider. A cloud that trusts it (an AWS role with web identity, an Azure federated credential, Google workload identity federation) gives a scan short-lived read-only credentials for a five-minute token signed here, so no key is stored. This returns the issuer, this organization's subject (each organization has its own, so a role trusts one organization only), the setup steps, and CloudFormation templates for one AWS account and for every account of an organization.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getCloudFederation",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FederationSetup"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Keyless access: what your cloud trusts",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/v1/cloud/scans": {
      "get": {
        "description": "Newest first, without the findings.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getCloudScans",
        "parameters": [
          {
            "description": "Only this account's scans.",
            "in": "query",
            "name": "account",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CloudScan"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Scan history",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/v1/cloud/scans/{id}": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getCloudScansById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloudScan"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "One scan, with its findings",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/v1/cloud/{id}": {
      "delete": {
        "description": "Deletes the sealed credential. Past scans are kept.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteCloudById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Remove a cloud account",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/v1/cloud/{id}/credentials": {
      "post": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postCloudByIdCredentials",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "aws": {
                  "access_key_id": "AKIAI44QH8DHBEXAMPLE",
                  "secret_access_key": "je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY"
                }
              },
              "schema": {
                "$ref": "#/components/schemas/ConnectCloudRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloudAccount"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Replace the credential",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/v1/cloud/{id}/inventory/assets": {
      "post": {
        "description": "Each scan lists what the account exposes to the internet (its inventory, on the scan). An endpoint the account holds is proven without a DNS record or file: a static public IP (Elastic IP, Azure static address, Google reserved address), a load balancer, CDN or App Service name the provider assigned, or a DNS zone the public delegation points to. Addresses assigned per instance and custom names are listed but prove nothing. A cloud-proven asset stays verified while scans of the account keep listing it, and lapses 7 days after the last one that did. Audited (asset.create).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postCloudByIdInventoryAssets",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "values": [
                  "203.0.113.10",
                  "web-123.eu-central-1.elb.amazonaws.com"
                ]
              },
              "schema": {
                "$ref": "#/components/schemas/InventoryAssetsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryAssetsResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Add cloud endpoints as verified assets",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/v1/cloud/{id}/prowler": {
      "post": {
        "description": "Prowler (open source, Apache-2.0) adds several hundred checks per cloud. It calls the cloud itself, outside the read-only guard, so it only ever gets a credential that cannot write: on AWS a session AWS limits with session policies to SecurityAudit, ViewOnlyAccess and a list of reads (a stored access key instead has its IAM policies read first, and must only read); on Google Cloud an access token whose only scope is cloud-platform.read-only (with keyless access, a service account's token); on Azure (client secret only) after every role the app holds and its Microsoft Graph permissions were read and found to be reads. Otherwise the scan records why Prowler did not run. Its options that change anything or send results elsewhere are never passed. Audited (cloud.prowler_setting; each run: cloud.prowler).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postCloudByIdProwler",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "enabled": true
              },
              "schema": {
                "$ref": "#/components/schemas/ProwlerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloudAccount"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Add Prowler's checks to scans",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/v1/cloud/{id}/scan": {
      "post": {
        "description": "Runs in the background (poll the scan, or subscribe to the `cloud.completed` webhook).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postCloudByIdScan",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CloudScan"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Review the account now",
        "tags": [
          "Cloud posture"
        ]
      }
    },
    "/v1/code/connections": {
      "get": {
        "description": "The organization's code connections (never their tokens), through which repositories are read for code engagements.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getCodeConnections",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CodeConnectionView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "GitHub and GitLab connections",
        "tags": [
          "Assets"
        ]
      },
      "post": {
        "description": "The token is checked (it must work) and stored sealed; it is never returned. GitHub: a fine-grained personal access token with read access to Contents and Metadata of the repositories to scan. GitLab: a group or project access token with read_api and read_repository. Audited (code.connect).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postCodeConnections",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "Acme GitHub",
                "provider": "github",
                "token": "github_pat_…"
              },
              "schema": {
                "$ref": "#/components/schemas/CodeConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeConnectionView"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Connect GitHub or GitLab with a read-only token",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/code/connections/{id}": {
      "delete": {
        "description": "Repositories added through it stay as assets but cannot be scanned until added through another connection. Audited (code.disconnect).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteCodeConnectionsById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Remove a code connection",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/code/connections/{id}/pr-checks": {
      "post": {
        "description": "Turns pull (merge) request checks on or off for the connection's repositories and returns the webhook to configure in GitHub or GitLab: its URL, its secret (shown when created or rotated) and the setup steps. Each request opened or updated is read at its head commit and at the commit it branched from, nothing in it is run, and the head commit gets a status that fails only on issues the request adds at or above fail_on. Turning the checks on is the authorization of each check (no Rules of Engagement apply: nothing is tested over the network). Audited (code.pr_checks).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postCodeConnectionsByIdPrChecks",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "enabled": true,
                "fail_on": "high"
              },
              "schema": {
                "$ref": "#/components/schemas/PrChecksRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrChecksResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Check pull requests",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/code/connections/{id}/repos": {
      "get": {
        "description": "Up to 300, most recently changed first, to add as assets (POST /v1/assets with kind repo and the connection).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "getCodeConnectionsByIdRepos",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Repo"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Repositories a connection can read",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/code/hooks/{tenant}/{id}": {
      "post": {
        "description": "Called by GitHub (`X-Hub-Signature-256`: HMAC-SHA256 of the body with the webhook secret) or GitLab (`X-Gitlab-Token`: the secret). A pull_request event (opened, synchronize, reopened, ready_for_review) or Merge Request Hook (open, reopen, update) on a repository added through the connection starts a check; a commit is checked once. GitHub's ping is answered.\n\n**Access:** No credentials.",
        "operationId": "postCodeHooksByTenantById",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "tenant",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrHookAccepted"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Request Entity Too Large"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [],
        "summary": "GitHub or GitLab: a pull request was opened or updated",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/compliance/frameworks": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getComplianceFrameworks",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Compliance frameworks an asset can have in scope",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/deploy/{id}": {
      "post": {
        "description": "Call from the pipeline after deploying. The body is optional. Poll `status_url` for the verdict. HTTP 409 when the previous run of this hook is still going, outside the RoE window, or after it expired.\n\n**Access:** The deploy hook's token (Authorization: Bearer).",
        "operationId": "postDeployById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "environment": "production",
                "pipeline_url": "https://ci.bank.example/pipelines/4711",
                "ref": "v2.14.0"
              },
              "schema": {
                "$ref": "#/components/schemas/DeployInfo"
              }
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployAcceptedResponse"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployBusyResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "hookToken": []
          }
        ],
        "summary": "CI: assess this deployment",
        "tags": [
          "Deploy hooks"
        ]
      }
    },
    "/v1/deploy/{id}/runs/{eng}": {
      "get": {
        "description": "`verdict` is `pending` until the run ends, then `pass`, `fail` or `error`. Fail the pipeline on `fail`.\n\n**Access:** The deploy hook's token (Authorization: Bearer).",
        "operationId": "getDeployByIdRunsByEng",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the deploy run (an engagement).",
            "in": "path",
            "name": "eng",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GateResult"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "hookToken": []
          }
        ],
        "summary": "CI: gate verdict",
        "tags": [
          "Deploy hooks"
        ]
      }
    },
    "/v1/deploy/{id}/runs/{eng}/sarif": {
      "post": {
        "description": "Upload `semgrep --sarif` (or any SARIF 2.1.0) for the commit being deployed, after starting the run and before polling the verdict: the code findings join the run, so the gate fails on serious issues in the code and in the running application alike.\n\n**Access:** The deploy hook's token (Authorization: Bearer).",
        "operationId": "postDeployByIdRunsByEngSarif",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the deploy run (an engagement).",
            "in": "path",
            "name": "eng",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/sarif+json": {
              "schema": {
                "description": "SARIF 2.1.0 log",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Summary"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Request Entity Too Large"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "hookToken": []
          }
        ],
        "summary": "CI: attach code-scan results (SARIF)",
        "tags": [
          "Deploy hooks"
        ]
      }
    },
    "/v1/discoveries": {
      "get": {
        "description": "Newest first, without the host lists.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getDiscoveries",
        "parameters": [
          {
            "description": "Only this domain asset's discoveries.",
            "in": "query",
            "name": "asset",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Discovery"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Discovery history",
        "tags": [
          "Attack surface"
        ]
      }
    },
    "/v1/discoveries/{id}": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getDiscoveriesById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Discovery"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "One discovery, with its hosts",
        "tags": [
          "Attack surface"
        ]
      }
    },
    "/v1/egress": {
      "get": {
        "description": "The public addresses the service's scans of internet-facing assets come from, to allowlist in a WAF or IPS (or deliberately not).\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEgress",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EgressResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Where scans come from",
        "tags": [
          "System"
        ]
      }
    },
    "/v1/engagements": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagements",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Engagement"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List engagements",
        "tags": [
          "Engagements"
        ]
      },
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postEngagements",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "asset_ids": [
                  "ast_7f3c9a1d2e4b6f80a1c2"
                ],
                "mode": "deterministic",
                "name": "Internet banking — monthly",
                "roe_id": "roe_3b8e1f0c9d2a7e64b5f1"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateEngagementRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Engagement"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Create an engagement",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Engagement"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Get an engagement",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/approvals": {
      "post": {
        "description": "Asks to run one intrusive module (Nikto, Wapiti, ZAP active scan, sqlmap detection, ffuf, dalfox) against one in-scope target. Refused unless the RoE permits intrusive actions, the module is installed and the target passes the scope gate. It runs only after someone approves it.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postEngagementsByIdApprovals",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "rationale": "Server misconfiguration check before the release",
                "target": "https://app.bank.example/",
                "tool": "nikto_scan"
              },
              "schema": {
                "$ref": "#/components/schemas/RequestApprovalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Approval"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Request an approval-gated scan",
        "tags": [
          "Approvals"
        ]
      }
    },
    "/v1/engagements/{id}/ask": {
      "post": {
        "description": "Answers from this engagement's findings and their compliance mapping, assets, Rules of Engagement, risk trend and previous run, retest results and audit summary. The response is `text/event-stream`: `start` (`{engagement_id, context}`: what was sent to the model), then `delta` events (`{text}`, Markdown) as the answer is written, then one of `done` (`{finish, provider, model, input_tokens, output_tokens}`; `finish` is `stop`, `max_tokens` or `length`), `refused` or `withheld` (`{message}`: discard the partial answer) or `error` (`{error}`). Comment lines keep the connection open while the model thinks. Closing the connection stops the answer and the model request. By default a person may ask 6 questions a minute and 60 an hour, an organization 20 and 300, with one answer at a time per person (429 with `Retry-After` beyond that). Each question is audited (`chat.ask`: who and which engagement; the text only if the server is configured to keep it). 503 when no language model is configured (AI: off).\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "postEngagementsByIdAsk",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "question": "What should we fix first?"
              },
              "schema": {
                "$ref": "#/components/schemas/AskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Ask about an engagement (streamed answer)",
        "tags": [
          "Ask Echetleos"
        ]
      }
    },
    "/v1/engagements/{id}/compliance": {
      "get": {
        "description": "PCI DSS 4.0, ISO 27001, NIST CSF 2.0, DORA, SWIFT CSCF v2026, OWASP Top 10 and ASVS requirements affected by the findings, plus the MITRE ATT\u0026CK techniques they would enable. SWIFT CSCF requirements carry `level` (`mandatory` or `advisory`) and the framework its `mandatory_gaps`.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdCompliance",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComplianceSummary"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Compliance gap view",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/console": {
      "get": {
        "description": "Read-only. Each command a tool starts and its output, each check as it starts and ends, every audit event of the run and each new finding, with secrets masked. Ask again with after set to next to get only new lines. Lines are kept on the instance running the engagement for two hours after its last line; live is false when this instance has none (the audit trail and findings remain the record).\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdConsole",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Return only lines after this sequence number (the previous response's next).",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsoleResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Live console: what the run is doing, line by line",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/events": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdEvents",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuditEvent"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Audit trail of an engagement",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/findings": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdFindings",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Finding"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Findings of an engagement",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/findings/{fid}/ticket": {
      "post": {
        "description": "Idempotent: 201 when a ticket was created, 200 with the existing one otherwise. 409 for a finding verified fixed, 502 when Jira/ServiceNow refused. For an integration relayed by a runner: 202 with the queued request (`queued`, `task`); the runner files it on its next check-in.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postEngagementsByIdFindingsByFidTicket",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the finding.",
            "in": "path",
            "name": "fid",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "integration_id": "tkt_5c1e9b0a3f7d2c48e6a9"
              },
              "schema": {
                "$ref": "#/components/schemas/FileTicketRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileTicketResponse"
                }
              }
            },
            "description": "Already filed: the existing ticket"
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileTicketResponse"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "File a finding",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/engagements/{id}/kill": {
      "post": {
        "description": "Anyone in the organization may stop a run, viewers included: stopping is always safe. A running engagement is aborted, and its approved checks still running stop. On an engagement whose run has already ended, its record is left as it is and only its approved checks still running stop; each reads `stopped by \u003cwho\u003e (kill switch)`. Audited as `killswitch` with the caller as actor.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "postEngagementsByIdKill",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Engagement"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Kill switch: stop immediately",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/report": {
      "get": {
        "description": "Summary, findings, compliance mapping and audit trail in one document. Two moments are told apart: AS FOUND when the run ended — `summary` (`summary_as_of`) and `risk_found`, frozen — and NOW — `executive` (`executive_as_of`) and `risk_now`, from the findings' current states, so fixes verified, risks accepted and false positives marked since count there only. `provisional` is set while approved checks are still running (`tested.running`; each such check has `running: true`).\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdReport",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Full report as JSON",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/report-masks": {
      "post": {
        "description": "Paths (e.g. /private-admin) the report and its PDF show as /masked-path wherever they appear, HTML-escaped or URL-encoded too. A WordPress login page moved away from /wp-login.php is masked as /login-redacted without asking. The stored evidence is not changed. At most 20 paths. Audited (`report.masks`).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postEngagementsByIdReportMasks",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "paths": [
                  "/private-admin"
                ]
              },
              "schema": {
                "$ref": "#/components/schemas/ReportMasksRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportMasksResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Paths to mask in the report",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/report.html": {
      "get": {
        "description": "Self-contained HTML, printable to PDF. Each export is a version of the report: the latest version when the content is unchanged, otherwise a new one (numbered per engagement, stored as issued, audited as `report.issue`). The report states its version, when and by whom it was issued, and the SHA-256 of its content (the document without its version line); `X-Echetleos-Report-Version` and `X-Echetleos-Report-Sha256` say the same. A version issued while approved checks are still running is provisional: the document says \"N approved check(s) still running: results may change\", and the version records `provisional` and `checks_running`.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdReportHtml",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` to download as a file.",
            "in": "query",
            "name": "download",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Auditor-ready report (HTML)",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/report.pdf": {
      "get": {
        "description": "The HTML report printed to an A4 PDF on the server, with page numbers: the same version as report.html. Every export is audited (report.export). 503 when the server has no Chromium to print with.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdReportPdf",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Auditor-ready report (PDF)",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/reports": {
      "get": {
        "description": "Every version of the report issued so far, oldest first, without the documents: number, `sha256` (of the content, as printed in the report), `file_sha256` (of the issued HTML file: check a copy with sha256sum), when and by whom it was issued, and the engagement's state then. Versions are never changed or deleted.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdReports",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ReportVersion"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Issued report versions",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/reports/{version}": {
      "get": {
        "description": "The version's HTML document exactly as it was issued, or printed to PDF. Audited (report.export).\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdReportsByVersion",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "",
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`pdf` to print it to PDF (503 without Chromium).",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` to download the HTML as a file.",
            "in": "query",
            "name": "download",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "One issued report version",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/retest": {
      "post": {
        "description": "Re-runs only the modules that produced open findings and marks each one fixed or still open (`retest.verified` webhook). An approval-gated module (pentest level) that the rules permit is queued for approval again, only on the assets where it found something; verification waits until each approval is decided and its run has ended (`retest.awaiting_approvals` on the engagement). A denied, withdrawn, failed or partial (stopped at its time limit) check leaves its findings \"not re-checked\", never fixed. 409 while a retest of the same original is still running, as for a run started again.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postEngagementsByIdRetest",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Engagement"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Retest the open findings",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/sarif": {
      "post": {
        "description": "Adds the results of Semgrep, CodeQL, Trivy, gitleaks, Checkov or any SARIF 2.1.0 producer to the engagement, one finding per rule and file. The code is scanned in your pipeline; only results are uploaded. Up to 4 MB, 500 findings.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postEngagementsByIdSarif",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/sarif+json": {
              "schema": {
                "description": "SARIF 2.1.0 log",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Summary"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Request Entity Too Large"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Import code-scan results (SARIF)",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/sbom": {
      "post": {
        "description": "Send the SBOM of an application or a container image (CycloneDX or SPDX JSON, up to 20 MB, as Syft, Trivy, GitHub or your build writes it) as the request body. Packages are identified by package URL and matched on this service against OSV.dev data for npm, PyPI, Go, Maven, crates.io, NuGet and RubyGems, and, for images, Debian, Ubuntu, Alpine and Red Hat-family packages; nothing about your software is sent to a third party. Vulnerable packages (with the fixed version) and malicious packages become findings of the engagement. 503 with Retry-After while an ecosystem's data is prepared on first use. Audited (sbom.import).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postEngagementsByIdSbom",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "description": "A software bill of materials: CycloneDX or SPDX JSON, e.g. from Syft or Trivy",
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SbomResult"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Request Entity Too Large"
          },
          "501": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Implemented"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Import a software bill of materials (CycloneDX or SPDX)",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/start": {
      "post": {
        "description": "Runs in the background; poll the engagement or subscribe to the `engagement.completed` webhook. An engagement that has already run (completed or aborted) keeps its record as it is: starting it again creates its next run, a new engagement with the same assets, rules, mode, checks and request (a retest's: a new retest of the same original), linked by `run_of` (the first run) and numbered `run`, and returns that engagement, with its address in `Location` (`rerun_from` names the run it was started from, whose approval-gated checks it asks for again: each still needs approval). 409 while another run of it is in progress. A run whose own checks have finished stays `running` while approved checks of it are still running, and ends (scored, `engagement.completed`) when the last of them ends; its `risk` is then frozen as found.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postEngagementsByIdStart",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Engagement"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Start (or re-run) an engagement",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/engagements/{id}/tickets": {
      "get": {
        "description": "Keyed by finding ID. A ticket filed in an earlier run shows on the same issue found again.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdTickets",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngagementTicketsResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Tickets of each finding",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/engagements/{id}/trend": {
      "get": {
        "description": "Risk score of each comparable run (same assets), with new and resolved issues. Each run is shown as it was found: its score frozen when it ended, and only the findings it had then. `level` is the level the run actually tested (the highest among the checks that completed) and `authorized` its rules' level: a run that tested less scores lower without anything being fixed.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEngagementsByIdTrend",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrendResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Risk score across runs",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/events": {
      "get": {
        "description": "Newest first. Every action, refusal and approval, attributed to a person or the API key. Filters combine (all must match); with none, the whole trail. `format=csv` exports the same rows as a CSV file (columns id, time, actor, action, allowed, engagement_id, target, detail; a cell that a spreadsheet would read as a formula is prefixed with `'`); each CSV export is itself audited (`audit.export`). 400 for a filter that cannot be read. Reading the trail never changes it.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getEvents",
        "parameters": [
          {
            "description": "Only this actor, exactly: `user:ana@bank.example` (or just the address), `api_key:ci`, `engine`, `scheduler:sch_…`.",
            "in": "query",
            "name": "actor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only actions starting with this: `approval.` for every approval event, `rbac.deny`, `killswitch`.",
            "in": "query",
            "name": "action",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only this engagement's events.",
            "in": "query",
            "name": "engagement",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only events at or after this: a date (YYYY-MM-DD, UTC, from its start) or an RFC 3339 time.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only events at or before this: a date (YYYY-MM-DD, UTC, to its end) or an RFC 3339 time.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only events whose target or detail contains this text (case-insensitive).",
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`true`: only what was allowed; `false`: only refusals.",
            "in": "query",
            "name": "allowed",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "At most this many events (the newest), 1 to 100000.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`json` (default) or `csv`.",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AuditEvent"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Organization-wide audit trail",
        "tags": [
          "Audit"
        ]
      }
    },
    "/v1/hooks": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getHooks",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/DeployHook"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List deploy hooks",
        "tags": [
          "Deploy hooks"
        ]
      },
      "post": {
        "description": "The hook fixes what is tested (verified assets under an RoE). Its token, shown once, can only start a run and read the verdict; it can never widen scope.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postHooks",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "asset_ids": [
                  "ast_7f3c9a1d2e4b6f80a1c2"
                ],
                "fail_on": "high",
                "name": "Internet banking — production",
                "only_new": true,
                "roe_id": "roe_3b8e1f0c9d2a7e64b5f1"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateHookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HookSecretResponse"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Create a deploy hook",
        "tags": [
          "Deploy hooks"
        ]
      }
    },
    "/v1/hooks/{id}/disable": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postHooksByIdDisable",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployHook"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Disable a hook",
        "tags": [
          "Deploy hooks"
        ]
      }
    },
    "/v1/hooks/{id}/enable": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postHooksByIdEnable",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployHook"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Enable a hook",
        "tags": [
          "Deploy hooks"
        ]
      }
    },
    "/v1/hooks/{id}/rotate": {
      "post": {
        "description": "The old token stops working at once.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postHooksByIdRotate",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HookSecretResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Rotate the hook token",
        "tags": [
          "Deploy hooks"
        ]
      }
    },
    "/v1/identities": {
      "get": {
        "description": "The test accounts the web scanners sign in with, per web asset: user A (the one the scans use) and user B (kept for access-control comparison). Secrets are never returned: `secrets_set` names which are stored.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getIdentities",
        "parameters": [
          {
            "description": "Only this asset's identities.",
            "in": "query",
            "name": "asset",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ScanIdentity"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Scan identities",
        "tags": [
          "Assets"
        ]
      }
    },
    "/v1/intel": {
      "get": {
        "description": "The CISA KEV catalog and FIRST EPSS scores this server ranks with: version, when they were downloaded, how many entries.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getIntel",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/IntelFeedStatus"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Exploit-intelligence feeds",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/invites": {
      "get": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "getInvites",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Invite"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List invites",
        "tags": [
          "Organization"
        ]
      },
      "post": {
        "description": "Returns a one-time link (valid 7 days). The person sets their own password; nobody else ever knows it.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postInvites",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "email": "eleni@bank.example",
                "role": "operator"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateInviteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteResponse"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Invite a person",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/invites/accept": {
      "post": {
        "description": "Creates the account with the chosen password and returns a session. The link then stops working. Where the organization requires two-factor sign-in, the reply is `two_factor: enroll` with a challenge instead of a session, as for a sign-in.\n\n**Access:** No credentials.",
        "operationId": "postInvitesAccept",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "Eleni Georgiou",
                "password": "a-long-unique-passphrase",
                "token": "inv_…"
              },
              "schema": {
                "$ref": "#/components/schemas/AcceptInviteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [],
        "summary": "Accept an invite and sign in",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/invites/lookup": {
      "post": {
        "description": "**Access:** No credentials.",
        "operationId": "postInvitesLookup",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "token": "inv_…"
              },
              "schema": {
                "$ref": "#/components/schemas/InviteTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InviteInfoResponse"
                }
              }
            },
            "description": "OK"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [],
        "summary": "Read an invite (before accepting)",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/invites/{id}": {
      "delete": {
        "description": "The link stops working at once and no longer holds a seat. 409 once the person has joined: deactivate them instead. Audited (`invite.revoke`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteInvitesById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invite"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Revoke an invite",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/login": {
      "post": {
        "description": "Returns a session token for `Authorization: Bearer` — or, for someone with two-factor sign-in, no session but `two_factor: code` and a `challenge`: send it with the authenticator's code to `POST /v1/login/two-factor`. Where the organization requires two-factor sign-in and the person has none yet, `two_factor: enroll`: set it up with `POST /v1/login/two-factor/setup` first. The challenge is signed, lasts 5 minutes (15 to set up) and is redeemed once. Repeated failures lock the email and address for 15 minutes (HTTP 429 with Retry-After). If the organization requires single sign-on, people other than owners get HTTP 403 with `sso_slug`. 503 for someone with two-factor sign-in while the server has no `ECHETLEOS_SECRET_KEY`.\n\n**Access:** No credentials.",
        "operationId": "postLogin",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "email": "ana@bank.example",
                "password": "correct horse battery staple"
              },
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoRequiredResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [],
        "summary": "Sign in with email and password",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/login/two-factor": {
      "post": {
        "description": "Trades the sign-in's `challenge` and a 6-digit code from the authenticator app — or one of the recovery codes, each usable once — for the session (and the device token). Each code is accepted once. A wrong code counts like a wrong password, and against the person: five per 15 minutes lock further codes (HTTP 429 with Retry-After). For `two_factor: enroll`, the first code confirms the setup and the reply also carries ten recovery codes, shown only then.\n\n**Access:** No credentials.",
        "operationId": "postLoginTwoFactor",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "challenge": "tfa1.…",
                "code": "492039"
              },
              "schema": {
                "$ref": "#/components/schemas/TwoFactorLoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [],
        "summary": "Sign in: the second step",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/login/two-factor/setup": {
      "post": {
        "description": "For `two_factor: enroll`: returns a new authenticator secret, its `otpauth://` URI and a QR code to scan. Then send the first code to `POST /v1/login/two-factor`.\n\n**Access:** No credentials.",
        "operationId": "postLoginTwoFactorSetup",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "challenge": "tfa1.…"
              },
              "schema": {
                "$ref": "#/components/schemas/TwoFactorChallengeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorSetupResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [],
        "summary": "Sign in: set up two-factor sign-in the organization requires",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/logout": {
      "post": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "postLogout",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "End the current session",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/me": {
      "get": {
        "description": "A signed-in person (`kind: user`) or an API key (`kind: api_key`, with its `scope` and, for a named key, `key_name`).\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getMe",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Who am I",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/me/two-factor": {
      "get": {
        "description": "Whether it is on, how many recovery codes are left, and whether the organization requires it. For people only (403 for an API key).\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getMeTwoFactor",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorStatus"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Your two-factor sign-in",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/me/two-factor/disable": {
      "post": {
        "description": "Needs a current code (or a recovery code). 409 while the organization requires two-factor sign-in: an owner can reset it instead. Audited.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "postMeTwoFactorDisable",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "code": "492039"
              },
              "schema": {
                "$ref": "#/components/schemas/TwoFactorCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorStatus"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Turn off two-factor sign-in",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/me/two-factor/enable": {
      "post": {
        "description": "Confirms the setup with a first code and returns ten one-time recovery codes, shown only now and stored as hashes. Wrong codes are throttled (429). Audited.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "postMeTwoFactorEnable",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "code": "492039"
              },
              "schema": {
                "$ref": "#/components/schemas/TwoFactorCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryCodesResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Turn on two-factor sign-in",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/me/two-factor/recovery-codes": {
      "post": {
        "description": "Needs a current code. Returns ten new codes, shown only now; the earlier ones stop working. Audited.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "postMeTwoFactorRecoveryCodes",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "code": "492039"
              },
              "schema": {
                "$ref": "#/components/schemas/TwoFactorCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryCodesResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Replace your recovery codes",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/me/two-factor/setup": {
      "post": {
        "description": "Returns a new authenticator secret (sealed with the server's key when stored), its `otpauth://` URI and a QR code. Nothing changes until the first code confirms it (`/enable`). Password sign-in only: people who sign in through the identity provider get 400. 503 without `ECHETLEOS_SECRET_KEY`.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "postMeTwoFactorSetup",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorSetupResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Start setting up two-factor sign-in",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/openapi.json": {
      "get": {
        "description": "**Access:** No credentials.",
        "operationId": "getOpenapiJson",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          }
        },
        "security": [],
        "summary": "This API as OpenAPI 3.1",
        "tags": [
          "System"
        ]
      }
    },
    "/v1/org": {
      "get": {
        "description": "When a provider works inside a client (`X-Echetleos-Tenant`), this is the client.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getOrg",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Your organization",
        "tags": [
          "Organization"
        ]
      },
      "put": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "putOrg",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "provider": true
              },
              "schema": {
                "$ref": "#/components/schemas/UpdateOrgRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Rename, or act as a managed service provider",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/org/ai": {
      "get": {
        "description": "Which model the AI operator and Ask Echetleos use, the models the server's endpoint serves, and whether the organization turned the language model off.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getOrgAi",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiModelView"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "The organization's language model",
        "tags": [
          "Organization"
        ]
      },
      "put": {
        "description": "An owner picks one of the models the server's endpoint serves (empty for the server's default), or turns the language model off. The next run uses it; runs in progress keep theirs. Every change is audited.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "putOrgAi",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "model": "qwen2.5:7b"
              },
              "schema": {
                "$ref": "#/components/schemas/AiModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiModelView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Gateway"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Choose the organization's language model, or turn it off",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/org/ai/test": {
      "post": {
        "description": "Sends the model one short planning task, the kind the AI operator gives it on every step, and reports whether it called the tool and how long it took. Audited.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postOrgAiTest",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "model": "qwen2.5:7b"
              },
              "schema": {
                "$ref": "#/components/schemas/AiTestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiTestResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Try a model on one tool-use step",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/org/api-key": {
      "post": {
        "description": "Returns a new key once; the previous key stops working immediately. By a signed-in owner or with the key itself; a named key gets 403.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postOrgApiKey",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Rotate the organization's API key",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/org/settings": {
      "get": {
        "description": "Whether attack-surface discovery may send your verified domain names to third-party subdomain sources (passive DNS databases, web archives), which sources that means, with the hosts contacted, and which of your own API keys are stored. Off by default.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getOrgSettings",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgSettingsResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Organization settings: third-party subdomain sources",
        "tags": [
          "Organization"
        ]
      },
      "put": {
        "description": "Only an owner can change it, and every change is in the audit trail with the sources it names. Keys for keyed sources are sealed with the server's secret key and never returned; a keyed source is used only while the opt-in is on and its key is set.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "putOrgSettings",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "source_keys": {
                  "securitytrails": "your-securitytrails-api-key"
                },
                "third_party_sources": true
              },
              "schema": {
                "$ref": "#/components/schemas/OrgSettingsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgSettingsResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Opt in to or out of third-party subdomain sources",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/org/sla": {
      "get": {
        "description": "Days to fix a finding, by severity, counted from detection; and whether CISA's KEV due dates apply. Defaults: critical 15, high 30, medium 90, low 180, KEV due dates on.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getOrgSla",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SlaResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Remediation SLA policy",
        "tags": [
          "Organization"
        ]
      },
      "put": {
        "description": "Owner only. Open issues are re-dated at once; overdue issues are flagged and notified (`finding.overdue` webhook). Audited (`org.sla`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "putOrgSla",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "critical_days": 15,
                "high_days": 30,
                "kev_due_dates": true,
                "low_days": 180,
                "medium_days": 90
              },
              "schema": {
                "$ref": "#/components/schemas/SlaRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SlaResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Set the remediation SLA policy",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/org/two-factor": {
      "get": {
        "description": "Whether everyone who signs in with a password must use a second factor, and how many of them have it on.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getOrgTwoFactor",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgTwoFactorView"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Two-factor sign-in requirement",
        "tags": [
          "Organization"
        ]
      },
      "put": {
        "description": "With `required: true`, people who sign in with a password and have no second factor set one up at their next sign-in before they get a session (sessions already open run out normally). Single sign-on is left to the identity provider. An owner who signs in with a password turns on their own first (409). 503 without `ECHETLEOS_SECRET_KEY`. Audited (`org.two_factor`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "putOrgTwoFactor",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "required": true
              },
              "schema": {
                "$ref": "#/components/schemas/OrgTwoFactorRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgTwoFactorView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Require two-factor sign-in",
        "tags": [
          "Organization"
        ]
      }
    },
    "/v1/overview": {
      "get": {
        "description": "One answer for the organization. Each verified asset with its current risk (the report's formula over its open issues as they stand now, retest verdicts and lifecycle decisions included) and the grade in words; its open issues by severity and the three to fix first (by priority, then due date); what changed at its latest test (a retest's fix verification, or the latest test compared with the previous comparable one); its latest engagement and report; and its next scheduled run. Then the organization's totals: open issues by severity, overdue issues, risk acceptances and approvals waiting, sites never tested or not tested for 90 days, and its posture in the report's words. Read-only.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getOverview",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OverviewResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Overview: how each site stands and what to fix first",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/providers": {
      "get": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "getProviders",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Delegation"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Client: providers with access",
        "tags": [
          "Managed service providers"
        ]
      },
      "post": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postProviders",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "provider_id": "ten_8d2f6a1c0e9b7d35f4a2",
                "role": "operator"
              },
              "schema": {
                "$ref": "#/components/schemas/GrantProviderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Delegation"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Client: grant a provider access",
        "tags": [
          "Managed service providers"
        ]
      }
    },
    "/v1/providers/{id}": {
      "delete": {
        "description": "Takes effect on the provider's very next request.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteProvidersById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Delegation"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Client: revoke a provider's access",
        "tags": [
          "Managed service providers"
        ]
      }
    },
    "/v1/providers/{id}/role": {
      "post": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postProvidersByIdRole",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "role": "viewer"
              },
              "schema": {
                "$ref": "#/components/schemas/ProviderRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Delegation"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Client: change a provider's role",
        "tags": [
          "Managed service providers"
        ]
      }
    },
    "/v1/public-checks": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getPublicChecks",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicCheck"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Public checks, newest first",
        "tags": [
          "Public checks"
        ]
      },
      "post": {
        "description": "Like a public TLS or header checker, for a site the organization has not verified as its own: DNS records, email security records (SPF, DMARC, MTA-STS), the TLS configuration and the home page's security headers. Nothing else is sent: one host name, only public addresses, one request per second, a few minutes at most. The result stays on the check: it never enters the organization's findings, remediation, tickets, compliance or risk. 30 checks a day per organization, 3 at once; a host checked in the last 10 minutes returns that check (200). Audited (public_check.start).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postPublicChecks",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "host": "example.com"
              },
              "schema": {
                "$ref": "#/components/schemas/PublicCheckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCheck"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Check any public website (passive)",
        "tags": [
          "Public checks"
        ]
      }
    },
    "/v1/public-checks/{id}": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getPublicChecksById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCheck"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "One public check and its result",
        "tags": [
          "Public checks"
        ]
      }
    },
    "/v1/remediation": {
      "get": {
        "description": "The organization's issues with their priority, KEV and EPSS data, owner, due date and state, most urgent first, and SLA performance over all of them.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getRemediation",
        "parameters": [
          {
            "description": "`active` (default: open and accepted), `open`, `accepted`, `false_positive`, `fixed` or `all`.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "An owner's email, `me`, or `none` for unassigned issues.",
            "in": "query",
            "name": "owner",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1`: only issues past their due date.",
            "in": "query",
            "name": "overdue",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only issues due on or before this date (YYYY-MM-DD).",
            "in": "query",
            "name": "due_before",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1`: only issues with a risk acceptance waiting for approval.",
            "in": "query",
            "name": "pending",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Remediation queue",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/remediation/{id}": {
      "get": {
        "description": "`id` is the `remediation.id` of any of its findings.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getRemediationById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationItem"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "One issue",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/remediation/{id}/accept": {
      "post": {
        "description": "Waits for another owner or operator to approve it (`acceptance.requested` webhook). Only an open issue can be accepted, for at most a year.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postRemediationByIdAccept",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "expires": "2027-03-31",
                "reason": "Legacy host isolated behind the VPN until its decommissioning in Q2"
              },
              "schema": {
                "$ref": "#/components/schemas/AcceptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationItem"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Request a risk acceptance",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/remediation/{id}/accept/decide": {
      "post": {
        "description": "Four eyes: a signed-in owner or operator other than the requester (an API key cannot approve: 403). Approved, every finding of the issue becomes `accepted` until the expiry, then reopens by itself (`acceptance.expired` webhook).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postRemediationByIdAcceptDecide",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "approve": true,
                "note": "Compensating control verified"
              },
              "schema": {
                "$ref": "#/components/schemas/DecideAcceptanceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationItem"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Approve or reject a risk acceptance",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/remediation/{id}/accept/withdraw": {
      "post": {
        "description": "Ends a pending or approved acceptance early; an approved one reopens the issue.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postRemediationByIdAcceptWithdraw",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "reason": "The host is internet-facing again"
              },
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationItem"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Withdraw a risk acceptance",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/remediation/{id}/assign": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postRemediationByIdAssign",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "owner": "ana@bank.example",
                "reason": "Owns the payments gateway"
              },
              "schema": {
                "$ref": "#/components/schemas/AssignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationItem"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Assign an owner",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/remediation/{id}/false-positive": {
      "post": {
        "description": "The issue's findings, and the same issue in later scans, stop counting until someone undoes it. Marked by a signed-in person (an API key: 403). From Medium severity up it takes two people, like a risk acceptance: it stays `pending` and the issue open until another owner or operator confirms it (`false_positive.requested` webhook).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postRemediationByIdFalsePositive",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "justification": "The banner is a honeypot decoy; the real service is patched"
              },
              "schema": {
                "$ref": "#/components/schemas/FalsePositiveRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationItem"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Mark a false positive",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/remediation/{id}/false-positive/decide": {
      "post": {
        "description": "Four eyes: a signed-in owner or operator other than the person who marked it (403 otherwise). `approve: true` confirms it and the issue stops counting; false rejects it and the issue stays open.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postRemediationByIdFalsePositiveDecide",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "approve": true,
                "note": "Checked the banner: it is the decoy"
              },
              "schema": {
                "$ref": "#/components/schemas/DecideAcceptanceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationItem"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Confirm or reject a false positive",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/remediation/{id}/false-positive/undo": {
      "post": {
        "description": "Reopens an issue marked a false positive, or withdraws one still waiting for confirmation.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postRemediationByIdFalsePositiveUndo",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "reason": "Re-tested by hand: the issue is real"
              },
              "schema": {
                "$ref": "#/components/schemas/ReasonRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationItem"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Undo or withdraw a false positive",
        "tags": [
          "Remediation"
        ]
      }
    },
    "/v1/roe": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getRoe",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RoE"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List Rules of Engagement",
        "tags": [
          "Rules of Engagement"
        ]
      },
      "post": {
        "description": "Every asset must be verified. The scope, window, rate limit and exclusions are enforced in code on every action.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postRoe",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "asset_ids": [
                  "ast_7f3c9a1d2e4b6f80a1c2"
                ],
                "exclude_hosts": [
                  "payments.bank.example"
                ],
                "exclude_paths": [
                  "/logout"
                ],
                "expires_days": 30,
                "max_rps": 5,
                "name": "Q4 external assessment",
                "on_behalf_of": {
                  "email": "maria@bank.example",
                  "name": "Maria Papadopoulou, CISO"
                },
                "window": {
                  "end_hour_utc": 6,
                  "start_hour_utc": 22,
                  "weekdays": [
                    1,
                    2,
                    3,
                    4,
                    5
                  ]
                }
              },
              "schema": {
                "$ref": "#/components/schemas/CreateRoERequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoE"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Sign Rules of Engagement",
        "tags": [
          "Rules of Engagement"
        ]
      }
    },
    "/v1/runner/enroll": {
      "post": {
        "description": "Exchanges the one-time token for the runner's identity and registers its public key.\n\n**Access:** No credentials.",
        "operationId": "postRunnerEnroll",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "addresses": [
                  "10.1.0.9/24"
                ],
                "allowlist": [
                  "10.0.0.0/8"
                ],
                "hostname": "scan01",
                "os": "linux/amd64",
                "public_key": "MCowBQYDK2VwAyEA…",
                "token": "ert_…",
                "version": "1.0.0"
              },
              "schema": {
                "$ref": "#/components/schemas/EnrollRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnrollResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [],
        "summary": "Enroll",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runner/jobs/{id}/complete": {
      "post": {
        "description": "**Access:** An enrolled runner's Ed25519 request signature (X-Echetleos-Runner, -Timestamp, -Nonce, -Signature).",
        "operationId": "postRunnerJobsByIdComplete",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "summary": "12 hosts, 31 services; segmentation verified for 10.20.0.0/24"
              },
              "schema": {
                "$ref": "#/components/schemas/CompleteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Accepted"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "runnerSignature": []
          }
        ],
        "summary": "Finish a job",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runner/jobs/{id}/events": {
      "post": {
        "description": "**Access:** An enrolled runner's Ed25519 request signature (X-Echetleos-Runner, -Timestamp, -Nonce, -Signature).",
        "operationId": "postRunnerJobsByIdEvents",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "events": [
                  {
                    "action": "tool.exec",
                    "allowed": true,
                    "detail": "net_discovery: 12 live hosts",
                    "target": "10.1.0.0/24"
                  }
                ]
              },
              "schema": {
                "$ref": "#/components/schemas/EventsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Accepted"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "runnerSignature": []
          }
        ],
        "summary": "Deliver audit events",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runner/jobs/{id}/findings": {
      "post": {
        "description": "At most 500 per request. Each is re-checked: from a runner module, about an address inside the engagement's scope.\n\n**Access:** An enrolled runner's Ed25519 request signature (X-Echetleos-Runner, -Timestamp, -Nonce, -Signature).",
        "operationId": "postRunnerJobsByIdFindings",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {},
              "schema": {
                "$ref": "#/components/schemas/FindingsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Accepted"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "runnerSignature": []
          }
        ],
        "summary": "Deliver findings",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runner/jobs/{id}/heartbeat": {
      "post": {
        "description": "Every 10 seconds during a job. `cancel: true` means stop now (kill switch, revocation, RoE expired or outside its window).\n\n**Access:** An enrolled runner's Ed25519 request signature (X-Echetleos-Runner, -Timestamp, -Nonce, -Signature).",
        "operationId": "postRunnerJobsByIdHeartbeat",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeartbeatResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "runnerSignature": []
          }
        ],
        "summary": "Still working?",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runner/poll": {
      "post": {
        "description": "Reports the runner's status; returns a job when one is queued, with its scope rebuilt from the engagement's verified assets and signed RoE.\n\n**Access:** An enrolled runner's Ed25519 request signature (X-Echetleos-Runner, -Timestamp, -Nonce, -Signature).",
        "operationId": "postRunnerPoll",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "hostname": "scan01",
                "os": "linux/amd64",
                "version": "1.0.0"
              },
              "schema": {
                "$ref": "#/components/schemas/PollRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PollResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "runnerSignature": []
          }
        ],
        "summary": "Ask for work",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runner/relay/poll": {
      "post": {
        "description": "For SIEMs and ticketing systems reachable only inside the customer's network, which the runner delivers to. Asked apart from `poll`, so relaying and scan jobs never wait for each other. Returns at most one batch of audit events per relayed SIEM destination (formatted and sent by the runner, then acknowledged) and up to 10 ticketing tasks. The runner reports its relay destinations by name and kind only; their addresses and credentials stay on the runner host.\n\n**Access:** An enrolled runner's Ed25519 request signature (X-Echetleos-Runner, -Timestamp, -Nonce, -Signature).",
        "operationId": "postRunnerRelayPoll",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "relays": [
                  {
                    "kind": "splunk_hec",
                    "name": "soc-splunk"
                  },
                  {
                    "kind": "jira",
                    "name": "jira-sec"
                  }
                ]
              },
              "schema": {
                "$ref": "#/components/schemas/RelayPollRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelayPollResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "runnerSignature": []
          }
        ],
        "summary": "Ask for relay work",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runner/relay/siem/{id}/ack": {
      "post": {
        "description": "How many of the batch's events, from the first, the SIEM accepted, and why the rest were not. The destination's cursor moves past those only; the rest are handed out again (with backoff after a failure). A batch acknowledged twice changes nothing (`advanced: false`).\n\n**Access:** An enrolled runner's Ed25519 request signature (X-Echetleos-Runner, -Timestamp, -Nonce, -Signature).",
        "operationId": "postRunnerRelaySiemByIdAck",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "delivered": 500,
                "last_event_id": "evt_9c2d4e1f0a8b7c63d5e2",
                "token": "…"
              },
              "schema": {
                "$ref": "#/components/schemas/SIEMAck"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SIEMAckResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "runnerSignature": []
          }
        ],
        "summary": "Acknowledge a relayed SIEM batch",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runner/relay/tickets/{id}/result": {
      "post": {
        "description": "The ticket filed (key, id, address) or the comment posted; or the error, after which the task is retried with backoff and given up after 3 attempts.\n\n**Access:** An enrolled runner's Ed25519 request signature (X-Echetleos-Runner, -Timestamp, -Nonce, -Signature).",
        "operationId": "postRunnerRelayTicketsByIdResult",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "external_id": "10042",
                "key": "SEC-42",
                "url": "https://jira.bank.internal/browse/SEC-42"
              },
              "schema": {
                "$ref": "#/components/schemas/TicketResult"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Accepted"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "runnerSignature": []
          }
        ],
        "summary": "Report a relayed ticketing task",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runner/vulndb": {
      "post": {
        "description": "For the credentialed scan: the vulnerability data of one distribution release, built by the service from OSV.dev's advisories and signed with the key given at enrollment (`vulndb_key`). The body is the release file (gzip-compressed JSON); its release, download time, SHA-256 and Ed25519 signature are in the `X-Echetleos-VulnDB-*` headers. 304 when the runner already has it (`have`); 503 with `Retry-After` while the service downloads and builds it; 404 when OSV.dev publishes none. The runner matches a host's packages against it locally: package lists are never sent to the service.\n\n**Access:** An enrolled runner's Ed25519 request signature (X-Echetleos-Runner, -Timestamp, -Nonce, -Signature).",
        "operationId": "postRunnerVulndb",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "release": "Debian:12"
              },
              "schema": {
                "$ref": "#/components/schemas/VulnDBRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/gzip": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "304": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Modified"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "501": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Implemented"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "runnerSignature": []
          }
        ],
        "summary": "Fetch vulnerability data",
        "tags": [
          "Runner protocol"
        ]
      }
    },
    "/v1/runners": {
      "get": {
        "description": "Each runner with whether it is online and its current or last job.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getRunners",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RunnerView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List runners",
        "tags": [
          "Runners"
        ]
      },
      "post": {
        "description": "Returns a one-time enrollment token (valid 24 hours, shown once) and the commands to install and enroll the runner. Then register internal ranges with `POST /v1/assets` and `runner_id`.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postRunners",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "Datacenter Athens"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateRunnerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerEnrollment"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Create a runner",
        "tags": [
          "Runners"
        ]
      }
    },
    "/v1/runners/{id}": {
      "delete": {
        "description": "Its key is refused from the next request on; its running job stops and the engagement is aborted.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteRunnersById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Runner"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Revoke a runner",
        "tags": [
          "Runners"
        ]
      }
    },
    "/v1/runners/{id}/token": {
      "post": {
        "description": "For a runner that has not enrolled yet. The previous token stops working.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postRunnersByIdToken",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunnerEnrollment"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "New enrollment token",
        "tags": [
          "Runners"
        ]
      }
    },
    "/v1/schedules": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getSchedules",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Schedule"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List schedules",
        "tags": [
          "Schedules"
        ]
      },
      "post": {
        "description": "400 when the first run (`start_at`, default now) falls after the Rules of Engagement expire: such a schedule could never run.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postSchedules",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "asset_ids": [
                  "ast_7f3c9a1d2e4b6f80a1c2"
                ],
                "every": "weekly",
                "mode": "deterministic",
                "name": "Weekly external scan",
                "roe_id": "roe_3b8e1f0c9d2a7e64b5f1"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Schedule"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Create a schedule",
        "tags": [
          "Schedules"
        ]
      }
    },
    "/v1/schedules/{id}/pause": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postSchedulesByIdPause",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Schedule"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Pause a schedule",
        "tags": [
          "Schedules"
        ]
      }
    },
    "/v1/schedules/{id}/resume": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postSchedulesByIdResume",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Schedule"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Resume a schedule",
        "tags": [
          "Schedules"
        ]
      }
    },
    "/v1/siem": {
      "get": {
        "description": "Each destination with the last event delivered, when, how many events are still pending and how old the oldest is (`lag_seconds`), and the last error. Only the host is shown; tokens and secrets are never returned. `enabled` is false until the server has ECHETLEOS_SECRET_KEY.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getSiem",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiemListResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List SIEM destinations and their status",
        "tags": [
          "SIEM export"
        ]
      },
      "post": {
        "description": "`splunk_hec`: HEC URL and token. `syslog_tls`: host:port of an RFC 5425 receiver; messages are CEF. `https_json`: NDJSON batches signed like webhooks (`X-Echetleos-Signature`; the signing secret is shown once). Export starts with the next event, or `backfill_days` earlier. Private, loopback and metadata addresses are refused, also when a host name resolves to one at connect time; plain syslog is refused. For a SIEM reachable only inside your network, give `runner_id` and `relay` (its name in the runner's relay configuration) with `kind`: the runner delivers, and the address and token stay on the runner host.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postSiem",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "backfill_days": 7,
                "index": "security",
                "kind": "splunk_hec",
                "name": "Splunk Cloud",
                "token": "00000000-0000-0000-0000-000000000000",
                "url": "https://http-inputs-bank.splunkcloud.com/services/collector/event"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateSIEMRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiemCreatedResponse"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Add a SIEM destination",
        "tags": [
          "SIEM export"
        ]
      }
    },
    "/v1/siem/{id}": {
      "delete": {
        "description": "Removes it with its stored secrets.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteSiemById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Delete a destination",
        "tags": [
          "SIEM export"
        ]
      },
      "put": {
        "description": "Omitted fields are kept. Send `token` to rotate it. Delivery continues from the same place.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "putSiemById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "token": "11111111-1111-1111-1111-111111111111"
              },
              "schema": {
                "$ref": "#/components/schemas/UpdateSIEMRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiemView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Change a destination",
        "tags": [
          "SIEM export"
        ]
      }
    },
    "/v1/siem/{id}/disable": {
      "post": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postSiemByIdDisable",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiemView"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Pause export",
        "tags": [
          "SIEM export"
        ]
      }
    },
    "/v1/siem/{id}/enable": {
      "post": {
        "description": "Events logged while it was disabled are delivered.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postSiemByIdEnable",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiemView"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Resume export",
        "tags": [
          "SIEM export"
        ]
      }
    },
    "/v1/siem/{id}/rotate-secret": {
      "post": {
        "description": "Returns the new secret once; later batches are signed with it.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postSiemByIdRotateSecret",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiemCreatedResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Rotate the signing secret (https_json)",
        "tags": [
          "SIEM export"
        ]
      }
    },
    "/v1/siem/{id}/test": {
      "post": {
        "description": "Sends one `siem.test_event` now, outside the stream (the cursor does not move), and reports the outcome. 409 for a destination relayed by a runner: test it on the runner host (`echetleos-runner relay-check`).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postSiemByIdTest",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Send a test event",
        "tags": [
          "SIEM export"
        ]
      }
    },
    "/v1/sso": {
      "delete": {
        "description": "Also revokes the SCIM token. Accounts are kept.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteSso",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SSOSettings"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Remove the connection",
        "tags": [
          "Single sign-on"
        ]
      },
      "get": {
        "description": "The connection (secrets never included), the URLs to register with the identity provider, and SCIM status.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "getSso",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SSOSettings"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Single sign-on settings",
        "tags": [
          "Single sign-on"
        ]
      },
      "put": {
        "description": "SAML: give `metadata_url` or `metadata_xml`. OIDC: `issuer`, `client_id`, `client_secret` (checked against the issuer's discovery document). Saving does not enable sign-in; call enable after registering Echetleos with the identity provider.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "putSso",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "default_role": "viewer",
                "domains": [
                  "bank.example"
                ],
                "group_roles": {
                  "Echetleos-Admins": "owner",
                  "SecOps": "operator"
                },
                "jit": true,
                "metadata_url": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/federationmetadata/2007-06/federationmetadata.xml?appid=…",
                "protocol": "saml",
                "slug": "bank-example"
              },
              "schema": {
                "$ref": "#/components/schemas/PutSSORequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SSOSettings"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Configure the connection",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/v1/sso/begin": {
      "post": {
        "description": "Returns the identity-provider URL to send the browser to. The browser keeps a random verifier and sends only its hash as `bind`.\n\n**Access:** No credentials.",
        "operationId": "postSsoBegin",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "bind": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
                "slug": "bank-example"
              },
              "schema": {
                "$ref": "#/components/schemas/SsoBeginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoBeginResponse"
                }
              }
            },
            "description": "OK"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "security": [],
        "summary": "Start a sign-in (dashboard)",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/v1/sso/disable": {
      "post": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postSsoDisable",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SSOSettings"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Turn sign-in off",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/v1/sso/enable": {
      "post": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postSsoEnable",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SSOSettings"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Turn sign-in on",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/v1/sso/exchange": {
      "post": {
        "description": "Trades the one-time code from the `#sso_code=` redirect, plus the verifier, for a session.\n\n**Access:** No credentials.",
        "operationId": "postSsoExchange",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "code": "Qk8n…",
                "verifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
              },
              "schema": {
                "$ref": "#/components/schemas/SsoExchangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoExchangeError"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [],
        "summary": "Finish a sign-in (dashboard)",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/v1/sso/scim-token": {
      "delete": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteSsoScimToken",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SSOSettings"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Revoke the SCIM token",
        "tags": [
          "Single sign-on"
        ]
      },
      "post": {
        "description": "Shown once; a previous token stops working.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postSsoScimToken",
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimTokenResponse"
                }
              }
            },
            "description": "Created"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Create or rotate the SCIM token",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/v1/sso/test": {
      "post": {
        "description": "OIDC: fetches the discovery document and keys. SAML: validates (and, with a metadata URL, re-downloads) the IdP metadata.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postSsoTest",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SsoTestResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Gateway"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Check discovery or metadata",
        "tags": [
          "Single sign-on"
        ]
      }
    },
    "/v1/surface": {
      "get": {
        "description": "Every domain asset with its latest discovery: hosts, addresses, CNAMEs, exposures, and what is new since the run before.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getSurface",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SurfaceResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Attack-surface overview",
        "tags": [
          "Attack surface"
        ]
      }
    },
    "/v1/test-requests": {
      "post": {
        "description": "Describe what you want tested; the platform proposes an engagement: which of your verified assets, the testing level, the checks, and a plain-language plan, with notes on anything it could not honour. It is planned by the organization's language model when it has one, otherwise by keyword matching, and validated either way: only verified assets, only existing checks, a level that permits them. Nothing starts: create the engagement from the plan (level, focus, request) to run it. Audited (test.plan).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postTestRequests",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "request": "Check grc.bank.example for weak TLS and missing security headers, nothing intrusive"
              },
              "schema": {
                "$ref": "#/components/schemas/TestRequestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestPlan"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Plan a test from a request in plain language",
        "tags": [
          "Engagements"
        ]
      }
    },
    "/v1/ticketing": {
      "get": {
        "description": "Credentials are never returned. `enabled` is false until the server has ECHETLEOS_SECRET_KEY.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getTicketing",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketingListResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List ticketing integrations",
        "tags": [
          "Ticketing"
        ]
      },
      "post": {
        "description": "After each retest, Echetleos comments the verdict on the tickets it filed (fixed, still there, found again, now rated Info). When a retest verifies the fix, or rates the issue Info (expected on this kind of site, harmless or an advisory), it also closes the ticket: in Jira by a transition to a done status (for a fix never one like \"Won't Do\"; for an issue rated Info, such a one first), in ServiceNow by resolving the incident (state 6, with close notes and a matching close code). A ticket already done is left as it is, and one the team resolved (which started the retest) is confirmed. When a retest finds a closed ticket's issue again (found again after a fix, still there after the team resolved it, or rated above Info again), it reopens the ticket: in Jira by a transition out of done (\"Reopen\" first), in ServiceNow by setting a resolved incident back to In Progress (a Closed incident is final there). The user needs permission to transition issues or to update incidents; where it cannot close or reopen the ticket, it says so on the ticket.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postTicketing",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "auto_create": true,
                "base_url": "https://bank.atlassian.net",
                "issue_type": "Bug",
                "kind": "jira",
                "min_severity": "high",
                "name": "Jira SEC",
                "project": "SEC",
                "token": "ATATT3x…",
                "username": "secops@bank.example"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateTicketingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketIntegration"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Connect Jira or ServiceNow",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/ticketing/relay": {
      "post": {
        "description": "For an instance reachable only inside your network: the runner files the tickets and posts the retest comments. Its address, project or table and credential are in the runner's relay configuration on the runner host, under `relay`; the service never receives them. Filing then answers 202 (queued for the runner).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postTicketingRelay",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "auto_create": true,
                "kind": "jira",
                "min_severity": "high",
                "relay": "jira-sec",
                "runner_id": "rnr_2f9c1d7e5a0b3c84d6e1"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateTicketingRelayRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketingView"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Connect Jira or ServiceNow inside your network, via a runner",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/ticketing/{id}": {
      "delete": {
        "description": "Removes the stored credential. Tickets already filed are kept.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "deleteTicketingById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Delete an integration",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/ticketing/{id}/credentials": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postTicketingByIdCredentials",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "token": "ATATT3x…new"
              },
              "schema": {
                "$ref": "#/components/schemas/TicketingCredentialsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketIntegration"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Replace the credential",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/ticketing/{id}/disable": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postTicketingByIdDisable",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketIntegration"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Disable an integration",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/ticketing/{id}/enable": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postTicketingByIdEnable",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketIntegration"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Enable an integration",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/ticketing/{id}/inbound": {
      "post": {
        "description": "Turns on (or off) verification of fixes as soon as the ticketing system reports a ticket resolved, and returns the webhook to configure there: its URL, its secret (shown when created or rotated) and the setup steps for Jira or ServiceNow.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postTicketingByIdInbound",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "retest_on_resolve": true
              },
              "schema": {
                "$ref": "#/components/schemas/InboundRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Retest when a ticket is resolved",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/ticketing/{id}/settings": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postTicketingByIdSettings",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "auto_create": true,
                "min_severity": "critical"
              },
              "schema": {
                "$ref": "#/components/schemas/TicketingSettingsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketIntegration"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Change automatic filing",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/ticketing/{id}/test": {
      "post": {
        "description": "409 for an integration relayed by a runner: test it on the runner host (`echetleos-runner relay-check`).\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postTicketingByIdTest",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Test the connection",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/tickets/inbound/{tenant}/{id}": {
      "post": {
        "description": "Called by Jira or ServiceNow, authenticated with the integration's webhook secret: an HMAC-SHA256 signature of the body in `X-Hub-Signature: sha256=…` (Jira webhooks), or the secret in `X-Echetleos-Token` / `Authorization: Bearer`. Accepts a Jira webhook, `{\"key\",\"status\",\"category\"}` (Jira Automation), `{\"number\",\"state\"}` (ServiceNow) or `{\"ticket\",\"resolved\"}`. For a ticket Echetleos filed, it retests that issue at once (only the modules that found it, only its assets) and comments the result on the ticket. A ticket Echetleos closed itself (a verified fix, or the issue rated Info) starts no retest.\n\n**Access:** No credentials.",
        "operationId": "postTicketsInboundByTenantById",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "tenant",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboundAccepted"
                }
              }
            },
            "description": "Accepted"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Request Entity Too Large"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [],
        "summary": "Ticketing system: a ticket was resolved",
        "tags": [
          "Ticketing"
        ]
      }
    },
    "/v1/tools": {
      "get": {
        "description": "**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getTools",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ToolInfo"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Scan modules and their availability",
        "tags": [
          "System"
        ]
      }
    },
    "/v1/users": {
      "get": {
        "description": "Each person with their role, whether they are active, who manages the account (`source`: empty for a password, `sso`, `scim`) and whether two-factor sign-in is on.\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "getUsers",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List the organization's people",
        "tags": [
          "Account"
        ]
      },
      "post": {
        "description": "**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postUsers",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "email": "omar@bank.example",
                "name": "Omar Haddad",
                "password": "a-long-unique-passphrase",
                "role": "operator"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Add a person with a password",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/users/{id}/deactivate": {
      "post": {
        "description": "They can no longer sign in, and every session of theirs ends at once (`sessions_ended`). The account and its history stay; reactivate to undo. 409 for the last active owner, yourself included. For people provisioned by the identity provider (SCIM) it works too, with a `warning`: deactivate them there as well, or its next sync may reactivate them. Audited (`user.deactivate`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postUsersByIdDeactivate",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Deactivate a person",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/users/{id}/reactivate": {
      "post": {
        "description": "They take a seat again (402 when the plan has none left). 409 for people provisioned by the identity provider (SCIM): reactivate them there. Audited (`user.reactivate`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postUsersByIdReactivate",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanLimitError"
                }
              }
            },
            "description": "Payment Required"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Reactivate a person",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/users/{id}/role": {
      "post": {
        "description": "Takes effect on their next request. 409 for the organization's last active owner (make someone else an owner first, also to demote yourself), and for people provisioned by the identity provider (SCIM), whose role its groups decide. For accounts created at single sign-on, `warning` says when the identity provider's groups may change the role back. Audited (`user.role`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "postUsersByIdRole",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "role": "viewer"
              },
              "schema": {
                "$ref": "#/components/schemas/RoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Conflict"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Change a person's role",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/users/{id}/sessions": {
      "delete": {
        "description": "Signs them out everywhere at once; they can sign in again (deactivate them to stop that). Audited (`user.sessions_end`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteUsersByIdSessions",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionsEndedResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "End all of a person's sessions",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/users/{id}/two-factor": {
      "delete": {
        "description": "For someone who lost their authenticator and recovery codes: they sign in with their password alone, or set it up again where the organization requires it. A signed-in owner only (403 for an API key), and not on yourself. Audited (`user.two_factor_reset`).\n\n**Access:** Owner, or an API key of scope owner (the organization's key is one).",
        "operationId": "deleteUsersByIdTwoFactor",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Reset a person's two-factor sign-in",
        "tags": [
          "Account"
        ]
      }
    },
    "/v1/webhooks": {
      "get": {
        "description": "URLs are masked: Slack and Teams webhook URLs are secrets.\n\n**Access:** Any signed-in person or API key (a read-scope key may only GET).",
        "operationId": "getWebhooks",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Webhook"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "List webhooks",
        "tags": [
          "Notifications"
        ]
      },
      "post": {
        "description": "Returns the signing secret once. JSON deliveries carry `X-Echetleos-Signature: t=\u003cunix\u003e,v1=\u003chex\u003e`, an HMAC-SHA256 of `\u003ct\u003e.\u003cbody\u003e`. Deliveries go only to public https endpoints and are retried.\n\n**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postWebhooks",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "events": [
                  "engagement.completed",
                  "deploy.gate",
                  "retest.verified",
                  "schedule.paused",
                  "surface.changed",
                  "cloud.completed",
                  "finding.overdue",
                  "acceptance.requested",
                  "acceptance.expired",
                  "approval.requested",
                  "false_positive.requested"
                ],
                "format": "slack",
                "name": "SOC channel",
                "url": "https://hooks.slack.com/services/T000/B000/XXXX"
              },
              "schema": {
                "$ref": "#/components/schemas/CreateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookCreatedResponse"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Add a webhook",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/v1/webhooks/{id}": {
      "delete": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "deleteWebhooksById",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Delete a webhook",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/v1/webhooks/{id}/disable": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postWebhooksByIdDisable",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Disable a webhook",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/v1/webhooks/{id}/enable": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postWebhooksByIdEnable",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Enable a webhook",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/v1/webhooks/{id}/test": {
      "post": {
        "description": "**Access:** Owner, operator, or an API key of scope operate or owner. Viewers and read-scope keys get 403.",
        "operationId": "postWebhooksByIdTest",
        "parameters": [
          {
            "description": "ID of the resource.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookTestResponse"
                }
              }
            },
            "description": "OK"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unauthorized"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Forbidden"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found"
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "session": []
          }
        ],
        "summary": "Send a test event",
        "tags": [
          "Notifications"
        ]
      }
    }
  },
  "security": [
    {
      "apiKey": []
    },
    {
      "session": []
    }
  ],
  "servers": [
    {
      "url": "https://echetleos.avsecadvisory.eu"
    }
  ],
  "tags": [
    {
      "description": "Sign in (with two-factor sign-in), the current caller, your own second factor, and the people of the organization: roles, deactivation, sessions.",
      "name": "Account"
    },
    {
      "description": "Your organization's settings, its API keys, the two-factor requirement, and one-time invites for new people.",
      "name": "Organization"
    },
    {
      "description": "Plans, limits and the Stripe subscription. Limits apply only when the server has Stripe configured; self-hosted and demo installs have none. An action the plan does not allow answers HTTP 402 with the limit, the plan and the upgrade path. Limits are checked when work is admitted, never while an engagement runs, and a downgrade deletes nothing. Billing is owner-only; the webhook is public and authenticated by Stripe's signature.",
      "name": "Billing"
    },
    {
      "description": "For providers (MSSPs): onboard and oversee client organizations, and work inside them by sending `X-Echetleos-Tenant: \u003cclient ID\u003e`. For clients: grant, limit and revoke a provider's access. A provider is capped at operator or viewer and never reaches people, single sign-on, SCIM, provider access or the API key.",
      "name": "Managed service providers"
    },
    {
      "description": "Targets you own. Nothing is tested until ownership is proven (DNS TXT record or HTTP file).",
      "name": "Assets"
    },
    {
      "description": "Passive discovery of the hosts under your verified domains (certificate-transparency logs and DNS, plus third-party passive DNS sources if an owner opted in under Organization settings), with exposures such as subdomain-takeover candidates. A subdomain of a verified domain can be registered as an asset with no new proof: the scope gate already covers it.",
      "name": "Attack surface"
    },
    {
      "description": "Read-only review of AWS, Azure and Google Cloud configuration (CSPM). Every request passes a guard that allows only read operations, to the providers' own endpoints; credentials are sealed and never returned. Connecting and removing accounts is owner-only.",
      "name": "Cloud posture"
    },
    {
      "description": "Agents inside your network that test internal ranges: host and service discovery, unauthenticated-service and TLS checks, and network segmentation tests. A runner only connects out (HTTPS), signs every request with a key that never leaves it, runs only its own built-in modules, and refuses any target outside its local allowlist. Creating and revoking runners, and attesting internal ranges, is owner-only.",
      "name": "Runners"
    },
    {
      "description": "What a runner calls. Every request but enrollment carries an Ed25519 signature over the method, path, a timestamp, a single-use nonce and the body's SHA-256.",
      "name": "Runner protocol"
    },
    {
      "description": "The signed authorization that says what may be tested, when, and how hard.",
      "name": "Rules of Engagement"
    },
    {
      "description": "Assessments: create, start, stop, retest, and read their findings, reports and trends.",
      "name": "Engagements"
    },
    {
      "description": "Passive checks of a public website the organization has not verified as its own, like a public TLS or header checker: DNS and email records, the TLS configuration and the home page's security headers. Bounded per organization, public addresses only, and kept apart from the organization's own findings.",
      "name": "Public checks"
    },
    {
      "description": "Plain-language questions about one engagement, answered by the configured language model from that engagement's data only and streamed as server-sent events. The assistant is read-only: it has no tools and cannot start scans, decide approvals or change scope. Scanner output reaches it as delimited data, never as instructions, and credentials, hashes and email addresses are removed first. Any role may ask; questions are rate-limited per person and per organization and recorded in the audit trail.",
      "name": "Ask Echetleos"
    },
    {
      "description": "Prioritization and the remediation lifecycle of each issue across every assessment. Findings are ranked by a documented priority (0–100: severity, CISA KEV and FIRST EPSS exploit intelligence, internet exposure, asset criticality). Each issue has an owner and a due date from the organization's SLA policy (or CISA's KEV due date). A risk acceptance needs a reason, an expiry and a second person to approve it, and reopens by itself when it expires; a false positive needs a justification and stays suppressed in later scans until undone. Accepted risks and false positives do not count in risk scores, compliance gaps or the CI/CD gate. Every change is in the audit trail (and the SIEM export) with who made it and why. The KEV and EPSS downloads are plain requests for public files that carry nothing about you.",
      "name": "Remediation"
    },
    {
      "description": "Intrusive actions wait for a person with the operator or owner role to approve them.",
      "name": "Approvals"
    },
    {
      "description": "Recurring assessments: daily, weekly or monthly.",
      "name": "Schedules"
    },
    {
      "description": "Test every deployment from CI/CD and fail the release on serious issues. Triggered with the hook's own token.",
      "name": "Deploy hooks"
    },
    {
      "description": "Slack, Microsoft Teams and signed JSON webhooks.",
      "name": "Notifications"
    },
    {
      "description": "File findings into Jira or ServiceNow, by hand or automatically.",
      "name": "Ticketing"
    },
    {
      "description": "Stream the audit trail to Splunk (HTTP Event Collector), to syslog over TLS as CEF (Microsoft Sentinel, QRadar, ArcSight) or to any HTTPS endpoint as signed NDJSON. At-least-once delivery from a saved cursor, retried with backoff. Only owners change destinations; addresses are shown as host only and tokens are never returned.",
      "name": "SIEM export"
    },
    {
      "description": "SAML 2.0 / OpenID Connect sign-in. Settings are owner-only; the sign-in endpoints are public by nature.",
      "name": "Single sign-on"
    },
    {
      "description": "SCIM 2.0 provisioning for identity providers (Entra ID, Okta). Bearer: the SCIM token.",
      "name": "SCIM"
    },
    {
      "description": "The append-only audit trail.",
      "name": "Audit"
    },
    {
      "description": "Health, modules and this reference.",
      "name": "System"
    }
  ]
}