{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-api-response-of-ienumerable-of-data-source-schema.json",
  "title": "ApiResponseOfIEnumerableOfDataSource",
  "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-data-sources-api-openapi.yml#/components/schemas/ApiResponseOfIEnumerableOfDataSource",
  "type": "object",
  "properties": {
    "data": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/DataSource"
      }
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "ConnectorParameterHelper": {
      "type": "object",
      "properties": {
        "propertyName": {
          "type": [
            "null",
            "string"
          ]
        },
        "propertyValue": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "ConnectorType": {
      "enum": [
        "MicrosoftOffice",
        "AzureADIdentityProtection",
        "MicrosoftDefenderForEndpoint",
        "MicrosoftDefenderForCloudApps",
        "MicrosoftDefenderForCloud",
        "MicrosoftDefenderForIdentity",
        "AWSCloudTrail"
      ]
    },
    "DataSource": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "null",
            "string"
          ]
        },
        "icon": {
          "type": [
            "null",
            "string"
          ]
        },
        "dataConnectorId": {
          "type": [
            "null",
            "string"
          ]
        },
        "provider": {
          "type": [
            "null",
            "string"
          ]
        },
        "description": {
          "type": [
            "null",
            "string"
          ]
        },
        "connectorType": {
          "$ref": "#/$defs/ConnectorType"
        },
        "connected": {
          "type": "boolean"
        },
        "modificationDateTime": {
          "type": "string",
          "format": "date-time"
        },
        "parametersHelper": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/ConnectorParameterHelper"
          }
        }
      }
    },
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": [
            "null",
            "string"
          ]
        },
        "timestamp": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    }
  }
}