{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pixeloa-ai/json-schema/pixeloa-ai-item-schema.json",
  "title": "Item",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pixeloa-ai-openapi.json#/components/schemas/Item",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "analyzing",
        "awaiting_confirmation",
        "confirmed",
        "generating",
        "ready",
        "failed"
      ]
    },
    "visibility": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "dimensions_cm": {
      "type": "object",
      "properties": {
        "confirmed": {
          "type": [
            "object",
            "null"
          ]
        },
        "estimated": {
          "type": [
            "object",
            "null"
          ]
        }
      }
    },
    "model": {
      "type": "object",
      "properties": {
        "available": {
          "type": "boolean"
        },
        "sha256": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "public": {
      "type": "object",
      "properties": {
        "published": {
          "type": "boolean"
        },
        "slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "ar_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "embed_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        }
      }
    },
    "publishable": {
      "type": "object",
      "description": "Row-level pre-check for POST /publish; POST /publish reports the exact resolver state on 409.",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "blockers": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "generation_not_finished",
              "no_model",
              "archived",
              "restricted_category"
            ]
          }
        }
      }
    },
    "next_allowed_actions": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "upload_images",
          "wait_for_analysis",
          "confirm_scale",
          "start_generation",
          "wait_for_generation",
          "publish",
          "unpublish",
          "add_to_catalog"
        ]
      }
    }
  }
}