{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-flag-summary-schema.json",
  "title": "FlagSummary",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-flags-api-openapi.yml#/components/schemas/FlagSummary",
  "type": "object",
  "properties": {
    "targetType": {
      "type": "string"
    },
    "targetId": {
      "type": "string"
    },
    "totalFlags": {
      "type": "integer",
      "description": "Total number of flags for this target"
    },
    "byReason": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      },
      "description": "Flag count grouped by reason"
    },
    "latestFlag": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of the most recent flag"
    }
  }
}