{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tweetfeed-live/json-schema/tweetfeed-live-manifest-document-schema.json",
  "title": "ManifestDocument",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tweetfeed-live-openapi.yml#/components/schemas/ManifestDocument",
  "type": "object",
  "required": [
    "schema_version",
    "generated_at",
    "base_url",
    "api_base",
    "artifacts",
    "families"
  ],
  "properties": {
    "schema_version": {
      "type": "integer"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "base_url": {
      "type": "string",
      "description": "Raw GitHub base every artifact `url` below is relative to."
    },
    "api_base": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "sources": {
      "type": "object",
      "description": "Source-coverage summary, mirroring the counts in `/v1/status`'s `sources`.",
      "properties": {
        "total": {
          "type": "integer"
        },
        "hashtag": {
          "type": "integer"
        },
        "account": {
          "type": "integer"
        }
      }
    },
    "artifacts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ManifestArtifact"
      }
    },
    "families": {
      "type": "array",
      "description": "Sharded/multi-file surfaces that don't reduce to one row\n(`lookup`, `misp`, `stix`, `archive`, `campaigns`,\nper-tag/type/user RSS).\n",
      "items": {
        "type": "object",
        "required": [
          "name",
          "path"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "shards": {
            "type": "integer"
          },
          "meta": {
            "type": "string"
          },
          "manifest": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "$defs": {
    "ManifestArtifact": {
      "type": "object",
      "required": [
        "name",
        "path",
        "format",
        "bytes",
        "sha256",
        "updated_at",
        "url"
      ],
      "description": "`sha256`/`bytes`/`rows` describe the file in the same data-repo\ncommit as the manifest document itself - see the `/v1/manifest`\npath description for the tick-boundary caveat.\n",
      "properties": {
        "name": {
          "type": "string"
        },
        "path": {
          "type": "string",
          "description": "Path inside the data repo (differs from `name` for blocklist files)."
        },
        "format": {
          "type": "string",
          "enum": [
            "csv",
            "json",
            "rss",
            "txt"
          ]
        },
        "window": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "today",
            "week",
            "month",
            "year",
            null
          ]
        },
        "bytes": {
          "type": [
            "integer",
            "null"
          ]
        },
        "rows": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Row count. Null for non-row-shaped formats (rss, most json)."
        },
        "sha256": {
          "type": [
            "string",
            "null"
          ]
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "url": {
          "type": "string",
          "description": "Raw GitHub URL for this exact file."
        },
        "api_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "API-fronted URL, `null` when this artifact has no `/v1/*`\nroute of its own.\n"
        }
      },
      "additionalProperties": true
    }
  }
}