{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elaiio/json-schema/elaiio-avatar-schema.json",
  "title": "Avatar",
  "description": "An avatar and its variants.",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elaiio-elai-public-api-openapi.yml#/components/schemas/Avatar",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "code": {
      "type": "string",
      "description": "Stable code used as `avatarCode` when rendering."
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "description": "Avatar kind. Determines which variants and poses are available."
    },
    "status": {
      "type": "integer",
      "description": "Lifecycle stage 0–5; usable from 2."
    },
    "premium": {
      "type": "boolean"
    },
    "organizationId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Null for public catalog avatars."
    },
    "variants": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Legacy alias of `code`."
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "isScenario": {
            "type": "boolean"
          },
          "poses": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "sideViews": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "scenarios": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}