{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sourceacts-com/json-schema/sourceacts-com-latest-request-schema.json",
  "title": "LatestRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sourceacts-com-openapi.json#/components/schemas/LatestRequest",
  "properties": {
    "source": {
      "type": "string",
      "enum": [
        "all",
        "eurlex",
        "wto",
        "un",
        "uk",
        "us",
        "india",
        "brazil",
        "canada",
        "australia",
        "denmark"
      ],
      "title": "Source",
      "default": "eurlex"
    },
    "document_type": {
      "type": "string",
      "enum": [
        "all",
        "regulation",
        "directive",
        "decision",
        "treaty",
        "case-law"
      ],
      "title": "Document Type",
      "default": "regulation"
    },
    "language": {
      "type": "string",
      "title": "Language",
      "default": "en"
    },
    "days": {
      "type": "integer",
      "maximum": 90.0,
      "minimum": 1.0,
      "title": "Days",
      "description": "Look back window for SPARQL date filters.",
      "default": 7
    },
    "page_size": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Page Size",
      "default": 15
    },
    "query": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 300
        },
        {
          "type": "null"
        }
      ],
      "title": "Query",
      "description": "Optional keyword filter across title and identifier (watchlist)."
    },
    "since": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Since",
      "description": "Optional inclusive start date YYYY-MM-DD for published_at."
    },
    "seen_hashes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 500,
      "title": "Seen Hashes",
      "description": "SHA-256 content_hash values from a previous latest call. Matching rows are omitted so only real changes remain."
    }
  },
  "type": "object"
}