keyedRateLimitAdmissionBundle()
Build the D648/D649 bounded fact-stream admission gate.
opts.requests contains authority-admitted requests, not arbitrary raw requests. When using
{@link attachKeyedRateLimitAuthority}, use its authorityRequests projection or composed
admission bundle. The graph validates correlation and currentness only. The host authority
owns durable quota, clocks, algorithms, and atomic consume. Replay suppression is exact while a
completed correlation remains retained; cross-restart business-effect idempotency remains
executor/application-owned.
Import
Section titled “Import”import { keyedRateLimitAdmissionBundle } from "@graphrefly/ts/rate-limit";Signature
Section titled “Signature”function keyedRateLimitAdmissionBundle( graph: Graph, opts: KeyedRateLimitAdmissionBundleOptions,): KeyedRateLimitAdmissionBundleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the declared correlation and projection nodes. |
opts | KeyedRateLimitAdmissionBundleOptions | One bounded authority-admitted correlation lane and retention bounds. |
Returns
Section titled “Returns”Graph-visible admissions, denials, status, issues, audit, and cursor projections.
Example
Section titled “Example”import { keyedRateLimitAdmissionBundle } from "@graphrefly/ts/rate-limit";Source
Section titled “Source”packages/ts/src/rate-limit/keyed-rate-limit.ts