{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-mirror-demand-row-schema.json",
  "title": "MirrorDemandRow",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-catalog-api-openapi.yml#/components/schemas/MirrorDemandRow",
  "type": "object",
  "required": [
    "id",
    "repo",
    "type",
    "license",
    "status",
    "eligible",
    "requestCount",
    "tractionScore"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "repo": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "eligible": {
      "type": "boolean"
    },
    "requestCount": {
      "type": "number"
    },
    "smallSafeFiles": {
      "type": "number"
    },
    "smallSafeBytes": {
      "type": "number"
    },
    "usefulFiles": {
      "type": "number"
    },
    "usefulBytes": {
      "type": "number"
    },
    "usefulFileScore": {
      "type": "number"
    },
    "runtimeFileCount": {
      "type": "number"
    },
    "supportFileCount": {
      "type": "number"
    },
    "largeSkipped": {
      "type": "number"
    },
    "autoMirrorReady": {
      "type": "boolean"
    },
    "worksWith": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "downloads": {
      "type": "number"
    },
    "stars": {
      "type": "number"
    },
    "tractionScore": {
      "type": "number"
    },
    "mirrorTier": {
      "type": "string"
    },
    "reviewStatus": {
      "type": "string"
    },
    "reviewReason": {
      "type": "string"
    },
    "why": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "riskFlags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "topicSlugs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "completedAction": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "object",
          "properties": {
            "label": {
              "type": "string"
            },
            "status": {
              "type": "string"
            },
            "hostedFiles": {
              "type": "number"
            },
            "downloadPageUrl": {
              "type": "string"
            },
            "downloadableFilesUrl": {
              "type": "string"
            },
            "manifestUrl": {
              "type": "string"
            }
          },
          "additionalProperties": true
        }
      ]
    },
    "readiness": {
      "$ref": "https://huggingbay.xyz/api/schemas#/$defs/MirrorReadiness"
    }
  },
  "additionalProperties": true
}