{"openapi":"3.1.0","info":{"title":"NutriAgent AI API","description":"AI-powered nutrition, calorie, protein, and workout tracking API with scoped OAuth 2.0 permissions.","version":"2.5.0"},"paths":{"/_staging_unlock":{"post":{"summary":"Api Staging Unlock","operationId":"api_staging_unlock__staging_unlock_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/llms.txt":{"get":{"summary":"Serve Llms Txt","operationId":"serve_llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/openid-configuration":{"get":{"summary":"Serve Oauth Authorization Server Metadata","operationId":"serve_oauth_authorization_server_metadata__well_known_openid_configuration_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"summary":"Serve Oauth Authorization Server Metadata","operationId":"serve_oauth_authorization_server_metadata__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"summary":"Serve Oauth Protected Resource Metadata","operationId":"serve_oauth_protected_resource_metadata__well_known_oauth_protected_resource_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/p/{partner_slug}":{"get":{"summary":"Serve Pwa","operationId":"serve_pwa_p__partner_slug__get","parameters":[{"name":"partner_slug","in":"path","required":true,"schema":{"type":"string","title":"Partner Slug"}},{"name":"coach_code","in":"query","required":false,"schema":{"type":"string","title":"Coach Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/join/{coach_code}":{"get":{"summary":"Serve Pwa","operationId":"serve_pwa_join__coach_code__get","parameters":[{"name":"coach_code","in":"path","required":true,"schema":{"type":"string","title":"Coach Code"}},{"name":"partner_slug","in":"query","required":false,"schema":{"type":"string","title":"Partner Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trainers":{"get":{"summary":"Serve Pwa","operationId":"serve_pwa_trainers_get","parameters":[{"name":"partner_slug","in":"query","required":false,"schema":{"type":"string","title":"Partner Slug"}},{"name":"coach_code","in":"query","required":false,"schema":{"type":"string","title":"Coach Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/itamar":{"get":{"summary":"Serve Pwa","operationId":"serve_pwa_itamar_get","parameters":[{"name":"partner_slug","in":"query","required":false,"schema":{"type":"string","title":"Partner Slug"}},{"name":"coach_code","in":"query","required":false,"schema":{"type":"string","title":"Coach Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app":{"get":{"summary":"Serve Pwa","operationId":"serve_pwa_app_get","parameters":[{"name":"partner_slug","in":"query","required":false,"schema":{"type":"string","title":"Partner Slug"}},{"name":"coach_code","in":"query","required":false,"schema":{"type":"string","title":"Coach Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Serve Pwa","operationId":"serve_pwa__get","parameters":[{"name":"partner_slug","in":"query","required":false,"schema":{"type":"string","title":"Partner Slug"}},{"name":"coach_code","in":"query","required":false,"schema":{"type":"string","title":"Coach Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/welcome":{"get":{"summary":"Serve Landing Page","description":"Serves the public marketing landing page for NutriAgent AI.","operationId":"serve_landing_page_welcome_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/landing":{"get":{"summary":"Serve Landing Page","description":"Serves the public marketing landing page for NutriAgent AI.","operationId":"serve_landing_page_landing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthz":{"get":{"summary":"Api System Health","description":"Public health probe for uptime checkers, SLA monitors, and Cloud Run.","operationId":"api_system_health_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Api System Health","description":"Public health probe for uptime checkers, SLA monitors, and Cloud Run.","operationId":"api_system_health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sw.js":{"get":{"summary":"Serve Service Worker","operationId":"serve_service_worker_sw_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/manifest.json":{"get":{"summary":"Serve Manifest","operationId":"serve_manifest_manifest_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/config":{"get":{"summary":"Api Get Auth Config","operationId":"api_get_auth_config_api_auth_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Api Set Auth Config","operationId":"api_set_auth_config_api_auth_config_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google":{"post":{"summary":"Api Auth Google","operationId":"api_auth_google_api_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/dev-bypass":{"get":{"summary":"Api Auth Dev Bypass","operationId":"api_auth_dev_bypass_api_auth_dev_bypass_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Auth Dev Bypass","operationId":"api_auth_dev_bypass_api_auth_dev_bypass_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/me":{"get":{"summary":"Api Auth Me","operationId":"api_auth_me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/claim-legacy-data":{"post":{"summary":"Api Claim Legacy Data","operationId":"api_claim_legacy_data_api_auth_claim_legacy_data_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/cron/daily-health-check":{"post":{"summary":"Api Cron Daily Health Check","description":"Cloud Scheduler endpoint to wake up Cloud Run at 08:00 Asia/Jerusalem and dispatch the daily report.","operationId":"api_cron_daily_health_check_api_cron_daily_health_check_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Cron Daily Health Check","description":"Cloud Scheduler endpoint to wake up Cloud Run at 08:00 Asia/Jerusalem and dispatch the daily report.","operationId":"api_cron_daily_health_check_api_cron_daily_health_check_get","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/daily-user-reminders":{"post":{"summary":"Api Cron Daily User Reminders","description":"Cloud Scheduler endpoint to wake up Cloud Run at 20:00 Asia/Jerusalem and dispatch daily user reminders.","operationId":"api_cron_daily_user_reminders_api_cron_daily_user_reminders_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Cron Daily User Reminders","description":"Cloud Scheduler endpoint to wake up Cloud Run at 20:00 Asia/Jerusalem and dispatch daily user reminders.","operationId":"api_cron_daily_user_reminders_api_cron_daily_user_reminders_get","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/billing-and-costs":{"get":{"summary":"Api Admin Billing And Costs","operationId":"api_admin_billing_and_costs_api_admin_billing_and_costs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/daily-health-and-billing-check":{"post":{"summary":"Api Admin Daily Health Check","operationId":"api_admin_daily_health_check_api_admin_daily_health_and_billing_check_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/qa-guardian":{"get":{"summary":"Api Admin Qa Guardian","description":"Read-only endpoint that runs all QA & Architecture + UX Guardian suites without mutating any data or code.","operationId":"api_admin_qa_guardian_api_admin_qa_guardian_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ux-telemetry":{"post":{"summary":"Api Report Ux Telemetry","description":"Receives live UX watchdog events (auto-unfrozen loading spinners, caught JS errors) from client browsers.","operationId":"api_report_ux_telemetry_api_ux_telemetry_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UXTelemetryEventRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ux-telemetry":{"get":{"summary":"Api Admin List Ux Telemetry","operationId":"api_admin_list_ux_telemetry_api_admin_ux_telemetry_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/photo-errors":{"get":{"summary":"Api Admin Photo Errors","operationId":"api_admin_photo_errors_api_admin_photo_errors_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/photo-errors/{err_id}/resolve":{"post":{"summary":"Api Admin Resolve Photo Error","operationId":"api_admin_resolve_photo_error_api_admin_photo_errors__err_id__resolve_post","parameters":[{"name":"err_id","in":"path","required":true,"schema":{"type":"string","title":"Err Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users":{"get":{"summary":"Api Admin List Users","operationId":"api_admin_list_users_api_admin_users_get","parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Admin Create User","operationId":"api_admin_create_user_api_admin_users_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{target_uid}/details":{"get":{"summary":"Api Admin User Details","operationId":"api_admin_user_details_api_admin_users__target_uid__details_get","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"string","title":"Target Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{target_uid}/targets":{"put":{"summary":"Api Admin Update User Targets","operationId":"api_admin_update_user_targets_api_admin_users__target_uid__targets_put","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"string","title":"Target Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{target_uid}/status":{"put":{"summary":"Api Admin Update User Status","operationId":"api_admin_update_user_status_api_admin_users__target_uid__status_put","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"string","title":"Target Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateUserStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{target_uid}":{"delete":{"summary":"Api Admin Delete User","operationId":"api_admin_delete_user_api_admin_users__target_uid__delete","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"string","title":"Target Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/workout":{"post":{"summary":"Api Submit Workout Lead","operationId":"api_submit_workout_lead_api_leads_workout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutLeadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/supplements":{"post":{"summary":"Api Submit Supplement Lead","operationId":"api_submit_supplement_lead_api_leads_supplements_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplementLeadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/expert":{"post":{"summary":"Api Submit Expert Lead","operationId":"api_submit_expert_lead_api_leads_expert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpertLeadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/{lead_id}/experts-access":{"post":{"summary":"Api Admin Approve Expert Lead Access","operationId":"api_admin_approve_expert_lead_access_api_admin_leads__lead_id__experts_access_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveExpertAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/coach":{"post":{"summary":"Api Submit Coach Lead","operationId":"api_submit_coach_lead_api_leads_coach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachLeadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/config":{"get":{"summary":"Api Get Analytics Config","operationId":"api_get_analytics_config_api_analytics_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/event":{"post":{"summary":"Api Record Analytics Event","operationId":"api_record_analytics_event_api_analytics_event_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsEventRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/config":{"post":{"summary":"Api Admin Set Analytics Config","operationId":"api_admin_set_analytics_config_api_admin_analytics_config_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAnalyticsConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/llmops/stats":{"get":{"summary":"Api Admin Get Llmops Stats","operationId":"api_admin_get_llmops_stats_api_admin_llmops_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/llmops/run-evals":{"post":{"summary":"Api Admin Run Evals","operationId":"api_admin_run_evals_api_admin_llmops_run_evals_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/leads":{"get":{"summary":"Api Admin List Leads","operationId":"api_admin_list_leads_api_admin_leads_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/telegram-target":{"post":{"summary":"Api Admin Set Telegram Target","operationId":"api_admin_set_telegram_target_api_admin_telegram_target_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetTelegramConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/test-telegram-alert":{"post":{"summary":"Api Admin Test Telegram Alert","operationId":"api_admin_test_telegram_alert_api_admin_test_telegram_alert_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/vision-logs":{"get":{"summary":"Api Admin Get Vision Logs","operationId":"api_admin_get_vision_logs_api_admin_vision_logs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meals/photo-history":{"get":{"summary":"Api Get User Photo History","operationId":"api_get_user_photo_history_api_meals_photo_history_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vision-logs/{log_id}/reanalyze":{"post":{"summary":"Api Reanalyze Vision Log","operationId":"api_reanalyze_vision_log_api_vision_logs__log_id__reanalyze_post","parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","title":"Log Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vision-logs/{log_id}":{"delete":{"summary":"Api Delete Vision Log","operationId":"api_delete_vision_log_api_vision_logs__log_id__delete","parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"string","title":"Log Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/vision-analyze-test":{"post":{"summary":"Api Admin Vision Analyze Test","operationId":"api_admin_vision_analyze_test_api_admin_vision_analyze_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionTestAnalyzeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/vision-calibrate":{"post":{"summary":"Api Admin Vision Calibrate","operationId":"api_admin_vision_calibrate_api_admin_vision_calibrate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisionCalibrateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/vision-calibrate/{rule_id}":{"delete":{"summary":"Api Admin Delete Vision Rule","operationId":"api_admin_delete_vision_rule_api_admin_vision_calibrate__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/summary":{"get":{"summary":"Api Summary","operationId":"api_summary_api_summary_get","parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/history":{"get":{"summary":"Api History","operationId":"api_history_api_history_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":14,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meals/":{"get":{"summary":"Api Meals Legacy","description":"Backwards-compatible endpoint returning flat list of meals.","operationId":"api_meals_legacy_api_meals__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Add Manual Meal","operationId":"api_add_manual_meal_api_meals__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualMealRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/food-search":{"get":{"summary":"Api Food Search","description":"Dynamic Israeli food catalog search with in-memory cache + Gemini Flash Lite fallback.","operationId":"api_food_search_api_food_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meals/suggest-slot":{"post":{"summary":"Api Suggest Slot Meal","description":"Returns an optimized meal suggestion for a specific daily slot (breakfast, morning_snack, lunch, afternoon_snack, dinner)\nrespecting Itamar's calorie and protein thresholds. Never crashes with 401.","operationId":"api_suggest_slot_meal_api_meals_suggest_slot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotSuggestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meals/ai":{"post":{"summary":"Api Add Ai Meal","operationId":"api_add_ai_meal_api_meals_ai_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIMealRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meals/photo":{"post":{"summary":"Api Add Photo Meal","operationId":"api_add_photo_meal_api_meals_photo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoMealRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meals/voice":{"post":{"summary":"Api Add Voice Meal","operationId":"api_add_voice_meal_api_meals_voice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceMealRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/trainees":{"get":{"summary":"Api Coach List Trainees","operationId":"api_coach_list_trainees_api_coach_trainees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Coach Create Trainee","operationId":"api_coach_create_trainee_api_coach_trainees_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachTraineeCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/trainees/{trainee_id}/details":{"get":{"summary":"Api Coach Trainee Details","operationId":"api_coach_trainee_details_api_coach_trainees__trainee_id__details_get","parameters":[{"name":"trainee_id","in":"path","required":true,"schema":{"type":"string","title":"Trainee Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/trainees/{trainee_id}":{"delete":{"summary":"Api Coach Delete Trainee","operationId":"api_coach_delete_trainee_api_coach_trainees__trainee_id__delete","parameters":[{"name":"trainee_id","in":"path","required":true,"schema":{"type":"string","title":"Trainee Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/invite/{invite_code}":{"post":{"summary":"Api Auth Invite","operationId":"api_auth_invite_api_auth_invite__invite_code__post","parameters":[{"name":"invite_code","in":"path","required":true,"schema":{"type":"string","title":"Invite Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/analyze":{"post":{"summary":"Api Coach Analyze","operationId":"api_coach_analyze_api_coach_analyze_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CoachAnalyzeRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkin":{"get":{"summary":"Api Get Daily Checkin","operationId":"api_get_daily_checkin_api_checkin_get","parameters":[{"name":"log_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Api Save Daily Checkin","operationId":"api_save_daily_checkin_api_checkin_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyCheckinRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/analyze-premium-interest":{"post":{"summary":"Api Coach Analyze Premium Interest","operationId":"api_coach_analyze_premium_interest_api_coach_analyze_premium_interest_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/meals/{meal_id}":{"put":{"summary":"Api Update Meal","operationId":"api_update_meal_api_meals__meal_id__put","parameters":[{"name":"meal_id","in":"path","required":true,"schema":{"type":"string","title":"Meal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Delete Meal","operationId":"api_delete_meal_api_meals__meal_id__delete","parameters":[{"name":"meal_id","in":"path","required":true,"schema":{"type":"string","title":"Meal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/favorites":{"get":{"summary":"Api Get Favorites","operationId":"api_get_favorites_api_favorites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Add Favorite","operationId":"api_add_favorite_api_favorites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteMealRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workouts/ai":{"post":{"summary":"Api Add Ai Workout","operationId":"api_add_ai_workout_api_workouts_ai_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIWorkoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workouts/":{"post":{"summary":"Api Add Manual Workout","operationId":"api_add_manual_workout_api_workouts__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualWorkoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workouts/{workout_id}":{"delete":{"summary":"Api Delete Workout","operationId":"api_delete_workout_api_workouts__workout_id__delete","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"string","title":"Workout Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workouts/photo":{"post":{"summary":"Api Add Photo Workout","operationId":"api_add_photo_workout_api_workouts_photo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoWorkoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/google-fit/sync":{"post":{"summary":"Api Sync Google Fit","operationId":"api_sync_google_fit_api_google_fit_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleFitSyncRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/favorites/{fav_id}":{"delete":{"summary":"Api Delete Favorite","operationId":"api_delete_favorite_api_favorites__fav_id__delete","parameters":[{"name":"fav_id","in":"path","required":true,"schema":{"type":"string","title":"Fav Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/weight":{"get":{"summary":"Api Get Weight","operationId":"api_get_weight_api_weight_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Log Weight","operationId":"api_log_weight_api_weight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeightLogRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/weight/{entry_id}":{"delete":{"summary":"Api Delete Weight","operationId":"api_delete_weight_api_weight__entry_id__delete","parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/targets":{"put":{"summary":"Api Update Targets","operationId":"api_update_targets_api_targets_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wolt/dishes":{"get":{"summary":"Api Get Wolt Dishes","operationId":"api_get_wolt_dishes_api_wolt_dishes_get","parameters":[{"name":"city_slug","in":"query","required":false,"schema":{"type":"string","default":"tel-aviv","title":"City Slug"}},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"}},{"name":"lon","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lon"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wolt/suggest":{"post":{"summary":"Api Suggest Wolt Dishes","operationId":"api_suggest_wolt_dishes_api_wolt_suggest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WoltSuggestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wolt/scan-menu":{"post":{"summary":"Api Scan Wolt Menu","operationId":"api_scan_wolt_menu_api_wolt_scan_menu_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WoltMenuScanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supermarket/scan":{"post":{"summary":"Api Supermarket Scan","operationId":"api_supermarket_scan_api_supermarket_scan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupermarketScanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/barcode/{barcode}":{"get":{"summary":"Api Lookup Barcode","operationId":"api_lookup_barcode_api_barcode__barcode__get","parameters":[{"name":"barcode","in":"path","required":true,"schema":{"type":"string","title":"Barcode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/barcode/custom":{"post":{"summary":"Api Save Custom Barcode","operationId":"api_save_custom_barcode_api_barcode_custom_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BarcodeSaveCustomRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/barcode/scan-image":{"post":{"summary":"Api Scan Barcode From Image","operationId":"api_scan_barcode_from_image_api_barcode_scan_image_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BarcodeImageScanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/recipes/fridge":{"post":{"summary":"Api Fridge Recipes","operationId":"api_fridge_recipes_api_recipes_fridge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FridgeRecipeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/recipes":{"get":{"summary":"Api Get Recipes","operationId":"api_get_recipes_api_recipes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/grocery/generate":{"post":{"summary":"Api Generate Grocery List","operationId":"api_generate_grocery_list_api_grocery_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroceryGenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/recipes/suggest":{"post":{"summary":"Api Suggest Recipes","operationId":"api_suggest_recipes_api_recipes_suggest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipePromptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/vapid-public-key":{"get":{"summary":"Api Push Vapid Public Key","operationId":"api_push_vapid_public_key_api_push_vapid_public_key_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/push/subscribe":{"post":{"summary":"Api Push Subscribe","operationId":"api_push_subscribe_api_push_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushSubscribeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/unsubscribe":{"post":{"summary":"Api Push Unsubscribe","operationId":"api_push_unsubscribe_api_push_unsubscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushUnsubscribeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/test":{"post":{"summary":"Api Push Test","operationId":"api_push_test_api_push_test_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PushMessageRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/remind":{"post":{"summary":"Api Push Daily Reminder","description":"Can be triggered manually or via Cloud Scheduler to send a smart daily status push.","operationId":"api_push_daily_reminder_api_push_remind_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/messaging/status":{"get":{"summary":"Api Messaging Status","operationId":"api_messaging_status_api_messaging_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/messaging/telegram/unlink":{"post":{"summary":"Api Messaging Telegram Unlink","operationId":"api_messaging_telegram_unlink_api_messaging_telegram_unlink_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/features":{"put":{"summary":"Api Admin Update Features","operationId":"api_admin_update_features_api_admin_features_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFeaturesUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whatsapp/webhook":{"get":{"summary":"Whatsapp Verify Webhook","description":"Meta WhatsApp Cloud API verification challenge endpoint.\nAllows instant zero-code connection with Meta Developer Console.","operationId":"whatsapp_verify_webhook_api_whatsapp_webhook_get","parameters":[{"name":"hub.mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hub.Mode"}},{"name":"hub.challenge","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hub.Challenge"}},{"name":"hub.verify_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hub.Verify Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Whatsapp Webhook","description":"WhatsApp Cloud API incoming message endpoint.\nSeamlessly routes through process_chat_meal_message.","operationId":"whatsapp_webhook_api_whatsapp_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook":{"post":{"summary":"Telegram Webhook","operationId":"telegram_webhook_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/water/add":{"post":{"summary":"Api Add Water","operationId":"api_add_water_api_water_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaterAddRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/water/set":{"post":{"summary":"Api Set Water","operationId":"api_set_water_api_water_set_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaterSetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/onboarding":{"post":{"summary":"Api Save Onboarding","operationId":"api_save_onboarding_api_user_onboarding_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingSaveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/accept-terms":{"post":{"summary":"Api Accept Terms","description":"Mandatory acceptance of terms of service, health declaration, and limitation of liability.\nPersists immutable audit log with timestamp and version in Firestore/local user record.","operationId":"api_accept_terms_api_user_accept_terms_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsAcceptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/bind-coach-code":{"post":{"summary":"Api Bind Coach Code","description":"Binds a user directly to either Coach Itamar (legacy/Itamar codes) or a Premium Trainer\nusing their Coach Code (e.g. 'DAN-4A2B') or personal Trainee Invite Code.","operationId":"api_bind_coach_code_api_user_bind_coach_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindCoachCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/unlink-coach":{"post":{"summary":"Api User Unlink Coach","description":"Allows a trainee to disconnect from their connected trainer/coach at any time.","operationId":"api_user_unlink_coach_api_user_unlink_coach_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/user/dismiss-trainer-reminder":{"post":{"summary":"Api Dismiss Trainer Reminder","operationId":"api_dismiss_trainer_reminder_api_user_dismiss_trainer_reminder_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/user/delete-account-self":{"post":{"summary":"Api Delete Account Self","description":"Self-service account deletion (GDPR / Privacy Protection regulations).\nPermanently deletes the user profile and all associated meals, weights, targets, and logs.","operationId":"api_delete_account_self_api_user_delete_account_self_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountSelfRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support/contact":{"post":{"summary":"Api Support Contact","description":"In-app support contact endpoint.\nReceives user inquiries, saves them securely to Firestore,\nand alerts the Admin via immediate Web Push notification.\nThe admin's personal email and phone number are NEVER exposed to the frontend.","operationId":"api_support_contact_api_support_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportContactRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/ping-admin-approval":{"post":{"summary":"Api Ping Admin Approval","description":"Called by an unapproved user on the waiting screen to remind the admin to approve their account.","operationId":"api_ping_admin_approval_api_user_ping_admin_approval_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PingAdminApprovalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/public/{coach_code}":{"get":{"summary":"Api Trainer Public Preview","description":"Public preview of a trainer when a trainee opens /join/{coach_code} or ?join_coach=.","operationId":"api_trainer_public_preview_api_trainer_public__coach_code__get","parameters":[{"name":"coach_code","in":"path","required":true,"schema":{"type":"string","title":"Coach Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/me":{"get":{"summary":"Api Trainer Me","operationId":"api_trainer_me_api_trainer_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trainer/register":{"post":{"summary":"Api Trainer Register","description":"Registers an authenticated user into the Premium Trainers Portal (starts 14-day Free Trial).","operationId":"api_trainer_register_api_trainer_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainerRegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/leave":{"post":{"summary":"Api Trainer Leave","description":"Allows a user who accidentally opened/registered Trainer Pro to revoke it and return to regular user mode.","operationId":"api_trainer_leave_api_trainer_leave_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trainer/profile":{"put":{"summary":"Api Trainer Update Profile","operationId":"api_trainer_update_profile_api_trainer_profile_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainerProfileUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org/trainees/{trainee_uid}/weekly-summary":{"get":{"summary":"Api Org Trainee Weekly Summary","description":"Returns 7-day nutrition & adherence summary for a trainee under the org manager's coaches.","operationId":"api_org_trainee_weekly_summary_api_org_trainees__trainee_uid__weekly_summary_get","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/request-organic-switch":{"post":{"summary":"Api Request Organic Switch","description":"Allows an Itamar-bound user to request switching to an independent Organic/Pro account (pending admin/payment approval).","operationId":"api_request_organic_switch_api_user_request_organic_switch_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/meals/{meal_id}/ai-rating":{"post":{"summary":"Api Rate Meal Ai","description":"Stores user 👍 / 👎 rating on AI meal analysis for LLMOps quality monitoring.","operationId":"api_rate_meal_ai_api_meals__meal_id__ai_rating_post","parameters":[{"name":"meal_id","in":"path","required":true,"schema":{"type":"string","title":"Meal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIRatingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ai-ratings":{"get":{"summary":"Api Admin List Ai Ratings","description":"Returns aggregated 👍 / 👎 AI accuracy stats and recent ratings for Admins.","operationId":"api_admin_list_ai_ratings_api_admin_ai_ratings_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org/overview":{"get":{"summary":"Api Org Overview","description":"Org Manager (e.g. Itamar) view: lists coaches under org_id, their trainees, and per-trainee billing.","operationId":"api_org_overview_api_org_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/org/coaches":{"post":{"summary":"Api Org Create Coach","description":"Allows Org Manager (Itamar) to onboard a new coach under their organization.","operationId":"api_org_create_coach_api_org_coaches_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgCoachCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org/coaches/{coach_id}":{"put":{"summary":"Api Org Update Coach","description":"Allows Org Manager (Itamar) to activate/pause a coach belonging to their org only.","operationId":"api_org_update_coach_api_org_coaches__coach_id__put","parameters":[{"name":"coach_id","in":"path","required":true,"schema":{"type":"string","title":"Coach Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgCoachUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Org Delete Coach","description":"Permanently removes a coach from the org, unlinking any trainees tied to this coach.","operationId":"api_org_delete_coach_api_org_coaches__coach_id__delete","parameters":[{"name":"coach_id","in":"path","required":true,"schema":{"type":"string","title":"Coach Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/upgrade-request":{"post":{"summary":"Api Trainer Upgrade Request","description":"Billing-ready hook: records plan upgrade intent and alerts Admin (until payment gateway is connected).","operationId":"api_trainer_upgrade_request_api_trainer_upgrade_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainerUpgradeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/trainees":{"get":{"summary":"Api Trainer List Trainees","description":"Lists all trainees belonging strictly to the authenticated Premium Trainer.","operationId":"api_trainer_list_trainees_api_trainer_trainees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Trainer Create Trainee","description":"Creates a pre-configured trainee invite owned by this Premium Trainer (with Web + Telegram + QR).","operationId":"api_trainer_create_trainee_api_trainer_trainees_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachTraineeCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/trainees/{trainee_uid}/diary":{"get":{"summary":"Api Trainer Trainee Diary","description":"Returns a trainee's calorie & nutrition diary for the owning Premium Trainer.","operationId":"api_trainer_trainee_diary_api_trainer_trainees__trainee_uid__diary_get","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}},{"name":"log_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/trainees/{trainee_uid}/targets":{"put":{"summary":"Api Trainer Update Trainee Targets","description":"Allows the owning trainer to update a trainee's calorie/protein targets and coach note.","operationId":"api_trainer_update_trainee_targets_api_trainer_trainees__trainee_uid__targets_put","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainerTraineeTargetsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/trainees/{trainee_uid}/remind":{"post":{"summary":"Api Trainer Remind Trainee","description":"Sends a simple push reminder from Trainer -> Trainee across all available channels:\nWeb Push + Telegram (if linked) + In-app banner fallback.","operationId":"api_trainer_remind_trainee_api_trainer_trainees__trainee_uid__remind_post","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainerRemindTraineeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/trainees/{trainee_uid}":{"delete":{"summary":"Api Trainer Unlink Trainee","description":"Allows a trainer to disconnect/remove a trainee from their roster for any reason.","operationId":"api_trainer_unlink_trainee_api_trainer_trainees__trainee_uid__delete","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/trainees/{trainee_uid}/unlink":{"post":{"summary":"Api Trainer Unlink Trainee","description":"Allows a trainer to disconnect/remove a trainee from their roster for any reason.","operationId":"api_trainer_unlink_trainee_api_trainer_trainees__trainee_uid__unlink_post","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{target_uid}/itamar-link":{"put":{"summary":"Api Admin Toggle Itamar Link","description":"Moves an existing organic user into Itamar's coaching UI/roster (or back to organic) without losing any data.","operationId":"api_admin_toggle_itamar_link_api_admin_users__target_uid__itamar_link_put","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"string","title":"Target Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminItamarLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{target_uid}/user-type":{"put":{"summary":"Api Admin Change User Type","description":"Allows Admin to change a user's classification (e.g. revert accidental Trainer Pro to Organic).","operationId":"api_admin_change_user_type_api_admin_users__target_uid__user_type_put","parameters":[{"name":"target_uid","in":"path","required":true,"schema":{"type":"string","title":"Target Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserTypeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/coaches":{"get":{"summary":"Api Admin List Coaches","operationId":"api_admin_list_coaches_api_admin_coaches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/coaches/{coach_id}":{"put":{"summary":"Api Admin Update Coach","operationId":"api_admin_update_coach_api_admin_coaches__coach_id__put","parameters":[{"name":"coach_id","in":"path","required":true,"schema":{"type":"string","title":"Coach Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCoachUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates":{"get":{"summary":"Api List Templates","description":"Returns org templates (visible to everyone including self-service wizard) + coach personal templates.","operationId":"api_list_templates_api_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Create Template","description":"Allows Itamar (org manager) to create org templates and Coaches to create coach templates.","operationId":"api_create_template_api_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgTemplateCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/{template_id}":{"put":{"summary":"Api Update Template","description":"Allows Org Manager (for org templates) or owning Coach (for coach templates) to edit a template.","operationId":"api_update_template_api_templates__template_id__put","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgTemplateUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Api Delete Template","description":"Soft-deletes a template into trash (recoverable for 30 days).","operationId":"api_delete_template_api_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/trash":{"get":{"summary":"Api List Deleted Templates","description":"Lists soft-deleted templates that the user has permission to restore.","operationId":"api_list_deleted_templates_api_templates_trash_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/templates/{template_id}/restore":{"post":{"summary":"Api Restore Template","description":"Restores a soft-deleted template from trash.","operationId":"api_restore_template_api_templates__template_id__restore_post","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/backup/export":{"get":{"summary":"Api Admin Backup Export","description":"Exports a read-only JSON Snapshot of core collections (users, coaches, templates, trainees) for Admin.","operationId":"api_admin_backup_export_api_admin_backup_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trainer/trainees/{trainee_uid}/apply-template":{"post":{"summary":"Api Trainer Apply Template","description":"Applies a library template (targets + focus note) to a coach's trainee in 1 click.","operationId":"api_trainer_apply_template_api_trainer_trainees__trainee_uid__apply_template_post","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/itamar-weekly-report":{"post":{"summary":"Api Cron Itamar Weekly Report","description":"Cloud Scheduler endpoint for Sunday 08:30 AM Push-only executive digest for Itamar.","operationId":"api_cron_itamar_weekly_report_api_cron_itamar_weekly_report_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Api Cron Itamar Weekly Report","description":"Cloud Scheduler endpoint for Sunday 08:30 AM Push-only executive digest for Itamar.","operationId":"api_cron_itamar_weekly_report_api_cron_itamar_weekly_report_get","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/org/weekly-report/preview":{"get":{"summary":"Api Org Weekly Report Preview","description":"Previews the Sunday morning executive digest in the Org Manager dashboard.","operationId":"api_org_weekly_report_preview_api_org_weekly_report_preview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/org/weekly-report/send":{"post":{"summary":"Api Org Weekly Report Send","description":"Manually triggers the Push-only weekly executive digest for testing.","operationId":"api_org_weekly_report_send_api_org_weekly_report_send_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trainer/weekly-grid":{"get":{"summary":"Api Trainer Weekly Grid","description":"Excel-Killer weekly overview table for a coach: traffic light, 7d averages, private notes & reviewed status.","operationId":"api_trainer_weekly_grid_api_trainer_weekly_grid_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trainer/trainees/{trainee_uid}/private-note":{"put":{"summary":"Api Trainer Update Private Note","description":"Saves a coach-only private internal note for a trainee (never exposed to the trainee).","operationId":"api_trainer_update_private_note_api_trainer_trainees__trainee_uid__private_note_put","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachPrivateNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/trainees/{trainee_uid}/mark-reviewed":{"post":{"summary":"Api Trainer Mark Reviewed","description":"Marks/unmarks a trainee as handled/reviewed for the current week.","operationId":"api_trainer_mark_reviewed_api_trainer_trainees__trainee_uid__mark_reviewed_post","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkReviewedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trainer/trainees/{trainee_uid}/draft-weekly-message":{"post":{"summary":"Api Trainer Draft Weekly Message","description":"Drafts a warm Hebrew weekly check-in message (Itamar's balance & energy philosophy) for WhatsApp or Push.","operationId":"api_trainer_draft_weekly_message_api_trainer_trainees__trainee_uid__draft_weekly_message_post","parameters":[{"name":"trainee_uid","in":"path","required":true,"schema":{"type":"string","title":"Trainee Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/email-otp/request":{"post":{"summary":"Api Email Otp Request","description":"Generates and emails a 6-digit one-time login code for non-Google users.","operationId":"api_email_otp_request_api_auth_email_otp_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailOtpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/email-otp/verify":{"post":{"summary":"Api Email Otp Verify","description":"Verifies the 6-digit OTP code and logs the user in with a signed session_token.","operationId":"api_email_otp_verify_api_auth_email_otp_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailOtpVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AIMealRequest":{"properties":{"text":{"type":"string","title":"Text"},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"},"log_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Time"},"meal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meal Type"},"preview_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preview Only","default":false}},"type":"object","required":["text"],"title":"AIMealRequest"},"AIRatingRequest":{"properties":{"rating":{"type":"string","title":"Rating"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","default":""},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","default":""},"calories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Calories","default":0},"protein_g":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Protein G","default":0.0},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","default":"ai"}},"type":"object","required":["rating"],"title":"AIRatingRequest"},"AIWorkoutRequest":{"properties":{"text":{"type":"string","title":"Text"},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"}},"type":"object","required":["text"],"title":"AIWorkoutRequest"},"AdminAnalyticsConfigRequest":{"properties":{"ga_measurement_id":{"type":"string","title":"Ga Measurement Id"}},"type":"object","required":["ga_measurement_id"],"title":"AdminAnalyticsConfigRequest"},"AdminCoachUpdateRequest":{"properties":{"plan_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Tier"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"max_trainees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Trainees"},"monthly_price_ils":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Price Ils"},"extend_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Extend Days"}},"type":"object","title":"AdminCoachUpdateRequest"},"AdminCreateUserRequest":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","default":""},"target_calories":{"type":"integer","maximum":10000.0,"minimum":500.0,"title":"Target Calories","default":1800},"target_protein":{"type":"integer","maximum":500.0,"minimum":20.0,"title":"Target Protein","default":120},"daily_ai_limit":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Daily Ai Limit","default":15}},"type":"object","required":["email"],"title":"AdminCreateUserRequest"},"AdminFeaturesUpdateRequest":{"properties":{"telegram_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Telegram Enabled"},"whatsapp_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Whatsapp Enabled"}},"type":"object","title":"AdminFeaturesUpdateRequest"},"AdminItamarLinkRequest":{"properties":{"link_itamar":{"type":"boolean","title":"Link Itamar","default":true}},"type":"object","title":"AdminItamarLinkRequest"},"AdminSetTelegramConfigRequest":{"properties":{"admin_chat_id":{"type":"string","title":"Admin Chat Id"}},"type":"object","required":["admin_chat_id"],"title":"AdminSetTelegramConfigRequest"},"AdminUpdateUserStatusRequest":{"properties":{"is_blocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Blocked"},"is_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Admin"},"is_approved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Approved"},"daily_ai_limit":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":0.0},{"type":"null"}],"title":"Daily Ai Limit"}},"type":"object","title":"AdminUpdateUserStatusRequest"},"AdminUserTypeRequest":{"properties":{"user_type":{"type":"string","title":"User Type"}},"type":"object","required":["user_type"],"title":"AdminUserTypeRequest"},"AnalyticsEventRequest":{"properties":{"event_name":{"type":"string","title":"Event Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","default":""},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","default":""}},"type":"object","required":["event_name"],"title":"AnalyticsEventRequest"},"ApplyTemplateRequest":{"properties":{"template_id":{"type":"string","maxLength":80,"minLength":1,"title":"Template Id"},"custom_note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Custom Note"}},"type":"object","required":["template_id"],"title":"ApplyTemplateRequest"},"ApproveExpertAccessRequest":{"properties":{"approved":{"type":"boolean","title":"Approved","default":true}},"type":"object","title":"ApproveExpertAccessRequest"},"AuthConfigRequest":{"properties":{"google_client_id":{"type":"string","title":"Google Client Id"}},"type":"object","required":["google_client_id"],"title":"AuthConfigRequest"},"BarcodeImageScanRequest":{"properties":{"image_base64":{"type":"string","title":"Image Base64"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type","default":"image/jpeg"}},"type":"object","required":["image_base64"],"title":"BarcodeImageScanRequest"},"BarcodeSaveCustomRequest":{"properties":{"barcode":{"type":"string","title":"Barcode"},"product_name":{"type":"string","title":"Product Name"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand","default":""},"calories_per_100g":{"type":"integer","maximum":1200.0,"minimum":0.0,"title":"Calories Per 100G"},"protein_per_100g":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Protein Per 100G"},"carbs_per_100g":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Carbs Per 100G","default":0.0},"fat_per_100g":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fat Per 100G","default":0.0},"package_weight_g":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Package Weight G","default":100}},"type":"object","required":["barcode","product_name","calories_per_100g","protein_per_100g"],"title":"BarcodeSaveCustomRequest"},"BindCoachCodeRequest":{"properties":{"coach_code":{"type":"string","title":"Coach Code"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["coach_code"],"title":"BindCoachCodeRequest"},"CoachAnalyzeRequest":{"properties":{"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"}},"type":"object","title":"CoachAnalyzeRequest"},"CoachLeadRequest":{"properties":{"full_name":{"type":"string","title":"Full Name"},"role":{"type":"string","title":"Role"},"phone":{"type":"string","title":"Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","default":""},"clients_count":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clients Count","default":"1-10"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""}},"type":"object","required":["full_name","role","phone"],"title":"CoachLeadRequest"},"CoachPrivateNoteRequest":{"properties":{"private_note":{"type":"string","maxLength":1500,"title":"Private Note","default":""}},"type":"object","title":"CoachPrivateNoteRequest"},"CoachTraineeCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","default":""},"target_calories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Calories","default":1800},"target_protein":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Protein","default":120.0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""}},"type":"object","required":["name"],"title":"CoachTraineeCreateRequest"},"DailyCheckinRequest":{"properties":{"satiety_rating":{"type":"integer","title":"Satiety Rating"},"feeling_rating":{"type":"integer","title":"Feeling Rating"},"day_rating":{"type":"integer","title":"Day Rating"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"}},"type":"object","required":["satiety_rating","feeling_rating","day_rating"],"title":"DailyCheckinRequest"},"DeleteAccountSelfRequest":{"properties":{"confirmation":{"type":"string","title":"Confirmation"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["confirmation"],"title":"DeleteAccountSelfRequest"},"EmailOtpRequest":{"properties":{"email":{"type":"string","maxLength":160,"minLength":5,"title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Name","default":""}},"type":"object","required":["email"],"title":"EmailOtpRequest"},"EmailOtpVerifyRequest":{"properties":{"email":{"type":"string","maxLength":160,"minLength":5,"title":"Email"},"code":{"type":"string","maxLength":10,"minLength":4,"title":"Code"},"name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Name","default":""}},"type":"object","required":["email","code"],"title":"EmailOtpVerifyRequest"},"ExpertLeadRequest":{"properties":{"full_name":{"type":"string","title":"Full Name"},"phone":{"type":"string","title":"Phone"},"expert_type":{"type":"string","title":"Expert Type"},"expert_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expert Name","default":""},"expert_specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expert Specialty","default":""},"expert_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expert Location","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","default":""},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""}},"type":"object","required":["full_name","phone","expert_type"],"title":"ExpertLeadRequest"},"FavoriteMealRequest":{"properties":{"label":{"type":"string","title":"Label"},"calories":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Calories"},"protein_g":{"type":"number","maximum":500.0,"minimum":0.0,"title":"Protein G"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","default":"⭐"},"meal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meal Type","default":"lunch"}},"type":"object","required":["label","calories","protein_g"],"title":"FavoriteMealRequest"},"FridgeRecipeRequest":{"properties":{"image_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Base64"},"mime_type":{"type":"string","title":"Mime Type","default":"image/jpeg"},"ingredients_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingredients Text","default":""},"remaining_calories":{"type":"integer","title":"Remaining Calories","default":600},"remaining_protein":{"type":"number","title":"Remaining Protein","default":40.0}},"type":"object","title":"FridgeRecipeRequest"},"GoogleAuthRequest":{"properties":{"credential":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"}},"type":"object","title":"GoogleAuthRequest"},"GoogleFitSyncRequest":{"properties":{"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token","default":""},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"}},"type":"object","title":"GoogleFitSyncRequest"},"GroceryGenerateRequest":{"properties":{"target_calories":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":500.0},{"type":"null"}],"title":"Target Calories","default":2000},"target_protein":{"anyOf":[{"type":"number","maximum":500.0,"minimum":20.0},{"type":"null"}],"title":"Target Protein","default":130},"preferences":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Preferences","default":""},"days":{"anyOf":[{"type":"integer","maximum":14.0,"minimum":1.0},{"type":"null"}],"title":"Days","default":7},"lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang","default":"he"}},"type":"object","title":"GroceryGenerateRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ManualMealRequest":{"properties":{"description":{"type":"string","maxLength":300,"minLength":1,"title":"Description"},"calories":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Calories"},"protein_g":{"type":"number","maximum":500.0,"minimum":0.0,"title":"Protein G"},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"},"log_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Time"},"meal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meal Type"},"original_ai_calories":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Original Ai Calories"},"original_ai_protein":{"anyOf":[{"type":"number","maximum":500.0,"minimum":0.0},{"type":"null"}],"title":"Original Ai Protein"},"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/MealItemDetail"},"type":"array"},{"type":"null"}],"title":"Items"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","default":"web"}},"type":"object","required":["description","calories","protein_g"],"title":"ManualMealRequest"},"ManualWorkoutRequest":{"properties":{"activity_name":{"type":"string","title":"Activity Name"},"burned_calories":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Burned Calories"},"duration_min":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"Duration Min","default":30},"distance_km":{"anyOf":[{"type":"number","maximum":500.0,"minimum":0.0},{"type":"null"}],"title":"Distance Km"},"activity_type":{"type":"string","title":"Activity Type","default":"other"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"},"log_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Time"}},"type":"object","required":["activity_name","burned_calories"],"title":"ManualWorkoutRequest"},"MarkReviewedRequest":{"properties":{"reviewed":{"type":"boolean","title":"Reviewed","default":true}},"type":"object","title":"MarkReviewedRequest"},"MealItemDetail":{"properties":{"name":{"type":"string","title":"Name","description":"שם הפריט הספציפי ללא כמות מיותרת בשם, למשל 'פילה סלמון - מבושל', 'תפוח אדמה - מבושל', 'שמן זית'"},"calories":{"type":"integer","title":"Calories","description":"הערכת קלוריות מדויקת לפריט זה"},"protein_g":{"type":"number","title":"Protein G","description":"הערכת חלבון בגרמים לפריט זה","default":0.0},"carbs_g":{"type":"number","title":"Carbs G","description":"הערכת פחמימות בגרמים לפריט זה","default":0.0},"fat_g":{"type":"number","title":"Fat G","description":"הערכת שומן בגרמים לפריט זה","default":0.0},"amount":{"type":"number","title":"Amount","description":"כמות מספרית משוערת (למשל 110, 150, 0.5)","default":0.0},"unit":{"type":"string","title":"Unit","description":"יחידת מידה (למשל 'גרם', 'כף', 'כפית', 'פרוסה', 'יחידה')","default":""},"prep_state":{"type":"string","title":"Prep State","description":"מצב הכנה (למשל 'מבושל', 'אפוי', 'קלוי', 'מטוגן', 'טרי')","default":""}},"type":"object","required":["name","calories"],"title":"MealItemDetail"},"MealUpdateRequest":{"properties":{"description":{"type":"string","title":"Description"},"calories":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Calories"},"protein_g":{"type":"number","maximum":500.0,"minimum":0.0,"title":"Protein G"},"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/MealItemDetail"},"type":"array"},{"type":"null"}],"title":"Items"},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"},"log_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Time"},"meal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meal Type"}},"type":"object","required":["description","calories","protein_g"],"title":"MealUpdateRequest"},"OnboardingSaveRequest":{"properties":{"height_cm":{"anyOf":[{"type":"number","maximum":230.0,"minimum":120.0},{"type":"null"}],"title":"Height Cm"},"weight_kg":{"anyOf":[{"type":"number","maximum":250.0,"minimum":35.0},{"type":"null"}],"title":"Weight Kg"},"age":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":14.0},{"type":"null"}],"title":"Age"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender","default":"male"},"activity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity Level","default":"moderate"},"sleep_hours":{"anyOf":[{"type":"number","maximum":16.0,"minimum":3.0},{"type":"null"}],"title":"Sleep Hours","default":7.0},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal","default":"cut_moderate"},"target_calories":{"anyOf":[{"type":"integer","maximum":6000.0,"minimum":800.0},{"type":"null"}],"title":"Target Calories"},"target_protein":{"anyOf":[{"type":"number","maximum":400.0,"minimum":30.0},{"type":"null"}],"title":"Target Protein"},"water_target_ml":{"anyOf":[{"type":"integer","maximum":8000.0,"minimum":500.0},{"type":"null"}],"title":"Water Target Ml","default":2500},"terms_accepted":{"type":"boolean","title":"Terms Accepted","default":true}},"type":"object","title":"OnboardingSaveRequest"},"OrgCoachCreateRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":2,"title":"Name"},"email":{"type":"string","maxLength":120,"minLength":3,"title":"Email"},"studio_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Studio Name","default":""}},"type":"object","required":["name","email"],"title":"OrgCoachCreateRequest"},"OrgCoachUpdateRequest":{"properties":{"subscription_status":{"type":"string","title":"Subscription Status"}},"type":"object","required":["subscription_status"],"title":"OrgCoachUpdateRequest"},"OrgTemplateCreateRequest":{"properties":{"title":{"type":"string","maxLength":80,"minLength":2,"title":"Title"},"category":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Category","default":"balance"},"target_calories":{"type":"integer","maximum":8000.0,"minimum":800.0,"title":"Target Calories","default":2000},"target_protein":{"type":"number","maximum":500.0,"minimum":20.0,"title":"Target Protein","default":135.0},"target_water_ml":{"type":"integer","maximum":6000.0,"minimum":500.0,"title":"Target Water Ml","default":2500},"focus_note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Focus Note","default":""},"feedback_templates":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Feedback Templates"},"scope":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Scope","default":"auto"}},"type":"object","required":["title"],"title":"OrgTemplateCreateRequest"},"OrgTemplateUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":80,"minLength":2},{"type":"null"}],"title":"Title"},"category":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Category"},"target_calories":{"anyOf":[{"type":"integer","maximum":8000.0,"minimum":800.0},{"type":"null"}],"title":"Target Calories"},"target_protein":{"anyOf":[{"type":"number","maximum":500.0,"minimum":20.0},{"type":"null"}],"title":"Target Protein"},"target_water_ml":{"anyOf":[{"type":"integer","maximum":6000.0,"minimum":500.0},{"type":"null"}],"title":"Target Water Ml"},"focus_note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Focus Note"},"feedback_templates":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Feedback Templates"}},"type":"object","title":"OrgTemplateUpdateRequest"},"PhotoMealRequest":{"properties":{"image_base64":{"type":"string","title":"Image Base64"},"mime_type":{"type":"string","title":"Mime Type","default":"image/jpeg"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption","default":""},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"},"log_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Time"},"meal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meal Type"},"preview_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preview Only","default":false}},"type":"object","required":["image_base64"],"title":"PhotoMealRequest"},"PhotoWorkoutRequest":{"properties":{"image_base64":{"type":"string","title":"Image Base64"},"mime_type":{"type":"string","title":"Mime Type","default":"image/jpeg"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption","default":""},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"}},"type":"object","required":["image_base64"],"title":"PhotoWorkoutRequest"},"PingAdminApprovalRequest":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"PingAdminApprovalRequest"},"PushKeys":{"properties":{"p256dh":{"type":"string","title":"P256Dh"},"auth":{"type":"string","title":"Auth"}},"type":"object","required":["p256dh","auth"],"title":"PushKeys"},"PushMessageRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"}},"type":"object","title":"PushMessageRequest"},"PushSubscribeRequest":{"properties":{"endpoint":{"type":"string","title":"Endpoint"},"keys":{"$ref":"#/components/schemas/PushKeys"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent","default":""}},"type":"object","required":["endpoint","keys"],"title":"PushSubscribeRequest"},"PushUnsubscribeRequest":{"properties":{"endpoint":{"type":"string","title":"Endpoint"}},"type":"object","required":["endpoint"],"title":"PushUnsubscribeRequest"},"RecipePromptRequest":{"properties":{"remaining_calories":{"type":"integer","title":"Remaining Calories","default":600},"remaining_protein":{"type":"number","title":"Remaining Protein","default":40.0},"preference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preference","default":""}},"type":"object","title":"RecipePromptRequest"},"SlotSuggestRequest":{"properties":{"slot_key":{"type":"string","title":"Slot Key"},"target_calories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Calories"},"target_protein":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Protein"},"preference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preference","default":""}},"type":"object","required":["slot_key"],"title":"SlotSuggestRequest"},"SupermarketScanRequest":{"properties":{"image_base64":{"type":"string","title":"Image Base64"},"mime_type":{"type":"string","title":"Mime Type","default":"image/jpeg"},"remaining_calories":{"type":"integer","title":"Remaining Calories","default":600},"remaining_protein":{"type":"number","title":"Remaining Protein","default":40.0}},"type":"object","required":["image_base64"],"title":"SupermarketScanRequest"},"SupplementLeadRequest":{"properties":{"full_name":{"type":"string","title":"Full Name"},"phone":{"type":"string","title":"Phone"},"supplement_type":{"type":"string","title":"Supplement Type","default":"אבקת חלבון / שייק"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal","default":"השלמת חלבון יומית"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","default":""},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""}},"type":"object","required":["full_name","phone"],"title":"SupplementLeadRequest"},"SupportContactRequest":{"properties":{"subject":{"type":"string","title":"Subject","default":"פנייה כללית"},"message":{"type":"string","title":"Message"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","default":"תקלה טכנית"}},"type":"object","required":["message"],"title":"SupportContactRequest"},"TargetUpdateRequest":{"properties":{"target_calories":{"type":"integer","maximum":10000.0,"minimum":500.0,"title":"Target Calories"},"target_protein":{"type":"integer","maximum":500.0,"minimum":20.0,"title":"Target Protein","default":120},"water_target_ml":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":500.0},{"type":"null"}],"title":"Water Target Ml","default":2500},"water_cup_ml":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":100.0},{"type":"null"}],"title":"Water Cup Ml"},"daily_ai_limit":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":0.0},{"type":"null"}],"title":"Daily Ai Limit"},"height_cm":{"anyOf":[{"type":"number","maximum":250.0,"minimum":100.0},{"type":"null"}],"title":"Height Cm"},"weight_kg":{"anyOf":[{"type":"number","maximum":300.0,"minimum":30.0},{"type":"null"}],"title":"Weight Kg"},"age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":10.0},{"type":"null"}],"title":"Age"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender","default":"male"},"activity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity Level","default":"1.55"},"sleep_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sleep Hours","default":7.5},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal","default":"cut_moderate"}},"type":"object","required":["target_calories"],"title":"TargetUpdateRequest"},"TermsAcceptRequest":{"properties":{"version":{"type":"string","title":"Version","default":"2026-11-health-v1"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},"type":"object","title":"TermsAcceptRequest"},"TrainerProfileUpdateRequest":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"studio_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Studio Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty"}},"type":"object","title":"TrainerProfileUpdateRequest"},"TrainerRegisterRequest":{"properties":{"display_name":{"type":"string","title":"Display Name"},"studio_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Studio Name","default":""},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","default":""},"specialty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Specialty","default":"fitness_trainer"}},"type":"object","required":["display_name"],"title":"TrainerRegisterRequest"},"TrainerRemindTraineeRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","default":"תזכורת מהמאמן שלך 💪"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"TrainerRemindTraineeRequest"},"TrainerTraineeTargetsRequest":{"properties":{"target_calories":{"type":"integer","title":"Target Calories"},"target_protein":{"type":"number","title":"Target Protein"},"coach_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coach Note","default":""}},"type":"object","required":["target_calories","target_protein"],"title":"TrainerTraineeTargetsRequest"},"TrainerUpgradeRequest":{"properties":{"plan_tier":{"type":"string","title":"Plan Tier","default":"pro"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""}},"type":"object","title":"TrainerUpgradeRequest"},"UXTelemetryEventRequest":{"properties":{"event_type":{"type":"string","title":"Event Type","default":"ux_freeze_recovered"},"flag_or_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag Or Source","default":""},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","default":""},"active_tab":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Tab","default":""},"viewport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewport","default":""}},"type":"object","title":"UXTelemetryEventRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VisionCalibrateRequest":{"properties":{"log_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Id","default":""},"meal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meal Id","default":""},"target_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target User Id","default":""},"rule_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Text","default":""},"corrected_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corrected Summary","default":""},"corrected_calories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Corrected Calories"},"corrected_protein_g":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Corrected Protein G"},"update_customer_meal":{"type":"boolean","title":"Update Customer Meal","default":true}},"type":"object","title":"VisionCalibrateRequest"},"VisionTestAnalyzeRequest":{"properties":{"image_base64":{"type":"string","title":"Image Base64"},"mime_type":{"type":"string","title":"Mime Type","default":"image/jpeg"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption","default":""}},"type":"object","required":["image_base64"],"title":"VisionTestAnalyzeRequest"},"VoiceMealRequest":{"properties":{"audio_base64":{"type":"string","title":"Audio Base64"},"mime_type":{"type":"string","title":"Mime Type","default":"audio/webm"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption","default":""},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"},"log_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Time"},"meal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meal Type"},"preview_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Preview Only","default":false}},"type":"object","required":["audio_base64"],"title":"VoiceMealRequest"},"WaterAddRequest":{"properties":{"amount_ml":{"type":"integer","maximum":5000.0,"minimum":-5000.0,"title":"Amount Ml"},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"}},"type":"object","required":["amount_ml"],"title":"WaterAddRequest"},"WaterSetRequest":{"properties":{"amount_ml":{"type":"integer","maximum":15000.0,"minimum":0.0,"title":"Amount Ml"},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"}},"type":"object","required":["amount_ml"],"title":"WaterSetRequest"},"WeightLogRequest":{"properties":{"weight_kg":{"type":"number","maximum":350.0,"minimum":25.0,"title":"Weight Kg"},"log_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Date"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","default":""}},"type":"object","required":["weight_kg"],"title":"WeightLogRequest"},"WoltMenuScanRequest":{"properties":{"image_base64":{"type":"string","title":"Image Base64"},"mime_type":{"type":"string","title":"Mime Type","default":"image/jpeg"},"remaining_calories":{"type":"integer","title":"Remaining Calories","default":600},"remaining_protein":{"type":"number","title":"Remaining Protein","default":40.0},"city_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City Slug","default":"tel-aviv"}},"type":"object","required":["image_base64"],"title":"WoltMenuScanRequest"},"WoltSuggestRequest":{"properties":{"remaining_calories":{"type":"integer","title":"Remaining Calories","default":600},"remaining_protein":{"type":"number","title":"Remaining Protein","default":40.0},"city_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City Slug","default":"tel-aviv"},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lon"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query","default":""}},"type":"object","title":"WoltSuggestRequest"},"WorkoutLeadRequest":{"properties":{"full_name":{"type":"string","title":"Full Name"},"phone":{"type":"string","title":"Phone"},"city":{"type":"string","title":"City"},"activity_type":{"type":"string","title":"Activity Type"},"preferred_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Time","default":"גמיש"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal","default":"חיטוב ועיצוב"},"studio_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Studio Name","default":""},"studio_perk":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Studio Perk","default":""},"voucher_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voucher Code","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","default":""},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""}},"type":"object","required":["full_name","phone","city","activity_type"],"title":"WorkoutLeadRequest"}},"securitySchemes":{"OAuth2":{"type":"oauth2","description":"OAuth 2.0 authentication with scoped permissions for NutriAgent AI resources.","flows":{"authorizationCode":{"authorizationUrl":"https://accounts.google.com/o/oauth2/v2/auth","tokenUrl":"https://oauth2.googleapis.com/token","scopes":{"meals:read":"Read daily meals, nutrition logs, and calorie/protein summaries","meals:write":"Log, update, or delete meals via AI text, photo, voice, or barcode","workouts:read":"Read logged workouts and Google Fit activity summaries","workouts:write":"Log or update workouts and burned calories","profile:read":"Read user profile, metabolic targets, and access status","profile:write":"Update calorie/protein targets, water intake, and weight logs"}}}},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"OAuth2":["meals:read","meals:write","workouts:read","workouts:write","profile:read","profile:write"]},{"BearerAuth":[]}]}