Skip to main content

resolveActionField

@totemsdk/authority


@totemsdk/authority / resolveActionField

Function: resolveActionField()

resolveActionField(action, field): unknown

Resolve a constraint field against an action intent.

Supports:

  • top-level action fields (target, principal, agent, action, nonce);
  • flat constraint keys (action.constraints[field]);
  • dotted nested paths into the constraint map (payload.fooconstraints.payload.foo).

This lets governance-emitted constraints such as target and payload.foo match without the caller manually flattening them into a single map.

Parameters

action

ActionIntent

field

string

Returns

unknown