{
  "$id": "file:///WhatsNewMessage.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 the messages that appear in the What's New panel.",
  "properties": {
    "content": {
      "additionalProperties": true,
      "properties": {
        "body": {
          "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText",
          "description": "Id of localized string or message override of What's New message body"
        },
        "bucket_id": {
          "description": "A bucket identifier for the addon. This is used in order to anonymize telemetry for history-sensitive targeting.",
          "type": "string"
        },
        "cta_type": {
          "description": "Type of url open action",
          "enum": [
            "OPEN_URL",
            "OPEN_ABOUT_PAGE",
            "OPEN_PROTECTION_REPORT"
          ]
        },
        "cta_url": {
          "description": "Target URL for the What's New message.",
          "format": "moz-url-format",
          "type": "string"
        },
        "cta_where": {
          "description": "How to open the cta: new window, tab, focused, unfocused.",
          "enum": [
            "current",
            "tabshifted",
            "tab",
            "save",
            "window"
          ]
        },
        "icon_alt": {
          "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText",
          "description": "Alt text for image."
        },
        "icon_url": {
          "description": "(optional) URL for the What's New message icon.",
          "format": "uri",
          "type": "string"
        },
        "layout": {
          "description": "Different message layouts",
          "enum": [
            "tracking-protections"
          ]
        },
        "link_text": {
          "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText",
          "description": "(optional) Id of localized string or message override of What's New message link text"
        },
        "published_date": {
          "description": "The date/time (number of milliseconds elapsed since January 1, 1970 00:00:00 UTC) the message was published.",
          "type": "integer"
        },
        "subtitle": {
          "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText",
          "description": "Id of localized string or message override of What's New message subtitle"
        },
        "title": {
          "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText",
          "description": "Id of localized string or message override of What's New message title"
        }
      },
      "required": [
        "published_date",
        "title",
        "body",
        "cta_url",
        "bucket_id"
      ],
      "type": "object"
    },
    "template": {
      "const": "whatsnew_panel_message",
      "type": "string"
    }
  },
  "required": [
    "order"
  ],
  "title": "WhatsNewMessage",
  "type": "object"
}