{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-api-response-of-data-connector-anomalies-dto-schema.json",
  "title": "ApiResponseOfDataConnectorAnomaliesDto",
  "description": "Standard v2 API response envelope for single-item responses.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contraforce-cross-workspace-data-sources-api-openapi.yml#/components/schemas/ApiResponseOfDataConnectorAnomaliesDto",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/DataConnectorAnomaliesDto"
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "DataConnectorAnomaliesDto": {
      "type": "object",
      "properties": {
        "items": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/DataConnectorAnomalyItemDto"
          }
        }
      }
    },
    "DataConnectorAnomalyItemDto": {
      "type": "object",
      "properties": {
        "workspaceName": {
          "type": [
            "null",
            "string"
          ]
        },
        "dataConnector": {
          "description": "Data Connector that is supported by the onboarding process and the",
          "$ref": "#/$defs/DataConnectorDto"
        },
        "status": {
          "$ref": "#/$defs/DataConnectorAnomalyStatus"
        }
      }
    },
    "DataConnectorAnomalyStatus": {
      "enum": [
        "Active",
        "Resolved",
        "Investigating",
        "Failed"
      ]
    },
    "DataConnectorDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "null",
            "string"
          ]
        },
        "name": {
          "type": [
            "null",
            "string"
          ]
        },
        "description": {
          "type": [
            "null",
            "string"
          ]
        },
        "icon": {
          "type": [
            "null",
            "string"
          ]
        },
        "link": {
          "type": [
            "null",
            "string"
          ]
        },
        "category": {
          "type": [
            "null",
            "string"
          ]
        },
        "provider": {
          "type": [
            "null",
            "string"
          ]
        },
        "isConnected": {
          "type": "boolean"
        },
        "isWaitingActivation": {
          "type": "boolean"
        },
        "directApiConnectionAvailable": {
          "type": "boolean",
          "description": "Indicates if the data connector has an API to connect/disconnect it"
        },
        "metadata": {
          "type": [
            "null",
            "string"
          ],
          "description": "Defines a JSON / String that contains the configuration for a specific data source (ARN for AWS CloudTrail)"
        },
        "isConfigurable": {
          "type": "boolean",
          "description": "Data Connector requires configuration before it can be used (Form of data is needed)"
        },
        "plan": {
          "type": [
            "null",
            "string"
          ]
        },
        "isSupported": {
          "type": "boolean"
        },
        "isPrivate": {
          "type": "boolean"
        },
        "isSubscribedToDeployments": {
          "type": "boolean"
        },
        "deployedVersionDto": {
          "$ref": "#/$defs/VersionDto"
        },
        "cfCurrentVersionDto": {
          "$ref": "#/$defs/VersionDto"
        },
        "status": {
          "$ref": "#/$defs/DataSourceAnalysisStatus"
        },
        "modificationDate": {
          "type": "string",
          "format": "date-time"
        }
      },
      "description": "Data Connector that is supported by the onboarding process and the"
    },
    "DataSourceAnalysisStatus": {
      "enum": [
        "RulesDeployed",
        "UpdatesAvailable",
        "PartiallyDeployed",
        "NoRulesDeployed"
      ]
    },
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": [
            "null",
            "string"
          ]
        },
        "timestamp": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "VersionDto": {
      "type": "object",
      "properties": {
        "dataConnectorId": {
          "type": [
            "null",
            "string"
          ]
        },
        "version": {
          "type": [
            "null",
            "string"
          ]
        },
        "creationDate": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}