Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / approvalLicensedKey

Function: approvalLicensedKey()

ts
function approvalLicensedKey(entry): string | undefined;

Defined in: packages/core/src/effects/types.ts:579

The effect logical key an approval licenses (RFC section 4.3, item 4), read from the approval suspension's own payload: recorded on the approval request, so the fold can refuse an intent whose key differs from the key the approval named. Fail closed: an approval that names no key licenses no effect.

Parameters

ParameterType
entryJournalEntry

Returns

string | undefined