import { ThreatDetector, Storage } from "@chainpatrol/sdk";
// Create a new detector instance
const detector = new ThreatDetector({
mode: "cloud", // 'cloud' | 'local' (default: 'cloud')
// Optional: Specify a custom API key (only available for 'cloud' mode)
apiKey: "YOUR_API_KEY",
// Optional: Configure a proxy server (only available for 'cloud' mode)
proxyUrl: "https://proxy.acme.com",
// Optional: Specify a custom storage adapter
storage: Storage.extension(),
// storage: Storage.browser(),
// storage: Storage.memory(),
// Optional: Specify a custom redirect URL
redirectUrl: "https://app.chainpatrol.io/warning",
});