{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatinbox-net/json-schema/chatinbox-net-instance-rulev9-vm-schema.json",
  "title": "InstanceRulev9VM",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chatinbox-net-instancev9-api-openapi.yml#/components/schemas/InstanceRulev9VM",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "instanceRuleTriggerType": {
      "$ref": "#/$defs/InstanceRuleTriggerType"
    },
    "companyInstanceID": {
      "type": "integer",
      "format": "int32"
    },
    "instanceRuleType": {
      "$ref": "#/$defs/InstanceRuleType"
    },
    "routingAlgorithmType": {
      "$ref": "#/$defs/RoutingAlgorithmType"
    },
    "sendWelcomeMessage": {
      "type": "boolean"
    },
    "sendWelcomeMessageContent": {
      "type": [
        "string",
        "null"
      ]
    },
    "userSelectionAlgorithmType": {
      "type": "integer",
      "format": "int32"
    },
    "selectedUsers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "additionalProperties": false
      }
    },
    "noRedirectToAction": {
      "type": "boolean"
    },
    "selectedChatBotId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "InstanceRuleTriggerType": {
      "enum": [
        1,
        2,
        3
      ],
      "type": "integer",
      "format": "int32"
    },
    "InstanceRuleType": {
      "enum": [
        1,
        2,
        3,
        4,
        5,
        6,
        7
      ],
      "type": "integer",
      "format": "int32"
    },
    "RoutingAlgorithmType": {
      "enum": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9
      ],
      "type": "integer",
      "format": "int32"
    }
  }
}