@latimer-woods-tech/compliance
TCPA suppression list management, FDCPA 24-hour contact window enforcement, and immutable consent records. Depends on@latimer-woods-tech/neon.
Installation
Database
API
checkTCPA(opts)
Checks whether a phone number is on the TCPA suppression list.
suppressPhone(db, phone, reason?)
Adds a phone number to the TCPA suppression list. Idempotent (ON CONFLICT DO NOTHING).
logConsent(db, opts)
Appends an immutable consent record. Records are never updated or deleted.
checkFDCPA(db, opts)
Returns whether a contact attempt is permitted under FDCPA’s 24-hour rule.
recordContact(db, opts)
Inserts a contact record used by checkFDCPA.