{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-data-source-schema.json",
  "title": "DataSource",
  "description": "A connected data feed. Credentials are never returned.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-data-sources-api-openapi.yml#/components/schemas/DataSource",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Data source id."
    },
    "spaceId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "description": "Connector type (`csv`, `http-json`, `rest`, `google-sheets`, `ical`, …). See `GET /v1/connectors`."
    },
    "config": {
      "description": "Connector settings with every credential-shaped value (keys, tokens, secrets, passwords) replaced by `••••••••`. Send the mask back unchanged to keep the stored value."
    },
    "cachedData": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "description": "The last successful fetch (JSON), or null before the first sync."
    },
    "connected": {
      "type": "boolean",
      "description": "The last sync succeeded."
    },
    "lastSyncedAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO-8601 timestamp (UTC)."
        },
        {
          "type": "null"
        }
      ]
    },
    "syncError": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Why the last sync failed; null when it succeeded."
    },
    "nodeId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "createdAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "updatedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    }
  },
  "required": [
    "id",
    "spaceId",
    "name",
    "type",
    "config",
    "cachedData",
    "connected",
    "lastSyncedAt",
    "syncError",
    "nodeId",
    "createdAt",
    "updatedAt"
  ]
}