kontext-sdk 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -4078,7 +4078,8 @@ var FEATURE_MIN_PLAN = {
4078
4078
  "gas-station": "enterprise",
4079
4079
  "cctp-transfers": "enterprise",
4080
4080
  "approval-policies": "pro",
4081
- "unified-screening": "pro"
4081
+ "unified-screening": "pro",
4082
+ "blocklist-manager": "pro"
4082
4083
  };
4083
4084
  var PLAN_RANK = { free: 0, pro: 1, enterprise: 2 };
4084
4085
  var FEATURE_LABELS = {
@@ -4094,7 +4095,8 @@ var FEATURE_LABELS = {
4094
4095
  "gas-station": "Gas Station integration",
4095
4096
  "cctp-transfers": "CCTP cross-chain transfers",
4096
4097
  "approval-policies": "Approval policies",
4097
- "unified-screening": "Unified screening (OFAC, Chainalysis, OpenSanctions)"
4098
+ "unified-screening": "Unified screening (OFAC, Chainalysis, OpenSanctions)",
4099
+ "blocklist-manager": "Custom blocklist/allowlist manager"
4098
4100
  };
4099
4101
  function isFeatureAvailable(feature, currentPlan) {
4100
4102
  const requiredPlan = FEATURE_MIN_PLAN[feature];
@@ -8231,6 +8233,8 @@ var BlocklistManager = class {
8231
8233
  /** Optional configuration */
8232
8234
  config;
8233
8235
  constructor(config) {
8236
+ const plan = config?.plan ?? "free";
8237
+ requirePlan("blocklist-manager", plan);
8234
8238
  this.config = config ?? {};
8235
8239
  }
8236
8240
  // --------------------------------------------------------------------------