{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Read Root","operationId":"read_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/generate":{"get":{"summary":"Generate Sentence","operationId":"generate_sentence_generate_get","parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","title":"Prompt"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"casual","title":"Mode"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"api_key","in":"header","required":false,"schema":{"type":"string","title":"Api Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/get_english_def":{"get":{"summary":"Generate English","operationId":"generate_english_get_english_def_get","parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","title":"Prompt"}},{"name":"api_key","in":"header","required":false,"schema":{"type":"string","title":"Api Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate":{"get":{"summary":"Translate Text","operationId":"translate_text_translate_get","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string","title":"Text"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"English","title":"Source"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","default":"Mizo","title":"Target"}},{"name":"api_key","in":"header","required":false,"schema":{"type":"string","title":"Api Key"}},{"name":"device_id","in":"header","required":false,"schema":{"type":"string","title":"Device Id"}},{"name":"is_premium","in":"header","required":false,"schema":{"type":"string","default":"false","title":"Is Premium"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gemini_lookup":{"get":{"summary":"Gemini Lookup","operationId":"gemini_lookup_gemini_lookup_get","parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","title":"Prompt"}},{"name":"api_key","in":"header","required":false,"schema":{"type":"string","title":"Api Key"}},{"name":"device_id","in":"header","required":false,"schema":{"type":"string","title":"Device Id"}},{"name":"is_premium","in":"header","required":false,"schema":{"type":"string","default":"false","title":"Is Premium"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/online_users":{"get":{"summary":"Get Online Users","description":"Return plain text like 'Users Online: 2'.","operationId":"get_online_users_online_users_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/live_stats":{"get":{"summary":"Get Live Stats","description":"Return live counts (Free, Paid, Gemini, etc.) in JSON for dynamic dashboard.","operationId":"get_live_stats_live_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/live_today_count":{"get":{"summary":"Get Live Today Count","description":"Return live 'Today' request count.","operationId":"get_live_today_count_live_today_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/recent_requests":{"get":{"summary":"Get Recent Requests","operationId":"get_recent_requests_recent_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/players_online":{"get":{"summary":"Get Players Online","description":"Return plain text: 'Players Online: X' (dedupe by userId, no time limit).","operationId":"get_players_online_players_online_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/players_online_list":{"get":{"summary":"Players Online List","description":"Return list of active Scramble players with their names or userId.","operationId":"players_online_list_players_online_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/quiz_players_online_list":{"get":{"summary":"Quiz Players Online List","description":"Return list of active Quiz players with names or fallback userId.","operationId":"quiz_players_online_list_quiz_players_online_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/quiz_players_online":{"get":{"summary":"Get Quiz Players Online","description":"Return plain text: 'Quiz Players Online: X' (dedupe by userId).","operationId":"get_quiz_players_online_quiz_players_online_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/wordsearch_players_online":{"get":{"summary":"Get Wordsearch Players Online","description":"Return plain text: 'Word Search Players Online: X' (dedupe by userId).","operationId":"get_wordsearch_players_online_wordsearch_players_online_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/wordsearch_players_online_list":{"get":{"summary":"Wordsearch Players Online List","description":"Return list of active Word Search players with names or fallback userId.","operationId":"wordsearch_players_online_list_wordsearch_players_online_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/wordconnect_players_online":{"get":{"summary":"Get Wordconnect Players Online","description":"Return plain text: 'Word Connect Players Online: X' (dedupe by userId).","operationId":"get_wordconnect_players_online_wordconnect_players_online_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/wordconnect_players_online_list":{"get":{"summary":"Wordconnect Players Online List","description":"Return list of active Word Connect players with names or fallback userId.","operationId":"wordconnect_players_online_list_wordconnect_players_online_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/game_presence_summary":{"get":{"summary":"Get Game Presence Summary","description":"Return combined game presence data for all games in one call.","operationId":"get_game_presence_summary_game_presence_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/live_dashboard":{"get":{"summary":"Get Live Dashboard","description":"Return combined dashboard data: stats, recent requests, today count, and search stats.","operationId":"get_live_dashboard_live_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/search_stats":{"get":{"summary":"Search Stats","description":"Returns a combined JSON with:\n  - top_24h: top 10 searches in last 24 hours\n  - top_7d: top 10 searches in last 7 days","operationId":"search_stats_search_stats_get","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"}}}}