{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-peer-fallbacks-response-schema.json",
  "title": "PeerFallbacksResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-mirrors-api-openapi.yml#/components/schemas/PeerFallbacksResponse",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "artifact",
    "policy",
    "summary",
    "readiness",
    "verifiedFallbacks",
    "files",
    "actions",
    "commands",
    "guidance"
  ],
  "properties": {
    "schemaVersion": {
      "const": "hugging-bay.peer-fallbacks.v1"
    },
    "generatedAt": {
      "type": "string"
    },
    "baseUrl": {
      "type": "string"
    },
    "artifact": {
      "type": "object",
      "additionalProperties": true
    },
    "policy": {
      "type": "object",
      "additionalProperties": true
    },
    "summary": {
      "type": "object",
      "properties": {
        "hostedFiles": {
          "type": "number"
        },
        "filesWithReviewedFallbacks": {
          "type": "number"
        },
        "reviewedFileFallbacks": {
          "type": "number"
        },
        "reviewedArtifactFallbacks": {
          "type": "number"
        },
        "reviewedFallbacks": {
          "type": "number"
        },
        "reviewedTorrentSources": {
          "type": "number"
        },
        "pendingReviewRequests": {
          "type": "number"
        },
        "ready": {
          "type": "boolean"
        }
      },
      "additionalProperties": true
    },
    "readiness": {
      "type": "object",
      "additionalProperties": true
    },
    "verifiedFallbacks": {
      "type": "array",
      "items": {
        "$ref": "https://huggingbay.xyz/api/schemas#/$defs/ReviewedPeerFallback"
      }
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "filePath": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "downloadUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "manifestUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "peerFallbacks": {
            "type": "array",
            "items": {
              "$ref": "https://huggingbay.xyz/api/schemas#/$defs/ReviewedPeerFallback"
            }
          }
        },
        "additionalProperties": true
      }
    },
    "pendingReview": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "actions": {
      "type": "object",
      "additionalProperties": true
    },
    "commands": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "guidance": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": true
}