Google Meet: let each member turn off AI summaries for their own calls

Merged
EH
15h ago
+125-3

Context

Second of three PRs that split https://github.com/twentyhq/twenty/pull/30645. Builds on https://github.com/twentyhq/twenty/pull/30654.

What this PR does

  • Adds an AI summaries setting per member (a USER application variable, on by default), shown on the member's Apps preferences.
  • The summary job follows the call owner's choice. It now takes the owner's userWorkspaceId and reads members' values through the metadata query myUserApplicationVariables, since a job started by the app has no member and gets no USER values in its env. A call whose owner turned the setting off ends as DISABLED, without an agent run.

Checks

  • yarn lint, yarn typecheck, twenty app build, oxfmt --check and yarn test:unit (173 tests) pass locally. A new pure test covers finding the owner's value.
  • Tested on a self-hosted Twenty as part of #30645: the setting shows on Apps preferences, and the job ends as DISABLED only for an owner who turned it off.

Stack

  1. https://github.com/twentyhq/twenty/pull/30654
  2. This PR
  3. https://github.com/twentyhq/twenty/pull/30656