{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gen-pro/json-schema/gen-pro-cell-schema.json",
  "title": "Cell",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gen-pro-cells-api-openapi.yml#/components/schemas/Cell",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "value": {
      "type": [
        "string",
        "null"
      ]
    },
    "additional_attributes": {
      "type": "object"
    },
    "cell_role": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at_ts": {
      "type": "integer"
    },
    "updated_at_ts": {
      "type": "integer"
    },
    "default_user_job": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/$defs/Generation"
        }
      ]
    },
    "user_jobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Generation"
      }
    },
    "video_layers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Layer"
      }
    },
    "execution_cost": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "Generation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "processing",
            "completed",
            "failed",
            "stopped"
          ]
        },
        "user_job_type": {
          "type": "string"
        },
        "result": {
          "type": [
            "object",
            "null"
          ]
        },
        "failed_reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "output_resources": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "thumbnail_url": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "object_type": {
                "type": "string",
                "description": "\"Video\", \"Image\", etc."
              },
              "type": {
                "type": "string"
              }
            }
          }
        },
        "execution_cost": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Layer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "position": {
          "type": "integer"
        },
        "type": {
          "type": "string"
        },
        "additional_attributes": {
          "type": "object"
        },
        "created_at_ts": {
          "type": "integer"
        },
        "updated_at_ts": {
          "type": "integer"
        },
        "default_user_job": {
          "nullable": true,
          "allOf": [
            {
              "$ref": "#/$defs/Generation"
            }
          ]
        },
        "user_jobs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Generation"
          }
        },
        "execution_cost": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}