{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-community-review-missions-schema.json",
  "title": "CommunityReviewMissions",
  "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/CommunityReviewMissions",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "totals",
    "missions",
    "agentUse"
  ],
  "properties": {
    "schemaVersion": {
      "const": "hugging-bay.community-review-missions.v1"
    },
    "generatedAt": {
      "type": "string"
    },
    "baseUrl": {
      "type": "string"
    },
    "apiUrl": {
      "type": "string"
    },
    "humanUrl": {
      "type": "string"
    },
    "queueUrl": {
      "type": "string"
    },
    "actionsUrl": {
      "type": "string"
    },
    "auth": {
      "type": "string"
    },
    "rewardModel": {
      "type": "object",
      "additionalProperties": true
    },
    "totals": {
      "type": "object",
      "additionalProperties": true
    },
    "missions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "rank",
          "badge",
          "points",
          "artifact",
          "urls",
          "actionTemplate"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "rank": {
            "type": "number"
          },
          "badge": {
            "type": "string"
          },
          "points": {
            "type": "number"
          },
          "priority": {
            "type": "string"
          },
          "artifact": {
            "$ref": "https://huggingbay.xyz/api/schemas#/$defs/ArtifactSummary"
          },
          "missingEvidence": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "why": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "acceptanceCriteria": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "actionTemplate": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      }
    },
    "agentUse": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}