{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/muro-chat/json-schema/muro-chat-site-settings-input-schema.json",
  "title": "SiteSettingsInput",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/muro-chat-openapi.json#/components/schemas/SiteSettingsInput",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 80,
      "description": "Display name shown in the widget header."
    },
    "color": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
      "description": "Accent color as a hex value, for example \"#4323ec\"."
    },
    "position": {
      "type": "string",
      "enum": [
        "bottom-right",
        "bottom-left"
      ],
      "description": "Corner the launcher sits in."
    },
    "welcome_message": {
      "type": "string",
      "maxLength": 500,
      "description": "First message a visitor sees when they open the chat."
    },
    "agent_name": {
      "type": "string",
      "maxLength": 40,
      "description": "Agent display name in the widget header, for example \"Sarah\". Empty string removes it."
    },
    "reply_time": {
      "type": "string",
      "maxLength": 80,
      "description": "Status line under the name, for example \"Replies within an hour\". Empty string uses the localised default."
    },
    "language": {
      "type": "string",
      "description": "Widget language code such as \"en\" or \"fr\", or \"auto\" to follow each visitor's browser."
    },
    "widget_size": {
      "type": "string",
      "enum": [
        "standard",
        "large",
        "xlarge"
      ],
      "description": "Overall widget scale, for sites with large type."
    },
    "require_email": {
      "type": "boolean",
      "description": "true (default): visitors give their email before the first message. false: they can start chatting at once."
    },
    "proactive_message": {
      "type": "string",
      "maxLength": 140,
      "description": "Short line that pops up beside the launcher after proactive_delay seconds, for example \"Questions about pricing?\". Shown once a week per visitor at most. Empty string turns it off (the default)."
    },
    "proactive_delay": {
      "type": "number",
      "minimum": 3,
      "maximum": 300,
      "description": "Seconds on the page before the proactive message shows. Default 15."
    },
    "launcher_icon": {
      "type": "string",
      "enum": [
        "chat",
        "message",
        "help",
        "sparkle",
        "headset",
        "wave",
        "custom"
      ],
      "description": "Icon on the launcher button. \"chat\" (default) is the filled chat bubble; message, help, sparkle, headset and wave are outline icons; \"custom\" shows launcher_image_url."
    },
    "launcher_style": {
      "type": "string",
      "enum": [
        "circle",
        "pill",
        "square",
        "minimal"
      ],
      "description": "Launcher shape. \"circle\" (default): round button. \"pill\": icon plus launcher_label, always visible. \"square\": rounded square. \"minimal\": smaller white button with the icon in the accent color."
    },
    "launcher_label": {
      "type": "string",
      "maxLength": 24,
      "description": "Launcher text, shown on the pill and when a visitor hovers the button. One line, at most 24 characters. Empty string uses \"Start the chat\" in each visitor's language."
    },
    "launcher_image_url": {
      "type": "string",
      "description": "https URL of a square image (PNG, SVG or WebP, ideally 64 x 64 or larger) used as the launcher icon when launcher_icon is \"custom\". Empty string clears it."
    }
  }
}