{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatinbox-net/json-schema/chatinbox-net-company-instance-vm-schema.json",
  "title": "CompanyInstanceVM",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chatinbox-net-instance-api-openapi.yml#/components/schemas/CompanyInstanceVM",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "companyID": {
      "type": "integer",
      "format": "int32"
    },
    "companyCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "phoneNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "chatProviderID": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "providerInstanceID": {
      "type": [
        "string",
        "null"
      ]
    },
    "token": {
      "type": [
        "string",
        "null"
      ]
    },
    "apiUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastActiveTime": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "dataStatus": {
      "type": "integer",
      "format": "int32"
    },
    "outOfControl": {
      "type": "boolean"
    },
    "instanceType": {
      "$ref": "#/$defs/InstanceType"
    },
    "accountName": {
      "type": [
        "string",
        "null"
      ]
    },
    "accountGuid": {
      "type": [
        "string",
        "null"
      ]
    },
    "pageID": {
      "type": [
        "string",
        "null"
      ]
    },
    "expireDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "instanceStatus": {
      "type": "boolean"
    },
    "instanceStatusText": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "InstanceType": {
      "enum": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "type": "integer",
      "format": "int32"
    }
  }
}