{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pageaudit/json-schema/pageaudit-gate-schema.json",
  "title": "Gate",
  "description": "How much of the daily allowance still exists for this IP, and whether Turnstile is already required.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pageaudit-gate-api-openapi.yml#/components/schemas/Gate",
  "type": "object",
  "properties": {
    "ip": {
      "type": "string",
      "description": "IP seen by the edge, already masked."
    },
    "now": {
      "type": "integer",
      "description": "Time of the query, in epoch."
    },
    "configured": {
      "type": "boolean",
      "description": "Whether Turnstile is configured in this environment."
    },
    "free_allowance": {
      "type": "integer",
      "description": "Free audits per day."
    },
    "free_remaining": {
      "type": "integer",
      "description": "How many remain today for this IP."
    },
    "verified_until": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Until when the verification already done is valid."
    },
    "needs_verification": {
      "type": "boolean",
      "description": "`true` when the next call will ask for Turnstile (human) or 402 (agent)."
    },
    "sitekey": {
      "type": [
        "string",
        "null"
      ],
      "description": "Turnstile sitekey, for the browser to build the challenge."
    }
  },
  "required": [
    "ip",
    "now",
    "configured",
    "free_allowance",
    "free_remaining",
    "verified_until",
    "needs_verification",
    "sitekey"
  ]
}