{ "$schema": "https://json-schema.org/draft/2019-09/schema", "$id": "file:///SidebarChatBotPromo.schema.json", "title": "SidebarChatBotPromo", "description": "A template for promo messages that appear in the genai chat sidebar.", "allOf": [{ "$ref": "file:///FxMSCommon.schema.json#/$defs/Message" }], "type": "object", "properties": { "content": { "type": "object", "properties": { "type": { "type": "string", "description": "The visual style of the promo (passed through to moz-promo)." }, "heading": { "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText", "description": "The heading text of the promo." }, "message": { "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText", "description": "The body text of the promo." }, "primary_button": { "type": "object", "properties": { "label": { "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText", "description": "The label for the primary action button." }, "action": { "type": "object", "properties": { "type": { "type": "string", "description": "Action dispatched by the button." }, "data": { "type": "object" } }, "required": ["type"], "additionalProperties": true, "description": "The action to take upon clicking the primary button." } }, "required": ["label", "action"] }, "additional_button": { "type": "object", "properties": { "label": { "$ref": "file:///FxMSCommon.schema.json#/$defs/localizableText", "description": "The label for the dismiss action button. Uses `additional_button` rather than `secondary_button` because the onboarding provider pre-translates `secondary_button` labels via Fluent, which breaks labels that are not `{ string_id }`." }, "action": { "type": "object", "properties": { "type": { "type": "string", "description": "Action dispatched by the button." }, "data": { "type": "object" } }, "required": ["type"], "additionalProperties": true, "description": "The action to take upon clicking the dismiss button." } }, "required": ["label", "action"] } }, "additionalProperties": true }, "template": { "type": "string", "const": "sidebar_chatbot_promo" } }, "additionalProperties": true }