{"openapi":"3.1.0","info":{"title":"Main Page API","description":"主页面后端 API - DeepBrain Tech","version":"1.0.0"},"paths":{"/api/auth/send-verification-code":{"post":{"tags":["认证"],"summary":"Send Verification Code","operationId":"send_verification_code_api_auth_send_verification_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendVerificationCode"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/check-availability":{"get":{"tags":["认证"],"summary":"Check Availability","operationId":"check_availability_api_auth_check_availability_get","parameters":[{"name":"username","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/register":{"post":{"tags":["认证"],"summary":"Register","operationId":"register_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"tags":["认证"],"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_api_auth_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google":{"post":{"tags":["认证"],"summary":"Google Login","operationId":"google_login_api_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"tags":["认证"],"summary":"Get Current User Info","operationId":"get_current_user_info_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}}},"patch":{"tags":["认证"],"summary":"Update Current User Profile","operationId":"update_current_user_profile_api_auth_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteProfileBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/avatar":{"post":{"tags":["认证"],"summary":"Upload Avatar","operationId":"upload_avatar_api_auth_avatar_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_avatar_api_auth_avatar_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify":{"get":{"tags":["认证"],"summary":"Verify Token","operationId":"verify_token_api_auth_verify_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/auth/logout":{"post":{"tags":["认证"],"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/auth/send-reset-password-code":{"post":{"tags":["认证"],"summary":"Send Reset Password Code","operationId":"send_reset_password_code_api_auth_send_reset_password_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendVerificationCode"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset-password":{"post":{"tags":["认证"],"summary":"Reset Password","operationId":"reset_password_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPassword"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/status":{"get":{"tags":["billing"],"summary":"Billing Status","operationId":"billing_status_api_billing_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/billing/cancel-scheduled-change":{"post":{"tags":["billing"],"summary":"Cancel Scheduled Change","operationId":"cancel_scheduled_change_api_billing_cancel_scheduled_change_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/billing/checkout-session":{"post":{"tags":["billing"],"summary":"Create Checkout Session","operationId":"create_checkout_session_api_billing_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/diamond-checkout-session":{"post":{"tags":["billing"],"summary":"Create Diamond Checkout Session","operationId":"create_diamond_checkout_session_api_billing_diamond_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDiamondCheckoutBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/coin-checkout-session":{"post":{"tags":["billing"],"summary":"Create Coin Checkout Session","operationId":"create_coin_checkout_session_api_billing_coin_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCoinCheckoutBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/change-preview":{"post":{"tags":["billing"],"summary":"Preview Subscription Change","operationId":"preview_subscription_change_api_billing_change_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingChangeSubscriptionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/change-subscription":{"post":{"tags":["billing"],"summary":"Change Subscription","operationId":"change_subscription_api_billing_change_subscription_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingChangeSubscriptionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/payment-method-setup":{"post":{"tags":["billing"],"summary":"Create Payment Method Setup","operationId":"create_payment_method_setup_api_billing_payment_method_setup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/billing/payment-method":{"post":{"tags":["billing"],"summary":"Update Subscription Payment Method","operationId":"update_subscription_payment_method_api_billing_payment_method_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingUpdatePaymentMethodBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/portal-session":{"post":{"tags":["billing"],"summary":"Create Portal Session","operationId":"create_portal_session_api_billing_portal_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPortalBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/webhook":{"post":{"tags":["billing"],"summary":"Stripe Webhook","operationId":"stripe_webhook_api_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/games/quantumgo/flowers/players/balances":{"post":{"tags":["Games","Flower Gifts"],"summary":"Players","operationId":"players_api_games_quantumgo_flowers_players_balances_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlayerBalancesIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/quantumgo/flowers/balance":{"get":{"tags":["Games","Flower Gifts"],"summary":"Balance","operationId":"balance_api_games_quantumgo_flowers_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/games/quantumgo/flowers/transfers":{"post":{"tags":["Games","Flower Gifts"],"summary":"Transfer","operationId":"transfer_api_games_quantumgo_flowers_transfers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowerTransferIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/quantumgo/flowers/transfers/{request_id}":{"get":{"tags":["Games","Flower Gifts"],"summary":"Status","operationId":"status_api_games_quantumgo_flowers_transfers__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{api_slug}/level-rewards/claim":{"post":{"tags":["Games"],"summary":"Claim Game Level Reward","operationId":"claim_game_level_reward_api_games__api_slug__level_rewards_claim_post","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{api_slug}/leaderboard/avatars":{"post":{"tags":["Games"],"summary":"Game Leaderboard Avatars","operationId":"game_leaderboard_avatars_api_games__api_slug__leaderboard_avatars_post","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{game_slug}/media":{"get":{"tags":["Games"],"summary":"Read Game Media","operationId":"read_game_media_api_games__game_slug__media_get","parameters":[{"name":"game_slug","in":"path","required":true,"schema":{"type":"string","title":"Game Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{api_slug}/leaderboard":{"get":{"tags":["Games"],"summary":"Game Leaderboard","operationId":"game_leaderboard_api_games__api_slug__leaderboard_get","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{api_slug}/achievements":{"get":{"tags":["Games"],"summary":"Game Achievements","operationId":"game_achievements_api_games__api_slug__achievements_get","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{api_slug}/achievements/sync":{"post":{"tags":["Games"],"summary":"Sync Achievements","operationId":"sync_achievements_api_games__api_slug__achievements_sync_post","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{api_slug}/achievements/events":{"post":{"tags":["Games"],"summary":"Achievement Events","operationId":"achievement_events_api_games__api_slug__achievements_events_post","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/shop/catalog":{"get":{"tags":["Games"],"summary":"Get Shop Catalog Public","operationId":"get_shop_catalog_public_api_games_shop_catalog_get","parameters":[{"name":"game_mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"If set, only items usable in this mode (e.g. chessmater, chess-tourmaster).","title":"Game Mode"},"description":"If set, only items usable in this mode (e.g. chessmater, chess-tourmaster)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/shop/item":{"get":{"tags":["Games"],"summary":"Get Shop Item Price Public","operationId":"get_shop_item_price_public_api_games_shop_item_get","parameters":[{"name":"item_id","in":"query","required":true,"schema":{"type":"string","description":"Shop item id, e.g. chess_mater_undo","title":"Item Id"},"description":"Shop item id, e.g. chess_mater_undo"},{"name":"game_mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"If set, returns 400 when the item is not available for this mode.","title":"Game Mode"},"description":"If set, returns 400 when the item is not available for this mode."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/play-record":{"post":{"tags":["Games"],"summary":"Record Game Played","operationId":"record_game_played_api_games_play_record_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamePlayRecordIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/likes":{"get":{"tags":["Games"],"summary":"Get Game Likes","operationId":"get_game_likes_api_games_likes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/games/likes/{game_key}":{"post":{"tags":["Games"],"summary":"Like Game","operationId":"like_game_api_games_likes__game_key__post","parameters":[{"name":"game_key","in":"path","required":true,"schema":{"type":"string","title":"Game Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Games"],"summary":"Unlike Game","operationId":"unlike_game_api_games_likes__game_key__delete","parameters":[{"name":"game_key","in":"path","required":true,"schema":{"type":"string","title":"Game Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{api_slug}/token":{"post":{"tags":["Games"],"summary":"Issue Game Token","operationId":"issue_game_token_api_games__api_slug__token_post","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}},{"name":"X-User-Timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{api_slug}/session":{"get":{"tags":["Games"],"summary":"Refresh Game Session","operationId":"refresh_game_session_api_games__api_slug__session_get","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/sudoku/play":{"post":{"tags":["Games"],"summary":"Track Sudoku Play","operationId":"track_sudoku_play_api_games_sudoku_play_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/games/rewards/status":{"get":{"tags":["Games"],"summary":"Get Reward Status","operationId":"get_reward_status_api_games_rewards_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/games/{api_slug}/purchases/{product_id}/quote":{"get":{"tags":["Games","Game Purchases"],"summary":"Quote Game Purchase","operationId":"quote_game_purchase_api_games__api_slug__purchases__product_id__quote_get","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"target","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/games/{api_slug}/purchases/{product_id}/redeem":{"post":{"tags":["Games","Game Purchases"],"summary":"Redeem Game Purchase","operationId":"redeem_game_purchase_api_games__api_slug__purchases__product_id__redeem_post","parameters":[{"name":"api_slug","in":"path","required":true,"schema":{"type":"string","title":"Api Slug"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamePurchaseRedeemIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/progress/question-attempt":{"post":{"tags":["用户"],"summary":"Record Learning Question Attempt","operationId":"record_learning_question_attempt_api_user_learning_progress_question_attempt_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningQuestionAttemptCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/progress/topic-reset":{"post":{"tags":["用户"],"summary":"Reset Learning Topic Progress","operationId":"reset_learning_topic_progress_api_user_learning_progress_topic_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningTopicProgressReset"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/progress/module":{"get":{"tags":["用户"],"summary":"Get Learning Module Progress","operationId":"get_learning_module_progress_api_user_learning_progress_module_get","parameters":[{"name":"subject_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Subject Key"}},{"name":"module_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Module Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/progress/practice-report":{"post":{"tags":["用户"],"summary":"Upsert Learning Practice Report","operationId":"upsert_learning_practice_report_api_user_learning_progress_practice_report_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningPracticeReportUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["用户"],"summary":"Get Learning Practice Report","operationId":"get_learning_practice_report_api_user_learning_progress_practice_report_get","parameters":[{"name":"subject_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Subject Key"}},{"name":"module_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Module Key"}},{"name":"topic_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Topic Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/progress/practice-report/history":{"get":{"tags":["用户"],"summary":"List Learning Practice Report History","operationId":"list_learning_practice_report_history_api_user_learning_progress_practice_report_history_get","parameters":[{"name":"subject_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Subject Key"}},{"name":"module_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Module Key"}},{"name":"topic_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Topic Key"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/progress/practice-report/by-id/{report_id}":{"get":{"tags":["用户"],"summary":"Get Learning Practice Report By Id","operationId":"get_learning_practice_report_by_id_api_user_learning_progress_practice_report_by_id__report_id__get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"integer","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/progress/subject":{"get":{"tags":["用户"],"summary":"Get Learning Subject Progress","operationId":"get_learning_subject_progress_api_user_learning_progress_subject_get","parameters":[{"name":"subject_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Subject Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/study-time":{"get":{"tags":["用户"],"summary":"Get Learning Study Time","operationId":"get_learning_study_time_api_user_learning_study_time_get","parameters":[{"name":"subject_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Subject Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/study-time/session":{"post":{"tags":["用户"],"summary":"Record Learning Study Time","operationId":"record_learning_study_time_api_user_learning_study_time_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningStudyTimeCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/mental-math/making-whole/question-video":{"get":{"tags":["用户"],"summary":"Get Making Whole Question Video","operationId":"get_making_whole_question_video_api_user_learning_mental_math_making_whole_question_video_get","parameters":[{"name":"lesson_key","in":"query","required":true,"schema":{"type":"string","description":"lesson1 ... lesson5","title":"Lesson Key"},"description":"lesson1 ... lesson5"},{"name":"secret_key","in":"query","required":true,"schema":{"type":"string","description":"secret1 ... secret20","title":"Secret Key"},"description":"secret1 ... secret20"},{"name":"question_number","in":"query","required":true,"schema":{"type":"integer","minimum":1,"description":"1 ... 20","title":"Question Number"},"description":"1 ... 20"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/learning/mental-math/bundle-access":{"get":{"tags":["用户"],"summary":"Get Mental Math Bundle Access","operationId":"get_mental_math_bundle_access_api_user_learning_mental_math_bundle_access_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/user/learning/mental-math/unlock-with-diamonds":{"post":{"tags":["用户"],"summary":"Unlock Mental Math With Diamonds","operationId":"unlock_mental_math_with_diamonds_api_user_learning_mental_math_unlock_with_diamonds_post","parameters":[{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Reuse this UUID when retrying the same operation","title":"Request Id"},"description":"Reuse this UUID when retrying the same operation"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MentalMathUnlockDiamondsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/assessments":{"post":{"tags":["用户"],"summary":"Create Assessment Session","operationId":"create_assessment_session_api_user_assessments_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentSessionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["用户"],"summary":"List Assessment Sessions","operationId":"list_assessment_sessions_api_user_assessments_get","parameters":[{"name":"subject","in":"query","required":false,"schema":{"type":"string","default":"mental-math","title":"Subject"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/assessments/{session_id}":{"get":{"tags":["用户"],"summary":"Get Assessment Session Detail","operationId":"get_assessment_session_detail_api_user_assessments__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/assessments/{session_id}/compare":{"get":{"tags":["用户"],"summary":"Compare Assessment Sessions","operationId":"compare_assessment_sessions_api_user_assessments__session_id__compare_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"target_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/assessments/history/trend":{"get":{"tags":["用户"],"summary":"Get Assessment Trend","operationId":"get_assessment_trend_api_user_assessments_history_trend_get","parameters":[{"name":"subject","in":"query","required":false,"schema":{"type":"string","default":"mental-math","title":"Subject"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":2,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/rewards":{"get":{"tags":["用户"],"summary":"Get Rewards","operationId":"get_rewards_api_user_rewards_get","parameters":[{"name":"X-User-Timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/assets":{"get":{"tags":["用户"],"summary":"Get Assets","operationId":"get_assets_api_user_assets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/user/home-system":{"get":{"tags":["用户"],"summary":"Get Home System","operationId":"get_home_system_api_user_home_system_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/user/home-system/redeem":{"post":{"tags":["用户"],"summary":"Redeem Home System Item","operationId":"redeem_home_system_item_api_user_home_system_redeem_post","parameters":[{"name":"item_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"title":"Item Id"}},{"name":"equip","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Equip"}},{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Reuse this UUID when retrying the same operation","title":"Request Id"},"description":"Reuse this UUID when retrying the same operation"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/home-system/loadout":{"put":{"tags":["用户"],"summary":"Update Home System Loadout","operationId":"update_home_system_loadout_api_user_home_system_loadout_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeSystemLoadoutBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/shop/items":{"get":{"tags":["用户"],"summary":"Get Shop Items","operationId":"get_shop_items_api_user_shop_items_get","parameters":[{"name":"game_mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"可选：按游戏模式过滤道具","title":"Game Mode"},"description":"可选：按游戏模式过滤道具"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/check-in":{"post":{"tags":["用户"],"summary":"Do Check In","operationId":"do_check_in_api_user_check_in_post","parameters":[{"name":"X-User-Timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/cognitive-scores":{"get":{"tags":["用户"],"summary":"Get Cognitive Scores","operationId":"get_cognitive_scores_api_user_cognitive_scores_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}},"put":{"tags":["用户"],"summary":"Update Cognitive Scores","operationId":"update_cognitive_scores_api_user_cognitive_scores_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CognitiveScoresBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/tasks/claim":{"post":{"tags":["用户"],"summary":"Claim Task","operationId":"claim_task_api_user_tasks_claim_post","parameters":[{"name":"task_id","in":"query","required":true,"schema":{"type":"string","description":"daily-1, daily-2, monthly-1","title":"Task Id"},"description":"daily-1, daily-2, monthly-1"},{"name":"X-User-Timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/shop/inventory":{"get":{"tags":["用户"],"summary":"Get Inventory","operationId":"get_inventory_api_user_shop_inventory_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/user/shop/redeem":{"post":{"tags":["用户"],"summary":"Redeem Item","operationId":"redeem_item_api_user_shop_redeem_post","parameters":[{"name":"expected_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected User Id"}},{"name":"item_id","in":"query","required":true,"schema":{"type":"string","description":"道具 ID，如 avatar_hat_crown","title":"Item Id"},"description":"道具 ID，如 avatar_hat_crown"},{"name":"game_mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"可选：当前游戏模式，用于校验道具可用范围","title":"Game Mode"},"description":"可选：当前游戏模式，用于校验道具可用范围"},{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Reuse this UUID when retrying the same operation","title":"Request Id"},"description":"Reuse this UUID when retrying the same operation"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/shop/chessmater/migrate":{"post":{"tags":["用户"],"summary":"Migrate Chessmater Inventory","operationId":"migrate_chessmater_inventory_api_user_shop_chessmater_migrate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/user/shop/chessmater/deliveries":{"get":{"tags":["用户"],"summary":"Pending Chessmater Deliveries","operationId":"pending_chessmater_deliveries_api_user_shop_chessmater_deliveries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/user/shop/chessmater/deliveries/{purchase_id}/ack":{"post":{"tags":["用户"],"summary":"Acknowledge Chessmater Delivery","operationId":"acknowledge_chessmater_delivery_api_user_shop_chessmater_deliveries__purchase_id__ack_post","parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/shop/chess-tourmaster/migrate":{"post":{"tags":["用户"],"summary":"Migrate Tourmaster Inventory","operationId":"migrate_tourmaster_inventory_api_user_shop_chess_tourmaster_migrate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/user/shop/chess-tourmaster/deliveries":{"get":{"tags":["用户"],"summary":"Pending Tourmaster Deliveries","operationId":"pending_tourmaster_deliveries_api_user_shop_chess_tourmaster_deliveries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/user/shop/chess-tourmaster/deliveries/{purchase_id}/ack":{"post":{"tags":["用户"],"summary":"Acknowledge Tourmaster Delivery","operationId":"acknowledge_tourmaster_delivery_api_user_shop_chess_tourmaster_deliveries__purchase_id__ack_post","parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/shop/consume":{"post":{"tags":["用户"],"summary":"Consume Item","operationId":"consume_item_api_user_shop_consume_post","parameters":[{"name":"item_id","in":"query","required":true,"schema":{"type":"string","description":"道具 ID，如 chess_tourmaster_hint","title":"Item Id"},"description":"道具 ID，如 chess_tourmaster_hint"},{"name":"count","in":"query","required":false,"schema":{"type":"integer","maximum":99,"minimum":1,"description":"消耗数量，默认 1","default":1,"title":"Count"},"description":"消耗数量，默认 1"},{"name":"game_mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"可选：当前游戏模式，用于校验道具可用范围","title":"Game Mode"},"description":"可选：当前游戏模式，用于校验道具可用范围"},{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Reuse this UUID when retrying the same operation","title":"Request Id"},"description":"Reuse this UUID when retrying the same operation"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/shop/{game_key}/quote":{"get":{"tags":["用户"],"summary":"Game Inventory Quote","operationId":"game_inventory_quote_api_user_shop__game_key__quote_get","parameters":[{"name":"game_key","in":"path","required":true,"schema":{"type":"string","title":"Game Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/shop/{game_key}/deliveries":{"get":{"tags":["用户"],"summary":"Game Inventory Deliveries","operationId":"game_inventory_deliveries_api_user_shop__game_key__deliveries_get","parameters":[{"name":"game_key","in":"path","required":true,"schema":{"type":"string","title":"Game Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user/shop/{game_key}/deliveries/{purchase_id}/ack":{"post":{"tags":["用户"],"summary":"Game Inventory Delivery Ack","operationId":"game_inventory_delivery_ack_api_user_shop__game_key__deliveries__purchase_id__ack_post","parameters":[{"name":"game_key","in":"path","required":true,"schema":{"type":"string","title":"Game Key"}},{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Purchase Id"}},{"name":"expected_user_id","in":"query","required":true,"schema":{"type":"integer","title":"Expected User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leaderboard":{"get":{"tags":["排行榜"],"summary":"Get Leaderboard","operationId":"get_leaderboard_api_leaderboard_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","description":"total | memory | logic | focus | reaction | strategy | spatial","default":"total","title":"Type"},"description":"total | memory | logic | focus | reaction | strategy | spatial"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leaderboard/snapshot":{"post":{"tags":["排行榜"],"summary":"Snapshot Global Ranks","operationId":"snapshot_global_ranks_api_leaderboard_snapshot_post","parameters":[{"name":"secret","in":"query","required":true,"schema":{"type":"string","description":"Admin secret key to trigger snapshot","title":"Secret"},"description":"Admin secret key to trigger snapshot"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/monkey-chat":{"post":{"tags":["Monkey Chat"],"summary":"Chat With Wukoo","operationId":"chat_with_wukoo_api_monkey_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonkeyChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/events":{"get":{"tags":["notifications"],"summary":"Notification Events","description":"Stream notification-change events to the authenticated account.","operationId":"notification_events_api_notifications_events_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","operationId":"list_notifications_api_notifications_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/mark-all-read":{"patch":{"tags":["notifications"],"summary":"Mark All Notifications Read","operationId":"mark_all_notifications_read_api_notifications_mark_all_read_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}}}}},"/api/notifications/{notification_id}/read":{"patch":{"tags":["notifications"],"summary":"Mark Notification Read","operationId":"mark_notification_read_api_notifications__notification_id__read_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"integer","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","description":"根路径 - 健康检查","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Health Check","description":"健康检查端点","operationId":"health_check_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"APIResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Data"}},"type":"object","required":["success","message"],"title":"APIResponse","description":"通用 API 响应"},"AssessmentAnswerIn":{"properties":{"topic_key":{"type":"string","title":"Topic Key"},"question_text":{"type":"string","title":"Question Text"},"user_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Answer"},"correct_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correct Answer"},"is_correct":{"type":"boolean","title":"Is Correct","default":false},"is_timeout":{"type":"boolean","title":"Is Timeout","default":false},"time_spent_ms":{"type":"integer","title":"Time Spent Ms","default":0}},"type":"object","required":["topic_key","question_text"],"title":"AssessmentAnswerIn"},"AssessmentSessionCreate":{"properties":{"subject":{"type":"string","maxLength":50,"minLength":1,"title":"Subject"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"type":"string","format":"date-time","title":"Finished At"},"duration_seconds":{"type":"integer","title":"Duration Seconds","default":0},"total_questions":{"type":"integer","title":"Total Questions","default":0},"correct_count":{"type":"integer","title":"Correct Count","default":0},"accuracy":{"type":"integer","title":"Accuracy","default":0},"strongest_area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Strongest Area"},"weakest_area":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weakest Area"},"topic_stats":{"items":{"$ref":"#/components/schemas/AssessmentTopicStatIn"},"type":"array","title":"Topic Stats","default":[]},"answers":{"items":{"$ref":"#/components/schemas/AssessmentAnswerIn"},"type":"array","title":"Answers","default":[]}},"type":"object","required":["subject","started_at","finished_at"],"title":"AssessmentSessionCreate"},"AssessmentTopicStatIn":{"properties":{"topic_key":{"type":"string","title":"Topic Key"},"total":{"type":"integer","title":"Total","default":0},"correct":{"type":"integer","title":"Correct","default":0},"accuracy":{"type":"integer","title":"Accuracy","default":0}},"type":"object","required":["topic_key"],"title":"AssessmentTopicStatIn"},"BillingChangeSubscriptionBody":{"properties":{"plan":{"type":"string","enum":["plus","premium"],"title":"Plan"},"billing_interval":{"type":"string","enum":["monthly","annual"],"title":"Billing Interval","default":"monthly"},"locale":{"type":"string","maxLength":5,"minLength":2,"title":"Locale","default":"en"},"proration_date":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Proration Date"}},"type":"object","required":["plan"],"title":"BillingChangeSubscriptionBody","description":"Switch paid tier or billing period on the existing Stripe subscription."},"BillingCheckoutBody":{"properties":{"plan":{"type":"string","enum":["plus","premium"],"title":"Plan"},"billing_interval":{"type":"string","enum":["monthly","annual"],"title":"Billing Interval","default":"monthly"},"locale":{"type":"string","maxLength":5,"minLength":2,"title":"Locale","default":"en"}},"type":"object","required":["plan"],"title":"BillingCheckoutBody"},"BillingCoinCheckoutBody":{"properties":{"bundle_id":{"type":"string","enum":["coins100","coins250","coins800","coins1500","coins2500"],"title":"Bundle Id"},"locale":{"type":"string","maxLength":5,"minLength":2,"title":"Locale","default":"en"}},"type":"object","required":["bundle_id"],"title":"BillingCoinCheckoutBody"},"BillingDiamondCheckoutBody":{"properties":{"bundle_id":{"type":"string","enum":["diamonds10","diamonds25","diamonds70","diamonds200","diamonds300"],"title":"Bundle Id"},"locale":{"type":"string","maxLength":5,"minLength":2,"title":"Locale","default":"en"}},"type":"object","required":["bundle_id"],"title":"BillingDiamondCheckoutBody"},"BillingPortalBody":{"properties":{"locale":{"type":"string","maxLength":5,"minLength":2,"title":"Locale","default":"en"}},"type":"object","title":"BillingPortalBody"},"BillingUpdatePaymentMethodBody":{"properties":{"payment_method_id":{"type":"string","maxLength":255,"minLength":3,"title":"Payment Method Id"}},"type":"object","required":["payment_method_id"],"title":"BillingUpdatePaymentMethodBody","description":"Set a Stripe PaymentMethod from a confirmed SetupIntent as the subscription default."},"Body_login_api_auth_login_post":{"properties":{"remember_me":{"type":"boolean","title":"Remember Me","default":false},"grant_type":{"anyOf":[{"type":"string","pattern":"password"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_api_auth_login_post"},"Body_upload_avatar_api_auth_avatar_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_avatar_api_auth_avatar_post"},"CognitiveScoresBody":{"properties":{"memory":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Memory"},"logic":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Logic"},"focus":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Focus"},"reaction":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reaction"},"strategy":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Strategy"},"spatial":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Spatial"}},"type":"object","title":"CognitiveScoresBody","description":"六维分数（单维或全量）"},"CompleteProfileBody":{"properties":{"username":{"anyOf":[{"type":"string","maxLength":32,"minLength":3},{"type":"null"}],"title":"Username"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Of Birth"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country"}},"type":"object","title":"CompleteProfileBody","description":"Google 用户补全资料：用户名、出生日期"},"FlowerTransferIn":{"properties":{"intent_token":{"type":"string","maxLength":8192,"minLength":1,"title":"Intent Token"}},"type":"object","required":["intent_token"],"title":"FlowerTransferIn"},"GamePlayRecordIn":{"properties":{"game_key":{"type":"string","maxLength":100,"minLength":1,"title":"Game Key"}},"type":"object","required":["game_key"],"title":"GamePlayRecordIn","description":"Report first-time play for dashboard Games Played (no reward side effects)."},"GamePurchaseRedeemIn":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"target":{"type":"string","maxLength":256,"minLength":1,"title":"Target"}},"type":"object","required":["request_id","target"],"title":"GamePurchaseRedeemIn"},"GoogleTokenRequest":{"properties":{"id_token":{"type":"string","minLength":1,"title":"Id Token"},"remember_me":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Remember Me"}},"type":"object","required":["id_token"],"title":"GoogleTokenRequest","description":"Google 登录请求：前端传入 Google ID Token"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HomeSystemLoadoutBody":{"properties":{"slot":{"type":"string","enum":["head","body","hand","background","limited"],"title":"Slot"},"item_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Item Id"}},"type":"object","required":["slot"],"title":"HomeSystemLoadoutBody","description":"Set or clear one home-system equipment slot."},"LearningPracticeReportAnswerIn":{"properties":{"topic_key":{"type":"string","maxLength":64,"minLength":1,"title":"Topic Key"},"question_text":{"type":"string","maxLength":500,"minLength":1,"title":"Question Text"},"user_answer":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"User Answer"},"correct_answer":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Correct Answer"},"is_correct":{"type":"boolean","title":"Is Correct","default":false},"is_timeout":{"type":"boolean","title":"Is Timeout","default":false},"time_spent_ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Time Spent Ms","default":0}},"type":"object","required":["topic_key","question_text"],"title":"LearningPracticeReportAnswerIn"},"LearningPracticeReportUpsert":{"properties":{"subject_key":{"type":"string","maxLength":64,"minLength":1,"title":"Subject Key"},"module_key":{"type":"string","maxLength":64,"minLength":1,"title":"Module Key"},"topic_key":{"type":"string","maxLength":64,"minLength":1,"title":"Topic Key"},"accuracy":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Accuracy","default":0},"correct_count":{"type":"integer","minimum":0.0,"title":"Correct Count","default":0},"total_questions":{"type":"integer","minimum":0.0,"title":"Total Questions","default":0},"duration_seconds":{"type":"integer","maximum":86400.0,"minimum":0.0,"title":"Duration Seconds","default":0},"attempt_number":{"type":"integer","minimum":1.0,"title":"Attempt Number","default":1},"answers":{"items":{"$ref":"#/components/schemas/LearningPracticeReportAnswerIn"},"type":"array","title":"Answers","default":[]}},"type":"object","required":["subject_key","module_key","topic_key"],"title":"LearningPracticeReportUpsert"},"LearningQuestionAttemptCreate":{"properties":{"subject_key":{"type":"string","maxLength":64,"minLength":1,"title":"Subject Key"},"module_key":{"type":"string","maxLength":64,"minLength":1,"title":"Module Key"},"topic_key":{"type":"string","maxLength":64,"minLength":1,"title":"Topic Key"},"question_key":{"type":"string","maxLength":128,"minLength":1,"title":"Question Key"},"total_questions":{"type":"integer","minimum":0.0,"title":"Total Questions","default":0},"is_correct":{"type":"boolean","title":"Is Correct","default":false},"user_answer":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"User Answer"},"time_spent_seconds":{"type":"integer","maximum":86400.0,"minimum":0.0,"title":"Time Spent Seconds","default":0}},"type":"object","required":["subject_key","module_key","topic_key","question_key"],"title":"LearningQuestionAttemptCreate"},"LearningStudyTimeCreate":{"properties":{"subject_key":{"type":"string","maxLength":64,"minLength":1,"title":"Subject Key"},"duration_seconds":{"type":"integer","maximum":86400.0,"minimum":1.0,"title":"Duration Seconds"}},"type":"object","required":["subject_key","duration_seconds"],"title":"LearningStudyTimeCreate"},"LearningTopicProgressReset":{"properties":{"subject_key":{"type":"string","maxLength":64,"minLength":1,"title":"Subject Key"},"module_key":{"type":"string","maxLength":64,"minLength":1,"title":"Module Key"},"topic_key":{"type":"string","maxLength":64,"minLength":1,"title":"Topic Key"},"total_questions":{"type":"integer","minimum":0.0,"title":"Total Questions","default":0}},"type":"object","required":["subject_key","module_key","topic_key"],"title":"LearningTopicProgressReset"},"MentalMathUnlockDiamondsBody":{"properties":{"tier":{"type":"string","enum":["three_month","lifetime"],"title":"Tier"}},"type":"object","required":["tier"],"title":"MentalMathUnlockDiamondsBody"},"MonkeyChatHistoryItem":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role"},"content":{"type":"string","maxLength":1200,"minLength":1,"title":"Content"}},"type":"object","required":["role","content"],"title":"MonkeyChatHistoryItem"},"MonkeyChatRequest":{"properties":{"message":{"type":"string","maxLength":1200,"minLength":1,"title":"Message"},"locale":{"type":"string","enum":["zh","en"],"title":"Locale","default":"zh"},"history":{"items":{"$ref":"#/components/schemas/MonkeyChatHistoryItem"},"type":"array","title":"History","default":[]}},"type":"object","required":["message"],"title":"MonkeyChatRequest"},"PlayerBalancesIn":{"properties":{"balance_token":{"type":"string","maxLength":8192,"minLength":1,"title":"Balance Token"}},"type":"object","required":["balance_token"],"title":"PlayerBalancesIn"},"ResetPassword":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"verification_code":{"type":"string","maxLength":6,"minLength":6,"title":"Verification Code"},"new_password":{"type":"string","maxLength":100,"minLength":6,"title":"New Password"}},"type":"object","required":["email","verification_code","new_password"],"title":"ResetPassword","description":"重置密码请求模型"},"SendVerificationCode":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","default":"zh"}},"type":"object","required":["email"],"title":"SendVerificationCode","description":"发送验证码请求模型"},"UserCreate":{"properties":{"username":{"type":"string","maxLength":32,"minLength":3,"title":"Username"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":100,"minLength":6,"title":"Password"},"verification_code":{"type":"string","maxLength":6,"minLength":6,"title":"Verification Code"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Of Birth"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country"}},"type":"object","required":["username","email","password","verification_code"],"title":"UserCreate","description":"创建用户模型"},"UserResponse":{"properties":{"username":{"type":"string","title":"Username"},"email":{"type":"string","format":"email","title":"Email"},"id":{"type":"integer","title":"Id"},"is_active":{"type":"boolean","title":"Is Active"},"is_superuser":{"type":"boolean","title":"Is Superuser"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Of Birth"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age"},"membership_plan":{"type":"string","title":"Membership Plan","default":"free"},"membership_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Membership Expires At"},"membership_billing_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Billing Interval"},"membership_pending_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Pending Plan"},"membership_pending_billing_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Pending Billing Interval"},"membership_pending_effective_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Membership Pending Effective At"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"stripe_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Subscription Id"},"membership_trial_used":{"type":"boolean","title":"Membership Trial Used","default":false}},"type":"object","required":["username","email","id","is_active","is_superuser","created_at"],"title":"UserResponse","description":"用户响应模型\n\nAuth is carried by the cross-subdomain HttpOnly cookie set on /api/auth/*;\nno token fields are exposed in the body."},"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"}}}}