ToolbarBadgeMessage.schema.json (1467B)
1 { 2 "$schema": "https://json-schema.org/draft/2019-09/schema", 3 "$id": "file:///ToolbarBadgeMessage.schema.json", 4 "title": "ToolbarBadgeMessage", 5 "description": "A template that specifies to which element in the browser toolbar to add a notification.", 6 "allOf": [{ "$ref": "file:///FxMSCommon.schema.json#/$defs/Message" }], 7 "type": "object", 8 "properties": { 9 "content": { 10 "type": "object", 11 "properties": { 12 "target": { 13 "type": "string" 14 }, 15 "action": { 16 "type": "object", 17 "properties": { 18 "id": { 19 "type": "string" 20 } 21 }, 22 "additionalProperties": true, 23 "required": ["id"], 24 "description": "Optional action to take in addition to showing the notification" 25 }, 26 "delay": { 27 "type": "number", 28 "description": "Optional delay in ms after which to show the notification" 29 }, 30 "badgeDescription": { 31 "$ref": "file:///FxMSCommon.schema.json#/$defs/localizedText", 32 "description": "This is used in combination with the badged button to offer a text based alternative to the visual badging. Example 'New Feature: What's New'" 33 } 34 }, 35 "additionalProperties": true, 36 "required": ["target"] 37 }, 38 "template": { 39 "type": "string", 40 "const": "toolbar_badge" 41 } 42 }, 43 "additionalProperties": true, 44 "required": ["targeting"] 45 }