{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatinbox-net/json-schema/chatinbox-net-zoho-integration-user-and-field-model-schema.json",
  "title": "ZohoIntegrationUserAndFieldModel",
  "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/ZohoIntegrationUserAndFieldModel",
  "type": "object",
  "properties": {
    "zohoUserMatch": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ZohoUserInputModel"
      }
    },
    "zohoNewDataField": {
      "type": [
        "string",
        "null"
      ]
    },
    "zohoNewDataFieldValue": {
      "type": [
        "string",
        "null"
      ]
    },
    "zohoAllowSyncOwner": {
      "type": "boolean"
    },
    "zohoConversationSync": {
      "type": "boolean"
    },
    "zohoConversationSyncConfiguration": {
      "$ref": "#/$defs/ZohoConversationSyncConfiguration"
    },
    "zohoDataReadSetting": {
      "$ref": "#/$defs/ZohoDataReadSetting"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ZohoConversationSyncConfiguration": {
      "type": "object",
      "properties": {
        "outbound": {
          "type": "boolean"
        },
        "inbound": {
          "type": "boolean"
        },
        "missCall": {
          "type": "boolean"
        },
        "unansweredCall": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "ZohoDataModule": {
      "type": "object",
      "properties": {
        "moduleType": {
          "type": [
            "string",
            "null"
          ]
        },
        "moduleFields": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ZohoDataModuleField"
          }
        }
      },
      "additionalProperties": false
    },
    "ZohoDataModuleField": {
      "type": "object",
      "properties": {
        "order": {
          "type": "integer",
          "format": "int32"
        },
        "fieldApiName": {
          "type": [
            "string",
            "null"
          ]
        },
        "fieldLabel": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "ZohoDataReadSetting": {
      "type": "object",
      "properties": {
        "dataModules": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ZohoDataModule"
          }
        }
      },
      "additionalProperties": false
    },
    "ZohoUserInputModel": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "zohoUserId": {
          "type": [
            "string",
            "null"
          ]
        },
        "zohoUserSetting": {
          "$ref": "#/$defs/ZohoUserSetting"
        }
      },
      "additionalProperties": false
    },
    "ZohoUserSetting": {
      "type": "object",
      "properties": {
        "newRecordPermission": {
          "type": "boolean"
        },
        "syncDataNamePermission": {
          "type": "boolean"
        },
        "customFieldViewPermission": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  }
}