{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ablakarajanlat-hu/json-schema/ablakarajanlat-hu-ast-bridge-request-schema.json",
  "title": "AstBridgeRequest",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ablakarajanlat-hu-openapi.yaml#/components/schemas/AstBridgeRequest",
  "type": "object",
  "properties": {
    "input_type": {
      "type": "string",
      "enum": [
        "free_text",
        "ast"
      ],
      "default": "free_text"
    },
    "query": {
      "type": "string",
      "description": "Szabad szavas lekérés (input_type=free_text esetén kötelező)"
    },
    "ast": {
      "type": "object",
      "description": "AST objektum (input_type=ast esetén kötelező)",
      "additionalProperties": true
    },
    "output": {
      "type": "string",
      "enum": [
        "ast",
        "xml",
        "estimate"
      ],
      "default": "estimate"
    },
    "locale": {
      "type": "string",
      "default": "hu-HU"
    },
    "ai_mode": {
      "type": "string",
      "enum": [
        "auto",
        "new",
        "edit"
      ],
      "default": "auto"
    },
    "ai_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "profile_base": {
      "type": "string"
    },
    "template_code": {
      "type": "string"
    },
    "fullcode": {
      "type": "string"
    },
    "qty": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "pricing_version": {
      "type": "string",
      "enum": [
        "pricing-v1",
        "pricing-v2"
      ]
    },
    "zip": {
      "type": "string",
      "pattern": "^[0-9]{4}$"
    },
    "include_editor_url": {
      "type": "boolean"
    },
    "include_quote_item": {
      "type": "boolean"
    },
    "include_quote_draft": {
      "type": "boolean"
    }
  }
}