[
  {
    "namespace": "messageContentPolicy",
    "functions": [
      {
        "name": "getCurrent",
        "description": "Resolves with the object currentPolicy, including the properties msgBodyAs, remoteContent, attachmentsInline",
        "type": "function",
        "async": true,
        "parameters": []
      },
      {
        "name": "update",
        "description": "Updates the related application settings by the given updateProperties object, and than reloads the displayed message, if the optional parameter doNotReloadMsg is not true.",
        "type": "function",
        "async": true,
        "parameters": [
          {
            "name": "updateProperties",
            "type": "object",
            "description": "Object with the possible properties msgBodyAs, disableRemoteContent, attachmentsInline. Given properties will be updated.",
            "properties": {
              "msgBodyAs": {
                "type": "string",
                "optional": true,
                "description": "This message Body mode will be set. Possible values are: plaintext || sanitized || original || allBodyParts"
              },
              "showAllBodyPartsMenuitem": {
                "type": "boolean",
                "optional": true,
                "description": "If value is true, the by default hidden menuitem will be displayed."
              },
              "disableRemoteContent": {
                "type": "boolean",
                "optional": true,
                "description": "If value is true, remote content will be disallowed and _not_ loaded in displayed messages."
              },
              "attachmentsInline": {
                "type": "boolean",
                "optional": true,
                "description": "If value is true, attached images will be displayed inline."
              }
            }
          }
        ]
      }
    ],
    "events": [
      {
        "name": "onChanged",
        "type": "function",
        "description": "Listens for changes in supported API properties.",
        "parameters": [
          {
            "name": "newValue",
            "type": "any",
            "description": "The new value of the property."
          }
        ],
        "extraParameters": [
          {
            "name": "changedProperty",
            "type": "string",
            "optional": true,
            "description": "The propertiy to listen to."
          }
        ]
      }
    ]
  }
]
