{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-safe-browsing/json-schema/google-safe-browsing-google-cloud-webrisk-v1-search-hashes-response-schema.json",
  "title": "GoogleCloudWebriskV1SearchHashesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-safe-browsing-webrisk-hashes-api-openapi.yml#/components/schemas/GoogleCloudWebriskV1SearchHashesResponse",
  "type": "object",
  "properties": {
    "threats": {
      "items": {
        "$ref": "#/$defs/GoogleCloudWebriskV1SearchHashesResponseThreatHash"
      },
      "description": "The full hashes that matched the requested prefixes. The hash will be populated in the key.",
      "type": "array"
    },
    "negativeExpireTime": {
      "format": "google-datetime",
      "description": "For requested entities that did not match the threat list, how long to cache the response until.",
      "type": "string"
    }
  },
  "$defs": {
    "GoogleCloudWebriskV1SearchHashesResponseThreatHash": {
      "type": "object",
      "properties": {
        "expireTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives."
        },
        "threatTypes": {
          "description": "The ThreatList this threat belongs to. This must contain at least one entry.",
          "items": {
            "type": "string",
            "enum": [
              "THREAT_TYPE_UNSPECIFIED",
              "MALWARE",
              "SOCIAL_ENGINEERING",
              "UNWANTED_SOFTWARE",
              "SOCIAL_ENGINEERING_EXTENDED_COVERAGE"
            ]
          },
          "type": "array"
        },
        "hash": {
          "format": "byte",
          "description": "A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.",
          "type": "string"
        }
      },
      "description": "Contains threat information on a matching hash."
    }
  }
}