{
  "$id": "file:///ToastNotification.schema.json",
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "additionalProperties": true,
  "allOf": [
    {
      "$ref": "file:///FxMSCommon.schema.json#/$defs/Message"
    }
  ],
  "description": "A template for toast notifications displayed by the Alert service.",
  "properties": {
    "content": {
      "additionalProperties": true,
      "properties": {
        "actions": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "action": {
                "description": "Opaque identifer that identifies action.",
                "type": "string"
              },
              "iconURL": {
                "description": "URL of an icon to display with the action.",
                "format": "uri",
                "type": "string"
              },
              "title": {
                "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText",
                "description": "The action text to be shown to the user."
              },
              "windowsSystemActivationType": {
                "description": "Whether to have Windows process the given `action`.",
                "type": "boolean"
              }
            },
            "required": [
              "action",
              "title"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "body": {
          "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText",
          "description": "Id of localized string or message override of toast notification body"
        },
        "data": {
          "description": "Arbitrary data associated with the toast notification.",
          "type": "object"
        },
        "icon_url": {
          "description": "The URL of the image used as an icon of the toast notification.",
          "format": "moz-url-format",
          "type": "string"
        },
        "image_url": {
          "description": "The URL of an image to be displayed as part of the notification.",
          "format": "moz-url-format",
          "type": "string"
        },
        "launch_url": {
          "description": "The URL to launch when the notification or an action button is clicked.",
          "format": "moz-url-format",
          "type": "string"
        },
        "requireInteraction": {
          "description": "Whether the toast notification should remain active until the user clicks or dismisses it, rather than closing automatically.",
          "type": "boolean"
        },
        "tag": {
          "description": "An identifying tag for the toast notification.",
          "type": "string"
        },
        "title": {
          "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText",
          "description": "Id of localized string or message override of toast notification title"
        }
      },
      "required": [
        "title",
        "body"
      ],
      "type": "object"
    },
    "template": {
      "const": "toast_notification",
      "type": "string"
    }
  },
  "required": [
    "content",
    "targeting",
    "template",
    "trigger"
  ],
  "title": "ToastNotification",
  "type": "object"
}