Skip to content

feat(apps): add Google Health API connector#11

Merged
jezekra1 merged 1 commit intomainfrom
feat/google-health-api
Apr 19, 2026
Merged

feat(apps): add Google Health API connector#11
jezekra1 merged 1 commit intomainfrom
feat/google-health-api

Conversation

@jezekra1
Copy link
Copy Markdown

Summary

Adds the new Google Health API as an OAuth connector. Handy for agents that want to read activity, sleep, or health-metric data from Fitbit/connected devices — and relevant now that the legacy Fitbit Web API is being turned down in September 2026.

Changes

  • Web (apps/web/src/lib/apps/google-health.ts): new AppDefinition reusing buildGoogleAuthUrl / exchangeGoogleCode / googleConfigFields / googleEnvDefaults. Default scopes are read-only over activity_and_fitness, sleep, and health_metrics_and_measurements; the permissions list also surfaces nutrition, location, and profile scopes for UI disclosure.
  • Gateway (apps/gateway/src/apps.rs): route health.googleapis.com via Bearer auth, sharing GOOGLE_REFRESH. Adds assertions to the existing providers_for_google_workspace_hosts and google_workspace_apps_use_bearer tests.
  • Icon: simple Google-red heart SVG at apps/web/public/icons/google-health.svg (placeholder — happy to swap for a brand-accurate one).

Test plan

  • pnpm --filter @onecli/web lint — passes locally
  • pnpm --filter @onecli/web check-types — passes locally (after pnpm db:generate)
  • cargo test -p gateway apps:: — new host asserts pass
  • Manual: connect a test account with GOOGLE_CLIENT_ID/SECRET, authorize, and hit GET https://health.googleapis.com/v4/users/me/identity through the gateway

- Web: register google-health app with read-only default scopes for
  activity & fitness, sleep, and health metrics
- Gateway: route health.googleapis.com via Bearer auth with shared
  GOOGLE_REFRESH config

Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
@jezekra1 jezekra1 merged commit ded6917 into main Apr 19, 2026
3 checks passed
jezekra1 added a commit to kagenti/humr that referenced this pull request Apr 19, 2026
Picks up the Google Health API connector (kagenti/onecli#11).

Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
jezekra1 added a commit to kagenti/humr that referenced this pull request Apr 19, 2026
Picks up the Google Health API connector (kagenti/onecli#11).

Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants