{
  "$id": "file:///UpdateAction.schema.json",
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "allOf": [
    {
      "$ref": "file:///FxMSCommon.schema.json#/$defs/Message"
    }
  ],
  "description": "A template for messages that execute predetermined actions.",
  "properties": {
    "content": {
      "additionalProperties": true,
      "properties": {
        "action": {
          "additionalProperties": true,
          "description": "Optional action to take in addition to showing the notification",
          "properties": {
            "data": {
              "description": "Additional data provided as argument when executing the action",
              "properties": {
                "expireDelta": {
                  "description": "Expiration timestamp to be used as argument to the action",
                  "type": "number"
                },
                "url": {
                  "description": "URL data to be used as argument to the action",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "data"
          ],
          "type": "object"
        }
      },
      "required": [
        "action"
      ],
      "type": "object"
    },
    "template": {
      "const": "update_action",
      "type": "string"
    }
  },
  "required": [
    "targeting"
  ],
  "title": "UpdateActionMessage",
  "type": "object"
}