@webdecoy/node 0.22.2 → 0.23.0
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/README.md +7 -1
- package/dist/{chunk-F2T5V6NK.mjs → chunk-ANOZMV4M.mjs} +100 -17
- package/dist/{chunk-POXOR4DB.mjs → chunk-HQVMNN6X.mjs} +204 -199
- package/dist/{detect-and-gate-9-vm6nEN.d.mts → detect-and-gate-BUFbu1y5.d.mts} +1 -1
- package/dist/{detect-and-gate-DeD4UBzX.d.ts → detect-and-gate-CU2u2EZD.d.ts} +1 -1
- package/dist/index.d.mts +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.js +303 -215
- package/dist/index.mjs +2 -2
- package/dist/{sdk-U_qp9ync.d.mts → sdk-CmWmCDuZ.d.mts} +1 -1
- package/dist/{sdk-U_qp9ync.d.ts → sdk-CmWmCDuZ.d.ts} +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +100 -17
- package/dist/testing.mjs +1 -1
- package/dist/vercel.d.mts +2 -2
- package/dist/vercel.d.ts +2 -2
- package/dist/vercel.js +303 -215
- package/dist/vercel.mjs +2 -2
- package/package.json +20 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as WebDecoyConfig, G as ProtectOptions, r as Decision, W as WebDecoy } from './sdk-
|
|
1
|
+
import { Z as WebDecoyConfig, G as ProtectOptions, r as Decision, W as WebDecoy } from './sdk-CmWmCDuZ.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Resolving the client IP address behind a proxy.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as WebDecoyConfig, G as ProtectOptions, r as Decision, W as WebDecoy } from './sdk-
|
|
1
|
+
import { Z as WebDecoyConfig, G as ProtectOptions, r as Decision, W as WebDecoy } from './sdk-CmWmCDuZ.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Resolving the client IP address behind a proxy.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-
|
|
2
|
-
export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, D as DEFAULT_CHARACTERISTICS, r as Decision, s as DecisionCache, t as DecisionCacheOptions, u as DecisionInit, E as EDGE_CLASS_HEADER, v as EDGE_CLEARANCE_HEADER, w as EdgeClass, x as EdgeVerdict, I as IPEnrichmentData, L as LocalAnalysis, y as LogFields, z as Logger, M as MemoryRateLimitStore, G as ProtectOptions, H as RequestMetadata, J as RuleOutcome, K as RuleState, N as SDKDetectionRequest, O as SDKDetectionResponse, Q as Span, U as SyncRateLimitStore, V as TLSInfo, X as Tracer, Y as ViolationEvent, Z as WebDecoyConfig, _ as classifyUserAgent, $ as consoleLogger, a0 as deriveKey, a1 as fromPino, a2 as matchUserAgent, a3 as newDecisionId, a4 as readEdgeVerdict, a5 as silentLogger } from './sdk-
|
|
3
|
-
export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-
|
|
1
|
+
import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-CmWmCDuZ.mjs';
|
|
2
|
+
export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, D as DEFAULT_CHARACTERISTICS, r as Decision, s as DecisionCache, t as DecisionCacheOptions, u as DecisionInit, E as EDGE_CLASS_HEADER, v as EDGE_CLEARANCE_HEADER, w as EdgeClass, x as EdgeVerdict, I as IPEnrichmentData, L as LocalAnalysis, y as LogFields, z as Logger, M as MemoryRateLimitStore, G as ProtectOptions, H as RequestMetadata, J as RuleOutcome, K as RuleState, N as SDKDetectionRequest, O as SDKDetectionResponse, Q as Span, U as SyncRateLimitStore, V as TLSInfo, X as Tracer, Y as ViolationEvent, Z as WebDecoyConfig, _ as classifyUserAgent, $ as consoleLogger, a0 as deriveKey, a1 as fromPino, a2 as matchUserAgent, a3 as newDecisionId, a4 as readEdgeVerdict, a5 as silentLogger } from './sdk-CmWmCDuZ.mjs';
|
|
3
|
+
export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-BUFbu1y5.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The reserved test trigger.
|
|
@@ -1356,8 +1356,12 @@ interface VerificationKey {
|
|
|
1356
1356
|
nbf?: number;
|
|
1357
1357
|
exp?: number;
|
|
1358
1358
|
}
|
|
1359
|
-
/**
|
|
1360
|
-
|
|
1359
|
+
/**
|
|
1360
|
+
* Resolves a JWK-thumbprint keyid, as published by one agent identity (a
|
|
1361
|
+
* resolved Signature-Agent URL), to a verification key, or undefined if that
|
|
1362
|
+
* identity publishes no such key.
|
|
1363
|
+
*/
|
|
1364
|
+
type KeyResolver = (keyId: string, agent: string) => Promise<VerificationKey | undefined>;
|
|
1361
1365
|
|
|
1362
1366
|
/**
|
|
1363
1367
|
* Cached Web Bot Auth directory client.
|
|
@@ -1406,7 +1410,11 @@ declare class DirectoryCache {
|
|
|
1406
1410
|
private nextColdRetryAt;
|
|
1407
1411
|
private inflight;
|
|
1408
1412
|
constructor(opts: DirectoryCacheOptions);
|
|
1409
|
-
/**
|
|
1413
|
+
/**
|
|
1414
|
+
* Resolve a keyid published by one agent identity (a resolved
|
|
1415
|
+
* Signature-Agent URL) to a verification key, fetching/refreshing as
|
|
1416
|
+
* needed. A key is only ever attributed to the directory that published it.
|
|
1417
|
+
*/
|
|
1410
1418
|
resolveKey: KeyResolver;
|
|
1411
1419
|
/** Kick off a fetch without blocking — call at startup to warm the cache. */
|
|
1412
1420
|
prime(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-
|
|
2
|
-
export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, D as DEFAULT_CHARACTERISTICS, r as Decision, s as DecisionCache, t as DecisionCacheOptions, u as DecisionInit, E as EDGE_CLASS_HEADER, v as EDGE_CLEARANCE_HEADER, w as EdgeClass, x as EdgeVerdict, I as IPEnrichmentData, L as LocalAnalysis, y as LogFields, z as Logger, M as MemoryRateLimitStore, G as ProtectOptions, H as RequestMetadata, J as RuleOutcome, K as RuleState, N as SDKDetectionRequest, O as SDKDetectionResponse, Q as Span, U as SyncRateLimitStore, V as TLSInfo, X as Tracer, Y as ViolationEvent, Z as WebDecoyConfig, _ as classifyUserAgent, $ as consoleLogger, a0 as deriveKey, a1 as fromPino, a2 as matchUserAgent, a3 as newDecisionId, a4 as readEdgeVerdict, a5 as silentLogger } from './sdk-
|
|
3
|
-
export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-
|
|
1
|
+
import { R as Rule, a as RuleContext, b as RuleResult, c as RuleEngineResult, d as RateLimitConfig, F as FilterConfig, T as TripwireConfig, B as BotRuleConfig, e as BotAgent, f as BotCategory, A as AgentCategory, g as RateLimitStore, h as RateLimitConsume, i as RateLimitOutcome, W as WebDecoy, P as ProtectResult, j as AgentVerifierOptions, k as AgentRequestInput, l as AgentVerdict, S as SignedAgentDirectory } from './sdk-CmWmCDuZ.js';
|
|
2
|
+
export { m as AgentStatus, n as BOT_CATEGORIES, o as BOT_REGISTRY, p as BotVerdict, C as Characteristic, q as Conclusion, D as DEFAULT_CHARACTERISTICS, r as Decision, s as DecisionCache, t as DecisionCacheOptions, u as DecisionInit, E as EDGE_CLASS_HEADER, v as EDGE_CLEARANCE_HEADER, w as EdgeClass, x as EdgeVerdict, I as IPEnrichmentData, L as LocalAnalysis, y as LogFields, z as Logger, M as MemoryRateLimitStore, G as ProtectOptions, H as RequestMetadata, J as RuleOutcome, K as RuleState, N as SDKDetectionRequest, O as SDKDetectionResponse, Q as Span, U as SyncRateLimitStore, V as TLSInfo, X as Tracer, Y as ViolationEvent, Z as WebDecoyConfig, _ as classifyUserAgent, $ as consoleLogger, a0 as deriveKey, a1 as fromPino, a2 as matchUserAgent, a3 as newDecisionId, a4 as readEdgeVerdict, a5 as silentLogger } from './sdk-CmWmCDuZ.js';
|
|
3
|
+
export { B as CLEARANCE_GATE_BUILD, C as ClearanceContext, a as ClearanceGateOptions, D as DetectAndGateOptions, b as DetectAndGateOutcome, F as FetchGuard, c as FetchGuardOptions, G as GateEnv, d as GateOutcome, e as GuardOutcome, H as HeaderSource, R as ResolveClientIpOptions, T as TrustedProxies, f as createClearanceGate, g as createDetectAndGate, h as createFetchGuard, i as ipInCidr, n as normalizeIp, r as resolveClientIp, j as resolveGateEnv } from './detect-and-gate-CU2u2EZD.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The reserved test trigger.
|
|
@@ -1356,8 +1356,12 @@ interface VerificationKey {
|
|
|
1356
1356
|
nbf?: number;
|
|
1357
1357
|
exp?: number;
|
|
1358
1358
|
}
|
|
1359
|
-
/**
|
|
1360
|
-
|
|
1359
|
+
/**
|
|
1360
|
+
* Resolves a JWK-thumbprint keyid, as published by one agent identity (a
|
|
1361
|
+
* resolved Signature-Agent URL), to a verification key, or undefined if that
|
|
1362
|
+
* identity publishes no such key.
|
|
1363
|
+
*/
|
|
1364
|
+
type KeyResolver = (keyId: string, agent: string) => Promise<VerificationKey | undefined>;
|
|
1361
1365
|
|
|
1362
1366
|
/**
|
|
1363
1367
|
* Cached Web Bot Auth directory client.
|
|
@@ -1406,7 +1410,11 @@ declare class DirectoryCache {
|
|
|
1406
1410
|
private nextColdRetryAt;
|
|
1407
1411
|
private inflight;
|
|
1408
1412
|
constructor(opts: DirectoryCacheOptions);
|
|
1409
|
-
/**
|
|
1413
|
+
/**
|
|
1414
|
+
* Resolve a keyid published by one agent identity (a resolved
|
|
1415
|
+
* Signature-Agent URL) to a verification key, fetching/refreshing as
|
|
1416
|
+
* needed. A key is only ever attributed to the directory that published it.
|
|
1417
|
+
*/
|
|
1410
1418
|
resolveKey: KeyResolver;
|
|
1411
1419
|
/** Kick off a fetch without blocking — call at startup to warm the cache. */
|
|
1412
1420
|
prime(): void;
|