Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / approvalLicensedKey

Function: approvalLicensedKey()

ts
function approvalLicensedKey(entry): string | undefined;

Defined in: packages/core/dist/index.d.ts

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