{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-achievement-list-schema.json",
  "title": "AchievementList",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-achievements-api-openapi.yml#/components/schemas/AchievementList",
  "properties": {
    "achievements": {
      "items": {
        "$ref": "#/$defs/AchievementOut"
      },
      "type": "array",
      "title": "Achievements"
    },
    "total_available": {
      "type": "integer",
      "title": "Total Available"
    }
  },
  "type": "object",
  "required": [
    "achievements",
    "total_available"
  ],
  "$defs": {
    "AchievementOut": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "icon": {
          "type": "string",
          "title": "Icon"
        },
        "earned_at": {
          "type": "string",
          "format": "date-time",
          "title": "Earned At"
        }
      },
      "type": "object",
      "required": [
        "key",
        "name",
        "description",
        "icon",
        "earned_at"
      ],
      "title": "AchievementOut"
    }
  }
}