feat: audit logging, meeting prep AI, communication style settings

- New audit_logs table for compliance tracking
- Audit logging service with helper functions
- GET /api/audit-logs endpoint (admin only, with filters)
- Communication style JSONB field on userProfiles
- GET/PATCH /api/profile/communication-style endpoints
- AI meeting prep: GET /api/clients/:id/meeting-prep
- AI email generation now incorporates communication style
- Password change audit logging
- 56 passing tests (21 new)
This commit is contained in:
2026-01-30 01:16:12 +00:00
parent 0ec1b9c448
commit 6c2851e93a
9 changed files with 800 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ export const emailRoutes = new Elysia({ prefix: '/emails' })
notes: client.notes || '',
purpose: body.purpose,
provider: body.provider,
communicationStyle: profile?.communicationStyle as any,
});
console.log(`[${new Date().toISOString()}] Email content generated successfully`);
} catch (e) {