# KNIRV Developer Portal Configuration
# This file contains all links and navigation configuration for easy sitewide updates

# Main Navigation Links
navigation:
  main_site: "https://knirv.network"
  documentation: "documentation/static/"
  graphchain_explorer: "graphchain-explorer/"
  nexus_portal: "nexus-portal/"
  support_desk: "support-desk/src/"
  developer_portal: "developer-portal/"
  products: "products.html"
  agentify: "https://agentify.knirv.com"

# External Services
external_services:
  agentify: "https://agentify.knirv.com"
  payment_oracle: "https://knirvoracle.onrender.com/payments"
  tunnel_registry: "https://knirvoracle.onrender.com/tunnel"
  operator_registry: "https://knirvoracle.onrender.com/operators"
  webgui: "https://knirvoracle.onrender.com"
  knirv_website: "https://knirv.com"
  testnet_access: "https://testnet.knirv.network"

# Gateway Services Configuration
# These services are dynamically managed based on deployment environment
oracle_services:
  # Public Testnet Configuration (when CloudFlare credentials available)
  public_testnet:
     payment_oracle:
      domain: "https://knirvoracle.onrender.com/payments"
      port: 3001
      path: "/"
      health_endpoint: "/health"
     tunnel_registry:
      domain: "https://knirvoracle.onrender.com/tunnel"
      port: 3004
      path: "/"
      health_endpoint: "/status"
     operator_registry:
      domain: "https://knirvoracle.onrender.com/operators"
      port: 3007
      path: "/"
      health_endpoint: "/health"
     webgui:
      domain: "https://knirvoracle.onrender.com/oracle"
      port: 3008
      path: "/"
      health_endpoint: "/health"

  # Private Testnet Configuration (localhost fallback)
  private_testnet:
    payment_oracle:
      domain: "localhost"
      port: 3001
      path: "/"
      health_endpoint: "/health"
    tunnel_registry:
      domain: "localhost"
      port: 3004
      path: "/"
      health_endpoint: "/status"
    operator_registry:
      domain: "localhost"
      port: 3007
      path: "/"
      health_endpoint: "/health"
    webgui:
      domain: "localhost"
      port: 3007
      path: "/"
      health_endpoint: "/health"

# Documentation Links
documentation:
  # New static HTML documentation links
  main_docs: "../documentation/static/"
  whitepapers_index: "../documentation/whitepapers/"

  # Individual whitepaper links (new static HTML format)
  whitepapers:
    knirv_oracle: "../documentation/whitepapers/KNIRV-ORACLE_Whitepaper.html"
    knirv_router: "../documentation/whitepapers/KNIRV-ROUTER_Whitepaper.html"
    knirvgraph: "../documentation/whitepapers/KNIRV-GRAPH_Whitepaper.html"
    knirvchain: "../documentation/whitepapers/KNIRV-CHAIN_Whitepaper.html"
    knirv_nexus: "../documentation/whitepapers/KNIRV-SERVER_Whitepaper.html"
    knirv_cortex: "../documentation/whitepapers/KNIRV-INFERENCE_Whitepaper.html"
    knirv_sdk: "../documentation/whitepapers/KNIRV-SDK_Whitepaper.html"
    knirvana: "../documentation/whitepapers/KNIRVANA_Whitepaper.html"
    knirv_d_ten: "../documentation/whitepapers/KNIRV-D-TEN_Whitepaper.html"
    knirv_engine: "../documentation/whitepapers/KNIRV-ENGINE_Whitepaper.html"
    knirv_controller: "../documentation/whitepapers/KNIRV-CONTROLLER_Whitepaper.html"

  # Legacy docsify links (for backward compatibility)
  legacy:
    whitepapers_docsify: "../documentation/static/whitepapers/"
    guides_docsify: "../documentation/static/guides/"
    api_docsify: "../documentation/static/api/"

# Business Documents
business:
  cde_pitch: "../docs/business_plan/CDE_Pitch.md"

# Footer Links
footer:
  legal:
    terms: "documentation/static/legal/TERMS_AND_CONDITIONS"
    privacy: "documentation/static/legal/PRIVACY_POLICY"
    contribution: "documentation/static/contributing/CONTRIBUTION_GUIDELINES"

  social:
    github: "https://github.com/knirv-network"
    discord: "https://discord.gg/knirv"
    twitter: "https://twitter.com/knirvnetwork"
    telegram: "https://t.me/knirvnetwork"

  resources:
    documentation: "documentation/static/"
    support: "support-desk/src/"
    forum: "forum/src/"
    blog: "https://knirv.com/blog"

