{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lazybird-app/json-schema/lazybird-app-avatar-schema.json",
  "title": "Avatar",
  "description": "Someone your account may have speak, named by `avatar` jobs",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lazybird-app-avatars-api-openapi.yml#/components/schemas/Avatar",
  "type": "object",
  "required": [
    "id",
    "name",
    "status",
    "stillsReady",
    "stills",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "imageUrl": {
      "type": "string",
      "format": "uri",
      "description": "Our own copy of the picture; not there yet while it is `pending`"
    },
    "width": {
      "type": "integer",
      "description": "What the picture measures; its clips come out on this shape"
    },
    "height": {
      "type": "integer"
    },
    "parentId": {
      "type": "string",
      "description": "The avatar this one is a scene of: the same person, made from an edit of that one's picture"
    },
    "voiceId": {
      "type": "string",
      "description": "The voice it speaks in, when it has been given one"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "preparing",
        "ready"
      ],
      "description": "`pending` while the job making it runs (it can't speak yet); `preparing` means its rest stills are still being rendered, not that it cannot speak"
    },
    "jobId": {
      "type": "string",
      "description": "The job making it, while it is `pending`"
    },
    "stillsReady": {
      "type": "integer",
      "description": "How many rest stills it has to pin clips to. A clip pins one every 30 s at its quietest frames, so a long clip renders more first — 3 to begin with, up to 10, free"
    },
    "stills": {
      "type": "array",
      "description": "Its rest stills, in the order clips take them. An `avatar` job opens on one with `firstFrame: {\"stillId\"}`; a still keeps its id when it is rendered again",
      "items": {
        "type": "object",
        "required": [
          "id",
          "imageUrl"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "imageUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}