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.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1886,7 +1886,7 @@ declare class ApprovalManager {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
|
|
1888
1888
|
/** Features gated by plan tier */
|
|
1889
|
-
type GatedFeature = 'advanced-anomaly-rules' | 'sar-ctr-reports' | 'webhooks' | 'ofac-screening' | 'csv-export' | 'multi-chain' | 'cftc-compliance' | 'circle-wallets' | 'circle-compliance' | 'gas-station' | 'cctp-transfers' | 'approval-policies' | 'unified-screening';
|
|
1889
|
+
type GatedFeature = 'advanced-anomaly-rules' | 'sar-ctr-reports' | 'webhooks' | 'ofac-screening' | 'csv-export' | 'multi-chain' | 'cftc-compliance' | 'circle-wallets' | 'circle-compliance' | 'gas-station' | 'cctp-transfers' | 'approval-policies' | 'unified-screening' | 'blocklist-manager';
|
|
1890
1890
|
/**
|
|
1891
1891
|
* Check if a feature is available on the given plan.
|
|
1892
1892
|
* Returns true if allowed, false if not.
|
|
@@ -4232,6 +4232,8 @@ interface BlocklistConfig {
|
|
|
4232
4232
|
persistPath?: string;
|
|
4233
4233
|
/** Whether allowlist takes priority over blocklist */
|
|
4234
4234
|
allowlistPriority?: boolean;
|
|
4235
|
+
/** Current plan tier — required for plan gate enforcement (Pro+) */
|
|
4236
|
+
plan?: PlanTier;
|
|
4235
4237
|
}
|
|
4236
4238
|
/** Aggregated screening result combining all provider results */
|
|
4237
4239
|
interface UnifiedScreeningResult {
|
package/dist/index.d.ts
CHANGED
|
@@ -1886,7 +1886,7 @@ declare class ApprovalManager {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
|
|
1888
1888
|
/** Features gated by plan tier */
|
|
1889
|
-
type GatedFeature = 'advanced-anomaly-rules' | 'sar-ctr-reports' | 'webhooks' | 'ofac-screening' | 'csv-export' | 'multi-chain' | 'cftc-compliance' | 'circle-wallets' | 'circle-compliance' | 'gas-station' | 'cctp-transfers' | 'approval-policies' | 'unified-screening';
|
|
1889
|
+
type GatedFeature = 'advanced-anomaly-rules' | 'sar-ctr-reports' | 'webhooks' | 'ofac-screening' | 'csv-export' | 'multi-chain' | 'cftc-compliance' | 'circle-wallets' | 'circle-compliance' | 'gas-station' | 'cctp-transfers' | 'approval-policies' | 'unified-screening' | 'blocklist-manager';
|
|
1890
1890
|
/**
|
|
1891
1891
|
* Check if a feature is available on the given plan.
|
|
1892
1892
|
* Returns true if allowed, false if not.
|
|
@@ -4232,6 +4232,8 @@ interface BlocklistConfig {
|
|
|
4232
4232
|
persistPath?: string;
|
|
4233
4233
|
/** Whether allowlist takes priority over blocklist */
|
|
4234
4234
|
allowlistPriority?: boolean;
|
|
4235
|
+
/** Current plan tier — required for plan gate enforcement (Pro+) */
|
|
4236
|
+
plan?: PlanTier;
|
|
4235
4237
|
}
|
|
4236
4238
|
/** Aggregated screening result combining all provider results */
|
|
4237
4239
|
interface UnifiedScreeningResult {
|
package/dist/index.js
CHANGED
|
@@ -4101,7 +4101,8 @@ var FEATURE_MIN_PLAN = {
|
|
|
4101
4101
|
"gas-station": "enterprise",
|
|
4102
4102
|
"cctp-transfers": "enterprise",
|
|
4103
4103
|
"approval-policies": "pro",
|
|
4104
|
-
"unified-screening": "pro"
|
|
4104
|
+
"unified-screening": "pro",
|
|
4105
|
+
"blocklist-manager": "pro"
|
|
4105
4106
|
};
|
|
4106
4107
|
var PLAN_RANK = { free: 0, pro: 1, enterprise: 2 };
|
|
4107
4108
|
var FEATURE_LABELS = {
|
|
@@ -4117,7 +4118,8 @@ var FEATURE_LABELS = {
|
|
|
4117
4118
|
"gas-station": "Gas Station integration",
|
|
4118
4119
|
"cctp-transfers": "CCTP cross-chain transfers",
|
|
4119
4120
|
"approval-policies": "Approval policies",
|
|
4120
|
-
"unified-screening": "Unified screening (OFAC, Chainalysis, OpenSanctions)"
|
|
4121
|
+
"unified-screening": "Unified screening (OFAC, Chainalysis, OpenSanctions)",
|
|
4122
|
+
"blocklist-manager": "Custom blocklist/allowlist manager"
|
|
4121
4123
|
};
|
|
4122
4124
|
function isFeatureAvailable(feature, currentPlan) {
|
|
4123
4125
|
const requiredPlan = FEATURE_MIN_PLAN[feature];
|
|
@@ -8254,6 +8256,8 @@ var BlocklistManager = class {
|
|
|
8254
8256
|
/** Optional configuration */
|
|
8255
8257
|
config;
|
|
8256
8258
|
constructor(config) {
|
|
8259
|
+
const plan = config?.plan ?? "free";
|
|
8260
|
+
requirePlan("blocklist-manager", plan);
|
|
8257
8261
|
this.config = config ?? {};
|
|
8258
8262
|
}
|
|
8259
8263
|
// --------------------------------------------------------------------------
|