# API Endpoints
api:
  base_url: "/.netlify/functions"
  endpoints:
    agents: "/agents"
    skills: "/skills"
    auth: "/auth"
    payments: "/payments"
    nexus: "/nexus"

# API Documentation
api_documentation:
  swagger_ui: "/developer-portal/swagger-ui.html"
  openapi_specs:
    knirvsdk: "/developer-portal/openapi/knirvsdk.yaml"
    knirvengine: "/developer-portal/openapi/knirvengine.yaml"
    knirvinference: "/developer-portal/openapi/knirvinference.yaml"

# Feature Flags
features:
  authentication_enabled: true
  payment_oracle_enabled: true
  nexus_integration_enabled: true
  graphchain_explorer_enabled: true
  nanda_ans_enabled: true
  support_desk_enabled: true

# UI Configuration
ui:
  theme:
    primary_color: "#00c0fa"
    secondary_color: "#2b56f5"
    accent_color: "#8b5cf6"
  
  branding:
    logo_url: "../logo/knirv-logo.png"
    favicon_url: "favicon.png"
    site_title: "KNIRV Developer Portal"
    site_description: "Build on the Decentralized Trusted Execution Network"

# Iframe Configuration
iframes:
  graphchain_explorer:
    url: "../graphchain-explorer/"
    title: "KNIRV Graphchain Explorer"
    height: "800px"
  
  documentation:
    url: "../documentation/static/"  # Updated to new static HTML site
    title: "KNIRV Documentation"
    height: "800px"

  documentation_legacy:
    url: "../documentation/docsify/"  # Legacy docsify site
    title: "KNIRV Documentation (Legacy)"
    height: "800px"
  
  nexus_portal:
    url: "../nexus-portal/"
    title: "KNIRV Nexus Portal"
    height: "800px"
  
  support_desk:
    url: "../support-desk/src/"
    title: "KNIRV Support Desk"
    height: "600px"

# Notification Messages
messages:
  welcome: "Welcome to the KNIRV Developer Portal!"
  authentication_required: "Please log in to access this feature."
  feature_coming_soon: "This feature is coming soon!"
  success_generic: "Operation completed successfully!"
  error_generic: "An error occurred. Please try again."

