Skip to content

v2.5.0

Latest

Choose a tag to compare

@safenestdev safenestdev released this 15 Mar 08:21
· 1 commit to main since this release

What's New

Added

  • country context field — Pass ISO 3166-1 alpha-2 country code (e.g., "GB", "US", "SE") in the context object to receive geo-localised crisis helpline data in detection responses. Falls back to user profile country if omitted.

Improved

  • Action escalation for minors — All detection endpoints now enforce minimum flag_for_review when harm is detected and the subject is a minor. Criminal indicators (sextortion, trafficking, CSAM) targeting minors automatically escalate to immediate_intervention.
  • Risk score distribution — Detection responses now use graduated scoring across the full 0.0–1.0 range instead of clustering around a single value.
  • Evidence tactic format — Evidence tactic fields are now normalised to SCREAMING_SNAKE_CASE (e.g., EMOTIONAL_MANIPULATION instead of Emotional Manipulation).

Install

npm install @tuteliq/sdk@2.5.0