v367 - CORI Mail schema-backed storage and Workspace Integrations foundation

Purpose

v367 moves CORI Mail from interface-only planning into schema-backed memory planning and adds a new Workspace Settings page for third-party integrations.

The goal is to keep the user-facing experience simple while preparing the platform to safely connect real outside services behind the scenes.

What changed

Simple user-facing rule

Users should not need to understand OAuth, API keys, SMTP, webhooks, or tokens during daily dispatch work. Those details belong in Workspace Settings. The main work pages should show only the useful result, the warning, or the next step.

Security rule

Provider passwords, API keys, OAuth tokens, and SMTP passwords must not become browser memory as the final store. They must be saved as encrypted server-side secret payloads using the integration secret vault.

Prisma impact

v367 includes Prisma schema changes.

npx prisma generate
npx prisma db push

Recommended next step

After v367 is verified, continue by connecting the new integrations page more deeply to CORI Mail and the phone/route/accounting setup paths. The most useful next move is to add real connection test flows for Custom SMTP and Twilio readiness while keeping live sending and live calling guarded.