module.exports = {
  "metadata": { "section": "Audio" },
  "definitions": {
    "AudioNode": {
      "metadata": {
        "tsRicosNode": true,
        "examples": ["audio-soundcloud"],
        "features": ["AUDIO"],
        "description": "Embeds and plays audio content directly in a webpage. Users can interact with the controls to play, pause, rewind, and adjust the volume of the audio."
      },
      "properties": {
        "type": {
          "enum": ["AUDIO"],
          "metadata": {
            "description": "Node type. \n Must be `AUDIO`."
          }
        },
        "audioData": {
          "ref": "AudioData",
          "metadata": {
            "description": "Audio details."
          }
        }
      },
      "optionalProperties": {
        "id": {
          "type": "string",
          "metadata": {
            "format": "NODE_ID",
            "description": "[Node ID](#node-ids)."
          }
        },
        "nodes": {
          "metadata": { "internal": true, "tsRicosNodesChildren": true },
          "elements": { "ref": "Never" }
        }
      }
    },
    "AudioData": {
      "optionalProperties": {
        "containerData": {
          "metadata": {
            "description": "Audio node container styling."
          },
          "ref": "PluginContainerData"
        },
        "audio": {
          "metadata": {
            "description": "Audio file details."
          },
          "ref": "Media"
        },
        "disableDownload": {
          "metadata": {
            "description": "Whether the audio download button is disabled. \n Default: `false`"
          },
          "type": "boolean"
        },
        "coverImage": {
          "metadata": {
            "description": "Cover image."
          },
          "ref": "Media"
        },
        "name": {
          "metadata": {
            "description": "Track name."
          },
          "type": "string"
        },
        "authorName": {
          "metadata": {
            "description": "Author name."
          },
          "type": "string"
        },
        "html": {
          "metadata": {
            "description": "HTML version of the audio node."
          },
          "type": "string"
        }
      }
    }
  }
}