createKeyedRateLimitOutcome()
Create one externally authoritative outcome without handwritten canonical encoding.
The host assigns the outcome id after a valid authority decision. This helper owns no durable receipt, transaction, clock, evaluator, or admission.
Import
Section titled “Import”import { createKeyedRateLimitOutcome } from "@graphrefly/ts/rate-limit";Signature
Section titled “Signature”function createKeyedRateLimitOutcome( requestValue: unknown, opts: CreateKeyedRateLimitOutcomeOptions,): KeyedRateLimitOutcomeParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
requestValue | unknown | The complete strict request decided by the host authority. |
opts | CreateKeyedRateLimitOutcomeOptions | The authoritative result, outcome id, quota material, and provenance. |
Returns
Section titled “Returns”The immutable strict outcome for adapter delivery.
Example
Section titled “Example”import { createKeyedRateLimitOutcome } from "@graphrefly/ts/rate-limit";Source
Section titled “Source”packages/ts/src/rate-limit/keyed-rate-limit.ts