Google Meet: name calls after the document Meet writes for them

Merged
EH
18h ago
+203-19

Context

Follows https://github.com/twentyhq/twenty/pull/30617 in the Google Meet app series started in https://github.com/twentyhq/twenty/pull/30587.

Meet's API has no meeting title: not on the conference record, the space, or the event. A call that matches no Twenty calendar event, such as an instant meeting, was imported with an empty title. Meet does name the Google Doc it writes for each call: Meeting started 2026/11/17 18:10 IST - Notes by Gemini for an instant meeting, <event title> - <date> - Transcript for a scheduled one. This PR reads that name.

What this PR does

  • Adds the documents.readonly scope to the Google Meet connection provider.
  • A matched calendar event still names the call, and still links it.
  • Otherwise the import reads the title of the document the transcript points to, with documents.get and fields=title, so no content is fetched. It drops Meet's last - … part ("Notes by Gemini", "Transcript", in any language) and keeps dashes inside the meeting name.
  • SETUP.md lists the Docs scope and adds docs.googleapis.com to the gcloud services enable command.

Checks

  • yarn lint, yarn typecheck, oxfmt --check and yarn test:unit (154 tests) pass locally. New unit tests cover the name extraction. The sync test checks that a calendar match makes no Docs call and that a call without one takes the document's name.
  • Tested on a self-hosted Twenty with a real Google account. After reconnecting with the new scope, an instant meeting was imported as Meeting started 2026/11/17 18:35 IST with its 4 transcript entries, 3.5 minutes after the call ended.