export default {
  "metadata": { "section": "File" },
  "definitions": {
    "FileNode": {
      "metadata": {
        "tsRicosNode": true,
        "examples": ["file"],
        "features": ["FILE"],
        "description": "File that is uploaded and accessed in a page. Files can be different types of content, such as text documents, images, and videos."
      },
      "properties": {
        "type": {
          "enum": ["FILE"],
          "metadata": {
            "description": "Node type. \n Must be `FILE`."
          }
        },
        "fileData": {
          "ref": "FileData",
          "metadata": {
            "description": "File details."
          }
        }
      },
      "optionalProperties": {
        "id": {
          "type": "string",
          "metadata": {
            "format": "NODE_ID",
            "description": "[Node ID](#node-ids)."
          }
        },
        "nodes": {
          "metadata": { "internal": true, "tsRicosNodesChildren": true },
          "elements": { "ref": "Never" }
        }
      }
    },
    "FileData": {
      "optionalProperties": {
        "containerData": {
          "metadata": {
            "description": "File container styling."
          },
          "ref": "PluginContainerData"
        },
        "src": {
          "metadata": {
            "description": "File data source."
          },
          "ref": "FileSource"
        },
        "name": {
          "metadata": {
            "description": "File name."
          },
          "type": "string"
        },
        "type": {
          "metadata": {
            "description": "File type."
          },
          "type": "string"
        },
        "size": {
          "metadata": {
            "description": "Deprecated. Replaced by `sizeInKb`",
            "deprecated": true
          },
          "type": "uint32"
        },
        "sizeInKb": {
          "metadata": {
            "description": "File size in KB."
          },
          "type": "string"
        },
        "pdfSettings": {
          "metadata": {
            "description": "Settings for PDF files."
          },
          "ref": "FileData_PDFSettings"
        },
        "mimeType": {
          "metadata": {
            "description": "File MIME type."
          },
          "type": "string"
        },
        "path": {
          "metadata": {
            "description": "File path."
          },
          "type": "string"
        }
      }
    },
    "FileData_PDFSettings": {
      "optionalProperties": {
        "viewMode": {
          "metadata": {
            "emitEnum": "FileData_PDFSettings_ViewMode",
            "description": "PDF view mode. Supported values: \n - `NONE`: PDF isn't displayed. \n - `FULL`: Full PDF page view is displayed. \n - `MINI`: Mini view of the PDF is displayed."
          },
          "enum": ["NONE", "FULL", "MINI"]
        },
        "disableDownload": {
          "metadata": {
            "description": "Whether the PDF download button is disabled. \n Default: `false`"
          },
          "type": "boolean"
        },
        "disablePrint": {
          "metadata": {
            "description": "Whether the PDF print button is disabled. \n Default: `false`"
          },
          "type": "boolean"
        }
      }
    }
  }
}