{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-community-review-queue-schema.json",
  "title": "CommunityReviewQueue",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-community-api-openapi.yml#/components/schemas/CommunityReviewQueue",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "mode",
    "hosting",
    "totals",
    "rows",
    "agentUse"
  ],
  "properties": {
    "schemaVersion": {
      "const": "hugging-bay.community-review-queue.v1"
    },
    "generatedAt": {
      "type": "string"
    },
    "baseUrl": {
      "type": "string"
    },
    "apiUrl": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "first-review",
        "needs-evidence",
        "benchmark"
      ]
    },
    "hosting": {
      "type": "string",
      "enum": [
        "actionable",
        "hosted",
        "reviewable",
        "all"
      ]
    },
    "maxReviews": {
      "type": "number"
    },
    "totalCandidates": {
      "type": "number"
    },
    "totals": {
      "type": "object",
      "additionalProperties": true
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "rank",
          "priority",
          "reviewPriorityScore",
          "missingEvidence",
          "artifact",
          "recommendedReview",
          "urls",
          "actions"
        ],
        "properties": {
          "rank": {
            "type": "number"
          },
          "priority": {
            "type": "string"
          },
          "reviewPriorityScore": {
            "type": "number"
          },
          "reason": {
            "type": "string"
          },
          "missingEvidence": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "artifact": {
            "$ref": "https://huggingbay.xyz/api/schemas#/$defs/ArtifactSummary"
          },
          "trust": {
            "type": "object",
            "additionalProperties": true
          },
          "readiness": {
            "type": "object",
            "additionalProperties": true
          },
          "demand": {
            "type": "object",
            "additionalProperties": true
          },
          "hosting": {
            "type": "object",
            "additionalProperties": true
          },
          "reviewState": {
            "type": "object",
            "additionalProperties": true
          },
          "recommendedReview": {
            "type": "object",
            "additionalProperties": true
          },
          "urls": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "actions": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      }
    },
    "agentUse": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}