import { ShieldThresholds } from "@intelvisual/types";
import { VERSION as PKG_VERSION } from "./version";

/**
 * Módulo de configuración de constantes predeterminadas para Shadow Shield.
 * Estos valores representan los umbrales de seguridad estándar recomendados.
 */
export const VERSION = PKG_VERSION;


export const DEFAULT_INTELVISUAL_URL = "https://intelvisual.es";
export const DEFAULT_API_BASE = "/api/shadow-shield";

export const DEFAULT_SHADOW_SHIELD_CONFIG: { 
  thresholds: ShieldThresholds; 
  version: string;
  configUrl: string;
  heartbeatUrl: string;
  eventsUrl: string;
} = {
  thresholds: {
    deny: 0.90,
    shadow_reject: 0.70
  },
  version: VERSION,
  configUrl: `${DEFAULT_INTELVISUAL_URL}${DEFAULT_API_BASE}/config`,
  heartbeatUrl: `${DEFAULT_INTELVISUAL_URL}${DEFAULT_API_BASE}/heartbeat`,
  eventsUrl: `${DEFAULT_INTELVISUAL_URL}${DEFAULT_API_BASE}/events`,
};
