<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Implementing Privacy Awareness Training

## Agent Script

### Commands

| Command | Description |
|---|---|
| `node agent.js rights-training --regulation gdpr --audience customer-service` | Generate data subject rights training for customer-facing teams |
| `node agent.js consent --scenarios marketing,analytics,third-party` | Build consent management training scenarios |
| `node agent.js breach-notify --regulation gdpr --role dpo` | Create breach notification responsibility training |
| `node agent.js cross-reg --regulations gdpr,ccpa,hipaa --comparison matrix` | Generate cross-regulation comparison training |

### Examples

```bash
# Generate data subject rights training for customer-facing teams
node agent.js rights-training --regulation gdpr --audience customer-service

# Build consent management training scenarios
node agent.js consent --scenarios marketing,analytics,third-party

# Create breach notification responsibility training
node agent.js breach-notify --regulation gdpr --role dpo

# Generate cross-regulation comparison training
node agent.js cross-reg --regulations gdpr,ccpa,hipaa --comparison matrix
```

## External Tools

| Tool | Command | Purpose |
|---|---|---|
| OneTrust | `onetrust --dsar-status --queue open` | Data subject request management |
| TrustArc | `trustarc --assessment-status --type dpia` | Privacy impact assessments |
| BigID | `bigid --data-discovery --pii-report` | Automated PII discovery |

## Compliance Frameworks

| Standard | Training Requirement |
|---|---|
| GDPR | EU General Data Protection Regulation |
| CCPA/CPRA | California Consumer Privacy Act and amendments |
| HIPAA Privacy Rule | Health information privacy requirements |
| NIST Privacy Framework | Privacy risk management framework |
