Add the Google Meet API client and keep only the personal connection

Merged
EH
2d ago
+540-52

Context

Fourth PR of the Google Meet app, following #30587 (app shell), #30588 (test setup) and #30589 (Google OAuth connection). The app will import Google Meet recordings, transcripts and Gemini notes into Call Recordings, the same way the Teams, Fathom and Granola apps do. The full sequence of PRs is listed in #30587.

This PR does two things: it adds the code that talks to the Meet REST API v2, and it removes the workspace-shared connection added in #30589.

Meet API client

Nothing calls it yet: the transcript import in a following PR is its first user.

  • fetchGoogleMeetJson: authenticated GET against the Meet API. Retries 429 and 5xx up to four attempts, honouring Retry-After and otherwise backing off exponentially. The total wait is capped at 8 seconds so a logic function fails cleanly instead of sleeping past its timeout. Modelled on the Teams app's Graph request helper.
  • listGoogleMeetConferenceRecords: lists the conferences started in a time window through conferenceRecords.list, following nextPageToken with a page limit.
  • GoogleMeetException: the single exception of the app, carrying a code plus the HTTP status and Google's error status (for example PERMISSION_DENIED) for failed requests.
  • Small helpers for the request URL and the start_time filter, plus the conference record types.
  • Adds @sniptt/guards, already used by the other public apps.

The request and response shapes come from the conferenceRecords.list reference.

Personal connection only

Removes the google-meet workspace-shared connection provider and keeps google-meet-user, unchanged.

Google only lists the conferences the connected account organized, and the recordings, transcripts and notes are saved in that account's Drive. A connection shared with the workspace would therefore import one person's meetings while suggesting it covers the team. Each member connects their own Google account instead.

The app is not published, so no connection exists on the removed provider. The integration test now asserts that only the personal provider is registered.

Checks

Run locally in the app folder: yarn install --immutable, yarn lint, yarn typecheck, yarn test:unit (9 tests) and the repo formatter pass. The unit tests mock fetch; this code has not been run against the real Meet API yet. The integration test needs a running server and was not run locally; CI runs it.