{"openapi":"3.1.0","info":{"title":"VivoX API","version":"0.1.0"},"paths":{"/api/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPayload"}}},"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/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginPayload"}}},"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/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Logs out this device only — \"Logg ut alle andre\" is in Innstillinger.","operationId":"logout_api_auth_logout_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_auth_me_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Always answers the same way, so the endpoint can't be used to find\nout who has an account. The e-mail goes out in the background for the\nsame reason — response time doesn't depend on whether it was sent.","operationId":"forgot_password_api_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordPayload"}}},"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/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordPayload"}}},"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/2fa/challenge":{"post":{"tags":["auth"],"summary":"Two Factor Challenge","description":"The second login step: the challenge token from /login plus a code\nfrom the app or a backup code.","operationId":"two_factor_challenge_api_auth_2fa_challenge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChallengePayload"}}},"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/2fa":{"get":{"tags":["auth"],"summary":"Two Factor Status","operationId":"two_factor_status_api_auth_2fa_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/2fa/setup":{"post":{"tags":["auth"],"summary":"Two Factor Setup","description":"Start setup: a fresh secret waits as pending until /2fa/verify\nconfirms the user's app produces matching codes.","operationId":"two_factor_setup_api_auth_2fa_setup_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/2fa/verify":{"post":{"tags":["auth"],"summary":"Two Factor Verify","operationId":"two_factor_verify_api_auth_2fa_verify_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/2fa/disable":{"post":{"tags":["auth"],"summary":"Two Factor Disable","operationId":"two_factor_disable_api_auth_2fa_disable_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisableTwoFactorPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/2fa/backup-codes":{"post":{"tags":["auth"],"summary":"Two Factor New Backup Codes","description":"New backup codes (the old ones stop working). Needs the password or a\ncode from the app again — the codes are a way into the account.","operationId":"two_factor_new_backup_codes_api_auth_2fa_backup_codes_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReauthPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/password":{"post":{"tags":["auth"],"summary":"Change Password","description":"Change password; every other device is logged out, this one stays.","operationId":"change_password_api_auth_password_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/sessions":{"get":{"tags":["auth"],"summary":"List Sessions","operationId":"list_sessions_api_auth_sessions_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/sessions/{session_id}":{"delete":{"tags":["auth"],"summary":"Revoke Session","operationId":"revoke_session_api_auth_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/sessions/revoke-others":{"post":{"tags":["auth"],"summary":"Revoke Other Sessions","operationId":"revoke_other_sessions_api_auth_sessions_revoke_others_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/households/my":{"get":{"tags":["households"],"summary":"My Households","operationId":"my_households_api_households_my_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/households/pending-invites":{"get":{"tags":["households"],"summary":"Pending Invites","operationId":"pending_invites_api_households_pending_invites_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/households/{household_id}/invite":{"post":{"tags":["households"],"summary":"Invite Member","operationId":"invite_member_api_households__household_id__invite_post","parameters":[{"name":"household_id","in":"path","required":true,"schema":{"type":"integer","title":"Household Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/households/{household_id}/respond":{"post":{"tags":["households"],"summary":"Respond To Invite","operationId":"respond_to_invite_api_households__household_id__respond_post","parameters":[{"name":"household_id","in":"path","required":true,"schema":{"type":"integer","title":"Household Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespondPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/plan":{"get":{"tags":["plan"],"summary":"Get Plan","operationId":"get_plan_api_training_plan_get","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"}},{"name":"weeks","in":"query","required":false,"schema":{"type":"integer","default":4,"title":"Weeks"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/plan/weeks":{"put":{"tags":["plan"],"summary":"Save Weeks","operationId":"save_weeks_api_training_plan_weeks_put","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WeekPayload"},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/plan/generate":{"post":{"tags":["plan"],"summary":"Generate","description":"The wizard's answers: saved to the plan preferences and plan_weeks\n(they prefill the next time), then the coach makes a proposal.","operationId":"generate_api_training_plan_generate_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/plan/review":{"get":{"tags":["plan"],"summary":"Review","description":"The Sunday review for the coming week: shown Sunday from 16:00 and on\nMonday, made on first request in that window (once per week), null\notherwise. Approved or rejected ones come back too, for the status line.","operationId":"review_api_training_plan_review_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/exercises/library":{"get":{"tags":["exercises"],"summary":"Library","description":"Every library exercise plus the user's own that aren't archived, sorted\nA–Å. Answered with an ETag, so an unchanged library costs a 304.","operationId":"library_api_training_exercises_library_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/exercises/me":{"get":{"tags":["exercises"],"summary":"Me","description":"Favourites, the latest exercises done (newest first, with the last\nsession's sets) and the ones done most often (completed sessions).","operationId":"me_api_training_exercises_me_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/exercises/{exercise_id}":{"get":{"tags":["exercises"],"summary":"Get Exercise","description":"Full detail. An archived own exercise can still be opened — old\nsessions link to it.","operationId":"get_exercise_api_training_exercises__exercise_id__get","parameters":[{"name":"exercise_id","in":"path","required":true,"schema":{"type":"integer","title":"Exercise Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["exercises"],"summary":"Update Own","operationId":"update_own_api_training_exercises__exercise_id__patch","parameters":[{"name":"exercise_id","in":"path","required":true,"schema":{"type":"integer","title":"Exercise Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnExercisePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/exercises/{exercise_id}/favorite":{"put":{"tags":["exercises"],"summary":"Add Favorite","operationId":"add_favorite_api_training_exercises__exercise_id__favorite_put","parameters":[{"name":"exercise_id","in":"path","required":true,"schema":{"type":"integer","title":"Exercise Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["exercises"],"summary":"Remove Favorite","operationId":"remove_favorite_api_training_exercises__exercise_id__favorite_delete","parameters":[{"name":"exercise_id","in":"path","required":true,"schema":{"type":"integer","title":"Exercise Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/exercises":{"post":{"tags":["exercises"],"summary":"Create Own","description":"A new own exercise. One the user already has under the same name\n(exercise_key) is returned instead — archived ones come back.","operationId":"create_own_api_training_exercises_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnExercisePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["training"],"summary":"List Exercises","description":"Old flat list (names): the library, the user's own and free text from before.","operationId":"list_exercises_api_training_exercises_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/exercises/{exercise_id}/archive":{"post":{"tags":["exercises"],"summary":"Archive Own","description":"Gone from the picker; sets, plans and history keep pointing at it.","operationId":"archive_own_api_training_exercises__exercise_id__archive_post","parameters":[{"name":"exercise_id","in":"path","required":true,"schema":{"type":"integer","title":"Exercise Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/exercises/history":{"get":{"tags":["training"],"summary":"Exercise History","description":"For each exercise: the user's last `limit` completed sessions with it,\noldest → newest (the last one is \"forrige gang\"). Planned sessions and\nthe session being logged are left out. One query for all exercises.","operationId":"exercise_history_api_training_exercises_history_get","parameters":[{"name":"names","in":"query","required":false,"schema":{"type":"string","default":"","title":"Names"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ids"}},{"name":"exclude_workout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exclude Workout"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Limit"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/exercises/bests":{"get":{"tags":["training"],"summary":"Exercise Bests","description":"Øktfeedback v1: the best result so far per exercise, over all the\nuser's completed sessions — what a «Ny rekord» is measured against.\nWith `exclude_workout`, that session and everything scheduled after it\nis left out, so a session that's already done is judged against the ones\nbefore it. `date` is when the headline best was set (heaviest set, else\nlongest hold, else most reps). null for an exercise never done.","operationId":"exercise_bests_api_training_exercises_bests_get","parameters":[{"name":"names","in":"query","required":false,"schema":{"type":"string","default":"","title":"Names"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ids"}},{"name":"exclude_workout","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exclude Workout"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/templates":{"get":{"tags":["training"],"summary":"List Templates","operationId":"list_templates_api_training_templates_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["training"],"summary":"Create Template","operationId":"create_template_api_training_templates_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/templates/{template_id}":{"patch":{"tags":["training"],"summary":"Update Template","operationId":"update_template_api_training_templates__template_id__patch","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}},{"name":"is_active","in":"query","required":true,"schema":{"type":"boolean","title":"Is Active"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["training"],"summary":"Delete Template","operationId":"delete_template_api_training_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"integer","title":"Template Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts":{"get":{"tags":["training"],"summary":"List Workouts","operationId":"list_workouts_api_training_workouts_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","title":"End"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"mine","title":"Scope"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["training"],"summary":"Create Workout","operationId":"create_workout_api_training_workouts_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/completed-recent":{"get":{"tags":["training"],"summary":"List Recent Completed Workouts","description":"Most recently completed workouts, independent of which calendar week\nis currently in view — feeds the \"Fullførte aktiviteter\" panel so a\nsession marked done from the calendar shows up there too, not just\nactivities logged manually or synced from Garmin.","operationId":"list_recent_completed_workouts_api_training_workouts_completed_recent_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/library":{"get":{"tags":["training"],"summary":"Workout Library","description":"Favorited workouts UNION the ~30 most recently completed — feeds the\n'Ny økt'-ark's Favoritter/Nylig gjennomført-fane. Grouping plus any\nsearch/type filtering happens client-side on this one list, same\npattern as mergeCompletedItems below.","operationId":"workout_library_api_training_library_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/{workout_id}/join":{"post":{"tags":["training"],"summary":"Request Join","description":"Request to join a followed user's open planned session. This no\nlonger joins immediately — it notifies the owner, who must accept\nbefore a linked copy is created for the requester (see\n/join-requests/{id}/respond).","operationId":"request_join_api_training_workouts__workout_id__join_post","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"integer","title":"Workout Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["training"],"summary":"Withdraw Join","description":"Take back a still-pending request to join (Puls' \"Venter på svar\",\ntapped again). An accepted request has already created your copy of the\nsession, so it can't be withdrawn here.","operationId":"withdraw_join_api_training_workouts__workout_id__join_delete","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"integer","title":"Workout Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/join-requests/pending":{"get":{"tags":["training"],"summary":"List Pending Join Requests","description":"Join requests waiting for a decision on one of the current user's\nown sessions — feeds the global notification bell.","operationId":"list_pending_join_requests_api_training_join_requests_pending_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/join-requests/{request_id}/respond":{"post":{"tags":["training"],"summary":"Respond Join Request","operationId":"respond_join_request_api_training_join_requests__request_id__respond_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinRequestRespondPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/{workout_id}/save-copy":{"post":{"tags":["training"],"summary":"Save Workout Copy","description":"Clone a workout — completed or still planned — (yours, or a followed\nuser's) into a fresh planned workout for the current user. Used from the\nPuls feed's \"Lagre\" action, on either the Historikk or Plan tab, so a\nfollowed user's session (done or upcoming) can be reused as your own.","operationId":"save_workout_copy_api_training_workouts__workout_id__save_copy_post","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"integer","title":"Workout Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/{workout_id}/previous":{"get":{"tags":["training"],"summary":"Previous Workout","description":"Øktfeedback v1: the last completed occurrence of the same session\n(services/previous_session.py), the best one so far, and up to six\nearlier occurrences for «Utvikling», oldest first.","operationId":"previous_workout_api_training_workouts__workout_id__previous_get","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"integer","title":"Workout Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/{workout_id}":{"patch":{"tags":["training"],"summary":"Update Workout","operationId":"update_workout_api_training_workouts__workout_id__patch","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"integer","title":"Workout Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutUpdatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["training"],"summary":"Delete Workout","operationId":"delete_workout_api_training_workouts__workout_id__delete","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"integer","title":"Workout Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/{workout_id}/sets":{"post":{"tags":["training"],"summary":"Add Set","description":"Log one set. Returns just the set, so the logging sheet can update\noptimistically without refetching the session.","operationId":"add_set_api_training_workouts__workout_id__sets_post","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"integer","title":"Workout Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/sets/{set_id}":{"patch":{"tags":["training"],"summary":"Update Set","description":"Change a logged set. A field sent as null clears it (e.g. switching a\nset from reps to time); a field left out is untouched.","operationId":"update_set_api_training_workouts_sets__set_id__patch","parameters":[{"name":"set_id","in":"path","required":true,"schema":{"type":"integer","title":"Set Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetUpdatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["training"],"summary":"Delete Set","operationId":"delete_set_api_training_workouts_sets__set_id__delete","parameters":[{"name":"set_id","in":"path","required":true,"schema":{"type":"integer","title":"Set Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/{workout_id}/cardio":{"put":{"tags":["training"],"summary":"Upsert Cardio","operationId":"upsert_cardio_api_training_workouts__workout_id__cardio_put","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"integer","title":"Workout Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardioPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/{workout_id}/intervals/{rep_number}":{"put":{"tags":["training"],"summary":"Upsert Interval Result","operationId":"upsert_interval_result_api_training_workouts__workout_id__intervals__rep_number__put","parameters":[{"name":"workout_id","in":"path","required":true,"schema":{"type":"integer","title":"Workout Id"}},{"name":"rep_number","in":"path","required":true,"schema":{"type":"integer","title":"Rep Number"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntervalResultPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/workouts/intervals/{result_id}":{"delete":{"tags":["training"],"summary":"Delete Interval Result","operationId":"delete_interval_result_api_training_workouts_intervals__result_id__delete","parameters":[{"name":"result_id","in":"path","required":true,"schema":{"type":"integer","title":"Result Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/training/dashboard":{"get":{"tags":["training"],"summary":"Dashboard","description":"KPI row. Counts the same \"actually trained\" sessions as\n/dashboard/progress — completed workouts plus unmatched activities\n(services/training_sessions.py) — so the two never disagree.","operationId":"dashboard_api_training_dashboard_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/activities":{"get":{"tags":["activities"],"summary":"List Activities","operationId":"list_activities_api_activities_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["activities"],"summary":"Create Manual Activity","operationId":"create_manual_activity_api_activities_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualActivityPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/activities/{activity_id}":{"get":{"tags":["activities"],"summary":"Get Activity","operationId":"get_activity_api_activities__activity_id__get","parameters":[{"name":"activity_id","in":"path","required":true,"schema":{"type":"integer","title":"Activity Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workout-matches/pending":{"get":{"tags":["activities"],"summary":"List Pending Matches","operationId":"list_pending_matches_api_workout_matches_pending_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workout-matches/{match_id}/confirm":{"post":{"tags":["activities"],"summary":"Confirm Match","operationId":"confirm_match_api_workout_matches__match_id__confirm_post","parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workout-matches/{match_id}/reject":{"post":{"tags":["activities"],"summary":"Reject Match","operationId":"reject_match_api_workout_matches__match_id__reject_post","parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/garmin/":{"get":{"tags":["integrations"],"summary":"Get Connection","operationId":"get_connection_api_integrations_garmin__get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["integrations"],"summary":"Disconnect","operationId":"disconnect_api_integrations_garmin__delete","parameters":[{"name":"purge","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Purge"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/garmin/connect":{"post":{"tags":["integrations"],"summary":"Start Connection","operationId":"start_connection_api_integrations_garmin_connect_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConnectPayload"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/garmin/callback":{"get":{"tags":["integrations"],"summary":"Oauth Callback","operationId":"oauth_callback_api_integrations_garmin_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/garmin/sync":{"post":{"tags":["integrations"],"summary":"Sync Now","description":"Ber Garmin sende de siste ukene på nytt. Øktene kommer via push,\nvanligvis innen noen minutter — svaret sier bare at forespørselen er sendt.","operationId":"sync_now_api_integrations_garmin_sync_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/garmin/push/{secret}":{"post":{"tags":["integrations"],"summary":"Push Receive","operationId":"push_receive_api_integrations_garmin_push__secret__post","parameters":[{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/strava/":{"get":{"tags":["integrations"],"summary":"Get Connection","operationId":"get_connection_api_integrations_strava__get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["integrations"],"summary":"Disconnect","operationId":"disconnect_api_integrations_strava__delete","parameters":[{"name":"purge","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Purge"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/strava/connect":{"post":{"tags":["integrations"],"summary":"Start Connection","operationId":"start_connection_api_integrations_strava_connect_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/strava/callback":{"get":{"tags":["integrations"],"summary":"Oauth Callback","operationId":"oauth_callback_api_integrations_strava_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/strava/sync":{"post":{"tags":["integrations"],"summary":"Sync Now","operationId":"sync_now_api_integrations_strava_sync_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/strava/webhook":{"get":{"tags":["integrations"],"summary":"Webhook Validate","operationId":"webhook_validate_api_integrations_strava_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":{"tags":["integrations"],"summary":"Webhook Receive","operationId":"webhook_receive_api_integrations_strava_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/strava/cron/poll":{"post":{"tags":["integrations"],"summary":"Cron Poll","operationId":"cron_poll_api_integrations_strava_cron_poll_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/follows/":{"post":{"tags":["follows"],"summary":"Request Follow","operationId":"request_follow_api_follows__post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowRequestPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follows/suggestions":{"get":{"tags":["follows"],"summary":"Suggestions","description":"People you might want to follow, each with a reason: followed by\npeople you follow, training for the same race, or training at the same\nplace. Nobody without a reason is suggested (decided 2026-10-14).","operationId":"suggestions_api_follows_suggestions_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follows/pending":{"get":{"tags":["follows"],"summary":"List Pending Requests","operationId":"list_pending_requests_api_follows_pending_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follows/following":{"get":{"tags":["follows"],"summary":"List Following","operationId":"list_following_api_follows_following_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follows/followers":{"get":{"tags":["follows"],"summary":"List Followers","operationId":"list_followers_api_follows_followers_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follows/{follow_id}/respond":{"post":{"tags":["follows"],"summary":"Respond To Request","operationId":"respond_to_request_api_follows__follow_id__respond_post","parameters":[{"name":"follow_id","in":"path","required":true,"schema":{"type":"integer","title":"Follow Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespondPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follows/{follow_id}":{"delete":{"tags":["follows"],"summary":"Remove Follow","operationId":"remove_follow_api_follows__follow_id__delete","parameters":[{"name":"follow_id","in":"path","required":true,"schema":{"type":"integer","title":"Follow Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feed/":{"get":{"tags":["feed"],"summary":"List Feed","operationId":"list_feed_api_feed__get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"completed","title":"Status"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/race-goals/":{"get":{"tags":["race-goals"],"summary":"List Goals","operationId":"list_goals_api_race_goals__get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["race-goals"],"summary":"Create Goal","operationId":"create_goal_api_race_goals__post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RaceGoalPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/race-goals/active":{"get":{"tags":["race-goals"],"summary":"Get Active Goal","operationId":"get_active_goal_api_race_goals_active_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/race-goals/{goal_id}":{"patch":{"tags":["race-goals"],"summary":"Update Goal","operationId":"update_goal_api_race_goals__goal_id__patch","parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"integer","title":"Goal Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RaceGoalPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["race-goals"],"summary":"Abandon Goal","operationId":"abandon_goal_api_race_goals__goal_id__delete","parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"integer","title":"Goal Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/status":{"get":{"tags":["coach"],"summary":"Status","operationId":"status_api_coach_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/coach/suggestion":{"get":{"tags":["coach"],"summary":"Suggestion","operationId":"suggestion_api_coach_suggestion_get","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Date"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/suggestions":{"get":{"tags":["coach"],"summary":"Suggestions","operationId":"suggestions_api_coach_suggestions_get","parameters":[{"name":"context_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Type"}},{"name":"context_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Id"}},{"name":"context_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Date"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/thread":{"get":{"tags":["coach"],"summary":"Get Thread","description":"Finished weeks as chapters plus this week's messages. Folding a week\nhappens here; its Claude summary is filled in by a background job, so\nthe client re-fetches while any chapter is still `summarizing`.","operationId":"get_thread_api_coach_thread_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/chapters/{chapter_id}/messages":{"get":{"tags":["coach"],"summary":"Chapter Messages","operationId":"chapter_messages_api_coach_chapters__chapter_id__messages_get","parameters":[{"name":"chapter_id","in":"path","required":true,"schema":{"type":"integer","title":"Chapter Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/messages":{"get":{"tags":["coach"],"summary":"List Messages","description":"This week's messages (older ones live in chapters, see /thread).","operationId":"list_messages_api_coach_messages_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["coach"],"summary":"Send Message","operationId":"send_message_api_coach_messages_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__routers__coach__MessagePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["coach"],"summary":"Delete History","description":"Innstillinger → «Slett samtalehistorikk»: messages, weekly chapters\nand proposals go; what the coach remembers stays.","operationId":"delete_history_api_coach_messages_delete","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/proposals/{proposal_id}/approve":{"post":{"tags":["coach"],"summary":"Approve Proposal","operationId":"approve_proposal_api_coach_proposals__proposal_id__approve_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"integer","title":"Proposal Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/proposals/{proposal_id}/reject":{"post":{"tags":["coach"],"summary":"Reject Proposal","operationId":"reject_proposal_api_coach_proposals__proposal_id__reject_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"integer","title":"Proposal Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/proposals/{proposal_id}/undo":{"post":{"tags":["coach"],"summary":"Undo Proposal","operationId":"undo_proposal_api_coach_proposals__proposal_id__undo_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"integer","title":"Proposal Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/feedback-drafts/{draft_id}/send":{"post":{"tags":["coach"],"summary":"Send Feedback Draft","description":"«Send inn» — the draft becomes a case (source coach).","operationId":"send_feedback_draft_api_coach_feedback_drafts__draft_id__send_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"integer","title":"Draft Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/feedback-drafts/{draft_id}/drop":{"post":{"tags":["coach"],"summary":"Drop Feedback Draft","description":"«Avbryt», and «Rediger» (the dialog takes over from the draft).","operationId":"drop_feedback_draft_api_coach_feedback_drafts__draft_id__drop_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"integer","title":"Draft Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/memory":{"get":{"tags":["coach"],"summary":"List Memory","operationId":"list_memory_api_coach_memory_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["coach"],"summary":"Add Memory","operationId":"add_memory_api_coach_memory_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/memory/{memory_id}":{"patch":{"tags":["coach"],"summary":"Edit Memory","description":"A user edit wins: it's marked \"edited\", and the coach has to ask\nbefore changing it again.","operationId":"edit_memory_api_coach_memory__memory_id__patch","parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"integer","title":"Memory Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["coach"],"summary":"Forget Memory","operationId":"forget_memory_api_coach_memory__memory_id__delete","parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"integer","title":"Memory Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/memory/seen":{"post":{"tags":["coach"],"summary":"Memory Seen","description":"The user opened the Hukommelse tab — new points stop being highlighted.","operationId":"memory_seen_api_coach_memory_seen_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/health":{"get":{"tags":["coach"],"summary":"Active Health","description":"Skader og sykdom som er aktive nå — chip på Trening og kort i tråden.","operationId":"active_health_api_coach_health_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/coach/health/{health_id}/resolve":{"post":{"tags":["coach"],"summary":"Resolve Health","description":"«Frisk igjen».","operationId":"resolve_health_api_coach_health__health_id__resolve_post","parameters":[{"name":"health_id","in":"path","required":true,"schema":{"type":"integer","title":"Health Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/progress":{"get":{"tags":["dashboard"],"summary":"Progress","operationId":"progress_api_dashboard_progress_get","parameters":[{"name":"weeks","in":"query","required":false,"schema":{"type":"integer","default":12,"title":"Weeks"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/puls/feed":{"get":{"tags":["puls"],"summary":"Puls Feed","description":"Completed sessions — yours and accepted followees' — newest first:\ncompleted workouts plus activities never matched to a workout, minus any\nactivity that just duplicates a same-day checked-in workout.","operationId":"puls_feed_api_puls_feed_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/puls/{kind}/{target_id}":{"get":{"tags":["puls"],"summary":"Puls Item","description":"One session for the detail panel: summary grid, per-part tables and\nevery comment and cheer, plus what the panel may ask streams for.","operationId":"puls_item_api_puls__kind___target_id__get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"view_as","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"View As"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/puls/{kind}/{target_id}/streams":{"get":{"tags":["puls"],"summary":"Puls Streams","description":"Graph, map and rep data for the detail panel. Heart rate and zones\nonly if the owner shares them, coordinates only if they share the map,\nand never the first and last 200 m to someone else when those are hidden.\n404 when the session has no streams the viewer may see.","operationId":"puls_streams_api_puls__kind___target_id__streams_get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"view_as","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"View As"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/puls/preview-session":{"get":{"tags":["puls"],"summary":"Preview Session","description":"Personvern → «Forhåndsvis»: the newest own session with a GPS track,\nas a feed key. Null when there is none.","operationId":"preview_session_api_puls_preview_session_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{kind}/{target_id}/cheer":{"post":{"tags":["puls"],"summary":"Cheer","description":"Idempotent: cheering twice leaves one cheer.","operationId":"cheer_api__kind___target_id__cheer_post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["puls"],"summary":"Uncheer","description":"Idempotent: removing a cheer that isn't there is fine.","operationId":"uncheer_api__kind___target_id__cheer_delete","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/{kind}/{target_id}/comments":{"get":{"tags":["puls"],"summary":"List Comments","operationId":"list_comments_api__kind___target_id__comments_get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["puls"],"summary":"Add Comment","operationId":"add_comment_api__kind___target_id__comments_post","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/puls/{kind}/{target_id}/save":{"put":{"tags":["puls"],"summary":"Save Session","description":"Bookmark someone's session («Lagre til senere»). Idempotent.","operationId":"save_session_api_puls__kind___target_id__save_put","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["puls"],"summary":"Unsave Session","description":"Idempotent. Works even when the session is no longer visible to you.","operationId":"unsave_session_api_puls__kind___target_id__save_delete","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/puls/{kind}/{target_id}/template":{"get":{"tags":["puls"],"summary":"Puls Template","description":"«Legg i planen»: the session as a plan for Ny økt — copied as it is\n(pace, reps, rests, exercises, sets, kg), never the place.","operationId":"puls_template_api_puls__kind___target_id__template_get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/puls/{kind}/{target_id}/profile":{"patch":{"tags":["puls"],"summary":"Update Profile Session","description":"The owner's comment to followers and «Skjul fra profil».","operationId":"update_profile_session_api_puls__kind___target_id__profile_patch","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"integer","title":"Target Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSessionPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/social":{"get":{"tags":["puls"],"summary":"Social Notifications","description":"Cheers and comments others left on your sessions, newest first; those\nnewer than the last time you opened the bell count as unread.","operationId":"social_notifications_api_notifications_social_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/social/seen":{"post":{"tags":["puls"],"summary":"Mark Social Seen","operationId":"mark_social_seen_api_notifications_social_seen_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/search":{"get":{"tags":["puls"],"summary":"Search Users","description":"Find people by name. Returns name and follow status only — never\nemail or anything else about someone you don't follow.","operationId":"search_users_api_users_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/profile":{"get":{"tags":["profiles"],"summary":"Profile","operationId":"profile_api_users__user_id__profile_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/sessions":{"get":{"tags":["profiles"],"summary":"Profile Sessions","description":"Completed sessions grouped per ISO week, newest first. `before` is\nthe Monday to page back from (the response's `next_before`).","operationId":"profile_sessions_api_users__user_id__sessions_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Before"}},{"name":"weeks","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":1,"default":4,"title":"Weeks"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/saved-sessions":{"get":{"tags":["profiles"],"summary":"Saved Sessions","description":"«Lagret fra andre» in Ny økt, newest first, each with its template.\nA bookmark on a session you can no longer see is left out.","operationId":"saved_sessions_api_saved_sessions_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/invites":{"post":{"tags":["invites"],"summary":"Create Invite","operationId":"create_invite_api_invites_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/invites/{token}":{"get":{"tags":["invites"],"summary":"Get Invite","description":"The address and who invited — only while the invitation can be used.","operationId":"get_invite_api_invites__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback":{"post":{"tags":["feedback"],"summary":"Create","operationId":"create_api_feedback_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback/mine":{"get":{"tags":["feedback"],"summary":"Mine","operationId":"mine_api_feedback_mine_get","parameters":[{"name":"filter","in":"query","required":false,"schema":{"enum":["all","open","closed","bug","idea"],"type":"string","default":"all","title":"Filter"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback/roadmap":{"get":{"tags":["feedback"],"summary":"Roadmap","operationId":"roadmap_api_feedback_roadmap_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback/{item_id}":{"get":{"tags":["feedback"],"summary":"Get Item","description":"Opening a case marks it seen — the dot and the bell row go away.","operationId":"get_item_api_feedback__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback/{item_id}/messages":{"post":{"tags":["feedback"],"summary":"Reply","operationId":"reply_api_feedback__item_id__messages_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/feedback":{"get":{"tags":["feedback"],"summary":"Notifications","description":"The bell's feedback rows. Users: replies and status changes on their\ncases (Innstillinger → Varsler «Svar på tilbakemeldinger»). Admins also:\nnew cases and cases where the user wrote last.","operationId":"notifications_api_notifications_feedback_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback":{"get":{"tags":["admin"],"summary":"List Items","operationId":"list_items_api_admin_feedback_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["open","reply","new","review","planned","done","rejected","all"],"type":"string","default":"open","title":"Status"}},{"name":"type","in":"query","required":false,"schema":{"enum":["all","bug","idea","other"],"type":"string","default":"all","title":"Type"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback/counts":{"get":{"tags":["admin"],"summary":"Counts","operationId":"counts_api_admin_feedback_counts_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback/export.json":{"get":{"tags":["admin"],"summary":"Export","operationId":"export_api_admin_feedback_export_json_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["open","reply","new","review","planned","done","rejected","all"],"type":"string","default":"all","title":"Status"}},{"name":"type","in":"query","required":false,"schema":{"enum":["all","bug","idea","other"],"type":"string","default":"all","title":"Type"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback/{item_id}":{"get":{"tags":["admin"],"summary":"Get Item","description":"Opening a case clears it from the admin's bell.","operationId":"get_item_api_admin_feedback__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Patch Item","operationId":"patch_item_api_admin_feedback__item_id__patch","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback/{item_id}/markdown":{"get":{"tags":["admin"],"summary":"Markdown","operationId":"markdown_api_admin_feedback__item_id__markdown_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback/{item_id}/status":{"post":{"tags":["admin"],"summary":"Set Status","operationId":"set_status_api_admin_feedback__item_id__status_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback/{item_id}/messages":{"post":{"tags":["admin"],"summary":"Post Message","description":"A reply to the user (kind=team, shown in their thread and bell) or an\ninternal note (kind=note, admins only). Closed cases can still be\nwritten to here.","operationId":"post_message_api_admin_feedback__item_id__messages_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__routers__admin_feedback__MessagePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"get":{"tags":["me"],"summary":"Get Settings","operationId":"get_settings_api_me_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["me"],"summary":"Update Settings","description":"Partial update. A field sent as null clears it; a field left out is\nuntouched.","operationId":"update_settings_api_me_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["me"],"summary":"Request Deletion","description":"Soft delete: logs out everywhere; permanent after 30 days unless the\nuser logs in again before then.","operationId":"request_deletion_api_me_delete","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/onboarding":{"get":{"tags":["me"],"summary":"Get Onboarding","operationId":"get_onboarding_api_me_onboarding_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["me"],"summary":"Update Onboarding","description":"`steps` is merged. Goal and plan can't be skipped, and the tour isn't\ncomplete without them. `reset` starts it again («Start på nytt»).","operationId":"update_onboarding_api_me_onboarding_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/news":{"get":{"tags":["me"],"summary":"Get News","operationId":"get_news_api_me_news_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["me"],"summary":"Update News","description":"Marks news as read or unread. The list lives in the frontend, so any\nwell-formed key is accepted; marking twice keeps the first time.","operationId":"update_news_api_me_news_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/plan-preferences":{"get":{"tags":["me"],"summary":"Get Plan","operationId":"get_plan_api_me_plan_preferences_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["me"],"summary":"Update Plan","operationId":"update_plan_api_me_plan_preferences_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/notification-preferences":{"get":{"tags":["me"],"summary":"Get Notifications","operationId":"get_notifications_api_me_notification_preferences_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["me"],"summary":"Update Notifications","operationId":"update_notifications_api_me_notification_preferences_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/privacy":{"get":{"tags":["me"],"summary":"Get Privacy","operationId":"get_privacy_api_me_privacy_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["me"],"summary":"Update Privacy","operationId":"update_privacy_api_me_privacy_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/hr-zones":{"get":{"tags":["me"],"summary":"Get Hr Zones","operationId":"get_hr_zones_api_me_hr_zones_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["me"],"summary":"Update Hr Zones","description":"Saves max HR, resting HR and the method, then recomputes zones and\nload for every session in the background (GET /me/hr-zones/status).","operationId":"update_hr_zones_api_me_hr_zones_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HrZonesPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/hr-zones/status":{"get":{"tags":["me"],"summary":"Hr Zones Status","operationId":"hr_zones_status_api_me_hr_zones_status_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/hr-zones/banner-dismiss":{"post":{"tags":["me"],"summary":"Dismiss Hr Banner","operationId":"dismiss_hr_banner_api_me_hr_zones_banner_dismiss_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/email":{"post":{"tags":["me"],"summary":"Request Email Change","description":"The new address only takes effect once the link sent to it is opened.","operationId":"request_email_change_api_me_email_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/email/confirm":{"post":{"tags":["me"],"summary":"Confirm Email Change","description":"Opened from the e-mail — no login needed, the token is the proof.","operationId":"confirm_email_change_api_me_email_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/export":{"post":{"tags":["me"],"summary":"Request Export","description":"Queued for the settings cron, which builds the zip and e-mails it.","operationId":"request_export_api_me_export_post","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/account-jobs":{"post":{"tags":["cron"],"summary":"Account Jobs","description":"Daily (02:00 UTC) from the vivox-account-jobs cron job: e-mail requested\nexports, purge accounts whose 30-day grace period is over and delete\nexpired invitations nobody used.","operationId":"account_jobs_api_cron_account_jobs_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations":{"get":{"tags":["integrations"],"summary":"List Integrations","operationId":"list_integrations_api_integrations_get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/strava/settings":{"patch":{"tags":["integrations"],"summary":"Update Strava Settings","operationId":"update_strava_settings_api_integrations_strava_settings_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StravaSettingsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/garmin/settings":{"patch":{"tags":["integrations"],"summary":"Update Garmin Settings","operationId":"update_garmin_settings_api_integrations_garmin_settings_patch","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GarminSettingsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ActivityType":{"type":"string","enum":["strength","running","cycling","swimming","rowing","walking","cross_country_skiing","roller_skiing","other"],"title":"ActivityType"},"Attachment":{"properties":{"data":{"type":"string","title":"Data"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["data"],"title":"Attachment"},"CardioPayload":{"properties":{"activity":{"$ref":"#/components/schemas/EnduranceActivity"},"distance_km":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance Km"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"avg_heart_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Heart Rate"},"elevation_gain_m":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Elevation Gain M"},"perceived_exertion":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Perceived Exertion"}},"type":"object","required":["activity"],"title":"CardioPayload"},"ChallengePayload":{"properties":{"token":{"type":"string","title":"Token"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"backup_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backup Code"}},"type":"object","required":["token"],"title":"ChallengePayload"},"ChangePasswordPayload":{"properties":{"current":{"type":"string","title":"Current"},"new":{"type":"string","title":"New"}},"type":"object","required":["current","new"],"title":"ChangePasswordPayload"},"CoachContext":{"properties":{"type":{"type":"string","enum":["workout","day","week","plan"],"title":"Type"},"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"}},"type":"object","required":["type"],"title":"CoachContext"},"CodePayload":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"CodePayload"},"CommentPayload":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"CommentPayload"},"ConnectPayload":{"properties":{"return_to":{"anyOf":[{"type":"string","enum":["onboarding"],"const":"onboarding"},{"type":"null"}],"title":"Return To"}},"type":"object","title":"ConnectPayload"},"CreatePayload":{"properties":{"type":{"type":"string","enum":["bug","idea","other"],"title":"Type"},"title":{"type":"string","title":"Title"},"text":{"type":"string","title":"Text"},"attachment":{"anyOf":[{"$ref":"#/components/schemas/Attachment"},{"type":"null"}]},"source":{"type":"string","enum":["menu","coach"],"title":"Source","default":"menu"},"context":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Context"}},"type":"object","required":["type","title","text"],"title":"CreatePayload"},"DeletePayload":{"properties":{"confirm":{"type":"string","title":"Confirm"}},"type":"object","required":["confirm"],"title":"DeletePayload"},"DisableTwoFactorPayload":{"properties":{"password":{"type":"string","title":"Password"},"code":{"type":"string","title":"Code"}},"type":"object","required":["password","code"],"title":"DisableTwoFactorPayload"},"EmailChangePayload":{"properties":{"new_email":{"type":"string","title":"New Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["new_email","password"],"title":"EmailChangePayload"},"EnduranceActivity":{"type":"string","enum":["running","cycling","swimming","rowing","walking","cross_country_skiing","roller_skiing","other"],"title":"EnduranceActivity"},"FollowRequestPayload":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}},"type":"object","title":"FollowRequestPayload"},"ForgotPasswordPayload":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordPayload"},"GarminSettingsPatch":{"properties":{"auto_import":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Import"},"match_planned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Match Planned"}},"type":"object","title":"GarminSettingsPatch"},"GeneratePayload":{"properties":{"runs_per_week":{"type":"integer","title":"Runs Per Week"},"strength_per_week":{"type":"integer","title":"Strength Per Week","default":0},"training_days":{"items":{"type":"integer"},"type":"array","title":"Training Days"},"long_run_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Long Run Day"},"extra_activities":{"type":"object","title":"Extra Activities","default":{}},"weeks":{"items":{"$ref":"#/components/schemas/WeekPayload"},"type":"array","title":"Weeks"}},"type":"object","required":["runs_per_week","training_days","weeks"],"title":"GeneratePayload"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HrZonesPatch":{"properties":{"max_hr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Hr"},"resting_hr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Resting Hr"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"}},"type":"object","title":"HrZonesPatch"},"IntervalResultPayload":{"properties":{"rep_number":{"type":"integer","title":"Rep Number"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"distance_meters":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance Meters"}},"type":"object","required":["rep_number"],"title":"IntervalResultPayload"},"InvitePayload":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"InvitePayload"},"ItemPatch":{"properties":{"public_on":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public On"},"public_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Title"},"public_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Text"},"public_when":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public When"},"type":{"anyOf":[{"type":"string","enum":["bug","idea","other"]},{"type":"null"}],"title":"Type"}},"type":"object","title":"ItemPatch"},"JoinRequestRespondPayload":{"properties":{"accept":{"type":"boolean","title":"Accept"}},"type":"object","required":["accept"],"title":"JoinRequestRespondPayload"},"LoginPayload":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginPayload"},"ManualActivityPayload":{"properties":{"activity_type":{"$ref":"#/components/schemas/ActivityType"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"distance_meters":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance Meters"},"calories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Calories"},"avg_heart_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Heart Rate"}},"type":"object","required":["activity_type","started_at"],"title":"ManualActivityPayload"},"MemoryPatch":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"category":{"anyOf":[{"type":"string","enum":["goal","availability","body","preference"]},{"type":"null"}],"title":"Category"}},"type":"object","title":"MemoryPatch"},"MemoryPayload":{"properties":{"category":{"type":"string","enum":["goal","availability","body","preference"],"title":"Category"},"text":{"type":"string","title":"Text"}},"type":"object","required":["category","text"],"title":"MemoryPayload"},"NewsPatch":{"properties":{"read":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Read"},"unread":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Unread"}},"type":"object","title":"NewsPatch"},"NotificationPatch":{"properties":{"events":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Events"},"quiet_hours":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Quiet Hours"}},"type":"object","title":"NotificationPatch"},"OnboardingPatch":{"properties":{"step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Step"},"steps":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Steps"},"goal_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal Mode"},"completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Completed"},"reset":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reset"}},"type":"object","title":"OnboardingPatch"},"OwnExercisePayload":{"properties":{"name_no":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name No"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"muscle_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Muscle Group"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"primary_muscles":{"items":{"type":"string"},"type":"array","title":"Primary Muscles","default":[]},"secondary_muscles":{"items":{"type":"string"},"type":"array","title":"Secondary Muscles","default":[]},"equipment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Equipment"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"log_type":{"type":"string","title":"Log Type","default":"reps_kg"}},"type":"object","title":"OwnExercisePayload"},"PageContext":{"properties":{"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","title":"PageContext"},"PlanPatch":{"properties":{"runs_per_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Runs Per Week"},"strength_per_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Strength Per Week"},"training_days":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Training Days"},"long_run_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Long Run Day"},"extra_activities":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Extra Activities"},"default_time_weekday":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Time Weekday"},"default_time_weekend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Time Weekend"}},"type":"object","title":"PlanPatch"},"PrivacyPatch":{"properties":{"visibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility"},"show_location":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Location"},"searchable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Searchable"},"show_hr":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Hr"},"share_map":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Share Map"},"hide_route_ends":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hide Route Ends"}},"type":"object","title":"PrivacyPatch"},"ProfileSessionPayload":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"hidden_from_profile":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden From Profile"}},"type":"object","title":"ProfileSessionPayload"},"RaceGoalPayload":{"properties":{"race_name":{"type":"string","title":"Race Name"},"distance_meters":{"type":"integer","title":"Distance Meters"},"race_date":{"type":"string","format":"date","title":"Race Date"},"target_time_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Time Seconds"},"current_pb_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Pb Seconds"},"weekly_sessions_target":{"type":"integer","title":"Weekly Sessions Target","default":3}},"type":"object","required":["race_name","distance_meters","race_date"],"title":"RaceGoalPayload"},"ReauthPayload":{"properties":{"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","title":"ReauthPayload"},"RegisterPayload":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"invite_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Token"}},"type":"object","required":["name","email","password"],"title":"RegisterPayload"},"ReplyPayload":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"ReplyPayload"},"ResetPasswordPayload":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordPayload"},"RespondPayload":{"properties":{"accept":{"type":"boolean","title":"Accept"}},"type":"object","required":["accept"],"title":"RespondPayload"},"SetPayload":{"properties":{"exercise_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exercise Id"},"exercise_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exercise Name"},"reps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reps"},"weight_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight Kg"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"set_number":{"type":"integer","title":"Set Number"},"exercise_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exercise Order"}},"type":"object","required":["set_number"],"title":"SetPayload","description":"A set is measured in reps or in time; the exercise is given by id or\nby name (a new name is added to the shared library)."},"SetUpdatePayload":{"properties":{"reps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reps"},"weight_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight Kg"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"set_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Set Number"},"exercise_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exercise Order"}},"type":"object","title":"SetUpdatePayload"},"SettingsPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"home_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home City"},"birth_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birth Year"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"max_hr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Hr"},"rest_hr":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rest Hr"},"threshold_pace_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Threshold Pace Seconds"},"reply_length":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Length"},"weekly_summary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Weekly Summary"},"garmin_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Garmin Consent"},"units":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Units"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"week_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Week Start"}},"type":"object","title":"SettingsPatch"},"StatusPayload":{"properties":{"status":{"type":"string","enum":["new","review","planned","done","rejected"],"title":"Status"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["status"],"title":"StatusPayload"},"StravaSettingsPatch":{"properties":{"auto_import":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Import"},"match_planned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Match Planned"},"write_description":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Write Description"}},"type":"object","title":"StravaSettingsPatch"},"TemplatePayload":{"properties":{"title":{"type":"string","title":"Title"},"workout_type":{"$ref":"#/components/schemas/WorkoutType"},"recurrence_days":{"items":{"type":"integer"},"type":"array","title":"Recurrence Days"},"recurrence_interval_weeks":{"type":"integer","title":"Recurrence Interval Weeks","default":1},"time_of_day":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Of Day"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"estimated_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Duration Minutes"},"activity":{"anyOf":[{"$ref":"#/components/schemas/EnduranceActivity"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"is_joinable":{"type":"boolean","title":"Is Joinable","default":false}},"type":"object","required":["title","workout_type","recurrence_days"],"title":"TemplatePayload"},"TokenPayload":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"TokenPayload"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WeekPayload":{"properties":{"week_start":{"type":"string","format":"date","title":"Week Start"},"availability":{"type":"string","title":"Availability"}},"type":"object","required":["week_start","availability"],"title":"WeekPayload"},"WorkoutImportance":{"type":"string","enum":["key","normal","optional"],"title":"WorkoutImportance"},"WorkoutPayload":{"properties":{"title":{"type":"string","title":"Title"},"workout_type":{"$ref":"#/components/schemas/WorkoutType"},"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"},"estimated_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Duration Minutes"},"activity":{"anyOf":[{"$ref":"#/components/schemas/EnduranceActivity"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"is_joinable":{"type":"boolean","title":"Is Joinable","default":false},"importance":{"allOf":[{"$ref":"#/components/schemas/WorkoutImportance"}],"default":"normal"},"session_structure":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Session Structure"},"source_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind"},"source_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Id"}},"type":"object","required":["title","workout_type","scheduled_at"],"title":"WorkoutPayload"},"WorkoutStatus":{"type":"string","enum":["planned","completed","skipped"],"title":"WorkoutStatus"},"WorkoutType":{"type":"string","enum":["strength","endurance"],"title":"WorkoutType"},"WorkoutUpdatePayload":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"status":{"anyOf":[{"$ref":"#/components/schemas/WorkoutStatus"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"athlete_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Athlete Note"},"is_favorite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Favorite"},"activity":{"anyOf":[{"$ref":"#/components/schemas/EnduranceActivity"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"is_joinable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Joinable"},"workout_type":{"anyOf":[{"$ref":"#/components/schemas/WorkoutType"},{"type":"null"}]},"importance":{"anyOf":[{"$ref":"#/components/schemas/WorkoutImportance"},{"type":"null"}]},"session_structure":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Session Structure"},"estimated_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Duration Minutes"},"perceived_exertion":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Perceived Exertion"}},"type":"object","title":"WorkoutUpdatePayload"},"backend__routers__admin_feedback__MessagePayload":{"properties":{"kind":{"type":"string","enum":["team","note"],"title":"Kind"},"text":{"type":"string","title":"Text"}},"type":"object","required":["kind","text"],"title":"MessagePayload"},"backend__routers__coach__MessagePayload":{"properties":{"content":{"type":"string","title":"Content"},"context":{"anyOf":[{"$ref":"#/components/schemas/CoachContext"},{"type":"null"}]},"page":{"anyOf":[{"$ref":"#/components/schemas/PageContext"},{"type":"null"}]}},"type":"object","required":["content"],"title":"MessagePayload"}}}}