{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatinbox-net/json-schema/chatinbox-net-company-item-vm-schema.json",
  "title": "CompanyItemVM",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chatinbox-net-integration-api-openapi.yml#/components/schemas/CompanyItemVM",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "companyItemType": {
      "type": "integer",
      "format": "int32"
    },
    "websiteUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "instanceID": {
      "type": "integer",
      "format": "int32"
    },
    "apiKey": {
      "type": [
        "string",
        "null"
      ]
    },
    "apiPassword": {
      "type": [
        "string",
        "null"
      ]
    },
    "apiURL": {
      "type": [
        "string",
        "null"
      ]
    },
    "integrationStatus": {
      "type": "boolean"
    },
    "integrationCompanyID": {
      "type": "integer",
      "format": "int32"
    },
    "templates": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Template"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DataStatus": {
      "enum": [
        0,
        1,
        2
      ],
      "type": "integer",
      "format": "int32"
    },
    "Template": {
      "type": "object",
      "properties": {
        "name": {
          "maxLength": 500,
          "minLength": 0,
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "expression": {
          "type": [
            "string",
            "null"
          ]
        },
        "integrationEventID": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "relatedItemID": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "relatedItemType": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "jsonModel": {
          "type": [
            "string",
            "null"
          ]
        },
        "uniqueID": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "createDate": {
          "type": "string",
          "format": "date-time"
        },
        "updatedDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "updatedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "dataStatus": {
          "$ref": "#/$defs/DataStatus"
        }
      },
      "additionalProperties": false
    }
  }
}