{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/threatcluster-io/json-schema/threatcluster-io-victim-enrichment-response-schema.json",
  "title": "VictimEnrichmentResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/threatcluster-io-api-openapi.json#/components/schemas/VictimEnrichmentResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "victim_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Victim Name"
    },
    "group_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Group Name"
    },
    "discovered": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discovered"
    },
    "country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country"
    },
    "sector": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sector"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "website": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Website"
    },
    "post_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Post Url"
    },
    "screenshot_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Screenshot Url",
      "description": "Screenshot of the listing, when we hold one"
    },
    "scraped_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scraped At"
    },
    "extracted_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Extracted At"
    },
    "scrape_ok": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scrape Ok"
    },
    "scrape_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scrape Error"
    },
    "legal_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Legal Name"
    },
    "legal_form": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Legal Form"
    },
    "headquarters": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Headquarters"
    },
    "revenue": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Revenue"
    },
    "employee_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Employee Count"
    },
    "founded_year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Founded Year"
    },
    "victim_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Victim Description",
      "description": "AI-generated victim description"
    },
    "domains": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Domains"
    },
    "people": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "People"
    },
    "platforms": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Platforms"
    },
    "data_size": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Data Size"
    },
    "data_size_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Data Size Bytes"
    },
    "file_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Count"
    },
    "view_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "View Count"
    },
    "data_categories": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Data Categories"
    },
    "group_tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Group Tags"
    },
    "publication_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Publication Status",
      "description": "listed | countdown | partial_leak | fully_leaked | removed"
    },
    "victim_status_raw": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Victim Status Raw"
    },
    "countdown": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Countdown"
    },
    "countdown_ends_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Countdown Ends At"
    },
    "posted_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Posted At"
    },
    "publication_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Publication At"
    },
    "ransom_amount": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ransom Amount"
    },
    "sample_files": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sample Files"
    },
    "file_types": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Types"
    },
    "negotiation_contacts": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Negotiation Contacts"
    },
    "negotiation_state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Negotiation State"
    },
    "negotiation_chat_excerpts": {
      "anyOf": [
        {
          "items": {},
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Negotiation Chat Excerpts"
    },
    "page_language": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Page Language"
    },
    "victim_tld": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Victim Tld"
    },
    "is_sea_hit": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Sea Hit"
    },
    "image_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Count"
    },
    "image_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Bytes"
    },
    "images": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/VictimImage"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Images"
    },
    "site_screenshot_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Site Screenshot Url"
    },
    "site_screenshot_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Site Screenshot At"
    },
    "site_screenshot_error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Site Screenshot Error"
    },
    "entities": {
      "anyOf": [
        {
          "additionalProperties": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entities",
      "description": "Entities extracted from the leak post, keyed by entity_type (company, country, industry, ...) → [{value, confidence}]"
    },
    "timeline": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/VictimTimelineEvent"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timeline",
      "description": "Dated events for this listing, oldest first, with any deadline the group printed as the last, upcoming entry. Built only from stored timestamps."
    },
    "last_scraped_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Scraped At",
      "description": "ISO 8601 UTC: the latest time ThreatCluster fetched the leak post (successful or not)."
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id"
  ],
  "$defs": {
    "VictimImage": {
      "properties": {
        "url": {
          "type": "string",
          "title": "Url",
          "description": "DO Spaces URL of the blurred, watermarked thumbnail"
        },
        "hash": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Hash"
        },
        "bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bytes"
        },
        "mime": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mime"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source",
          "description": "Original onion URL the image was scraped from"
        },
        "caption": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Caption",
          "description": "GPT-4o-mini factual caption (no PII reproduced)"
        },
        "blurred": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Blurred",
          "description": "Always true for customer-facing images",
          "default": true
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "url"
      ],
      "title": "VictimImage"
    },
    "VictimTimelineEvent": {
      "properties": {
        "at": {
          "type": "string",
          "title": "At",
          "description": "ISO 8601 UTC instant. When precision is 'day' the source printed a date only and this is midnight UTC of that date."
        },
        "event_type": {
          "type": "string",
          "title": "Event Type",
          "description": "Derived from stored timestamps: posted | first_recorded | first_read | screenshot_captured | images_archived | last_read | last_seen | delisted | countdown_deadline | publication_date. Observed changes between two of our reads: data_size_changed | file_count_changed | status_changed | countdown_set | countdown_changed | countdown_cleared | relisted | screenshot_changed | mirror_down | mirror_up (a mirror of the group's leak site)."
        },
        "precision": {
          "type": "string",
          "title": "Precision",
          "description": "'time' or 'day'",
          "default": "time"
        },
        "title": {
          "type": "string",
          "title": "Title",
          "description": "Short sentence, e.g. \"Aurora's countdown deadline\". The group is the subject of every claim."
        },
        "detail": {
          "type": "string",
          "title": "Detail",
          "description": "Context for the event, e.g. the claims as of our last read or the countdown text as printed.",
          "default": ""
        },
        "source": {
          "type": "string",
          "title": "Source",
          "description": "Where the date came from: 'leak site' (printed by the group), 'leak-site monitoring' (when the listing was first recorded) or 'ThreatCluster crawl' (our own collector)."
        },
        "upcoming": {
          "type": "boolean",
          "title": "Upcoming",
          "description": "True for a deadline (countdown_deadline, publication_date) still in the future at response time.",
          "default": false
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "at",
        "event_type",
        "title",
        "source"
      ],
      "title": "VictimTimelineEvent",
      "description": "One dated event in a leak-site listing's history. Built only from\nstored timestamps; nothing is inferred. Claims are the group's."
    }
  }
}