{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentdrives-com/json-schema/agentdrives-com-bot-checks-schema.json",
  "title": "BotChecks",
  "description": "The bot-check table: which bot checks our signed agent met, and what they did",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentdrives-com-openapi.json#/components/schemas/BotChecks",
  "type": "object",
  "properties": {
    "as_of": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "The day the newest listing was published"
    },
    "agent": {
      "type": "object",
      "description": "How our agent identifies itself",
      "properties": {
        "signed": {
          "type": "boolean"
        },
        "how": {
          "type": "string"
        },
        "line": {
          "type": "string"
        },
        "page": {
          "type": "string",
          "description": "Our agent's own page: its user agent, addresses and key directory"
        }
      }
    },
    "of": {
      "type": "integer",
      "description": "Products we drove"
    },
    "met": {
      "type": "integer",
      "description": "Products whose drive met a bot check with a signed agent"
    },
    "products": {
      "type": "integer",
      "description": "Products in the rows as filtered"
    },
    "n": {
      "type": "integer",
      "description": "Rows as filtered"
    },
    "from": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "to": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "vendors": {
      "type": "array",
      "description": "Per vendor, with its sample: n (the products that met it, as products) and the days of those drives (from, to). Read with vendors_note",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "products": {
            "type": "integer"
          },
          "n": {
            "type": "integer",
            "description": "The products that met this vendor: the sample its counts are out of"
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "to": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "stopped": {
            "type": "integer"
          },
          "let_in": {
            "type": "integer"
          }
        }
      }
    },
    "vendors_note": {
      "type": "string",
      "description": "What every per-vendor count is read with"
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "vendor_name": {
            "type": "string"
          },
          "outcome": {
            "enum": [
              "stopped",
              "let_in"
            ]
          },
          "outcome_name": {
            "type": "string"
          },
          "checkpoint": {
            "type": [
              "string",
              "null"
            ]
          },
          "checkpoint_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "tested_at": {
            "type": "string",
            "format": "date"
          },
          "release": {
            "type": [
              "string",
              "null"
            ]
          },
          "disclosure": {
            "type": "string",
            "description": "Owner is an AgentDrives customer, when the product's owner is a paying customer"
          },
          "url": {
            "type": "string"
          },
          "evidence": {
            "type": "string",
            "description": "Where the product page shows the check"
          }
        }
      }
    },
    "source": {
      "type": "string",
      "description": "How to credit it"
    },
    "page": {
      "type": "string"
    }
  }
}