{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-frame-redraw-quote-request-schema.json",
  "title": "FrameRedrawQuoteRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animgen-com-frame-editing-api-openapi.yml#/components/schemas/FrameRedrawQuoteRequest",
  "properties": {
    "revision": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Revision"
    },
    "prompt": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 3,
      "title": "Prompt"
    },
    "editMode": {
      "type": "string",
      "enum": [
        "entire_frame",
        "selected_area"
      ],
      "title": "Editmode",
      "default": "selected_area"
    },
    "region": {
      "anyOf": [
        {
          "$ref": "#/$defs/EditRegion"
        },
        {
          "type": "null"
        }
      ]
    },
    "references": {
      "items": {
        "$ref": "#/$defs/ReferenceSelection"
      },
      "type": "array",
      "maxItems": 3,
      "title": "References"
    }
  },
  "type": "object",
  "required": [
    "revision",
    "prompt"
  ],
  "$defs": {
    "EditRegion": {
      "properties": {
        "x": {
          "type": "number",
          "exclusiveMaximum": 1.0,
          "minimum": 0.0,
          "title": "X"
        },
        "y": {
          "type": "number",
          "exclusiveMaximum": 1.0,
          "minimum": 0.0,
          "title": "Y"
        },
        "width": {
          "type": "number",
          "maximum": 1.0,
          "exclusiveMinimum": 0.0,
          "title": "Width"
        },
        "height": {
          "type": "number",
          "maximum": 1.0,
          "exclusiveMinimum": 0.0,
          "title": "Height"
        }
      },
      "type": "object",
      "required": [
        "x",
        "y",
        "width",
        "height"
      ],
      "title": "EditRegion"
    },
    "ReferenceSelection": {
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 160,
          "minLength": 1,
          "title": "Id"
        },
        "version": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$",
          "title": "Version"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "version"
      ],
      "title": "ReferenceSelection"
    }
  }
}