<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# Performing LINDDUN Privacy Threat Modeling — API Reference

## agent.js CLI

```bash
# Map Processing action
node scripts/agent.js --action map-processing

# Enumerate action
node scripts/agent.js --action enumerate

# Assess action
node scripts/agent.js --action assess

# Recommend action
node scripts/agent.js --action recommend
```

## LINDDUN Threat Schema

```json
{
  "id": "PT-001",
  "processing": "User Registration",
  "category": "Identifiability",
  "category_code": "I",
  "privacy_property": "Anonymity",
  "gdpr_article": "Art. 5(1)(c)",
  "recommended_pets": ["K-anonymity", "Zero-knowledge proofs"]
}
```

## DPIA Output Schema

```json
{
  "processing_activity": "Analytics",
  "threats": 7,
  "high_risk": 3,
  "legal_basis": "legitimate_interest",
  "mitigations_required": true
}
```
