Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / projectIdentity

Function: projectIdentity()

ts
function projectIdentity(input): Record<string, unknown>;

Defined in: packages/core/src/journal/identity.ts:108

The canonical identity object of an IdentityInput under the hashVersion 2 profile: what JCS serializes and sha256 hashes. The agent kind projects modelSpec through modelSpecIdentity; every other kind serializes its fields verbatim. Fields not listed for a kind are never included (the types make them unrepresentable).

Parameters

ParameterType
inputIdentityInput

Returns

Record&lt;string, unknown&gt;