export default {
  "metadata": { "section": "Embed" },
  "definitions": {
    "EmbedNode": {
      "metadata": {
        "tsRicosNode": true,
        "examples": ["embed"],
        "features": ["EMBED"],
        "description": "Embedded content when you include a link to a resource, without having to parse the resource directly. This provides a standardized way for web developers to include content such as videos, images, and other multimedia elements from supported providers. To learn more, see [oembed](https://oembed.com/)."
      },
      "properties": {
        "type": {
          "enum": ["EMBED"],
          "metadata": {
            "description": "Node type. \n Must be `EMBED`."
          }
        },
        "embedData": {
          "ref": "EmbedData",
          "metadata": {
            "description": "oEmbed details."
          }
        }
      },
      "optionalProperties": {
        "id": {
          "type": "string",
          "metadata": {
            "format": "NODE_ID",
            "description": "[Node ID](#node-ids)."
          }
        },
        "nodes": {
          "metadata": { "internal": true, "tsRicosNodesChildren": true },
          "elements": { "ref": "Never" }
        }
      }
    },
    "EmbedData": {
      "optionalProperties": {
        "containerData": {
          "metadata": {
            "description": "oEmbed node container styling."
          },
          "ref": "PluginContainerData"
        },
        "oembed": {
          "metadata": {
            "description": "[oEmbed](https://www.oembed.com) details."
          },
          "ref": "Oembed"
        },
        "src": {
          "metadata": {
            "description": "Original asset source."
          },
          "type": "string"
        }
      }
    },
    "Oembed": {
      "optionalProperties": {
        "type": {
          "metadata": {
            "description": "Resource type."
          },
          "type": "string"
        },
        "width": {
          "metadata": {
            "description": "Width of the resource specified in the `url` field in pixels."
          },
          "type": "int32"
        },
        "height": {
          "metadata": {
            "description": "Height of the resource specified in the `url` field in pixels."
          },
          "type": "int32"
        },
        "title": {
          "metadata": { "description": "Resource title." },
          "type": "string"
        },
        "url": {
          "metadata": { "description": "Resource source URL." },
          "type": "string"
        },
        "html": {
          "metadata": {
            "description": "HTML to embed a video player. The HTML should have no padding or margins."
          },
          "type": "string"
        },
        "authorName": {
          "metadata": { "description": "Name of the author or owner of the resource." },
          "type": "string"
        },
        "authorUrl": {
          "metadata": { "description": "URL for the author or owner of the resource." },
          "type": "string"
        },
        "providerName": {
          "metadata": { "description": "Name of the resource provider." },
          "type": "string"
        },
        "providerUrl": {
          "metadata": { "description": "URL for the resource provider." },
          "type": "string"
        },
        "thumbnailUrl": {
          "metadata": {
            "description": "Thumbnail image URL for the resource. If defined, `thumbnailWidth` and `thumbnailHeight` must also be defined."
          },
          "type": "string"
        },
        "thumbnailWidth": {
          "metadata": {
            "description": "Resource's thumbnail image width. If defined, `thumbnailUrl` and `thumbnailHeight` must also be defined."
          },
          "type": "string"
        },
        "thumbnailHeight": {
          "metadata": {
            "description": "Resource's thumbnail image height. If defined, `thumbnailUrl` and `thumbnailWidth`must also be defined."
          },
          "type": "string"
        },
        "videoUrl": {
          "metadata": { "description": "Embedded video URL." },
          "type": "string"
        },
        "version": {
          "metadata": { "description": "The oEmbed version number. Must be `1.0`." },
          "type": "string"
        }
      }
    }
  }
}