{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DataSource",
  "title": "DataSource",
  "type": "object",
  "description": "A configured connection to an external data system used by the Xceptor platform for ingesting or exporting data.",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The unique identifier of the data source"
    },
    "name": {
      "type": "string",
      "description": "The display name of the data source"
    },
    "type": {
      "type": "string",
      "description": "The type of data source connection",
      "enum": [
        "database",
        "cloud_storage",
        "sftp",
        "api",
        "message_queue",
        "email"
      ]
    },
    "status": {
      "type": "string",
      "description": "The current connection status of the data source",
      "enum": [
        "connected",
        "disconnected",
        "error"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the data source was configured"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the data source was last updated"
    },
    "last_used_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the data source was last used"
    }
  }
}