{
  "$schema": "./hypergraph-services.schema.json",
  "version": "1.0.0",
  "name": "Hypergraph Services Integration",
  "description": "Configuration for hypergraph services with cross-referenced medium interfaces, data science visualization, and collective augmented intelligence",

  "service": {
    "url": "${HYPERGRAPH_SERVICE_URL}",
    "token": "${HYPERGRAPH_SERVICE_TOKEN}",
    "enabled": "${HYPERGRAPH_SERVICE_ENABLED}",
    "timeout": "${HYPERGRAPH_SERVICE_TIMEOUT}",
    "retryAttempts": 3,
    "retryDelay": 1000
  },

  "authentication": {
    "type": "bearer",
    "tokenHeader": "Authorization",
    "tokenPrefix": "Bearer",
    "userIdHeader": "X-User-ID",
    "requireAuth": true,
    "allowedRoles": ["user", "admin", "superadmin"]
  },

  "features": {
    "graphVisualization": {
      "enabled": true,
      "maxNodes": 1000,
      "maxEdges": 5000,
      "defaultDimensions": ["creative", "data", "experience", "media", "concept"],
      "renderModes": ["2d", "3d", "matrix"]
    },

    "mediumInterfaces": {
      "enabled": true,
      "supportedTypes": ["text", "image", "audio", "video", "code", "3d", "data"],
      "maxFileSize": "50MB",
      "allowCrossReferences": true,
      "autoIndexing": true
    },

    "dataScienceStudio": {
      "enabled": true,
      "analysisTypes": ["clustering", "centrality", "community", "pathfinding", "embedding"],
      "visualizationTypes": ["chart", "heatmap", "network"],
      "maxAnalysisTime": 30000,
      "cacheDuration": 3600
    },

    "abstractDomains": {
      "enabled": true,
      "domains": [
        {
          "id": "creative",
          "name": "Creative Development",
          "color": "purple",
          "icon": "🎨"
        },
        {
          "id": "experience",
          "name": "Experience Design",
          "color": "pink",
          "icon": "✨"
        },
        {
          "id": "narrative",
          "name": "Narrative Structures",
          "color": "blue",
          "icon": "📖"
        },
        {
          "id": "spatial",
          "name": "Spatial Thinking",
          "color": "green",
          "icon": "🌐"
        },
        {
          "id": "temporal",
          "name": "Temporal Dynamics",
          "color": "orange",
          "icon": "⏱️"
        },
        {
          "id": "social",
          "name": "Social Systems",
          "color": "red",
          "icon": "👥"
        }
      ],
      "abstractionLevels": 5,
      "maxConcepts": 500
    },

    "collectiveIntelligence": {
      "enabled": true,
      "aiAgents": [
        {
          "id": "creative",
          "name": "Muse",
          "type": "creative",
          "specialty": "Idea Generation"
        },
        {
          "id": "analytical",
          "name": "Logic",
          "type": "analytical",
          "specialty": "Data Analysis"
        },
        {
          "id": "synthesis",
          "name": "Weaver",
          "type": "synthesis",
          "specialty": "Pattern Recognition"
        },
        {
          "id": "critic",
          "name": "Sage",
          "type": "critic",
          "specialty": "Critical Evaluation"
        },
        {
          "id": "facilitator",
          "name": "Nexus",
          "type": "facilitator",
          "specialty": "Collaboration"
        }
      ],
      "maxSessionDuration": 7200000,
      "maxInsightsPerSession": 1000
    },

    "experienceDesign": {
      "enabled": true,
      "sensoryChannels": ["visual", "auditory", "haptic", "spatial", "temporal", "emotional"],
      "maxLayers": 10,
      "maxElementsPerLayer": 100,
      "designModes": ["compose", "sequence", "simulate"]
    }
  },

  "automation": {
    "init": {
      "autoConnect": true,
      "preloadData": true,
      "validateSchema": true,
      "runHealthCheck": true
    },

    "sync": {
      "enabled": true,
      "interval": 300000,
      "strategy": "incremental",
      "conflictResolution": "server-wins"
    },

    "backup": {
      "enabled": true,
      "interval": 86400000,
      "retention": 30,
      "format": "json"
    }
  },

  "deployment": {
    "environments": {
      "development": {
        "url": "http://localhost:4000",
        "mockData": true,
        "debug": true
      },
      "staging": {
        "url": "https://hypergraph-staging.example.com",
        "mockData": false,
        "debug": false
      },
      "production": {
        "url": "https://hypergraph.example.com",
        "mockData": false,
        "debug": false,
        "ssl": true,
        "rateLimit": {
          "enabled": true,
          "maxRequests": 1000,
          "windowMs": 60000
        }
      }
    }
  },

  "monitoring": {
    "metrics": {
      "enabled": true,
      "collect": ["requests", "latency", "errors", "nodeCount", "edgeCount"]
    },

    "logging": {
      "enabled": true,
      "level": "info",
      "destinations": ["console", "file"]
    },

    "alerts": {
      "enabled": true,
      "thresholds": {
        "errorRate": 0.05,
        "responseTime": 5000,
        "downtime": 60000
      }
    }
  }
}
