{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatinbox-net/json-schema/chatinbox-net-chatv3-vm-schema.json",
  "title": "Chatv3VM",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chatinbox-net-openapi.yml#/components/schemas/Chatv3VM",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "customerId": {
      "type": "integer",
      "format": "int32"
    },
    "instancePhoneNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "instanceChatId": {
      "type": [
        "string",
        "null"
      ]
    },
    "instanceChatIdEnc": {
      "type": [
        "string",
        "null"
      ]
    },
    "ownerUserId": {
      "type": "integer",
      "format": "int32"
    },
    "servingUserId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "instanceId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "customerPhoneNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "customerPhoneNumberEnc": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastMessageText": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastMessageTime": {
      "type": "string",
      "format": "date-time"
    },
    "unViewedCount": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "image": {
      "type": [
        "string",
        "null"
      ]
    },
    "startedByCustomer": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastMessageId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "surName": {
      "type": [
        "string",
        "null"
      ]
    },
    "ownerUserName": {
      "type": [
        "string",
        "null"
      ]
    },
    "operationStatus": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "ownerUserFullName": {
      "type": [
        "string",
        "null"
      ]
    },
    "ownerUserIconText": {
      "type": [
        "string",
        "null"
      ]
    },
    "featuresString": {
      "type": [
        "string",
        "null"
      ]
    },
    "messageType": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "transferred": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "fromMe": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "messageStatus": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "hasOfflineMessage": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "systemMessageType": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "systemNotificationType": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "waitCallMeLater": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "customerFeatures": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/FeatureVM"
      }
    },
    "favoriteStatus": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/FavoriteStatusItemVM"
      }
    },
    "accountName": {
      "type": [
        "string",
        "null"
      ]
    },
    "instanceType": {
      "type": "integer",
      "format": "int32"
    },
    "customerAccountID": {
      "type": [
        "string",
        "null"
      ]
    },
    "isGroup": {
      "type": "boolean"
    },
    "instanceAccountID": {
      "type": [
        "string",
        "null"
      ]
    },
    "pushName": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "FavoriteStatusItemVM": {
      "type": "object",
      "properties": {
        "featureId": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "rgbCode": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "FeatureVM": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "featureType": {
          "type": "integer",
          "format": "int32"
        },
        "rgbCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "featureGroupID": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "dataStatus": {
          "type": "integer",
          "format": "int32"
        },
        "activeSelectionCount": {
          "type": "integer",
          "format": "int32"
        },
        "flagMinutes": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "sortOrder": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    }
  }
}