# Download Links Configuration
downloads:
  knirvrouter:
    windows: "https://releases.knirv.network/knirvrouter/windows/knirvrouter-setup.exe"
    mac: "https://releases.knirv.network/knirvrouter/mac/knirvrouter.dmg"
    linux: "https://releases.knirv.network/knirvrouter/linux/knirvrouter.AppImage"
    requirements:
      windows: "Windows 10/11, 8GB RAM, 100GB Storage"
      mac: "macOS 10.15+, 8GB RAM, 100GB Storage"
      linux: "Ubuntu 20.04+/CentOS 8+, 8GB RAM, 100GB Storage"
    note: "You'll need 1000 NRN tokens to start routing."

  knirvana:
    windows: "https://releases.knirv.network/knirvana/windows/knirvana-setup.exe"
    mac: "https://releases.knirv.network/knirvana/mac/knirvana.dmg"
    linux: "https://releases.knirv.network/knirvana/linux/knirvana.AppImage"
    requirements:
      windows: "Windows 10/11 64-bit, 4GB RAM, 2GB Storage, DirectX 11"
      mac: "macOS 11+, 4GB RAM, 2GB Storage, Metal support"
      linux: "Ubuntu 20.04+, 4GB RAM, 2GB Storage, OpenGL 4.1"
    note: "Experience the KNIRV metaverse gaming platform."

  knirvoracle:
    linux: "https://releases.knirv.network/knirvoracle/linux/knirvoracle-bootnode.tar.gz"
    docker: "docker pull knirv/oracle-bootnode:latest"
    source: "https://github.com/KNIRV-NETWORK/knirvoracle"
    requirements:
      linux: "Ubuntu 20.04+, 16GB RAM, 500GB Storage, Docker support"
      docker: "Docker 20.10+, 16GB RAM, 500GB Storage"
      source: "Go 1.19+, Git, Build tools"
    note: "Run KNIRV Oracle bootnodes for network consensus."

  knirvsdk:
    javascript: "npm install @knirv/sdk"
    python: "pip install knirv-sdk"
    rust: "cargo add knirv-sdk"
    go: "go get github.com/knirv-network/knirv-sdk-go"
    instructions:
      javascript: "Install via npm:\n\nnpm install @knirv/sdk\n\nThen import:\nimport { KnirvClient } from \"@knirv/sdk\";"
      python: "Install via pip:\n\npip install knirv-sdk\n\nThen import:\nfrom knirv_sdk import KnirvClient"
      rust: "Add to Cargo.toml:\n\n[dependencies]\nknirv-sdk = \"*\"\n\nThen use:\nuse knirv_sdk::KnirvClient;"
      go: "Install via go mod:\n\ngo get github.com/knirv-network/knirv-sdk-go\n\nThen import:\nimport \"github.com/knirv-network/knirv-sdk-go\""
    documentation:
      javascript: "https://docs.knirv.network/sdk/javascript"
      python: "https://docs.knirv.network/sdk/python"
      rust: "https://docs.knirv.network/sdk/rust"
      go: "https://docs.knirv.network/sdk/go"

  knirvwallet:
    windows: "https://releases.knirv.network/knirvwallet/windows/knirvwallet-setup.exe"
    mac: "https://releases.knirv.network/knirvwallet/mac/knirvwallet.dmg"
    linux: "https://releases.knirv.network/knirvwallet/linux/knirvwallet.AppImage"
    mobile: "#"
    requirements:
      windows: "Windows 10/11, 4GB RAM, 1GB Storage"
      mac: "macOS 10.15+, 4GB RAM, 1GB Storage"
      linux: "Ubuntu 20.04+, 4GB RAM, 1GB Storage"
      mobile: "iOS 14+ / Android 10+"
    note: "Seamless XION Meta Accounts integration for KNIRV D-TEN ecosystem."
    mobile_note: "Mobile app coming soon! Stay tuned for updates."

  # KNIRV Controller product - supersedes standalone wallet but includes wallet features
  knirvcontroller:
    # Desktop applications
    windows: "https://releases.knirv.network/knirvcontroller/windows/knirvcontroller-setup.exe"
    mac: "https://releases.knirv.network/knirvcontroller/mac/knirvcontroller.dmg"
    linux: "https://releases.knirv.network/knirvcontroller/linux/knirvcontroller.AppImage"

    # Mobile PWA applications (slim packages)
    android: "https://releases.knirv.network/knirvcontroller-android-pwa.zip"
    ios: "https://releases.knirv.network/knirvcontroller-ios-pwa.zip"

    # PWA direct access
    pwa_url: "https://beta-controller.knirv.com"
    pwa_install_android: "https://beta-controller.knirv.com/?install=android"
    pwa_install_ios: "https://beta-controller.knirv.com/?install=ios"

    requirements:
      windows: "Windows 10/11, 4GB RAM, 2GB Storage"
      mac: "macOS 10.15+, 4GB RAM, 2GB Storage"
      linux: "Ubuntu 20.04+, 4GB RAM, 2GB Storage"
      android: "Android 7.0+, 50MB Storage, Chrome 70+"
      ios: "iOS 14.0+, 50MB Storage, Safari 14+"

    features:
      desktop: "Full desktop experience with advanced operator tools"
      mobile: "Optimized mobile interface with offline capabilities"
      pwa: "Progressive Web App with native-like experience"

    note: "KNIRVCONTROLLER includes the wallet and adds agent management, network diagnostics, and operator tooling. Mobile versions provide core functionality with device-optimized interfaces."

  # KNIRV CLI for developers and operators
  knirvcli:
    linux: "https://releases.knirv.network/knirvcli/linux/knirvcli_latest.tar.gz"
    mac: "https://releases.knirv.network/knirvcli/mac/knirvcli_latest.tar.gz"
    windows: "https://releases.knirv.network/knirvcli/windows/knirvcli_latest.zip"
    instructions:
      linux: "Download and extract the archive, then move the 'knirv' binary to ~/.local/bin or /usr/local/bin. See README for details."
      mac: "Download and extract the archive, then move the 'knirv' binary to /usr/local/bin."
      windows: "Download the zip, extract knirv.exe and add to your PATH."
    note: "KNIRV-CLI is the recommended command-line tool for developers and operators. Use alongside KNIRVCONTROLLER for full control."

# Development Settings
development:
  debug_mode: false
  mock_data_enabled: true
  api_timeout: 30000
