attachKeyedRateLimitAuthority()
Attach a graph-visible request node to one host-private D648 atomic authority.
The returned nodes form the D649 raw-request -> bounded authority-request -> authority-outcome
-> exact-admission topology. Governed consumers use admission.admissions; they do not wire raw
requests to a second correlation gate or protected effect. This adapter supplies no timer, retry
loop, store, clock, fingerprint, or application effect executor.
Import
Section titled “Import”import { attachKeyedRateLimitAuthority } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function attachKeyedRateLimitAuthority( graph: Graph, requests: Node<KeyedRateLimitRequest>, authority: KeyedRateLimitAuthority, opts: KeyedRateLimitAuthorityAdapterOptions = {},): KeyedRateLimitAuthorityAdapterBundleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the adapter and composed admission nodes. |
requests | Node<KeyedRateLimitRequest> | Strict raw requests entering the bounded adapter. |
authority | KeyedRateLimitAuthority | Host-private atomic consume capability. |
opts | KeyedRateLimitAuthorityAdapterOptions | Positive in-flight and retained-completion bounds plus an optional node name. |
Returns
Section titled “Returns”The graph-visible authority projections and composed admission gate.
Example
Section titled “Example”import { attachKeyedRateLimitAuthority } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/keyed-rate-limit-authority.ts