module.exports = {
  "metadata": { "section": "Html" },
  "definitions": {
    "HtmlNode": {
      "metadata": {
        "tsRicosNode": true,
        "examples": ["html-code", "html-url"],
        "features": ["HTML"],
        "description": "HTML block that incorporates external content, such as interactive maps or entire web pages."
      },
      "properties": {
        "type": {
          "enum": ["HTML"],
          "metadata": {
            "description": "Node type. \n Mst be `HTML`."
          }
        },
        "htmlData": {
          "ref": "HTMLData",
          "metadata": {
            "description": "HTML details."
          }
        }
      },
      "optionalProperties": {
        "id": {
          "type": "string",
          "metadata": {
            "format": "NODE_ID",
            "description": "[Node ID](#node-ids)."
          }
        },
        "nodes": {
          "metadata": { "internal": true, "tsRicosNodesChildren": true },
          "elements": { "ref": "Never" }
        }
      }
    },
    "HTMLData": {
      "metadata": {
        "oneOf": {
          "properties": ["url", "html", "widgetId"]
        }
      },
      "optionalProperties": {
        "containerData": {
          "metadata": {
            "description": "HTML node container styling. Height property is irrelevant for HTML embeds when autoHeight is set to `true`."
          },
          "ref": "PluginContainerData"
        },
        "source": {
          "metadata": {
            "description": "HTML code type. Possible values: \n - `HTML`: HTML code. \n - [`ADSENSE`](https://adsense.google.com/start/): Service provided by Google for rendering advertisements on web pages. \n - `AI`: AI-generated HTML code.",
            "emitEnum": "HTMLData_Source"
          },
          "enum": ["HTML", "ADSENSE", "AI", "AI_WIDGET"]
        },
        "url": {
          "metadata": {
            "description": "HTML code URL."
          },
          "type": "string"
        },
        "html": {
          "metadata": {
            "description": "HTML code."
          },
          "type": "string"
        },
        "widgetId": {
          "metadata": {
            "description": "WixelWidget ID. Used when source is `AI_WIDGET`."
          },
          "type": "string"
        },
        "autoHeight": {
          "metadata": {
            "description": "If container height is aligned with its content height. \n Default: `true`"
          },
          "type": "boolean"
        }
      }
    }
  }
}