Skip to content

Workspace Email And Drive Sync

CaseSolo supports a live Workspace sync runtime for Google Workspace and Microsoft 365. The implementation is user-scoped and stores OAuth tokens plus incremental cursors in user metadata.

Storage

The API never returns stored tokens.

Provider Coverage

Google Workspace:

Microsoft 365:

Both providers normalize synced emails/documents into case hints and can write Activity rows when a caseId is supplied to the sync action.

API

GET /api/integrations/workspace-sync returns secret-safe provider status and readiness.

POST /api/integrations/workspace-sync supports:

OAuth callbacks:

Provider References

Verification

npm run test:run -- workspace-sync
npx eslint src/lib/integrations/workspace-sync.ts src/app/api/integrations/workspace-sync/route.ts src/app/api/integrations/google-workspace/callback/route.ts src/app/api/integrations/microsoft-365/callback/route.ts src/__tests__/lib/workspace-sync.test.ts src/__tests__/api/workspace-sync.test.ts
npm run typecheck

Source: docs/dev/workspace-sync.md