{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bewary/json-schema/bewary-key-list-schema.json",
  "title": "KeyList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bewary-keys-api-openapi.yml#/components/schemas/KeyList",
  "properties": {
    "keys": {
      "items": {
        "$ref": "#/$defs/KeyInfo"
      },
      "type": "array",
      "title": "Keys"
    }
  },
  "type": "object",
  "required": [
    "keys"
  ],
  "$defs": {
    "KeyInfo": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "last_used_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Used At"
        },
        "revoked": {
          "type": "boolean",
          "title": "Revoked"
        },
        "bulk": {
          "type": "boolean",
          "title": "Bulk",
          "description": "The key may download the bulk files and read the TAXII collection.",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "id",
        "revoked"
      ],
      "title": "KeyInfo"
    }
  }
}