Documentation
    Preparing search index...

    Function evaluateRateLimit

    • Charge one operation against temporal budgets, regardless of its permission. Configuration errors throw before any state is changed. A backwards clock never moves a bucket timestamp backwards or grants an extra refill.

      Parameters

      Returns RateLimitResult

      Verdict and counters to use for the next call.

      const result = evaluateRateLimit(defaultRateLimitConfig(), createRateLimitState(), {
      subject: 'verified-manifest-key', operation: 'link.open', lifecycle: 'frame:1',
      elapsedSinceStartMs: 0, focused: true, now: 0,
      });