{"openapi":"3.1.0","info":{"title":"NoClue","description":"The daily crossword with no clues","version":"0.15"},"paths":{"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/profile/rebuild-streaks":{"post":{"summary":"Rebuild My Profile Streaks","operationId":"rebuild_my_profile_streaks_api_profile_rebuild_streaks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/oauth/{provider}/start":{"get":{"summary":"Oauth Start","operationId":"oauth_start_auth_oauth__provider__start_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/callback/google":{"get":{"summary":"Google Callback","operationId":"google_callback_auth_callback_google_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/session":{"get":{"summary":"Get Session","operationId":"get_session_auth_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/anonymous":{"post":{"summary":"Create Anonymous Session","operationId":"create_anonymous_session_auth_anonymous_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/signin":{"post":{"summary":"Signin","operationId":"signin_auth_signin_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/update-name":{"post":{"summary":"Update Name","operationId":"update_name_account_update_name_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/delete-sessions":{"post":{"summary":"Delete Sessions","operationId":"delete_sessions_account_delete_sessions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/groups":{"get":{"summary":"List My Groups","operationId":"list_my_groups_api_groups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Group","operationId":"create_group_api_groups_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/groups/{group_id}":{"get":{"summary":"Get Group Detail","operationId":"get_group_detail_api_groups__group_id__get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Rename Group","description":"Rename a group. Owner only.\n\nNo standings invalidation: the group name isn't part of a cached board, only\nof the group document the card header reads.","operationId":"rename_group_api_groups__group_id__patch","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Group","description":"Delete a group for everyone. Owner only.","operationId":"delete_group_api_groups__group_id__delete","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/groups/invite/{code}":{"get":{"summary":"Preview Invite","description":"What the invitation card shows before the user commits to joining.","operationId":"preview_invite_api_groups_invite__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/groups/join":{"post":{"summary":"Join Group","operationId":"join_group_api_groups_join_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/groups/{group_id}/leaderboard":{"get":{"summary":"Group Leaderboard","operationId":"group_leaderboard_api_groups__group_id__leaderboard_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"day","title":"Period"}},{"name":"game","in":"query","required":false,"schema":{"type":"string","default":"noclue","title":"Game"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/groups/{group_id}/rotate-code":{"post":{"summary":"Rotate Invite Code","description":"Issue a new invite code, invalidating every link already shared.\n\nOld links then 404 through the same \"expired\" state as a code that never\nexisted -- that is the whole point of the button.","operationId":"rotate_invite_code_api_groups__group_id__rotate_code_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/groups/{group_id}/members/{member_user_id}":{"delete":{"summary":"Remove Member","description":"Remove someone else from the group. Owner only.","operationId":"remove_member_api_groups__group_id__members__member_user_id__delete","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"member_user_id","in":"path","required":true,"schema":{"type":"string","title":"Member User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/groups/{group_id}/leave":{"post":{"summary":"Leave Group","operationId":"leave_group_api_groups__group_id__leave_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/j/{code}":{"get":{"summary":"Invite Landing","description":"Where a shared invite link lands.\n\nA signed-in member gets bounced to /stats with the invitation card. Everyone\nelse gets a real page: this link gets forwarded to people who have never heard\nof NoClue, and dropping them on a bare sign-in form loses them.","operationId":"invite_landing_j__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/groups/invite/dismiss":{"post":{"summary":"Dismiss Invite","description":"Close the invitation card. The link stays valid -- this isn't declining.","operationId":"dismiss_invite_api_groups_invite_dismiss_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/privacy":{"get":{"summary":"Privacy","operationId":"privacy_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/":{"get":{"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/signin":{"get":{"summary":"Signin Page","operationId":"signin_page_signin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/signup":{"get":{"summary":"Signup Page","operationId":"signup_page_signup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account":{"get":{"summary":"Account Page","operationId":"account_page_account_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/stats":{"get":{"summary":"Stats Page","operationId":"stats_page_stats_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin":{"get":{"summary":"Admin Page","operationId":"admin_page_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/signout":{"post":{"summary":"Signout Page","operationId":"signout_page_signout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/game":{"get":{"summary":"Game Page","operationId":"game_page_game_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/share/noclue/{user_game_id}":{"get":{"summary":"Share Game Page","operationId":"share_game_page_share_noclue__user_game_id__get","parameters":[{"name":"user_game_id","in":"path","required":true,"schema":{"type":"string","title":"User Game Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/game/today-status":{"get":{"summary":"Get Today Game Availability","operationId":"get_today_game_availability_api_game_today_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/quinzle":{"get":{"summary":"Quinzle Page","description":"Play-test page for Quinzle. Plays are local to the browser; nothing is stored.","operationId":"quinzle_page_quinzle_get","parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"P"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/anagramma":{"get":{"summary":"Anagramma Page","description":"Play-test page for Anagramma. Plays are local to the browser; nothing is stored.","operationId":"anagramma_page_anagramma_get","parameters":[{"name":"g","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"G"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/halfling":{"get":{"summary":"Halfling Page","description":"Play-test page for Halfling, on the classic NoClue boards. Plays are local\nto the browser; nothing is stored.","operationId":"halfling_page_halfling_get","parameters":[{"name":"g","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"G"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/duos":{"get":{"summary":"Duos Page","operationId":"duos_page_duos_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/duos/start":{"post":{"summary":"Duos Start","description":"Open (or resume) the caller's session for a Duos puzzle.\n\nGuests get a row here too, unlike NoClue: the countdown is scored against\nthe server's start time, and that has to exist before the first move.\n\nA new session can only be opened on today's puzzle. An existing one can be\nresumed after midnight, so a game started at 23:58 can still be finished.","operationId":"duos_start_api_duos_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/duos/save-state":{"post":{"summary":"Duos Save State","operationId":"duos_save_state_api_duos_save_state_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/duos/endcheck":{"post":{"summary":"Duos End Check","description":"Check, score and record a finished Duos board.","operationId":"duos_end_check_api_duos_endcheck_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/duos/status":{"get":{"summary":"Duos Status","description":"Today's Duos for the caller: no-game, available, in-progress or completed.","operationId":"duos_status_api_duos_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/user-stats":{"post":{"summary":"Admin User Stats","operationId":"admin_user_stats_api_admin_user_stats_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/game/status":{"get":{"summary":"Get Game Status","operationId":"get_game_status_api_game_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/game/solution":{"get":{"summary":"Get Completed Game Solution","operationId":"get_completed_game_solution_api_game_solution_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/game/start":{"post":{"summary":"Start Game","operationId":"start_game_api_game_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/game/save-state":{"post":{"summary":"Save Game State","operationId":"save_game_state_api_game_save_state_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/game/hint":{"post":{"summary":"Get Hint","operationId":"get_hint_api_game_hint_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/game/firstwordcheck":{"post":{"summary":"Check First Word","operationId":"check_first_word_api_game_firstwordcheck_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/game/endcheck":{"post":{"summary":"Check Game End","operationId":"check_game_end_api_game_endcheck_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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"}}}}