{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string"
    },
    "store": {
      "type": "string"
    },
    "dryRun": {
      "type": "boolean"
    },
    "tables": {
      "description": "SQL: each table cleared, or counted with --dry-run, with its row count before the clear.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "rows": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": ["name", "rows"],
        "additionalProperties": {}
      }
    },
    "prefix": {
      "description": "KV: the prefix cleared; empty with --all-keys.",
      "type": "string"
    },
    "keys": {
      "description": "KV: keys deleted across every batch, or counted with --dry-run.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "complete": {
      "description": "KV: false only on a dry run that stopped counting at 100,000.",
      "type": "boolean"
    },
    "environment": {
      "description": "The environment the command used: test unless --environment live was given.",
      "type": "string",
      "enum": ["test", "live"]
    }
  },
  "required": ["kind", "store", "dryRun"],
  "additionalProperties": {},
  "title": "Test storage cleared",
  "description": "Test only. A SQL clear keeps the schema and d1_migrations; a KV clear repeats until no key remains under the prefix."
}
