{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatinbox-net/json-schema/chatinbox-net-chat-button-vm-schema.json",
  "title": "ChatButtonVM",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chatinbox-net-chatbutton-api-openapi.yml#/components/schemas/ChatButtonVM",
  "type": "object",
  "properties": {
    "autoOpenPageLoad": {
      "type": "boolean"
    },
    "browserTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "buttonColor": {
      "type": [
        "string",
        "null"
      ]
    },
    "buttonPosition": {
      "type": [
        "string",
        "null"
      ]
    },
    "buttonStyle": {
      "type": [
        "string",
        "null"
      ]
    },
    "changeBrowserTitle": {
      "type": "boolean"
    },
    "includeCurrentPage": {
      "type": "boolean"
    },
    "notificationNumber": {
      "type": "boolean"
    },
    "popupHeader": {
      "type": [
        "string",
        "null"
      ]
    },
    "popupSubHeader": {
      "type": [
        "string",
        "null"
      ]
    },
    "popupcolor": {
      "type": [
        "string",
        "null"
      ]
    },
    "pulseEffect": {
      "type": "boolean"
    },
    "speechBubble": {
      "type": "boolean"
    },
    "speechCallout": {
      "type": [
        "string",
        "null"
      ]
    },
    "speechNotificationSound": {
      "type": "boolean"
    },
    "whatsAppMessageBody": {
      "type": [
        "string",
        "null"
      ]
    },
    "whatsappChatButtonIsEnable": {
      "type": "boolean"
    },
    "chatButtonID": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "chatButtonAgents": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ChatButtonAgentVM"
      }
    },
    "isActive": {
      "type": "boolean"
    },
    "styleTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "styleOnlineText": {
      "type": [
        "string",
        "null"
      ]
    },
    "styleDepartment": {
      "type": [
        "string",
        "null"
      ]
    },
    "browserTitleandUrlMsg": {
      "type": "boolean"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ChatButtonAgentVM": {
      "type": "object",
      "properties": {
        "number": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "role": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  }
}