@webdecoy/node 0.27.0 → 0.29.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 CHANGED
@@ -316,6 +316,8 @@ The SDK also ships an in-process captcha: it scores behavioral, environmental an
316
316
 
317
317
  Mount the endpoints with your adapter (`webdecoyCaptcha` in Express, `webdecoyCaptchaPlugin` in Fastify, `createCaptchaHandler` in Next.js) or with `createCaptchaEndpoints()`. They serve `GET /__webdecoy/challenge`, `POST /__webdecoy/verify`, `POST /__webdecoy/score` and `POST /__webdecoy/token/verify`.
318
318
 
319
+ When the browser provides usable scroll samples, `/verify` and `/score` return an `observations` entry with the ID `large-scroll-step-v1`. It summarizes the sample count and largest step in CSS pixels for diagnostics.
320
+
319
321
  ```ts
320
322
  import express from 'express';
321
323
  import { webdecoyCaptcha } from '@webdecoy/express';
@@ -1470,12 +1470,14 @@ function createFetchGuard(options = {}) {
1470
1470
  },
1471
1471
  async check(request, peer) {
1472
1472
  const url = new URL(request.url);
1473
+ const headers = headerRecord(request.headers);
1474
+ if (!headers.host && !headers[":authority"]) headers.host = url.host;
1473
1475
  const metadata = {
1474
1476
  method: request.method,
1475
1477
  path: url.pathname,
1476
1478
  ip: resolveIP(request, peer),
1477
1479
  user_agent: request.headers.get("user-agent") ?? void 0,
1478
- headers: headerRecord(request.headers),
1480
+ headers,
1479
1481
  query: url.search ? url.search.slice(1) : void 0,
1480
1482
  timestamp: Date.now()
1481
1483
  };
package/dist/index.d.mts CHANGED
@@ -62,7 +62,17 @@ interface BehavioralSignals {
62
62
  trajectoryLength?: number;
63
63
  approachPoints?: number;
64
64
  touchEvents?: number;
65
+ pointerHasNonMouseType?: boolean;
65
66
  keyEvents?: number;
67
+ /** Number of completed key holds in the browser's timing summary. */
68
+ keyHoldSamples?: number;
69
+ /** Average hold duration in milliseconds for those samples. */
70
+ keyHoldAvg?: number;
71
+ /** Count of recent scroll events and largest CSS pixel step between them. */
72
+ scrollMorphology?: {
73
+ samples?: number;
74
+ maxStep?: number;
75
+ };
66
76
  microTremorScore?: number;
67
77
  approachDirectness?: number;
68
78
  clickPrecision?: number;
@@ -202,7 +212,9 @@ interface FontsInfo {
202
212
  supported?: boolean;
203
213
  count?: number;
204
214
  hasSegoeUI?: boolean;
215
+ hasCalibri?: boolean;
205
216
  hasSFPro?: boolean;
217
+ hasMenlo?: boolean;
206
218
  hasDejaVuSans?: boolean;
207
219
  [key: string]: unknown;
208
220
  }
@@ -309,6 +321,8 @@ interface DetectionContext {
309
321
  * change the score.
310
322
  */
311
323
  trustedJA4Headers?: string[];
324
+ /** Whether the server requested a widget click. Defaults to true. */
325
+ widgetInteraction?: boolean;
312
326
  /** Proof-of-work verification outcome (supplied by the PoW subsystem). */
313
327
  pow?: PoWOutcome;
314
328
  /**
@@ -317,6 +331,14 @@ interface DetectionContext {
317
331
  */
318
332
  extraDetections?: Detection[];
319
333
  }
334
+ /** A diagnostic based on recent page scroll movement. */
335
+ interface ScrollJumpObservation {
336
+ id: 'large-scroll-step-v1';
337
+ mode: 'observe';
338
+ status: 'detected' | 'clear';
339
+ samples: number;
340
+ maxStep: number;
341
+ }
320
342
  /** Final verdict returned by {@link DetectionEngine.score}. */
321
343
  interface Verdict {
322
344
  /** True when the weighted score is below the success threshold (< 0.5). */
@@ -329,6 +351,8 @@ interface Verdict {
329
351
  categoryScores: CategoryScores;
330
352
  /** Every triggered detection. */
331
353
  detections: Detection[];
354
+ /** Scroll diagnostics returned when the browser supplied enough usable evidence. */
355
+ observations?: ScrollJumpObservation[];
332
356
  /** Unix seconds at evaluation time. */
333
357
  timestamp: number;
334
358
  }
@@ -479,8 +503,14 @@ declare function parseUserAgent(ua: string): UserAgentInfo;
479
503
 
480
504
  /** The engine's verdict on one browser session. */
481
505
  interface ClientVerdict {
482
- /** Session id supplied by the browser widget. */
506
+ /** Identifier used by the store. */
483
507
  sessionId: string;
508
+ /** Scope of a receipt issued by the embedded score endpoint. */
509
+ receipt?: {
510
+ host: string;
511
+ siteKey: string;
512
+ expiresAt: number;
513
+ };
484
514
  /** 0–1, higher is more bot-like. */
485
515
  score: number;
486
516
  /** What the engine recommends doing about it. */
@@ -516,14 +546,16 @@ declare class MemoryClientSignalStore implements ClientSignalStore {
516
546
  set(verdict: ClientVerdict): void;
517
547
  get size(): number;
518
548
  }
519
- /** The cookie the widget sets, and the header it will also accept. */
549
+ /** Session references supplied by an existing application integration. */
520
550
  declare const CLIENT_SESSION_COOKIE = "wd_cs";
521
551
  declare const CLIENT_SESSION_HEADER = "x-wd-session";
522
- /** Read the browser session id off a request, cookie first then header. */
552
+ /** Read the server receipt or an application-supplied legacy session id. */
523
553
  declare function readClientSession(headers: Record<string, string>): string | undefined;
524
554
  interface ClientSignalConfig {
525
555
  /** Where verdicts are read from. Must be the store `/score` writes to. */
526
556
  store: ClientSignalStore;
557
+ /** Site key expected by this rule when several site keys share a request host. */
558
+ siteKey?: string;
527
559
  /**
528
560
  * Deny at or above this score, 0–1. The engine's own `recommendation` is used
529
561
  * when this is omitted.
@@ -543,6 +575,7 @@ interface ClientSignalConfig {
543
575
  declare class ClientSignalRule implements Rule {
544
576
  readonly name = "client-signals";
545
577
  private readonly store;
578
+ private readonly siteKey?;
546
579
  private readonly minScore?;
547
580
  private readonly action;
548
581
  private readonly dryRun;
@@ -1503,16 +1536,20 @@ interface VerifyInput {
1503
1536
  }
1504
1537
  /** A verdict plus an issued token (present only on success). */
1505
1538
  interface VerifyResult extends Verdict {
1539
+ /** True when the proof verified and the score passed. */
1540
+ success: boolean;
1506
1541
  /** base64url session token, or null when the request did not pass. */
1507
1542
  token: string | null;
1508
1543
  }
1509
1544
  /** Invisible-mode (`score`) result. */
1510
1545
  interface ScoreResult {
1546
+ /** True when the proof verified and the score passed. */
1511
1547
  success: boolean;
1512
1548
  score: number;
1513
1549
  token: string | null;
1514
1550
  action: string;
1515
1551
  recommendation: Recommendation;
1552
+ observations?: Verdict['observations'];
1516
1553
  }
1517
1554
 
1518
1555
  /**
@@ -1638,10 +1675,18 @@ declare class Captcha {
1638
1675
  * signals, and issues a session token on success. Mirrors `runVerification`.
1639
1676
  */
1640
1677
  verify(input: VerifyInput): Promise<VerifyResult>;
1678
+ private verifySubmission;
1641
1679
  /** Invisible-mode scoring — same pipeline, returns a compact result + action. */
1642
1680
  score(input: VerifyInput & {
1643
1681
  action?: string;
1644
1682
  }): Promise<ScoreResult>;
1683
+ /** @internal Return the score and whether the server verified the committed signals. */
1684
+ scoreForSession(input: VerifyInput & {
1685
+ action?: string;
1686
+ }): Promise<{
1687
+ result: ScoreResult;
1688
+ verifiedSignals: boolean;
1689
+ }>;
1645
1690
  /** Verify a previously issued token (single-use, optionally IP-bound). */
1646
1691
  verifyToken(token: string, ip?: string | null): Promise<TokenVerification>;
1647
1692
  }
@@ -1708,4 +1753,4 @@ declare function createCaptchaEndpoints(options?: CaptchaEndpointsOptions): {
1708
1753
  };
1709
1754
  type CaptchaEndpoints = ReturnType<typeof createCaptchaEndpoints>;
1710
1755
 
1711
- export { ATTACK_SIGNATURE_IDS, AgentCategory, AgentRequestInput, AgentVerdict, AgentVerifier, AgentVerifierOptions, type AttackSignatureConfig, AttackSignatureRule, type BehavioralSignals, type BlockResponse, BotAgent, BotCategory, BotPolicy, type BotPolicyOptions, BotRule, BotRuleConfig, CLIENT_SESSION_COOKIE, CLIENT_SESSION_HEADER, Captcha, type CaptchaEndpoints, type CaptchaEndpointsOptions, type CaptchaHttpResponse, type CaptchaOptions, type CaptchaRequest, type CategoryScores, type ChallengeData, type ChallengeStore, type ClientSignalConfig, ClientSignalRule, type ClientSignalStore, type ClientVerdict, DEFAULT_SIGNED_AGENT_DIRECTORIES, DEFAULT_TRIPWIRE_PATHS, DEFAULT_WEIGHTS, type Detection, type DetectionContext, DetectionEngine, type DetectionEngineOptions, DirectoryCache, type EnvironmentalSignals, FilterConfig, FilterRule, type FingerprintStore, type FormAnalysisSignals, HONEYTOKEN_BASE_PATH, type Honeytoken, type HoneytokenArmingOptions, type HoneytokenLinkProps, type HoneytokenOptions, InMemoryChallengeStore, InMemoryFingerprintStore, InMemoryRateLimiter, InMemoryTokenStore, MemoryClientSignalStore, type MemoryClientSignalStoreOptions, PoWManager, type PoWManagerOptions, type PoWOutcome, type PoWSolution, type PoWVerification, ProtectResult, RateLimitConfig, RateLimitConsume, RateLimitOutcome, RateLimitRule, RateLimitStore, type RateLimiter, type Recommendation, type RobotsTxtOptions, Rule, RuleContext, RuleEngine, RuleEngineResult, RuleResult, type ScoreResult, type Signals, SignedAgentDirectory, type SiteHoneytoken, type SiteHoneytokenOptions, type StoredChallenge, TEST_TRIGGER_UA_PREFIX, TEST_TRIGGER_USER_AGENT, type TemporalSignals, type TextareaKeyboardStats, TokenManager, type TokenManagerOptions, type TokenStore, type TokenVerification, TripwireConfig, TripwireRule, UpstashRateLimitStore, type UpstashStoreOptions, type Verdict, type VerifyInput, type VerifyResult, type WebBotAuthConfig, WebBotAuthRule, WebDecoy, armSiteHoneytoken, attackSignatures, botPolicy, bots, calculateCategoryScores, calculateFinalScore, clientSignals, createAgentVerifier, createCaptchaEndpoints, deriveAndArm, filter, honeytoken, injectHoneytokenLink, isDatacenterIP, isInjectableHtml, isMobileUA, isTestTriggerUserAgent, parseUserAgent, rateLimit, readClientSession, recommend, resolveSecret, ruleBlockResponse, shouldSkipPath, siteHoneytoken, tripwire, upstashRateLimitStore, webBotAuth };
1756
+ export { ATTACK_SIGNATURE_IDS, AgentCategory, AgentRequestInput, AgentVerdict, AgentVerifier, AgentVerifierOptions, type AttackSignatureConfig, AttackSignatureRule, type BehavioralSignals, type BlockResponse, BotAgent, BotCategory, BotPolicy, type BotPolicyOptions, BotRule, BotRuleConfig, CLIENT_SESSION_COOKIE, CLIENT_SESSION_HEADER, Captcha, type CaptchaEndpoints, type CaptchaEndpointsOptions, type CaptchaHttpResponse, type CaptchaOptions, type CaptchaRequest, type CategoryScores, type ChallengeData, type ChallengeStore, type ClientSignalConfig, ClientSignalRule, type ClientSignalStore, type ClientVerdict, DEFAULT_SIGNED_AGENT_DIRECTORIES, DEFAULT_TRIPWIRE_PATHS, DEFAULT_WEIGHTS, type Detection, type DetectionContext, DetectionEngine, type DetectionEngineOptions, DirectoryCache, type EnvironmentalSignals, FilterConfig, FilterRule, type FingerprintStore, type FormAnalysisSignals, HONEYTOKEN_BASE_PATH, type Honeytoken, type HoneytokenArmingOptions, type HoneytokenLinkProps, type HoneytokenOptions, InMemoryChallengeStore, InMemoryFingerprintStore, InMemoryRateLimiter, InMemoryTokenStore, MemoryClientSignalStore, type MemoryClientSignalStoreOptions, PoWManager, type PoWManagerOptions, type PoWOutcome, type PoWSolution, type PoWVerification, ProtectResult, RateLimitConfig, RateLimitConsume, RateLimitOutcome, RateLimitRule, RateLimitStore, type RateLimiter, type Recommendation, type RobotsTxtOptions, Rule, RuleContext, RuleEngine, RuleEngineResult, RuleResult, type ScoreResult, type ScrollJumpObservation, type Signals, SignedAgentDirectory, type SiteHoneytoken, type SiteHoneytokenOptions, type StoredChallenge, TEST_TRIGGER_UA_PREFIX, TEST_TRIGGER_USER_AGENT, type TemporalSignals, type TextareaKeyboardStats, TokenManager, type TokenManagerOptions, type TokenStore, type TokenVerification, TripwireConfig, TripwireRule, UpstashRateLimitStore, type UpstashStoreOptions, type Verdict, type VerifyInput, type VerifyResult, type WebBotAuthConfig, WebBotAuthRule, WebDecoy, armSiteHoneytoken, attackSignatures, botPolicy, bots, calculateCategoryScores, calculateFinalScore, clientSignals, createAgentVerifier, createCaptchaEndpoints, deriveAndArm, filter, honeytoken, injectHoneytokenLink, isDatacenterIP, isInjectableHtml, isMobileUA, isTestTriggerUserAgent, parseUserAgent, rateLimit, readClientSession, recommend, resolveSecret, ruleBlockResponse, shouldSkipPath, siteHoneytoken, tripwire, upstashRateLimitStore, webBotAuth };
package/dist/index.d.ts CHANGED
@@ -62,7 +62,17 @@ interface BehavioralSignals {
62
62
  trajectoryLength?: number;
63
63
  approachPoints?: number;
64
64
  touchEvents?: number;
65
+ pointerHasNonMouseType?: boolean;
65
66
  keyEvents?: number;
67
+ /** Number of completed key holds in the browser's timing summary. */
68
+ keyHoldSamples?: number;
69
+ /** Average hold duration in milliseconds for those samples. */
70
+ keyHoldAvg?: number;
71
+ /** Count of recent scroll events and largest CSS pixel step between them. */
72
+ scrollMorphology?: {
73
+ samples?: number;
74
+ maxStep?: number;
75
+ };
66
76
  microTremorScore?: number;
67
77
  approachDirectness?: number;
68
78
  clickPrecision?: number;
@@ -202,7 +212,9 @@ interface FontsInfo {
202
212
  supported?: boolean;
203
213
  count?: number;
204
214
  hasSegoeUI?: boolean;
215
+ hasCalibri?: boolean;
205
216
  hasSFPro?: boolean;
217
+ hasMenlo?: boolean;
206
218
  hasDejaVuSans?: boolean;
207
219
  [key: string]: unknown;
208
220
  }
@@ -309,6 +321,8 @@ interface DetectionContext {
309
321
  * change the score.
310
322
  */
311
323
  trustedJA4Headers?: string[];
324
+ /** Whether the server requested a widget click. Defaults to true. */
325
+ widgetInteraction?: boolean;
312
326
  /** Proof-of-work verification outcome (supplied by the PoW subsystem). */
313
327
  pow?: PoWOutcome;
314
328
  /**
@@ -317,6 +331,14 @@ interface DetectionContext {
317
331
  */
318
332
  extraDetections?: Detection[];
319
333
  }
334
+ /** A diagnostic based on recent page scroll movement. */
335
+ interface ScrollJumpObservation {
336
+ id: 'large-scroll-step-v1';
337
+ mode: 'observe';
338
+ status: 'detected' | 'clear';
339
+ samples: number;
340
+ maxStep: number;
341
+ }
320
342
  /** Final verdict returned by {@link DetectionEngine.score}. */
321
343
  interface Verdict {
322
344
  /** True when the weighted score is below the success threshold (< 0.5). */
@@ -329,6 +351,8 @@ interface Verdict {
329
351
  categoryScores: CategoryScores;
330
352
  /** Every triggered detection. */
331
353
  detections: Detection[];
354
+ /** Scroll diagnostics returned when the browser supplied enough usable evidence. */
355
+ observations?: ScrollJumpObservation[];
332
356
  /** Unix seconds at evaluation time. */
333
357
  timestamp: number;
334
358
  }
@@ -479,8 +503,14 @@ declare function parseUserAgent(ua: string): UserAgentInfo;
479
503
 
480
504
  /** The engine's verdict on one browser session. */
481
505
  interface ClientVerdict {
482
- /** Session id supplied by the browser widget. */
506
+ /** Identifier used by the store. */
483
507
  sessionId: string;
508
+ /** Scope of a receipt issued by the embedded score endpoint. */
509
+ receipt?: {
510
+ host: string;
511
+ siteKey: string;
512
+ expiresAt: number;
513
+ };
484
514
  /** 0–1, higher is more bot-like. */
485
515
  score: number;
486
516
  /** What the engine recommends doing about it. */
@@ -516,14 +546,16 @@ declare class MemoryClientSignalStore implements ClientSignalStore {
516
546
  set(verdict: ClientVerdict): void;
517
547
  get size(): number;
518
548
  }
519
- /** The cookie the widget sets, and the header it will also accept. */
549
+ /** Session references supplied by an existing application integration. */
520
550
  declare const CLIENT_SESSION_COOKIE = "wd_cs";
521
551
  declare const CLIENT_SESSION_HEADER = "x-wd-session";
522
- /** Read the browser session id off a request, cookie first then header. */
552
+ /** Read the server receipt or an application-supplied legacy session id. */
523
553
  declare function readClientSession(headers: Record<string, string>): string | undefined;
524
554
  interface ClientSignalConfig {
525
555
  /** Where verdicts are read from. Must be the store `/score` writes to. */
526
556
  store: ClientSignalStore;
557
+ /** Site key expected by this rule when several site keys share a request host. */
558
+ siteKey?: string;
527
559
  /**
528
560
  * Deny at or above this score, 0–1. The engine's own `recommendation` is used
529
561
  * when this is omitted.
@@ -543,6 +575,7 @@ interface ClientSignalConfig {
543
575
  declare class ClientSignalRule implements Rule {
544
576
  readonly name = "client-signals";
545
577
  private readonly store;
578
+ private readonly siteKey?;
546
579
  private readonly minScore?;
547
580
  private readonly action;
548
581
  private readonly dryRun;
@@ -1503,16 +1536,20 @@ interface VerifyInput {
1503
1536
  }
1504
1537
  /** A verdict plus an issued token (present only on success). */
1505
1538
  interface VerifyResult extends Verdict {
1539
+ /** True when the proof verified and the score passed. */
1540
+ success: boolean;
1506
1541
  /** base64url session token, or null when the request did not pass. */
1507
1542
  token: string | null;
1508
1543
  }
1509
1544
  /** Invisible-mode (`score`) result. */
1510
1545
  interface ScoreResult {
1546
+ /** True when the proof verified and the score passed. */
1511
1547
  success: boolean;
1512
1548
  score: number;
1513
1549
  token: string | null;
1514
1550
  action: string;
1515
1551
  recommendation: Recommendation;
1552
+ observations?: Verdict['observations'];
1516
1553
  }
1517
1554
 
1518
1555
  /**
@@ -1638,10 +1675,18 @@ declare class Captcha {
1638
1675
  * signals, and issues a session token on success. Mirrors `runVerification`.
1639
1676
  */
1640
1677
  verify(input: VerifyInput): Promise<VerifyResult>;
1678
+ private verifySubmission;
1641
1679
  /** Invisible-mode scoring — same pipeline, returns a compact result + action. */
1642
1680
  score(input: VerifyInput & {
1643
1681
  action?: string;
1644
1682
  }): Promise<ScoreResult>;
1683
+ /** @internal Return the score and whether the server verified the committed signals. */
1684
+ scoreForSession(input: VerifyInput & {
1685
+ action?: string;
1686
+ }): Promise<{
1687
+ result: ScoreResult;
1688
+ verifiedSignals: boolean;
1689
+ }>;
1645
1690
  /** Verify a previously issued token (single-use, optionally IP-bound). */
1646
1691
  verifyToken(token: string, ip?: string | null): Promise<TokenVerification>;
1647
1692
  }
@@ -1708,4 +1753,4 @@ declare function createCaptchaEndpoints(options?: CaptchaEndpointsOptions): {
1708
1753
  };
1709
1754
  type CaptchaEndpoints = ReturnType<typeof createCaptchaEndpoints>;
1710
1755
 
1711
- export { ATTACK_SIGNATURE_IDS, AgentCategory, AgentRequestInput, AgentVerdict, AgentVerifier, AgentVerifierOptions, type AttackSignatureConfig, AttackSignatureRule, type BehavioralSignals, type BlockResponse, BotAgent, BotCategory, BotPolicy, type BotPolicyOptions, BotRule, BotRuleConfig, CLIENT_SESSION_COOKIE, CLIENT_SESSION_HEADER, Captcha, type CaptchaEndpoints, type CaptchaEndpointsOptions, type CaptchaHttpResponse, type CaptchaOptions, type CaptchaRequest, type CategoryScores, type ChallengeData, type ChallengeStore, type ClientSignalConfig, ClientSignalRule, type ClientSignalStore, type ClientVerdict, DEFAULT_SIGNED_AGENT_DIRECTORIES, DEFAULT_TRIPWIRE_PATHS, DEFAULT_WEIGHTS, type Detection, type DetectionContext, DetectionEngine, type DetectionEngineOptions, DirectoryCache, type EnvironmentalSignals, FilterConfig, FilterRule, type FingerprintStore, type FormAnalysisSignals, HONEYTOKEN_BASE_PATH, type Honeytoken, type HoneytokenArmingOptions, type HoneytokenLinkProps, type HoneytokenOptions, InMemoryChallengeStore, InMemoryFingerprintStore, InMemoryRateLimiter, InMemoryTokenStore, MemoryClientSignalStore, type MemoryClientSignalStoreOptions, PoWManager, type PoWManagerOptions, type PoWOutcome, type PoWSolution, type PoWVerification, ProtectResult, RateLimitConfig, RateLimitConsume, RateLimitOutcome, RateLimitRule, RateLimitStore, type RateLimiter, type Recommendation, type RobotsTxtOptions, Rule, RuleContext, RuleEngine, RuleEngineResult, RuleResult, type ScoreResult, type Signals, SignedAgentDirectory, type SiteHoneytoken, type SiteHoneytokenOptions, type StoredChallenge, TEST_TRIGGER_UA_PREFIX, TEST_TRIGGER_USER_AGENT, type TemporalSignals, type TextareaKeyboardStats, TokenManager, type TokenManagerOptions, type TokenStore, type TokenVerification, TripwireConfig, TripwireRule, UpstashRateLimitStore, type UpstashStoreOptions, type Verdict, type VerifyInput, type VerifyResult, type WebBotAuthConfig, WebBotAuthRule, WebDecoy, armSiteHoneytoken, attackSignatures, botPolicy, bots, calculateCategoryScores, calculateFinalScore, clientSignals, createAgentVerifier, createCaptchaEndpoints, deriveAndArm, filter, honeytoken, injectHoneytokenLink, isDatacenterIP, isInjectableHtml, isMobileUA, isTestTriggerUserAgent, parseUserAgent, rateLimit, readClientSession, recommend, resolveSecret, ruleBlockResponse, shouldSkipPath, siteHoneytoken, tripwire, upstashRateLimitStore, webBotAuth };
1756
+ export { ATTACK_SIGNATURE_IDS, AgentCategory, AgentRequestInput, AgentVerdict, AgentVerifier, AgentVerifierOptions, type AttackSignatureConfig, AttackSignatureRule, type BehavioralSignals, type BlockResponse, BotAgent, BotCategory, BotPolicy, type BotPolicyOptions, BotRule, BotRuleConfig, CLIENT_SESSION_COOKIE, CLIENT_SESSION_HEADER, Captcha, type CaptchaEndpoints, type CaptchaEndpointsOptions, type CaptchaHttpResponse, type CaptchaOptions, type CaptchaRequest, type CategoryScores, type ChallengeData, type ChallengeStore, type ClientSignalConfig, ClientSignalRule, type ClientSignalStore, type ClientVerdict, DEFAULT_SIGNED_AGENT_DIRECTORIES, DEFAULT_TRIPWIRE_PATHS, DEFAULT_WEIGHTS, type Detection, type DetectionContext, DetectionEngine, type DetectionEngineOptions, DirectoryCache, type EnvironmentalSignals, FilterConfig, FilterRule, type FingerprintStore, type FormAnalysisSignals, HONEYTOKEN_BASE_PATH, type Honeytoken, type HoneytokenArmingOptions, type HoneytokenLinkProps, type HoneytokenOptions, InMemoryChallengeStore, InMemoryFingerprintStore, InMemoryRateLimiter, InMemoryTokenStore, MemoryClientSignalStore, type MemoryClientSignalStoreOptions, PoWManager, type PoWManagerOptions, type PoWOutcome, type PoWSolution, type PoWVerification, ProtectResult, RateLimitConfig, RateLimitConsume, RateLimitOutcome, RateLimitRule, RateLimitStore, type RateLimiter, type Recommendation, type RobotsTxtOptions, Rule, RuleContext, RuleEngine, RuleEngineResult, RuleResult, type ScoreResult, type ScrollJumpObservation, type Signals, SignedAgentDirectory, type SiteHoneytoken, type SiteHoneytokenOptions, type StoredChallenge, TEST_TRIGGER_UA_PREFIX, TEST_TRIGGER_USER_AGENT, type TemporalSignals, type TextareaKeyboardStats, TokenManager, type TokenManagerOptions, type TokenStore, type TokenVerification, TripwireConfig, TripwireRule, UpstashRateLimitStore, type UpstashStoreOptions, type Verdict, type VerifyInput, type VerifyResult, type WebBotAuthConfig, WebBotAuthRule, WebDecoy, armSiteHoneytoken, attackSignatures, botPolicy, bots, calculateCategoryScores, calculateFinalScore, clientSignals, createAgentVerifier, createCaptchaEndpoints, deriveAndArm, filter, honeytoken, injectHoneytokenLink, isDatacenterIP, isInjectableHtml, isMobileUA, isTestTriggerUserAgent, parseUserAgent, rateLimit, readClientSession, recommend, resolveSecret, ruleBlockResponse, shouldSkipPath, siteHoneytoken, tripwire, upstashRateLimitStore, webBotAuth };