@thebriangao/totem 1.4.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dev.vars.example +5 -0
- package/.dockerignore +5 -0
- package/.env.example +29 -20
- package/CHANGELOG.md +99 -1
- package/CONTRIBUTING.md +48 -116
- package/Dockerfile +46 -12
- package/README.md +172 -498
- package/SECURITY.md +36 -59
- package/TOOLS.md +448 -311
- package/WHOOP.md +497 -2659
- package/assets/brand/SOURCES.md +38 -0
- package/assets/brand/totem.png +0 -0
- package/assets/brand/totem.svg +13 -0
- package/assets/fonts/Manrope-OFL.txt +93 -0
- package/assets/fonts/manrope-latin.woff2 +0 -0
- package/dist/build_info.js +5 -0
- package/dist/build_info.js.map +1 -0
- package/dist/cli/app.js +675 -0
- package/dist/cli/app.js.map +1 -0
- package/dist/cli/auth.js +297 -0
- package/dist/cli/auth.js.map +1 -0
- package/dist/cli/auth_flow.js +268 -0
- package/dist/cli/auth_flow.js.map +1 -0
- package/dist/cli/browser_login.js +368 -0
- package/dist/cli/browser_login.js.map +1 -0
- package/dist/cli/clients.js +403 -0
- package/dist/cli/clients.js.map +1 -0
- package/dist/cli/deploy_record.js +96 -0
- package/dist/cli/deploy_record.js.map +1 -0
- package/dist/cli/index.js +39 -575
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/links.js +28 -0
- package/dist/cli/links.js.map +1 -0
- package/dist/cli/logo.js +63 -0
- package/dist/cli/logo.js.map +1 -0
- package/dist/cli/setup.js +1157 -1017
- package/dist/cli/setup.js.map +1 -1
- package/dist/cli/spawn.js +80 -0
- package/dist/cli/spawn.js.map +1 -0
- package/dist/cli/sys.js +219 -0
- package/dist/cli/sys.js.map +1 -0
- package/dist/cli/ui.js +712 -463
- package/dist/cli/ui.js.map +1 -1
- package/dist/cli/update.js +425 -282
- package/dist/cli/update.js.map +1 -1
- package/dist/cloudflare/token_store.js +48 -0
- package/dist/cloudflare/token_store.js.map +1 -0
- package/dist/cloudflare/worker.js +155 -0
- package/dist/cloudflare/worker.js.map +1 -0
- package/dist/data/behaviors.js +2733 -617
- package/dist/data/behaviors.js.map +1 -1
- package/dist/data/endpoint_catalog.js +2681 -0
- package/dist/data/endpoint_catalog.js.map +1 -0
- package/dist/data/exercises.js +373 -4859
- package/dist/data/exercises.js.map +1 -1
- package/dist/data/garments.js +19 -0
- package/dist/data/garments.js.map +1 -0
- package/dist/data/sports.js +219 -208
- package/dist/data/sports.js.map +1 -1
- package/dist/lib/activity_list.js +123 -0
- package/dist/lib/activity_list.js.map +1 -0
- package/dist/lib/activity_records.js +195 -0
- package/dist/lib/activity_records.js.map +1 -0
- package/dist/lib/activity_results.js +44 -0
- package/dist/lib/activity_results.js.map +1 -0
- package/dist/lib/activity_types.js +164 -0
- package/dist/lib/activity_types.js.map +1 -0
- package/dist/lib/brand.js +63 -0
- package/dist/lib/brand.js.map +1 -0
- package/dist/lib/clock.js +24 -0
- package/dist/lib/clock.js.map +1 -0
- package/dist/lib/coach_session.js +345 -0
- package/dist/lib/coach_session.js.map +1 -0
- package/dist/lib/concurrency.js.map +1 -1
- package/dist/lib/dates.js +19 -0
- package/dist/lib/dates.js.map +1 -1
- package/dist/lib/env_file.js +195 -0
- package/dist/lib/env_file.js.map +1 -0
- package/dist/lib/health_plans_write.js +44 -0
- package/dist/lib/health_plans_write.js.map +1 -0
- package/dist/lib/heart_rate.js +34 -0
- package/dist/lib/heart_rate.js.map +1 -0
- package/dist/lib/highlight.js +81 -0
- package/dist/lib/highlight.js.map +1 -0
- package/dist/lib/install_links.js +47 -0
- package/dist/lib/install_links.js.map +1 -0
- package/dist/lib/instant.js +50 -0
- package/dist/lib/instant.js.map +1 -0
- package/dist/lib/journal_behaviors.js +382 -0
- package/dist/lib/journal_behaviors.js.map +1 -0
- package/dist/lib/lift_catalog.js +218 -0
- package/dist/lib/lift_catalog.js.map +1 -0
- package/dist/lib/lift_history.js +66 -0
- package/dist/lib/lift_history.js.map +1 -0
- package/dist/lib/lift_sets.js +146 -0
- package/dist/lib/lift_sets.js.map +1 -0
- package/dist/lib/lift_tool.js +20 -0
- package/dist/lib/lift_tool.js.map +1 -0
- package/dist/lib/profile_settings.js +101 -0
- package/dist/lib/profile_settings.js.map +1 -0
- package/dist/lib/screen_content.js +44 -0
- package/dist/lib/screen_content.js.map +1 -0
- package/dist/lib/timezone.js +48 -6
- package/dist/lib/timezone.js.map +1 -1
- package/dist/lib/walk.js +6 -1
- package/dist/lib/walk.js.map +1 -1
- package/dist/lib/weight_readings.js +61 -0
- package/dist/lib/weight_readings.js.map +1 -0
- package/dist/projections/activities.js +193 -0
- package/dist/projections/activities.js.map +1 -0
- package/dist/projections/alarm_schedule.js +102 -0
- package/dist/projections/alarm_schedule.js.map +1 -0
- package/dist/projections/coach.js +203 -0
- package/dist/projections/coach.js.map +1 -0
- package/dist/projections/community.js +165 -0
- package/dist/projections/community.js.map +1 -0
- package/dist/projections/health_features.js +167 -0
- package/dist/projections/health_features.js.map +1 -0
- package/dist/projections/hormonal_insights.js +239 -0
- package/dist/projections/hormonal_insights.js.map +1 -0
- package/dist/projections/journal_v2.js +157 -0
- package/dist/projections/journal_v2.js.map +1 -0
- package/dist/projections/lift_cards.js +115 -0
- package/dist/projections/lift_cards.js.map +1 -0
- package/dist/projections/lift_exercise_v2.js +131 -0
- package/dist/projections/lift_exercise_v2.js.map +1 -0
- package/dist/projections/lift_library_v2.js +67 -0
- package/dist/projections/lift_library_v2.js.map +1 -0
- package/dist/projections/lift_sessions.js +211 -0
- package/dist/projections/lift_sessions.js.map +1 -0
- package/dist/projections/memory.js +95 -0
- package/dist/projections/memory.js.map +1 -0
- package/dist/projections/milestones.js +119 -0
- package/dist/projections/milestones.js.map +1 -0
- package/dist/projections/profile_v2.js +150 -0
- package/dist/projections/profile_v2.js.map +1 -0
- package/dist/projections/settings_v2.js +153 -0
- package/dist/projections/settings_v2.js.map +1 -0
- package/dist/projections/sleep.js +4 -21
- package/dist/projections/sleep.js.map +1 -1
- package/dist/projections/v2/calendar.js +43 -0
- package/dist/projections/v2/calendar.js.map +1 -0
- package/dist/projections/v2/core_common.js +86 -0
- package/dist/projections/v2/core_common.js.map +1 -0
- package/dist/projections/v2/core_home.js +136 -0
- package/dist/projections/v2/core_home.js.map +1 -0
- package/dist/projections/v2/core_sleep_need.js +23 -0
- package/dist/projections/v2/core_sleep_need.js.map +1 -0
- package/dist/projections/v2/day.js +92 -0
- package/dist/projections/v2/day.js.map +1 -0
- package/dist/projections/v2/heart_rate.js +54 -0
- package/dist/projections/v2/heart_rate.js.map +1 -0
- package/dist/projections/v2/history.js +140 -0
- package/dist/projections/v2/history.js.map +1 -0
- package/dist/projections/v2/now.js +39 -0
- package/dist/projections/v2/now.js.map +1 -0
- package/dist/projections/v2/recovery.js +77 -0
- package/dist/projections/v2/recovery.js.map +1 -0
- package/dist/projections/v2/sleep.js +218 -0
- package/dist/projections/v2/sleep.js.map +1 -0
- package/dist/projections/v2/strain.js +39 -0
- package/dist/projections/v2/strain.js.map +1 -0
- package/dist/projections/v2/stress.js +92 -0
- package/dist/projections/v2/stress.js.map +1 -0
- package/dist/projections/v2/trend.js +205 -0
- package/dist/projections/v2/trend.js.map +1 -0
- package/dist/projections/weekly_plan.js +66 -0
- package/dist/projections/weekly_plan.js.map +1 -0
- package/dist/projections/weight_readings.js +57 -0
- package/dist/projections/weight_readings.js.map +1 -0
- package/dist/projections/workout.js +37 -15
- package/dist/projections/workout.js.map +1 -1
- package/dist/schemas/activities.js +123 -0
- package/dist/schemas/activities.js.map +1 -0
- package/dist/schemas/alarm_schedule.js +62 -0
- package/dist/schemas/alarm_schedule.js.map +1 -0
- package/dist/schemas/coach.js +76 -8
- package/dist/schemas/coach.js.map +1 -1
- package/dist/schemas/community.js +70 -0
- package/dist/schemas/community.js.map +1 -0
- package/dist/schemas/health.js +36 -0
- package/dist/schemas/health.js.map +1 -0
- package/dist/schemas/hormonal_insights.js +90 -0
- package/dist/schemas/hormonal_insights.js.map +1 -0
- package/dist/schemas/journal.js +4 -0
- package/dist/schemas/journal.js.map +1 -1
- package/dist/schemas/journal_v2.js +106 -0
- package/dist/schemas/journal_v2.js.map +1 -0
- package/dist/schemas/memory.js +42 -0
- package/dist/schemas/memory.js.map +1 -0
- package/dist/schemas/milestones.js +39 -0
- package/dist/schemas/milestones.js.map +1 -0
- package/dist/schemas/profile_v2.js +60 -0
- package/dist/schemas/profile_v2.js.map +1 -0
- package/dist/schemas/settings_v2.js +56 -0
- package/dist/schemas/settings_v2.js.map +1 -0
- package/dist/schemas/sleep.js +8 -1
- package/dist/schemas/sleep.js.map +1 -1
- package/dist/schemas/strength.js +10 -1
- package/dist/schemas/strength.js.map +1 -1
- package/dist/schemas/strength_v2.js +190 -0
- package/dist/schemas/strength_v2.js.map +1 -0
- package/dist/schemas/v2/calendar.js +8 -0
- package/dist/schemas/v2/calendar.js.map +1 -0
- package/dist/schemas/v2/core_common.js +42 -0
- package/dist/schemas/v2/core_common.js.map +1 -0
- package/dist/schemas/v2/day.js +73 -0
- package/dist/schemas/v2/day.js.map +1 -0
- package/dist/schemas/v2/now.js +25 -0
- package/dist/schemas/v2/now.js.map +1 -0
- package/dist/schemas/v2/recovery.js +35 -0
- package/dist/schemas/v2/recovery.js.map +1 -0
- package/dist/schemas/v2/sleep.js +44 -0
- package/dist/schemas/v2/sleep.js.map +1 -0
- package/dist/schemas/v2/strain.js +16 -0
- package/dist/schemas/v2/strain.js.map +1 -0
- package/dist/schemas/v2/stress.js +20 -0
- package/dist/schemas/v2/stress.js.map +1 -0
- package/dist/schemas/v2/trend.js +42 -0
- package/dist/schemas/v2/trend.js.map +1 -0
- package/dist/schemas/weekly_plan.js +31 -0
- package/dist/schemas/weekly_plan.js.map +1 -0
- package/dist/schemas/weight.js +28 -0
- package/dist/schemas/weight.js.map +1 -0
- package/dist/scripts/build_behaviors.js +114 -0
- package/dist/scripts/build_behaviors.js.map +1 -0
- package/dist/scripts/cognito_bootstrap.js +9 -277
- package/dist/scripts/cognito_bootstrap.js.map +1 -1
- package/dist/scripts/gen_activity_catalogs.js +104 -0
- package/dist/scripts/gen_activity_catalogs.js.map +1 -0
- package/dist/server-admin.js +156 -0
- package/dist/server-admin.js.map +1 -0
- package/dist/server-http.js +270 -48
- package/dist/server-http.js.map +1 -1
- package/dist/server.js +136 -23
- package/dist/server.js.map +1 -1
- package/dist/tools/annotations.js +15 -0
- package/dist/tools/annotations.js.map +1 -0
- package/dist/tools/define.js +31 -0
- package/dist/tools/define.js.map +1 -0
- package/dist/tools/register.js +59 -94
- package/dist/tools/register.js.map +1 -1
- package/dist/tools/resources.js +70 -0
- package/dist/tools/resources.js.map +1 -0
- package/dist/tools/slim_schema.js +90 -0
- package/dist/tools/slim_schema.js.map +1 -0
- package/dist/tools/v2/activity_delete.js +63 -17
- package/dist/tools/v2/activity_delete.js.map +1 -1
- package/dist/tools/v2/activity_edit.js +396 -0
- package/dist/tools/v2/activity_edit.js.map +1 -0
- package/dist/tools/v2/activity_log.js +152 -0
- package/dist/tools/v2/activity_log.js.map +1 -0
- package/dist/tools/v2/calendar.js +19 -21
- package/dist/tools/v2/calendar.js.map +1 -1
- package/dist/tools/v2/coach_ask.js +74 -110
- package/dist/tools/v2/coach_ask.js.map +1 -1
- package/dist/tools/v2/coach_history.js +120 -0
- package/dist/tools/v2/coach_history.js.map +1 -0
- package/dist/tools/v2/community.js +124 -0
- package/dist/tools/v2/community.js.map +1 -0
- package/dist/tools/v2/cycle.js +63 -15
- package/dist/tools/v2/cycle.js.map +1 -1
- package/dist/tools/v2/cycle_log.js +289 -32
- package/dist/tools/v2/cycle_log.js.map +1 -1
- package/dist/tools/v2/day.js +126 -24
- package/dist/tools/v2/day.js.map +1 -1
- package/dist/tools/v2/health.js +116 -0
- package/dist/tools/v2/health.js.map +1 -0
- package/dist/tools/v2/hr_zones_set.js +134 -34
- package/dist/tools/v2/hr_zones_set.js.map +1 -1
- package/dist/tools/v2/journal.js +75 -17
- package/dist/tools/v2/journal.js.map +1 -1
- package/dist/tools/v2/journal_log.js +306 -65
- package/dist/tools/v2/journal_log.js.map +1 -1
- package/dist/tools/v2/lift_exercise.js +125 -22
- package/dist/tools/v2/lift_exercise.js.map +1 -1
- package/dist/tools/v2/lift_exercise_set.js +291 -0
- package/dist/tools/v2/lift_exercise_set.js.map +1 -0
- package/dist/tools/v2/lift_library.js +51 -12
- package/dist/tools/v2/lift_library.js.map +1 -1
- package/dist/tools/v2/lift_log.js +309 -72
- package/dist/tools/v2/lift_log.js.map +1 -1
- package/dist/tools/v2/lift_sessions.js +248 -0
- package/dist/tools/v2/lift_sessions.js.map +1 -0
- package/dist/tools/v2/lift_template.js +232 -0
- package/dist/tools/v2/lift_template.js.map +1 -0
- package/dist/tools/v2/memory.js +45 -0
- package/dist/tools/v2/memory.js.map +1 -0
- package/dist/tools/v2/memory_set.js +107 -0
- package/dist/tools/v2/memory_set.js.map +1 -0
- package/dist/tools/v2/milestones.js +50 -0
- package/dist/tools/v2/milestones.js.map +1 -0
- package/dist/tools/v2/now.js +49 -0
- package/dist/tools/v2/now.js.map +1 -0
- package/dist/tools/v2/preferences.js +51 -0
- package/dist/tools/v2/preferences.js.map +1 -0
- package/dist/tools/v2/preferences_set.js +388 -0
- package/dist/tools/v2/preferences_set.js.map +1 -0
- package/dist/tools/v2/profile.js +54 -22
- package/dist/tools/v2/profile.js.map +1 -1
- package/dist/tools/v2/profile_update.js +167 -55
- package/dist/tools/v2/profile_update.js.map +1 -1
- package/dist/tools/v2/raw.js +91 -34
- package/dist/tools/v2/raw.js.map +1 -1
- package/dist/tools/v2/recovery.js +37 -23
- package/dist/tools/v2/recovery.js.map +1 -1
- package/dist/tools/v2/sleep.js +52 -16
- package/dist/tools/v2/sleep.js.map +1 -1
- package/dist/tools/v2/smart_alarm.js +54 -20
- package/dist/tools/v2/smart_alarm.js.map +1 -1
- package/dist/tools/v2/smart_alarm_set.js +264 -86
- package/dist/tools/v2/smart_alarm_set.js.map +1 -1
- package/dist/tools/v2/strain.js +15 -15
- package/dist/tools/v2/strain.js.map +1 -1
- package/dist/tools/v2/stress.js +17 -15
- package/dist/tools/v2/stress.js.map +1 -1
- package/dist/tools/v2/trend.js +56 -20
- package/dist/tools/v2/trend.js.map +1 -1
- package/dist/tools/v2/weekly_plan.js +30 -0
- package/dist/tools/v2/weekly_plan.js.map +1 -0
- package/dist/tools/v2/weekly_plan_set.js +134 -0
- package/dist/tools/v2/weekly_plan_set.js.map +1 -0
- package/dist/tools/v2/weight.js +56 -0
- package/dist/tools/v2/weight.js.map +1 -0
- package/dist/tools/v2/weight_log.js +188 -0
- package/dist/tools/v2/weight_log.js.map +1 -0
- package/dist/tools/v2/workouts.js +159 -25
- package/dist/tools/v2/workouts.js.map +1 -1
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/dist/whoop/bff.js +94 -0
- package/dist/whoop/bff.js.map +1 -0
- package/dist/whoop/client.js +392 -18
- package/dist/whoop/client.js.map +1 -1
- package/dist/whoop/cognito.js +106 -79
- package/dist/whoop/cognito.js.map +1 -1
- package/dist/whoop/connect_page.js +165 -0
- package/dist/whoop/connect_page.js.map +1 -0
- package/dist/whoop/consent_font.js +287 -0
- package/dist/whoop/consent_font.js.map +1 -0
- package/dist/whoop/consent_logos.js +22 -0
- package/dist/whoop/consent_logos.js.map +1 -0
- package/dist/whoop/consent_page.js +291 -0
- package/dist/whoop/consent_page.js.map +1 -0
- package/dist/whoop/constants.js +5 -1
- package/dist/whoop/constants.js.map +1 -1
- package/dist/whoop/device.js +4 -4
- package/dist/whoop/device.js.map +1 -1
- package/dist/whoop/errors.js +85 -4
- package/dist/whoop/errors.js.map +1 -1
- package/dist/whoop/init_timezone.js +57 -17
- package/dist/whoop/init_timezone.js.map +1 -1
- package/dist/whoop/installation.js +15 -10
- package/dist/whoop/installation.js.map +1 -1
- package/dist/whoop/json_out.js +52 -6
- package/dist/whoop/json_out.js.map +1 -1
- package/dist/whoop/oauth_provider.js +81 -78
- package/dist/whoop/oauth_provider.js.map +1 -1
- package/dist/whoop/token_lock.js +331 -0
- package/dist/whoop/token_lock.js.map +1 -0
- package/dist/whoop/token_manager.js +536 -42
- package/dist/whoop/token_manager.js.map +1 -1
- package/dist/whoop/token_store.js +303 -36
- package/dist/whoop/token_store.js.map +1 -1
- package/dist/whoop/units.js +28 -0
- package/dist/whoop/units.js.map +1 -0
- package/package.json +29 -13
- package/scripts/build-mcpb.mjs +72 -0
- package/scripts/embed-consent-font.mjs +34 -0
- package/scripts/readme-media.ts +195 -0
- package/scripts/tools-md.ts +89 -0
- package/scripts/whoop-md.ts +119 -0
- package/src/build_info.ts +4 -0
- package/src/cli/app.ts +696 -0
- package/src/cli/auth.ts +350 -0
- package/src/cli/auth_flow.ts +356 -0
- package/src/cli/browser_login.ts +402 -0
- package/src/cli/clients.ts +467 -0
- package/src/cli/deploy_record.ts +100 -0
- package/src/cli/index.ts +41 -583
- package/src/cli/links.ts +43 -0
- package/src/cli/logo.ts +64 -0
- package/src/cli/setup.ts +1147 -979
- package/src/cli/spawn.ts +88 -0
- package/src/cli/sys.ts +267 -0
- package/src/cli/ui.ts +778 -436
- package/src/cli/update.ts +436 -274
- package/src/cloudflare/runtime.d.ts +27 -0
- package/src/cloudflare/token_store.ts +57 -0
- package/src/cloudflare/worker.ts +174 -0
- package/src/data/behaviors.ts +2760 -622
- package/src/data/endpoint_catalog.ts +2695 -0
- package/src/data/exercises.ts +379 -4861
- package/src/data/garments.ts +28 -0
- package/src/data/sports.ts +239 -211
- package/src/lib/activity_list.ts +150 -0
- package/src/lib/activity_records.ts +213 -0
- package/src/lib/activity_results.ts +51 -0
- package/src/lib/activity_types.ts +176 -0
- package/src/lib/brand.ts +71 -0
- package/src/lib/clock.ts +16 -0
- package/src/lib/coach_session.ts +434 -0
- package/src/lib/dates.ts +18 -0
- package/src/lib/env_file.ts +191 -0
- package/src/lib/health_plans_write.ts +53 -0
- package/src/lib/heart_rate.ts +42 -0
- package/src/lib/highlight.ts +71 -0
- package/src/lib/install_links.ts +61 -0
- package/src/lib/instant.ts +54 -0
- package/src/lib/journal_behaviors.ts +453 -0
- package/src/lib/lift_catalog.ts +258 -0
- package/src/lib/lift_history.ts +75 -0
- package/src/lib/lift_sets.ts +164 -0
- package/src/lib/lift_tool.ts +25 -0
- package/src/lib/profile_settings.ts +102 -0
- package/src/lib/screen_content.ts +40 -0
- package/src/lib/timezone.ts +44 -8
- package/src/lib/walk.ts +4 -1
- package/src/lib/weight_readings.ts +82 -0
- package/src/projections/activities.ts +199 -0
- package/src/projections/alarm_schedule.ts +98 -0
- package/src/projections/coach.ts +218 -0
- package/src/projections/community.ts +187 -0
- package/src/projections/health_features.ts +191 -0
- package/src/projections/hormonal_insights.ts +277 -0
- package/src/projections/journal_v2.ts +173 -0
- package/src/projections/lift_cards.ts +131 -0
- package/src/projections/lift_exercise_v2.ts +147 -0
- package/src/projections/lift_library_v2.ts +77 -0
- package/src/projections/lift_sessions.ts +250 -0
- package/src/projections/memory.ts +100 -0
- package/src/projections/milestones.ts +133 -0
- package/src/projections/profile_v2.ts +166 -0
- package/src/projections/settings_v2.ts +179 -0
- package/src/projections/sleep.ts +7 -21
- package/src/projections/v2/calendar.ts +48 -0
- package/src/projections/v2/core_common.ts +95 -0
- package/src/projections/v2/core_home.ts +177 -0
- package/src/projections/v2/core_sleep_need.ts +37 -0
- package/src/projections/v2/day.ts +162 -0
- package/src/projections/v2/heart_rate.ts +73 -0
- package/src/projections/v2/history.ts +153 -0
- package/src/projections/v2/now.ts +59 -0
- package/src/projections/v2/recovery.ts +120 -0
- package/src/projections/v2/sleep.ts +281 -0
- package/src/projections/v2/strain.ts +63 -0
- package/src/projections/v2/stress.ts +111 -0
- package/src/projections/v2/trend.ts +242 -0
- package/src/projections/weekly_plan.ts +79 -0
- package/src/projections/weight_readings.ts +57 -0
- package/src/projections/workout.ts +36 -17
- package/src/schemas/activities.ts +136 -0
- package/src/schemas/alarm_schedule.ts +70 -0
- package/src/schemas/coach.ts +98 -8
- package/src/schemas/community.ts +77 -0
- package/src/schemas/health.ts +36 -0
- package/src/schemas/hormonal_insights.ts +108 -0
- package/src/schemas/journal.ts +4 -0
- package/src/schemas/journal_v2.ts +112 -0
- package/src/schemas/memory.ts +48 -0
- package/src/schemas/milestones.ts +48 -0
- package/src/schemas/profile_v2.ts +63 -0
- package/src/schemas/settings_v2.ts +63 -0
- package/src/schemas/sleep.ts +9 -1
- package/src/schemas/strength.ts +10 -1
- package/src/schemas/strength_v2.ts +210 -0
- package/src/schemas/v2/calendar.ts +8 -0
- package/src/schemas/v2/core_common.ts +50 -0
- package/src/schemas/v2/day.ts +79 -0
- package/src/schemas/v2/now.ts +25 -0
- package/src/schemas/v2/recovery.ts +38 -0
- package/src/schemas/v2/sleep.ts +46 -0
- package/src/schemas/v2/strain.ts +16 -0
- package/src/schemas/v2/stress.ts +20 -0
- package/src/schemas/v2/trend.ts +45 -0
- package/src/schemas/weekly_plan.ts +36 -0
- package/src/schemas/weight.ts +53 -0
- package/src/scripts/build_behaviors.ts +116 -0
- package/src/scripts/cognito_bootstrap.ts +10 -249
- package/src/scripts/gen_activity_catalogs.ts +121 -0
- package/src/server-admin.ts +171 -0
- package/src/server-http.ts +290 -53
- package/src/server.ts +130 -26
- package/src/tools/annotations.ts +25 -0
- package/src/tools/define.ts +53 -0
- package/src/tools/register.ts +64 -94
- package/src/tools/resources.ts +92 -0
- package/src/tools/slim_schema.ts +102 -0
- package/src/tools/v2/activity_delete.ts +61 -23
- package/src/tools/v2/activity_edit.ts +378 -0
- package/src/tools/v2/activity_log.ts +154 -0
- package/src/tools/v2/calendar.ts +22 -21
- package/src/tools/v2/coach_ask.ts +83 -119
- package/src/tools/v2/coach_history.ts +140 -0
- package/src/tools/v2/community.ts +137 -0
- package/src/tools/v2/cycle.ts +78 -20
- package/src/tools/v2/cycle_log.ts +291 -40
- package/src/tools/v2/day.ts +126 -25
- package/src/tools/v2/health.ts +114 -0
- package/src/tools/v2/hr_zones_set.ts +132 -45
- package/src/tools/v2/journal.ts +78 -23
- package/src/tools/v2/journal_log.ts +321 -69
- package/src/tools/v2/lift_exercise.ts +135 -27
- package/src/tools/v2/lift_exercise_set.ts +272 -0
- package/src/tools/v2/lift_library.ts +57 -21
- package/src/tools/v2/lift_log.ts +325 -83
- package/src/tools/v2/lift_sessions.ts +255 -0
- package/src/tools/v2/lift_template.ts +229 -0
- package/src/tools/v2/memory.ts +54 -0
- package/src/tools/v2/memory_set.ts +110 -0
- package/src/tools/v2/milestones.ts +59 -0
- package/src/tools/v2/now.ts +61 -0
- package/src/tools/v2/preferences.ts +61 -0
- package/src/tools/v2/preferences_set.ts +403 -0
- package/src/tools/v2/profile.ts +56 -26
- package/src/tools/v2/profile_update.ts +151 -60
- package/src/tools/v2/raw.ts +89 -36
- package/src/tools/v2/recovery.ts +44 -25
- package/src/tools/v2/sleep.ts +57 -18
- package/src/tools/v2/smart_alarm.ts +62 -24
- package/src/tools/v2/smart_alarm_set.ts +240 -90
- package/src/tools/v2/strain.ts +19 -16
- package/src/tools/v2/stress.ts +22 -17
- package/src/tools/v2/trend.ts +58 -20
- package/src/tools/v2/weekly_plan.ts +38 -0
- package/src/tools/v2/weekly_plan_set.ts +132 -0
- package/src/tools/v2/weight.ts +61 -0
- package/src/tools/v2/weight_log.ts +193 -0
- package/src/tools/v2/workouts.ts +156 -26
- package/src/version.ts +5 -0
- package/src/whoop/bff.ts +84 -0
- package/src/whoop/client.ts +448 -18
- package/src/whoop/cognito.ts +110 -99
- package/src/whoop/connect_page.ts +183 -0
- package/src/whoop/consent_font.ts +289 -0
- package/src/whoop/consent_logos.ts +24 -0
- package/src/whoop/consent_page.ts +326 -0
- package/src/whoop/constants.ts +5 -1
- package/src/whoop/device.ts +4 -4
- package/src/whoop/errors.ts +89 -4
- package/src/whoop/init_timezone.ts +57 -16
- package/src/whoop/installation.ts +16 -7
- package/src/whoop/json_out.ts +51 -6
- package/src/whoop/oauth_provider.ts +84 -91
- package/src/whoop/token_lock.ts +345 -0
- package/src/whoop/token_manager.ts +580 -53
- package/src/whoop/token_store.ts +341 -32
- package/src/whoop/units.ts +35 -0
- package/wrangler.jsonc +17 -0
- package/assets/banner.svg +0 -38
- package/dist/data/endpoints.js +0 -320
- package/dist/data/endpoints.js.map +0 -1
- package/dist/lib/format.js +0 -22
- package/dist/lib/format.js.map +0 -1
- package/dist/lib/stats.js +0 -32
- package/dist/lib/stats.js.map +0 -1
- package/dist/projections/calendar.js +0 -33
- package/dist/projections/calendar.js.map +0 -1
- package/dist/projections/communities.js +0 -105
- package/dist/projections/communities.js.map +0 -1
- package/dist/projections/cycle.js +0 -81
- package/dist/projections/cycle.js.map +0 -1
- package/dist/projections/hr_zones.js +0 -35
- package/dist/projections/hr_zones.js.map +0 -1
- package/dist/projections/journal.js +0 -56
- package/dist/projections/journal.js.map +0 -1
- package/dist/projections/leaderboard.js +0 -37
- package/dist/projections/leaderboard.js.map +0 -1
- package/dist/projections/lift_exercise.js +0 -22
- package/dist/projections/lift_exercise.js.map +0 -1
- package/dist/projections/lift_history.js +0 -133
- package/dist/projections/lift_history.js.map +0 -1
- package/dist/projections/lift_library.js +0 -71
- package/dist/projections/lift_library.js.map +0 -1
- package/dist/projections/lift_progression.js +0 -138
- package/dist/projections/lift_progression.js.map +0 -1
- package/dist/projections/lift_prs.js +0 -20
- package/dist/projections/lift_prs.js.map +0 -1
- package/dist/projections/live_hr.js +0 -19
- package/dist/projections/live_hr.js.map +0 -1
- package/dist/projections/live_state.js +0 -23
- package/dist/projections/live_state.js.map +0 -1
- package/dist/projections/live_stress.js +0 -11
- package/dist/projections/live_stress.js.map +0 -1
- package/dist/projections/performance_assessment.js +0 -15
- package/dist/projections/performance_assessment.js.map +0 -1
- package/dist/projections/profile.js +0 -59
- package/dist/projections/profile.js.map +0 -1
- package/dist/projections/recovery.js +0 -131
- package/dist/projections/recovery.js.map +0 -1
- package/dist/projections/sleep_need.js +0 -32
- package/dist/projections/sleep_need.js.map +0 -1
- package/dist/projections/smart_alarm.js +0 -45
- package/dist/projections/smart_alarm.js.map +0 -1
- package/dist/projections/strain.js +0 -128
- package/dist/projections/strain.js.map +0 -1
- package/dist/projections/stress.js +0 -86
- package/dist/projections/stress.js.map +0 -1
- package/dist/projections/today.js +0 -129
- package/dist/projections/today.js.map +0 -1
- package/dist/projections/trend.js +0 -149
- package/dist/projections/trend.js.map +0 -1
- package/dist/projections/workouts.js +0 -37
- package/dist/projections/workouts.js.map +0 -1
- package/dist/schemas/calendar.js +0 -12
- package/dist/schemas/calendar.js.map +0 -1
- package/dist/schemas/communities.js +0 -51
- package/dist/schemas/communities.js.map +0 -1
- package/dist/schemas/compare.js +0 -15
- package/dist/schemas/compare.js.map +0 -1
- package/dist/schemas/leaderboard.js +0 -25
- package/dist/schemas/leaderboard.js.map +0 -1
- package/dist/schemas/live.js +0 -26
- package/dist/schemas/live.js.map +0 -1
- package/dist/schemas/performance.js +0 -12
- package/dist/schemas/performance.js.map +0 -1
- package/dist/schemas/profile.js +0 -39
- package/dist/schemas/profile.js.map +0 -1
- package/dist/schemas/recovery.js +0 -27
- package/dist/schemas/recovery.js.map +0 -1
- package/dist/schemas/settings.js +0 -26
- package/dist/schemas/settings.js.map +0 -1
- package/dist/schemas/sleep_need.js +0 -15
- package/dist/schemas/sleep_need.js.map +0 -1
- package/dist/schemas/smart_alarm.js +0 -36
- package/dist/schemas/smart_alarm.js.map +0 -1
- package/dist/schemas/strain.js +0 -24
- package/dist/schemas/strain.js.map +0 -1
- package/dist/schemas/stress.js +0 -16
- package/dist/schemas/stress.js.map +0 -1
- package/dist/schemas/today.js +0 -38
- package/dist/schemas/today.js.map +0 -1
- package/dist/schemas/trend.js +0 -50
- package/dist/schemas/trend.js.map +0 -1
- package/dist/schemas/womens_health.js +0 -23
- package/dist/schemas/womens_health.js.map +0 -1
- package/dist/tools/v2/activity_create.js +0 -64
- package/dist/tools/v2/activity_create.js.map +0 -1
- package/dist/tools/v2/behavior_impact.js +0 -36
- package/dist/tools/v2/behavior_impact.js.map +0 -1
- package/dist/tools/v2/communities.js +0 -60
- package/dist/tools/v2/communities.js.map +0 -1
- package/dist/tools/v2/compare.js +0 -67
- package/dist/tools/v2/compare.js.map +0 -1
- package/dist/tools/v2/endpoints.js +0 -28
- package/dist/tools/v2/endpoints.js.map +0 -1
- package/dist/tools/v2/hidden_metric.js +0 -28
- package/dist/tools/v2/hidden_metric.js.map +0 -1
- package/dist/tools/v2/hr_zones.js +0 -24
- package/dist/tools/v2/hr_zones.js.map +0 -1
- package/dist/tools/v2/journal_autopop.js +0 -19
- package/dist/tools/v2/journal_autopop.js.map +0 -1
- package/dist/tools/v2/journal_catalog.js +0 -44
- package/dist/tools/v2/journal_catalog.js.map +0 -1
- package/dist/tools/v2/leaderboard.js +0 -79
- package/dist/tools/v2/leaderboard.js.map +0 -1
- package/dist/tools/v2/lift_catalog.js +0 -47
- package/dist/tools/v2/lift_catalog.js.map +0 -1
- package/dist/tools/v2/lift_custom_exercise.js +0 -108
- package/dist/tools/v2/lift_custom_exercise.js.map +0 -1
- package/dist/tools/v2/lift_history.js +0 -39
- package/dist/tools/v2/lift_history.js.map +0 -1
- package/dist/tools/v2/lift_progression.js +0 -30
- package/dist/tools/v2/lift_progression.js.map +0 -1
- package/dist/tools/v2/lift_prs.js +0 -21
- package/dist/tools/v2/lift_prs.js.map +0 -1
- package/dist/tools/v2/lift_template_save.js +0 -83
- package/dist/tools/v2/lift_template_save.js.map +0 -1
- package/dist/tools/v2/live_hr.js +0 -21
- package/dist/tools/v2/live_hr.js.map +0 -1
- package/dist/tools/v2/live_state.js +0 -21
- package/dist/tools/v2/live_state.js.map +0 -1
- package/dist/tools/v2/live_stress.js +0 -22
- package/dist/tools/v2/live_stress.js.map +0 -1
- package/dist/tools/v2/performance_assessment.js +0 -38
- package/dist/tools/v2/performance_assessment.js.map +0 -1
- package/dist/tools/v2/sleep_need.js +0 -21
- package/dist/tools/v2/sleep_need.js.map +0 -1
- package/dist/tools/v2/sports_catalog.js +0 -26
- package/dist/tools/v2/sports_catalog.js.map +0 -1
- package/dist/tools/v2/symptom_log.js +0 -72
- package/dist/tools/v2/symptom_log.js.map +0 -1
- package/dist/tools/v2/today.js +0 -30
- package/dist/tools/v2/today.js.map +0 -1
- package/dist/tools/v2/workout.js +0 -23
- package/dist/tools/v2/workout.js.map +0 -1
- package/dist/whoop/build_lift_body.js +0 -67
- package/dist/whoop/build_lift_body.js.map +0 -1
- package/dist/whoop/session_state.js +0 -34
- package/dist/whoop/session_state.js.map +0 -1
- package/dist/whoop/types.js +0 -82
- package/dist/whoop/types.js.map +0 -1
- package/src/data/endpoints.ts +0 -319
- package/src/lib/format.ts +0 -27
- package/src/lib/stats.ts +0 -35
- package/src/projections/calendar.ts +0 -46
- package/src/projections/communities.ts +0 -135
- package/src/projections/cycle.ts +0 -85
- package/src/projections/hr_zones.ts +0 -43
- package/src/projections/journal.ts +0 -55
- package/src/projections/leaderboard.ts +0 -49
- package/src/projections/lift_exercise.ts +0 -29
- package/src/projections/lift_history.ts +0 -140
- package/src/projections/lift_library.ts +0 -70
- package/src/projections/lift_progression.ts +0 -138
- package/src/projections/lift_prs.ts +0 -23
- package/src/projections/live_hr.ts +0 -21
- package/src/projections/live_state.ts +0 -28
- package/src/projections/live_stress.ts +0 -13
- package/src/projections/performance_assessment.ts +0 -19
- package/src/projections/profile.ts +0 -71
- package/src/projections/recovery.ts +0 -133
- package/src/projections/sleep_need.ts +0 -36
- package/src/projections/smart_alarm.ts +0 -70
- package/src/projections/strain.ts +0 -131
- package/src/projections/stress.ts +0 -95
- package/src/projections/today.ts +0 -166
- package/src/projections/trend.ts +0 -149
- package/src/projections/workouts.ts +0 -36
- package/src/schemas/calendar.ts +0 -13
- package/src/schemas/communities.ts +0 -56
- package/src/schemas/compare.ts +0 -17
- package/src/schemas/leaderboard.ts +0 -26
- package/src/schemas/live.ts +0 -31
- package/src/schemas/performance.ts +0 -13
- package/src/schemas/profile.ts +0 -40
- package/src/schemas/recovery.ts +0 -28
- package/src/schemas/settings.ts +0 -30
- package/src/schemas/sleep_need.ts +0 -16
- package/src/schemas/smart_alarm.ts +0 -40
- package/src/schemas/strain.ts +0 -25
- package/src/schemas/stress.ts +0 -17
- package/src/schemas/today.ts +0 -39
- package/src/schemas/trend.ts +0 -53
- package/src/schemas/womens_health.ts +0 -26
- package/src/tools/v2/activity_create.ts +0 -74
- package/src/tools/v2/behavior_impact.ts +0 -39
- package/src/tools/v2/communities.ts +0 -65
- package/src/tools/v2/compare.ts +0 -83
- package/src/tools/v2/endpoints.ts +0 -32
- package/src/tools/v2/hidden_metric.ts +0 -33
- package/src/tools/v2/hr_zones.ts +0 -29
- package/src/tools/v2/journal_autopop.ts +0 -26
- package/src/tools/v2/journal_catalog.ts +0 -48
- package/src/tools/v2/leaderboard.ts +0 -92
- package/src/tools/v2/lift_catalog.ts +0 -48
- package/src/tools/v2/lift_custom_exercise.ts +0 -117
- package/src/tools/v2/lift_history.ts +0 -52
- package/src/tools/v2/lift_progression.ts +0 -34
- package/src/tools/v2/lift_prs.ts +0 -26
- package/src/tools/v2/lift_template_save.ts +0 -89
- package/src/tools/v2/live_hr.ts +0 -26
- package/src/tools/v2/live_state.ts +0 -26
- package/src/tools/v2/live_stress.ts +0 -27
- package/src/tools/v2/performance_assessment.ts +0 -44
- package/src/tools/v2/sleep_need.ts +0 -26
- package/src/tools/v2/sports_catalog.ts +0 -32
- package/src/tools/v2/symptom_log.ts +0 -78
- package/src/tools/v2/today.ts +0 -35
- package/src/tools/v2/workout.ts +0 -28
- package/src/whoop/build_lift_body.ts +0 -84
- package/src/whoop/session_state.ts +0 -41
- package/src/whoop/types.ts +0 -89
package/src/data/endpoints.ts
DELETED
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
// AUTO-GENERATED by src/scripts/build_catalogs.ts — do not edit by hand.
|
|
2
|
-
// Concrete identifiers captured during reverse-engineering — account/community
|
|
3
|
-
// IDs, emails, device serials + signatures, HealthKit tokens, and capture
|
|
4
|
-
// timestamps — are templated to {id} / {userId} / {email} / {strapSerial} /
|
|
5
|
-
// {strapSignature} / {token} / {code} / {timestamp}. The generator MUST keep
|
|
6
|
-
// doing this; never ship a real identifier.
|
|
7
|
-
export const ENDPOINTS: readonly string[] = [
|
|
8
|
-
"DELETE 200 /notification-service/v1/notifications/user-settings/block/namespace/GPS",
|
|
9
|
-
"DELETE 200 /notification-service/v1/notifications/user-settings/block/namespace/StressSummary",
|
|
10
|
-
"DELETE 204 /community-service/v1/communities/{id}/leave?userId={userId}",
|
|
11
|
-
"DELETE 204 /core-details-bff/v1/cardio-details?activityId={uuid}",
|
|
12
|
-
"DELETE 204 /health-service/v1/hormonal-insights/settings/mci",
|
|
13
|
-
"DELETE 204 /users-service/v1/hidden-metrics/BODY_COMP",
|
|
14
|
-
"DELETE 204 /users-service/v1/hidden-metrics/HEALTHSPAN",
|
|
15
|
-
"GET 200 /achievements-service/v1/progression?level={level}",
|
|
16
|
-
"GET 200 /activities-service/v1/journals/behaviors/user",
|
|
17
|
-
"GET 200 /activities-service/v1/journals/stats/user/0",
|
|
18
|
-
"GET 200 /activities-service/v1/journals/stats/user/{id}",
|
|
19
|
-
"GET 200 /activities-service/v1/sports/history?countryCode=AU",
|
|
20
|
-
"GET 200 /activities-service/v1/sports/history?countryCode=US",
|
|
21
|
-
"GET 200 /activities-service/v1/user-state",
|
|
22
|
-
"GET 200 /activities-service/v2/activity-types",
|
|
23
|
-
"GET 200 /advanced-labs-service/v1/advanced-labs",
|
|
24
|
-
"GET 200 /ai-conversation-bff/v1/conversation/{conversation_id}/presentation/CARDIO_DETAILS",
|
|
25
|
-
"GET 200 /ai-conversation-bff/v1/conversation/{conversation_id}/suggestions",
|
|
26
|
-
"GET 200 /ai-conversation-bff/v1/conversation/{conversation_id}/turn/{uuid}",
|
|
27
|
-
"GET 200 /ai-conversation-service/v1/settings",
|
|
28
|
-
"GET 200 /app-notifications-service/v1/app/notification-cards",
|
|
29
|
-
"GET 200 /auth-service/v2/user",
|
|
30
|
-
"GET 200 /auth-service/v2/whoop/password/requirements",
|
|
31
|
-
"GET 200 /behavior-impact-service/v1/impact",
|
|
32
|
-
"GET 200 /behavior-impact-service/v1/impact/journal-trends/{uuid}",
|
|
33
|
-
"GET 200 /behavior-impact-service/v1/impact/journal-trends/{uuid}?endDate={date}",
|
|
34
|
-
"GET 200 /behavior-impact-service/v1/impact/journal-trends/{uuid}?startDate={date}",
|
|
35
|
-
"GET 200 /behavior-impact-service/v1/impact/summary-card/{date}",
|
|
36
|
-
"GET 200 /behavior-impact-service/v2/impact/details/{uuid}",
|
|
37
|
-
"GET 200 /candidate-service/v1/applehealthkit/events?token={token}&permissions=HKCategoryTypeIdentifierSleepAnalysis,HKQuantityTypeIdentifierActiveEnergyBurned,HKQuantityTypeIdentifierHeartRate,HKQuantityTypeIdentifierOxygenSaturation,HKQuantityTypeIdentifierRespiratoryRate,HKQuantityTypeIdentifierRestingHeartRate,HKQuantityTypeIdentifierStepCount,HKWorkoutTypeIdentifier",
|
|
38
|
-
"GET 200 /coaching-service/v1/health/bff/monitor",
|
|
39
|
-
"GET 200 /coaching-service/v1/health/report",
|
|
40
|
-
"GET 200 /coaching-service/v1/performance-assessment/MONTH/data/{timestamp}",
|
|
41
|
-
"GET 200 /coaching-service/v2/sleepneed",
|
|
42
|
-
"GET 200 /commerce-service/v1/mobile/shop/home?source=menu",
|
|
43
|
-
"GET 200 /commerce-service/v2/join-flow/catalog/memberships?tier=PEAK&country=US&language=en",
|
|
44
|
-
"GET 200 /community-service/v1/chat/token",
|
|
45
|
-
"GET 200 /community-service/v1/communities/defaultImages",
|
|
46
|
-
"GET 200 /community-service/v1/communities/featured?includeOwnerDetails=true&offset={offset}&limit={limit}",
|
|
47
|
-
"GET 200 /community-service/v1/communities/invites/pending?recipientId={userId}&includeDetails=true",
|
|
48
|
-
"GET 200 /community-service/v1/communities/memberships?userId={userId}&includeOwnerDetails=true&offset={offset}&limit={limit}&teamType=ALL&includeUserRank=true&leaderboardType=sleep&startDate={date}&endDate={date}&period=week",
|
|
49
|
-
"GET 200 /community-service/v1/communities/memberships?userId={userId}&includeOwnerDetails=true&offset={offset}&limit={limit}&teamType=ALL&includeUserRank=true&leaderboardType=strain&startDate={date}",
|
|
50
|
-
"GET 200 /community-service/v1/communities/{id}/members/details?excludeUser={userId}&teamType=COMMUNITY&offset={offset}&limit={limit}",
|
|
51
|
-
"GET 200 /community-service/v1/communities/{id}?userId={userId}&includeOwnerDetails=true",
|
|
52
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/month/recovery/score/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
53
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/month/recovery/score?offset={offset}&limit={limit}&startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
54
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/month/sleep/performance/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
55
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/month/sleep/performance?offset={offset}&limit={limit}&startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
56
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/month/strain/day_strain/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
57
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/month/strain/day_strain?offset={offset}&limit={limit}&startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
58
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/week/recovery/score/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
59
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/week/recovery/score?offset={offset}&limit={limit}&startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
60
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/week/sleep/performance/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
61
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/week/sleep/performance?offset={offset}&limit={limit}&startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
62
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/week/strain/day_strain/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
63
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/average/week/strain/day_strain?offset={offset}&limit={limit}&startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
64
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/{date}/recovery/score/user/{id}?teamType=COMMUNITY",
|
|
65
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/{date}/recovery/score?offset={offset}&limit={limit}&teamType=COMMUNITY",
|
|
66
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/{date}/sleep/performance/user/{id}?teamType=COMMUNITY",
|
|
67
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/{date}/sleep/performance?offset={offset}&limit={limit}&teamType=COMMUNITY",
|
|
68
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/{date}/strain/day_strain/user/{id}?teamType=COMMUNITY",
|
|
69
|
-
"GET 200 /community-service/v1/leaderboards/communities/{id}/{date}/strain/day_strain?offset={offset}&limit={limit}&teamType=COMMUNITY",
|
|
70
|
-
"GET 200 /context-hub-bff/v1/context-hub?analytics_source=coach-chat",
|
|
71
|
-
"GET 200 /context-hub-bff/v1/context-hub?analytics_source=profile",
|
|
72
|
-
"GET 200 /core-details-bff/v1/cardio-details?activityId={uuid}",
|
|
73
|
-
"GET 200 /core-details-bff/v1/start-activity/strain",
|
|
74
|
-
"GET 200 /core-details-bff/v2/activity-type/user-created",
|
|
75
|
-
"GET 200 /core-details-bff/v2/prediction/{id}/activity",
|
|
76
|
-
"GET 200 /device-config/v1/value",
|
|
77
|
-
"GET 200 /enterprise-service/v1/data-sharing",
|
|
78
|
-
"GET 200 /entitlement-service/v1/entitlements",
|
|
79
|
-
"GET 200 /followers-service/v1/followers-home",
|
|
80
|
-
"GET 200 /followers-service/v1/followers-home/manage",
|
|
81
|
-
"GET 200 /followers-service/v1/followers-home/manage/SHARING",
|
|
82
|
-
"GET 200 /followers-service/v1/search",
|
|
83
|
-
"GET 200 /followers-service/v1/search/results",
|
|
84
|
-
"GET 200 /growth-content-service/v1/in-app-welcome-screen/order-info-content",
|
|
85
|
-
"GET 200 /growth-content-service/v1/payment-method/menu-item",
|
|
86
|
-
"GET 200 /health-service/v2/stress-bff/{date}",
|
|
87
|
-
"GET 200 /health-service/v2/stress-bff/{date}/calendar",
|
|
88
|
-
"GET 200 /health-tab-bff/v1/health-tab",
|
|
89
|
-
"GET 200 /home-service/v1/calendar/overview?date={date}",
|
|
90
|
-
"GET 200 /home-service/v1/calendar/recovery?date={date}",
|
|
91
|
-
"GET 200 /home-service/v1/deep-dive/recovery/trends?date={date}",
|
|
92
|
-
"GET 200 /home-service/v1/deep-dive/recovery?date={date}",
|
|
93
|
-
"GET 200 /home-service/v1/deep-dive/sleep/last-night?date={date}",
|
|
94
|
-
"GET 200 /home-service/v1/deep-dive/sleep/trends?date={date}",
|
|
95
|
-
"GET 200 /home-service/v1/deep-dive/sleep?date={date}",
|
|
96
|
-
"GET 200 /home-service/v1/deep-dive/strain/trends?date={date}",
|
|
97
|
-
"GET 200 /home-service/v1/deep-dive/strain?date={date}",
|
|
98
|
-
"GET 200 /home-service/v1/home?date={date}",
|
|
99
|
-
"GET 200 /home-service/v1/tilt-view?date={date}",
|
|
100
|
-
"GET 200 /home-service/v1/widget/overview?widgetSize=MEDIUM",
|
|
101
|
-
"GET 200 /home-service/v1/widget/overview?widgetSize=SMALL",
|
|
102
|
-
"GET 200 /home-service/v2/home/dashboard/customize",
|
|
103
|
-
"GET 200 /hr-zones-service/v1/bff/settings",
|
|
104
|
-
"GET 200 /hr-zones-service/v1/bff/zones",
|
|
105
|
-
"GET 200 /integrations-bff/v1/integrations/discovery",
|
|
106
|
-
"GET 200 /integrations-bff/v1/integrations/trainingpeaks/details",
|
|
107
|
-
"GET 200 /integrations-bff/v1/integrations/withings/details",
|
|
108
|
-
"GET 200 /integrations-bff/v1/integrations/{uuid}/details",
|
|
109
|
-
"GET 200 /journal-service/v1/journals/preferences",
|
|
110
|
-
"GET 200 /journal-service/v2/journals/behaviors",
|
|
111
|
-
"GET 200 /journal-service/v2/journals/behaviors/user/{date}",
|
|
112
|
-
"GET 200 /journal-service/v3/journals/behaviors",
|
|
113
|
-
"GET 200 /journal-service/v3/journals/date-picker/{date}",
|
|
114
|
-
"GET 200 /journal-service/v3/journals/drafts/mobile/{date}",
|
|
115
|
-
"GET 200 /journal-service/v3/journals/home-tile?date={date}",
|
|
116
|
-
"GET 200 /member-data-export-service/v1/member-data-export-details",
|
|
117
|
-
"GET 200 /membership-service/v0/onboarding/info?flow=create-account&strapSerial={strapSerial}&strapSignature={strapSignature}",
|
|
118
|
-
"GET 200 /membership-service/v1/billing/info",
|
|
119
|
-
"GET 200 /membership-service/v1/billing/payment_method",
|
|
120
|
-
"GET 200 /membership-service/v1/billing/whoop-pro/info",
|
|
121
|
-
"GET 200 /membership-service/v1/family-plans-native/hub",
|
|
122
|
-
"GET 200 /membership-service/v1/gift-content",
|
|
123
|
-
"GET 200 /membership-service/v1/membership-management",
|
|
124
|
-
"GET 200 /membership-service/v1/membership-management/membership-and-billing",
|
|
125
|
-
"GET 200 /membership-service/v1/membership?useReplica=true",
|
|
126
|
-
"GET 200 /membership-service/v1/payment/public-stripe-key",
|
|
127
|
-
"GET 200 /membership-service/v1/refer-a-friend/menu",
|
|
128
|
-
"GET 200 /membership-service/v1/straps",
|
|
129
|
-
"GET 200 /membership-service/v2/in-app-banners",
|
|
130
|
-
"GET 200 /membership-service/v2/refer-a-friend/community",
|
|
131
|
-
"GET 200 /membership-service/v2/referral-content?source=Individual",
|
|
132
|
-
"GET 200 /membership-service/v2/referral-content?source=Team",
|
|
133
|
-
"GET 200 /membership-service/v2/upcycle/onboarding/finalizedContent",
|
|
134
|
-
"GET 200 /membership-service/v3/billing/info?useReplica=false",
|
|
135
|
-
"GET 200 /membership/accessories/shop/auth",
|
|
136
|
-
"GET 200 /membership?useReplica=false",
|
|
137
|
-
"GET 200 /membership?useReplica=true",
|
|
138
|
-
"GET 200 /metrics-service/v1/consumerstats/mobile/highwatermark/min",
|
|
139
|
-
"GET 200 /notification-service/v1/notifications/user-settings/bff",
|
|
140
|
-
"GET 200 /onboarding-service/v1/account/activate",
|
|
141
|
-
"GET 200 /onboarding-service/v1/account/device-education",
|
|
142
|
-
"GET 200 /onboarding-service/v1/account/start-auth?fromLogin=true",
|
|
143
|
-
"GET 200 /onboarding-service/v1/account/start?email={email}&fromLogin=false",
|
|
144
|
-
"GET 200 /onboarding-service/v1/app/destination",
|
|
145
|
-
"GET 200 /onboarding-service/v1/feature-education-state?userId={userId}",
|
|
146
|
-
"GET 200 /onboarding-service/v1/features/educations/onboarding/PAIRING_MODE_EDUCATION",
|
|
147
|
-
"GET 200 /onboarding-service/v1/features/educations/{education_name}",
|
|
148
|
-
"GET 200 /onboarding-service/v1/overlay/all",
|
|
149
|
-
"GET 200 /onboarding-service/v1/what-to-expect",
|
|
150
|
-
"GET 200 /onboarding-service/v1/what-to-expect/entry-point",
|
|
151
|
-
"GET 200 /privacy-service/v1/user_privacy_settings/",
|
|
152
|
-
"GET 200 /profile-service/v1/profile/bff",
|
|
153
|
-
"GET 200 /profile-service/v1/profile/bff/edit",
|
|
154
|
-
"GET 200 /progression-service/v2/weekly-plan/home-tile/{date}",
|
|
155
|
-
"GET 200 /progression-service/v2/weekly-plan/setup?screens=STRENGTH_TRAINING_TIME&editing=true",
|
|
156
|
-
"GET 200 /progression-service/v3/exercise/{exercise_id}?endDate={date}",
|
|
157
|
-
"GET 200 /progression-service/v3/exercise?endDate={date}",
|
|
158
|
-
"GET 200 /progression-service/v3/trends/{metric}?endDate={date}",
|
|
159
|
-
"GET 200 /research-service/research-bff-service/v1/campaigns",
|
|
160
|
-
"GET 200 /sleep-service/v1/heart-rate/baseline",
|
|
161
|
-
"GET 200 /smart-alarm-bff/v1/schedule/all",
|
|
162
|
-
"GET 200 /smart-alarm-bff/v1/schedule/components/populated/{uuid}",
|
|
163
|
-
"GET 200 /smart-alarm-service/v1/smartalarm/preferences",
|
|
164
|
-
"GET 200 /social-service/v1/strava/bff/settings",
|
|
165
|
-
"GET 200 /strap-location-service/v1/garment",
|
|
166
|
-
"GET 200 /streaks-service/v1/bff/streaks/data-streak",
|
|
167
|
-
"GET 200 /streaks-service/v1/streaks/data-streak",
|
|
168
|
-
"GET 200 /users-service/v1/hidden-metrics/BODY_COMP",
|
|
169
|
-
"GET 200 /users-service/v1/hidden-metrics/HEALTHSPAN",
|
|
170
|
-
"GET 200 /users-service/v1/stealth-mode",
|
|
171
|
-
"GET 200 /users-service/v1/users/{id}/preference",
|
|
172
|
-
"GET 200 /users-service/v2/bootstrap",
|
|
173
|
-
"GET 200 /users-service/v2/bootstrap/account",
|
|
174
|
-
"GET 200 /users-service/v2/bootstrap/membership",
|
|
175
|
-
"GET 200 /users-service/v2/bootstrap/user",
|
|
176
|
-
"GET 200 /weightlifting-service/v1/exercise/BAR-FACING_BURPEES_(LATERAL)",
|
|
177
|
-
"GET 200 /weightlifting-service/v1/exercise/{exercise_id}",
|
|
178
|
-
"GET 200 /weightlifting-service/v1/exercise/{exercise_id}(BAND)",
|
|
179
|
-
"GET 200 /weightlifting-service/v1/exercise/{exercise_id}(MACHINE)",
|
|
180
|
-
"GET 200 /weightlifting-service/v1/exercise/{exercise_id}{uuid}",
|
|
181
|
-
"GET 200 /weightlifting-service/v2/exercise",
|
|
182
|
-
"GET 200 /weightlifting-service/v2/workout-template/{id}",
|
|
183
|
-
"GET 200 /weightlifting-service/v3/exercise/{exercise_id}",
|
|
184
|
-
"GET 200 /weightlifting-service/v3/exercise/{exercise_id}/exercise_history",
|
|
185
|
-
"GET 200 /weightlifting-service/v3/exercise/{exercise_id}/personal_records",
|
|
186
|
-
"GET 200 /weightlifting-service/v3/prs",
|
|
187
|
-
"GET 200 /weightlifting-service/v3/prs?startDate={date}&endDate={date}&offset={offset}",
|
|
188
|
-
"GET 200 /weightlifting-service/v3/workout-library",
|
|
189
|
-
"GET 200 /widget-service/v1/statistics/recovery",
|
|
190
|
-
"GET 200 /womens-health-service/v1/hormonal-insights/onboarding",
|
|
191
|
-
"GET 200 /womens-health-service/v1/hormonal-insights/settings",
|
|
192
|
-
"GET 200 /womens-health-service/v1/menstrual-cycle-insights/calendar?date={date}",
|
|
193
|
-
"GET 200 /womens-health-service/v1/menstrual-cycle-insights/cycles/edit?localDate={date}&source=CYCLE_CALENDAR",
|
|
194
|
-
"GET 200 /womens-health-service/v1/menstrual-cycle-insights?date={date}",
|
|
195
|
-
"GET 200 /womens-health-service/v1/symptom-insights/log/symptoms?requestDate={date}",
|
|
196
|
-
"GET 400 /membership-service/v1/membership/native-account-header",
|
|
197
|
-
"GET 401 /activities-service/v1/user-state",
|
|
198
|
-
"GET 401 /ai-conversation-service/v1/settings",
|
|
199
|
-
"GET 401 /growth-content-service/v1/advanced-labs/management/menu-item",
|
|
200
|
-
"GET 401 /growth-content-service/v1/payment-method/menu-item",
|
|
201
|
-
"GET 401 /health-service/v2/stress-bff/{date}",
|
|
202
|
-
"GET 401 /health-tab-bff/v1/health-tab",
|
|
203
|
-
"GET 401 /home-service/v1/home?date={date}",
|
|
204
|
-
"GET 401 /home-service/v1/widget/overview?widgetSize=MEDIUM",
|
|
205
|
-
"GET 401 /home-service/v1/widget/overview?widgetSize=SMALL",
|
|
206
|
-
"GET 401 /membership-service/v1/billing/info",
|
|
207
|
-
"GET 401 /membership-service/v1/billing/payment_method",
|
|
208
|
-
"GET 401 /membership-service/v1/payment/public-stripe-key",
|
|
209
|
-
"GET 401 /membership-service/v1/refer-a-friend/menu",
|
|
210
|
-
"GET 401 /membership-service/v1/straps",
|
|
211
|
-
"GET 401 /membership-service/v2/in-app-banners",
|
|
212
|
-
"GET 401 /membership/accessories/shop/auth",
|
|
213
|
-
"GET 401 /onboarding-service/v1/what-to-expect/entry-point",
|
|
214
|
-
"GET 401 /strap-location-service/v1/garment",
|
|
215
|
-
"GET 401 /users-service/v2/bootstrap",
|
|
216
|
-
"GET 401 /widget-service/v1/statistics/recovery",
|
|
217
|
-
"GET 404 /coaching-service/v1/health/report",
|
|
218
|
-
"GET 404 /coaching-service/v1/performance-assessment/MONTH/data/{timestamp}",
|
|
219
|
-
"GET 404 /community-service/v1/leaderboards/communities/{id}/average/month/recovery/score/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
220
|
-
"GET 404 /community-service/v1/leaderboards/communities/{id}/average/month/sleep/performance/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
221
|
-
"GET 404 /community-service/v1/leaderboards/communities/{id}/average/week/recovery/score/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
222
|
-
"GET 404 /community-service/v1/leaderboards/communities/{id}/average/week/sleep/performance/user/{id}?startDate={date}&endDate={date}&includeCompliance=true&complianceCutoff=70&teamType=COMMUNITY",
|
|
223
|
-
"GET 404 /community-service/v1/leaderboards/communities/{id}/{date}/recovery/score/user/{id}?teamType=COMMUNITY",
|
|
224
|
-
"GET 404 /community-service/v1/leaderboards/communities/{id}/{date}/sleep/performance/user/{id}?teamType=COMMUNITY",
|
|
225
|
-
"GET 404 /community-service/v1/leaderboards/communities/{id}/{date}/strain/day_strain/user/{id}?teamType=COMMUNITY",
|
|
226
|
-
"GET 404 /growth-content-service/v1/advanced-labs/management/menu-item",
|
|
227
|
-
"GET 404 /home-service/v1/widget/overview?widgetSize=MEDIUM",
|
|
228
|
-
"GET 404 /home-service/v1/widget/overview?widgetSize=SMALL",
|
|
229
|
-
"GET 404 /hr-zones-service/v1/bff/zones",
|
|
230
|
-
"GET 404 /membership-service/v1/payment/public-stripe-key",
|
|
231
|
-
"GET 404 /membership-service/v2/straps/pairing-adjustment?strapSerial={strapSerial}&strapSignature={strapSignature}",
|
|
232
|
-
"GET 404 /onboarding-service/v1/learn-more-carousel/bff/community?zoneId=America/Los_Angeles&cta=MORE",
|
|
233
|
-
"GET 404 /users-service/v1/goals/user/motivation",
|
|
234
|
-
"GET 414 /core-details-bff/v1/cardio-details?activityId={uuid}",
|
|
235
|
-
"GET 428 /membership?useReplica=true",
|
|
236
|
-
"GET None /advanced-labs-service/v1/product/pdp?panel=BASELINE&screenType=PURCHASE",
|
|
237
|
-
"GET None /core-details-bff/v2/activity-type/user-created",
|
|
238
|
-
"GET None /home-service/v1/home?date={date}",
|
|
239
|
-
"OPTIONS 200 /auth-service/v2/user",
|
|
240
|
-
"OPTIONS 200 /membership-service/v1/billing/info",
|
|
241
|
-
"OPTIONS 200 /membership-service/v1/billing/whoop-pro/info",
|
|
242
|
-
"OPTIONS 200 /membership-service/v1/payment/public-stripe-key",
|
|
243
|
-
"OPTIONS 200 /membership-service/v3/billing/info?useReplica=false",
|
|
244
|
-
"OPTIONS 200 /users-service/v2/bootstrap/account",
|
|
245
|
-
"OPTIONS 200 /users-service/v2/bootstrap/membership",
|
|
246
|
-
"OPTIONS 200 /users-service/v2/bootstrap/user",
|
|
247
|
-
"OPTIONS 204 /membership-service/v1/membership?useReplica=true",
|
|
248
|
-
"OPTIONS 204 /membership/referrals",
|
|
249
|
-
"OPTIONS 204 /membership?useReplica=true",
|
|
250
|
-
"PATCH 200 /users-service/v0/users/preference",
|
|
251
|
-
"POST 200 /activities-service/v1/user-state",
|
|
252
|
-
"POST 200 /ai-conversation-bff/v1/conversation",
|
|
253
|
-
"POST 200 /ai-conversation-bff/v1/conversation/{conversation_id}/turn",
|
|
254
|
-
"POST 200 /ai-conversation-bff/v1/conversation/{conversation_id}/turn/{uuid}/seen",
|
|
255
|
-
"POST 200 /auth-service/v3/whoop",
|
|
256
|
-
"POST 200 /coaching-service/v1/health/report",
|
|
257
|
-
"POST 200 /community-service/v1/communities/join/COMM-{code}",
|
|
258
|
-
"POST 200 /community-service/v1/communities?includeOwnerDetails=true",
|
|
259
|
-
"POST 200 /core-details-bff/v0/create-activity",
|
|
260
|
-
"POST 200 /hr-zones-service/v1/bff/custom",
|
|
261
|
-
"POST 200 /hr-zones-service/v1/maxhr",
|
|
262
|
-
"POST 200 /membership/referrals",
|
|
263
|
-
"POST 200 /metrics-service/v1/metrics",
|
|
264
|
-
"POST 200 /notification-service/v1/notifications/events",
|
|
265
|
-
"POST 200 /onboarding-service/v1/account/activate",
|
|
266
|
-
"POST 200 /onboarding-service/v2/emails/check",
|
|
267
|
-
"POST 200 /users-service/v1/users/check/username",
|
|
268
|
-
"POST 200 /users-service/v1/users/preferences/time",
|
|
269
|
-
"POST 200 /vow-service/v1/coaching/vows/sleepcoach?format=TWELVE_HOUR",
|
|
270
|
-
"POST 200 /weightlifting-service/v2/custom-exercise",
|
|
271
|
-
"POST 200 /weightlifting-service/v2/weightlifting-workout/activity",
|
|
272
|
-
"POST 200 /weightlifting-service/v3/workout-template",
|
|
273
|
-
"POST 204 /membership-service/v1/membership-management/resume",
|
|
274
|
-
"POST 204 /membership-service/v2/straps/pairing-adjustment",
|
|
275
|
-
"POST 204 /smart-alarm-service/v1/smartalarm/wbl",
|
|
276
|
-
"POST 204 /users-service/v1/hidden-metrics/BODY_COMP",
|
|
277
|
-
"POST 204 /users-service/v1/hidden-metrics/HEALTHSPAN",
|
|
278
|
-
"POST 204 /womens-health-service/v1/symptom-insights/log/symptoms?requestDate={date}",
|
|
279
|
-
"POST 400 /core-details-bff/v2/create-activity",
|
|
280
|
-
"POST 400 /metrics-service/v1/metrics",
|
|
281
|
-
"POST 401 /auth-service/v3/whoop",
|
|
282
|
-
"POST 401 /metrics-service/v1/metrics",
|
|
283
|
-
"POST 401 /smart-alarm-service/v1/smartalarm/wbl",
|
|
284
|
-
"POST 404 /health-service/v2/stress-bff?timestamp=May%2024,%202026",
|
|
285
|
-
"PUT 200 /ai-conversation-service/v1/settings",
|
|
286
|
-
"PUT 200 /app-notifications-service/v1/app/notifications/{uuid}/expire",
|
|
287
|
-
"PUT 200 /community-service/v1/communities/{id}",
|
|
288
|
-
"PUT 200 /community-service/v1/communities/{id}/chat?chatEnabled=false&teamType=COMMUNITY",
|
|
289
|
-
"PUT 200 /community-service/v1/communities/{id}/chat?chatEnabled=true&teamType=COMMUNITY",
|
|
290
|
-
"PUT 200 /community-service/v1/communities/{id}/status?online=false",
|
|
291
|
-
"PUT 200 /community-service/v1/communities/{id}/status?online=true",
|
|
292
|
-
"PUT 200 /entitlement-service/v1/entitlements/onboarding",
|
|
293
|
-
"PUT 200 /journal-service/v1/journals/preferences",
|
|
294
|
-
"PUT 200 /notification-service/v1/notifications/user-settings/block/namespace",
|
|
295
|
-
"PUT 200 /onboarding-service/v1/account/profile",
|
|
296
|
-
"PUT 200 /onboarding-service/v1/feature-education-state?userId={userId}",
|
|
297
|
-
"PUT 200 /privacy-service/v1/user_privacy_settings/allow-recommendation",
|
|
298
|
-
"PUT 200 /profile-service/v1/profile",
|
|
299
|
-
"PUT 200 /profile-service/v1/profile/avatar",
|
|
300
|
-
"PUT 200 /smart-alarm-bff/v1/schedule/{uuid}",
|
|
301
|
-
"PUT 200 /smart-alarm-service/v1/smartalarm/preferences",
|
|
302
|
-
"PUT 200 /smart-alarm-service/v1/strap-status",
|
|
303
|
-
"PUT 200 /users-service/v1/stealth-mode",
|
|
304
|
-
"PUT 200 /users-service/v1/users/{id}/privacy",
|
|
305
|
-
"PUT 204 /activities-service/v1/journals/behaviors/user",
|
|
306
|
-
"PUT 204 /autopop-service/v1/autopop/JOURNAL/{id}",
|
|
307
|
-
"PUT 204 /health-service/v1/hormonal-insights/settings/mci/survey",
|
|
308
|
-
"PUT 204 /journal-service/v2/journals/entries/user/date/{date}",
|
|
309
|
-
"PUT 204 /onboarding-service/v1/account/sign-up",
|
|
310
|
-
"PUT 204 /progression-service/v2/weekly-plan/{uuid}/goal/target",
|
|
311
|
-
"PUT 204 /smart-alarm-service/v1/alarm-schedule/disable",
|
|
312
|
-
"PUT 204 /smart-alarm-service/v1/alarm-schedule/enable",
|
|
313
|
-
"PUT 204 /users-service/v1/users/profile/offset",
|
|
314
|
-
"PUT 204 /womens-health-service/v1/menstrual-cycle-insights/log",
|
|
315
|
-
"PUT 400 /profile-service/v1/profile",
|
|
316
|
-
"PUT 401 /community-service/v1/communities/{id}/status?online=false",
|
|
317
|
-
"PUT 403 /community-service/v1/communities/{id}/status?online=false",
|
|
318
|
-
"PUT None /community-service/v1/communities/{id}/status?online=false",
|
|
319
|
-
] as const;
|
package/src/lib/format.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const KJ_PER_CALORIE = 4.184;
|
|
2
|
-
const M_PER_FT = 0.3048;
|
|
3
|
-
const LB_PER_KG = 2.20462;
|
|
4
|
-
|
|
5
|
-
export function kjToCal(kj: number): number {
|
|
6
|
-
return Math.round(kj / KJ_PER_CALORIE);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function metersToFeet(m: number): number {
|
|
10
|
-
return Math.round((m / M_PER_FT) * 10) / 10;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function metersToCm(m: number): number {
|
|
14
|
-
return Math.round(m * 100);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function kgToLb(kg: number): number {
|
|
18
|
-
return Math.round(kg * LB_PER_KG * 10) / 10;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function msToMinutes(ms: number): number {
|
|
22
|
-
return Math.round(ms / 60000);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export function secondsToMinutes(s: number): number {
|
|
26
|
-
return Math.round(s / 60);
|
|
27
|
-
}
|
package/src/lib/stats.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export function mean(xs: Array<number | null | undefined>): number | null {
|
|
2
|
-
const clean = xs.filter((v): v is number => typeof v === "number" && Number.isFinite(v));
|
|
3
|
-
if (clean.length === 0) return null;
|
|
4
|
-
return clean.reduce((a, b) => a + b, 0) / clean.length;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface TimedPoint {
|
|
8
|
-
t: number; // epoch ms
|
|
9
|
-
v: number;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const MS_PER_DAY = 86_400_000;
|
|
13
|
-
|
|
14
|
-
export function slopePerDay(points: TimedPoint[]): number | null {
|
|
15
|
-
if (points.length < 2) return null;
|
|
16
|
-
const xs = points.map((p) => p.t / MS_PER_DAY);
|
|
17
|
-
const ys = points.map((p) => p.v);
|
|
18
|
-
const xMean = xs.reduce((a, b) => a + b, 0) / xs.length;
|
|
19
|
-
const yMean = ys.reduce((a, b) => a + b, 0) / ys.length;
|
|
20
|
-
let num = 0;
|
|
21
|
-
let den = 0;
|
|
22
|
-
for (let i = 0; i < xs.length; i++) {
|
|
23
|
-
const dx = xs[i]! - xMean;
|
|
24
|
-
num += dx * (ys[i]! - yMean);
|
|
25
|
-
den += dx * dx;
|
|
26
|
-
}
|
|
27
|
-
if (den === 0) return 0;
|
|
28
|
-
return num / den;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function deltaVsWindow(latest: number, window: number[]): number | null {
|
|
32
|
-
const m = mean(window);
|
|
33
|
-
if (m === null) return null;
|
|
34
|
-
return latest - m;
|
|
35
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { CalendarOutT } from "../schemas/calendar.js";
|
|
2
|
-
import { isObject, asArray, asString } from "../lib/walk.js";
|
|
3
|
-
|
|
4
|
-
// /home-service/v1/calendar/overview (and /recovery) return the month grid:
|
|
5
|
-
// { calendar_title_display: "MAY", days_of_month: [
|
|
6
|
-
// { date_value_display: "1", has_data: true, cycle_id, day_state: "MEDIUM_RECOVERY" }, ... ] }
|
|
7
|
-
// The grid only exposes the recovery STATE per day (LOW/MEDIUM/HIGH_RECOVERY),
|
|
8
|
-
// not numeric recovery/sleep/strain scores — those aren't in this payload, so
|
|
9
|
-
// they stay null. (Numeric per-day scores would require 30 deep-dive calls.)
|
|
10
|
-
|
|
11
|
-
interface ProjectCalendarInput {
|
|
12
|
-
overview: unknown;
|
|
13
|
-
recovery: unknown;
|
|
14
|
-
date: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const STATE: Record<string, "GREEN" | "YELLOW" | "RED"> = {
|
|
18
|
-
HIGH_RECOVERY: "GREEN",
|
|
19
|
-
MEDIUM_RECOVERY: "YELLOW",
|
|
20
|
-
LOW_RECOVERY: "RED",
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export function projectCalendar(input: ProjectCalendarInput): CalendarOutT {
|
|
24
|
-
const month = input.date.slice(0, 7); // "2026-05"
|
|
25
|
-
// overview + recovery carry the same day_state grid; prefer recovery, fall back to overview.
|
|
26
|
-
const recovery = isObject(input.recovery) ? input.recovery : {};
|
|
27
|
-
const overview = isObject(input.overview) ? input.overview : {};
|
|
28
|
-
const grid = asArray(recovery.days_of_month).length ? asArray(recovery.days_of_month) : asArray(overview.days_of_month);
|
|
29
|
-
|
|
30
|
-
const days: CalendarOutT["days"] = [];
|
|
31
|
-
for (const d of grid) {
|
|
32
|
-
if (!isObject(d)) continue;
|
|
33
|
-
if (d.has_data === false) continue;
|
|
34
|
-
const dayNum = asString(d.date_value_display);
|
|
35
|
-
if (!dayNum) continue;
|
|
36
|
-
const state = asString(d.day_state);
|
|
37
|
-
days.push({
|
|
38
|
-
date: `${month}-${dayNum.padStart(2, "0")}`,
|
|
39
|
-
recovery_score: null,
|
|
40
|
-
recovery_state: state ? (STATE[state] ?? null) : null,
|
|
41
|
-
sleep_score: null,
|
|
42
|
-
day_strain: null,
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return { month, days };
|
|
46
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import type { CommunitiesOutT } from "../schemas/communities.js";
|
|
2
|
-
import { isObject, asArray, asNumber, asString, asBool } from "../lib/walk.js";
|
|
3
|
-
|
|
4
|
-
// Conservative projection over /community-service/v1/communities/memberships.
|
|
5
|
-
// The endpoint returns `{total_count, offset, records}` (verified — same
|
|
6
|
-
// endpoint is already called by whoop_leaderboard for community auto-discovery).
|
|
7
|
-
// Per-record fields are inferred from sibling endpoints + community CRUD shapes.
|
|
8
|
-
// Every field is nullable in the schema so partial responses still parse;
|
|
9
|
-
// when Whoop's actual record shape differs, the projection just returns more
|
|
10
|
-
// nulls rather than throwing.
|
|
11
|
-
|
|
12
|
-
interface ProjectInput {
|
|
13
|
-
raw: unknown;
|
|
14
|
-
team_type: "ALL" | "COMMUNITY" | "TEAM" | "BUSINESS";
|
|
15
|
-
leaderboard_metric: "strain" | "sleep" | "recovery";
|
|
16
|
-
period: "day" | "week" | "month";
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function pickString(obj: Record<string, unknown>, keys: string[]): string | null {
|
|
20
|
-
for (const k of keys) {
|
|
21
|
-
const v = asString(obj[k]);
|
|
22
|
-
if (v !== null) return v;
|
|
23
|
-
}
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function pickNumber(obj: Record<string, unknown>, keys: string[]): number | null {
|
|
28
|
-
for (const k of keys) {
|
|
29
|
-
const v = asNumber(obj[k]);
|
|
30
|
-
if (v !== null) return v;
|
|
31
|
-
}
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function pickBool(obj: Record<string, unknown>, keys: string[]): boolean | null {
|
|
36
|
-
for (const k of keys) {
|
|
37
|
-
const v = asBool(obj[k]);
|
|
38
|
-
if (v !== null) return v;
|
|
39
|
-
}
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function projectRank(
|
|
44
|
-
source: Record<string, unknown>,
|
|
45
|
-
metric: string,
|
|
46
|
-
period: string,
|
|
47
|
-
): CommunitiesOutT["communities"][number]["rank"] {
|
|
48
|
-
// The user's rank usually lives in either `user_rank`, `rank`, or
|
|
49
|
-
// `leaderboard_rank` depending on Whoop's flavor; try the common ones.
|
|
50
|
-
const candidate =
|
|
51
|
-
(isObject(source.user_rank) ? source.user_rank : null) ??
|
|
52
|
-
(isObject(source.rank) ? source.rank : null) ??
|
|
53
|
-
(isObject(source.leaderboard_rank) ? source.leaderboard_rank : null);
|
|
54
|
-
if (!candidate) return null;
|
|
55
|
-
const c = candidate as Record<string, unknown>;
|
|
56
|
-
return {
|
|
57
|
-
rank: pickNumber(c, ["rank", "position", "place"]) !== null
|
|
58
|
-
? Math.trunc(pickNumber(c, ["rank", "position", "place"])!)
|
|
59
|
-
: null,
|
|
60
|
-
score: pickNumber(c, ["score", "value", "day_strain", "performance", "average"]),
|
|
61
|
-
metric,
|
|
62
|
-
period,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function projectMembership(
|
|
67
|
-
source: Record<string, unknown>,
|
|
68
|
-
): CommunitiesOutT["communities"][number]["membership"] {
|
|
69
|
-
// The membership sub-object may be inline on the record or nested under
|
|
70
|
-
// `membership` / `user_membership`. Same defensive read.
|
|
71
|
-
const candidate =
|
|
72
|
-
(isObject(source.membership) ? source.membership : null) ??
|
|
73
|
-
(isObject(source.user_membership) ? source.user_membership : null) ??
|
|
74
|
-
source;
|
|
75
|
-
const c = candidate as Record<string, unknown>;
|
|
76
|
-
const unread = pickNumber(c, ["unread_count"]);
|
|
77
|
-
return {
|
|
78
|
-
member_type: pickString(c, ["member_type", "role"]),
|
|
79
|
-
notification_setting: pickString(c, ["notification_setting", "notifications"]),
|
|
80
|
-
unread_count: unread !== null ? Math.trunc(unread) : null,
|
|
81
|
-
online: pickBool(c, ["online", "is_online"]),
|
|
82
|
-
joined_at: pickString(c, ["joined_at", "created_at"]),
|
|
83
|
-
last_online: pickString(c, ["last_online", "last_seen"]),
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function projectCommunities(input: ProjectInput): CommunitiesOutT {
|
|
88
|
-
const root = isObject(input.raw) ? input.raw : {};
|
|
89
|
-
const totalCountRaw = pickNumber(root, ["total_count", "totalCount"]);
|
|
90
|
-
const offsetRaw = pickNumber(root, ["offset"]);
|
|
91
|
-
|
|
92
|
-
const records = asArray(root.records);
|
|
93
|
-
|
|
94
|
-
const communities = records.flatMap((r): CommunitiesOutT["communities"] => {
|
|
95
|
-
if (!isObject(r)) return [];
|
|
96
|
-
const rec = r as Record<string, unknown>;
|
|
97
|
-
// Community core fields may be inline or nested under `community` /
|
|
98
|
-
// `team` depending on the response variant.
|
|
99
|
-
const coreCandidate =
|
|
100
|
-
(isObject(rec.community) ? rec.community : null) ??
|
|
101
|
-
(isObject(rec.team) ? rec.team : null) ??
|
|
102
|
-
rec;
|
|
103
|
-
const core = coreCandidate as Record<string, unknown>;
|
|
104
|
-
|
|
105
|
-
const id = pickNumber(core, ["id", "community_id", "team_id"]);
|
|
106
|
-
const name = pickString(core, ["name", "title"]);
|
|
107
|
-
if (id === null || name === null) return []; // skip malformed records
|
|
108
|
-
|
|
109
|
-
const memberCount = pickNumber(core, ["member_count", "members", "total_members"]);
|
|
110
|
-
const ownerId = pickNumber(core, ["owner_id", "ownerId"]);
|
|
111
|
-
|
|
112
|
-
return [{
|
|
113
|
-
id: Math.trunc(id),
|
|
114
|
-
name,
|
|
115
|
-
avatar_url: pickString(core, ["avatar_url", "avatar", "avatarUrl"]),
|
|
116
|
-
banner_url: pickString(core, ["banner_url", "banner", "bannerUrl"]),
|
|
117
|
-
about: pickString(core, ["about", "description"]),
|
|
118
|
-
private: pickBool(core, ["private", "is_private"]),
|
|
119
|
-
member_count: memberCount !== null ? Math.trunc(memberCount) : null,
|
|
120
|
-
owner_id: ownerId !== null ? Math.trunc(ownerId) : null,
|
|
121
|
-
team_type: pickString(core, ["team_type", "type"]),
|
|
122
|
-
membership: projectMembership(rec),
|
|
123
|
-
rank: projectRank(rec, input.leaderboard_metric, input.period),
|
|
124
|
-
}];
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
return {
|
|
128
|
-
total_count: totalCountRaw !== null ? Math.trunc(totalCountRaw) : communities.length,
|
|
129
|
-
offset: offsetRaw !== null ? Math.trunc(offsetRaw) : 0,
|
|
130
|
-
team_type_filter: input.team_type,
|
|
131
|
-
leaderboard_metric: input.leaderboard_metric,
|
|
132
|
-
period: input.period,
|
|
133
|
-
communities,
|
|
134
|
-
};
|
|
135
|
-
}
|