{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/putput-io/json-schema/putput-io-file-stats-schema.json",
  "title": "FileStats",
  "description": "Statistics for a single file.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/putput-io-openapi.json#/components/schemas/FileStats",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique file identifier (UUID)."
    },
    "download_count": {
      "type": "integer",
      "description": "Total number of times this file has been downloaded."
    },
    "size_bytes": {
      "type": "integer",
      "description": "File size in bytes."
    },
    "visibility": {
      "type": "string",
      "enum": [
        "public",
        "private"
      ],
      "description": "File visibility."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 datetime when this file was uploaded."
    }
  },
  "required": [
    "id",
    "download_count",
    "size_bytes",
    "visibility",
    "created_at"
  ]
}