feat(email): Google Workspace domain import (Phase 1) + Business pricing #4071
ccantynzcommented Jun 11, 2026
Originally written by @vercel[bot] on GitHub.
Deployment failed with the following error:
There is no GitHub account connected to this Vercel account.ccantynzcommented Jun 11, 2026
Originally written by @vercel[bot] on GitHub.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| alec-rae-com-admin | Preview, Comment | Jun 11, 2026 9:45am |
Cross-repo impact
See what breaks downstream if this PR merges.
⮌ Merged
This pull request was merged into main.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts
Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/AlecRae.com/pull/60
What
Google Workspace domain-wide import (Phase 1) — the "switch your whole company onto AlecRae" flow — plus the Craig-approved Business pricing recorded in the Bible.
Workspace import
lib/google-workspace.ts— Admin SDK Directory client: admin OAuth (Directory read +gmail.readonly), code exchange, paginatedusers.list.routes/workspace-import.ts(mounted at/v1/import/workspace):GET /start— admin authorizes (Directory scope)GET /callback— stores the admin grant inconnected_accounts(status='workspace_admin',sync_cursor=domain)GET /users— lists the domain's Workspace usersPOST /provision— bulk-creates native mailboxes from selected users on a verified domain (reuses themailboxestable from #59)connected_accounts, so the drift guard stays green.Verification
POST /provisionover HTTP against a fresh DB: created 2 mailboxes, skipped the off-domain address, HTTP 200, and idempotent on re-run (created 0). ✅apps/apitypecheck clean ✅/start/callback/users) are typechecked + written to the Admin SDK spec; they need live admin creds to verify (can't exercise Google from CI). Phase 2 = per-user mail migration via the existing/v1/importpipeline.Pricing
Records the approved multi-currency Business / Business Plus tiers in
CLAUDE.md(NZ$25/$45 incl GST, US$16/$30, etc.). Billing wiring (currency-aware price-per-tier-per-currency) is the next step.Follow-ups
https://claude.ai/code/session_01McgJLnTbZG9mwhfwd5iAX3
Generated by Claude Code