{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-mirror-pack-detail-schema.json",
  "title": "MirrorPackDetail",
  "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/MirrorPackDetail",
  "type": "object",
  "required": [
    "slug",
    "title",
    "description",
    "artifactCount",
    "hostedArtifacts",
    "rows"
  ],
  "properties": {
    "slug": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "artifactCount": {
      "type": "number"
    },
    "hostedArtifacts": {
      "type": "number"
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "repo",
          "type",
          "license",
          "hostedFiles"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "license": {
            "type": [
              "string",
              "null"
            ]
          },
          "hostedFiles": {
            "type": "number",
            "minimum": 0
          }
        },
        "anyOf": [
          {
            "required": [
              "hostingStatus"
            ],
            "not": {
              "required": [
                "displayOnly"
              ]
            }
          },
          {
            "required": [
              "displayOnly",
              "authorizationRequired",
              "snapshotAt",
              "downloadPlanUrl"
            ],
            "properties": {
              "displayOnly": {
                "const": true
              },
              "authorizationRequired": {
                "const": true
              },
              "snapshotAt": {
                "type": "string",
                "format": "date-time"
              },
              "downloadPlanUrl": {
                "type": "string",
                "format": "uri-reference"
              }
            }
          }
        ],
        "additionalProperties": true
      }
    },
    "generatedAt": {
      "type": "string"
    }
  },
  "additionalProperties": true
}