{"openapi":"3.1.0","info":{"title":"Parent Control relay","version":"1.0.0"},"paths":{"/api/diagnostics/logs":{"post":{"summary":"Upload Diagnostic Logs","description":"Accept a redacted diagnostic text bundle from a parent device/account.","operationId":"upload_diagnostic_logs_api_diagnostics_logs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Upload Diagnostic Logs Api Diagnostics Logs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/register":{"post":{"summary":"Teacher Register","operationId":"teacher_register_api_teacher_register_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Register Api Teacher Register Post"}}}}}}},"/api/account/register":{"post":{"summary":"Account Register","operationId":"account_register_api_account_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRegisterBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Account Register Api Account Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/google":{"post":{"summary":"Account Google","operationId":"account_google_api_account_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGoogleBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Account Google Api Account Google Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/google-config":{"get":{"summary":"Account Google Config","description":"Отдаёт веб-клиенту Google OAuth 2.0 Client ID (Web application).\n\nНужно фронтенду для инициализации Google Identity Services (gsi/client).\nЗначение берётся из env GOOGLE_CLIENT_ID; если не задано — пустая строка,\nфронтенд скроет кнопку Google и покажет предупреждение.","operationId":"account_google_config_api_account_google_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Account Google Config Api Account Google Config Get"}}}}}}},"/api/client-config":{"get":{"summary":"Client Config","description":"Публичная конфигурация веб-клиента (без авторизации).\n\nВозвращает Google OAuth 2.0 Client ID (Web application) из env\nGOOGLE_CLIENT_ID. Фронтенд использует значение для показа/скрытия кнопки\n«Войти через Google» и для инициализации Google Identity Services.","operationId":"client_config_api_client_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Client Config Api Client Config Get"}}}}}}},"/api/account/login":{"post":{"summary":"Account Login","operationId":"account_login_api_account_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountLoginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Account Login Api Account Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/me":{"get":{"summary":"Account Me","operationId":"account_me_api_account_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Account Me Api Account Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/change-password":{"post":{"summary":"Account Change Password","operationId":"account_change_password_api_account_change_password_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Account Change Password Api Account Change Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/groups":{"post":{"summary":"Teacher Create Group","operationId":"teacher_create_group_api_teacher_groups_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherGroupBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Create Group Api Teacher Groups Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/groups/join":{"post":{"summary":"Teacher Join Group","operationId":"teacher_join_group_api_teacher_groups_join_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherJoinBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Join Group Api Teacher Groups Join Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/groups/{group_id}/students":{"get":{"summary":"Teacher Roster","operationId":"teacher_roster_api_teacher_groups__group_id__students_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Roster Api Teacher Groups  Group Id  Students Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/groups/{group_id}/commands":{"post":{"summary":"Teacher Broadcast","operationId":"teacher_broadcast_api_teacher_groups__group_id__commands_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherCommandBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Broadcast Api Teacher Groups  Group Id  Commands Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/groups/{group_id}/settings/block":{"post":{"summary":"Teacher Settings Block","operationId":"teacher_settings_block_api_teacher_groups__group_id__settings_block_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Settings Block Api Teacher Groups  Group Id  Settings Block Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/groups/{group_id}/settings/unblock":{"post":{"summary":"Teacher Settings Unblock","operationId":"teacher_settings_unblock_api_teacher_groups__group_id__settings_unblock_post","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Settings Unblock Api Teacher Groups  Group Id  Settings Unblock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/groups/{group_id}/settings":{"put":{"summary":"Teacher Settings","operationId":"teacher_settings_api_teacher_groups__group_id__settings_put","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherSettingsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Settings Api Teacher Groups  Group Id  Settings Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/student/settings":{"get":{"summary":"Student Group Settings","operationId":"student_group_settings_api_teacher_student_settings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Student Group Settings Api Teacher Student Settings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/student/verify":{"post":{"summary":"Teacher Student Verify","operationId":"teacher_student_verify_api_teacher_student_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Student Verify Api Teacher Student Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children":{"get":{"summary":"List Children","operationId":"list_children_api_children_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Children Api Children Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}":{"delete":{"summary":"Delete Child Scoped","operationId":"delete_child_scoped_api_children__child_id__delete","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Child Scoped Api Children  Child Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/alerts/events":{"post":{"summary":"Post Alert Event","operationId":"post_alert_event_api_children__child_id__alerts_events_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Post Alert Event Api Children  Child Id  Alerts Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Alert Events","operationId":"get_alert_events_api_children__child_id__alerts_events_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Alert Events Api Children  Child Id  Alerts Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/alerts/events/ack":{"post":{"summary":"Ack Alert Events","operationId":"ack_alert_events_api_children__child_id__alerts_events_ack_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Ack Alert Events Api Children  Child Id  Alerts Events Ack Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/alerts/rules":{"get":{"summary":"Get Alert Rules For Child","operationId":"get_alert_rules_for_child_api_children__child_id__alerts_rules_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Alert Rules For Child Api Children  Child Id  Alerts Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Alert Rules","operationId":"put_alert_rules_api_children__child_id__alerts_rules_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Put Alert Rules Api Children  Child Id  Alerts Rules Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/alerts/rules/child":{"get":{"summary":"Get Alert Rules Child Alias","operationId":"get_alert_rules_child_alias_api_children__child_id__alerts_rules_child_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Alert Rules Child Alias Api Children  Child Id  Alerts Rules Child Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/alerts/rules/parent":{"get":{"summary":"Get Alert Rules Parent","operationId":"get_alert_rules_parent_api_children__child_id__alerts_rules_parent_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Alert Rules Parent Api Children  Child Id  Alerts Rules Parent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Health Health Get"}}}}}}},"/pairs":{"post":{"summary":"Create Pair","operationId":"create_pair_pairs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Pair Pairs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Pairs","operationId":"list_pairs_pairs_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Pairs Pairs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/register":{"post":{"summary":"Register Device","description":"Self-registration used by the Android app on first launch.","operationId":"register_device_api_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Register Device Api Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/device/password":{"post":{"summary":"Set Password","description":"Parent updates the stored parent password (device token auth).","operationId":"set_password_api_device_password_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Set Password Api Device Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/device/unlock":{"post":{"summary":"Unlock Child","description":"Child verifies the parent password to lift restrictions on the child phone.","operationId":"unlock_child_api_device_unlock_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Unlock Child Api Device Unlock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/device/verify":{"post":{"summary":"Verify Child","description":"Child verifies the parent password WITHOUT lifting any restrictions.\n\nThis is a pure check used as a launch gate by the child app: it only\nverifies the parent password and has NO side effects — it must not clear\nthe command queue, dashboard state, or pair settings.","operationId":"verify_child_api_device_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Verify Child Api Device Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pairs/{pair_id}":{"delete":{"summary":"Delete Pair","operationId":"delete_pair_pairs__pair_id__delete","parameters":[{"name":"pair_id","in":"path","required":true,"schema":{"type":"string","title":"Pair Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Pair Pairs  Pair Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/login":{"post":{"summary":"Login","operationId":"login_api_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Login Api Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/logout":{"post":{"summary":"Api Logout","operationId":"api_logout_api_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Logout Api Logout Post"}}}}}}},"/api/status":{"get":{"summary":"Api Status","operationId":"api_status_api_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Api Status Api Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pairs/{pair_id}/block_game":{"post":{"summary":"Block Game","operationId":"block_game_api_pairs__pair_id__block_game_post","parameters":[{"name":"pair_id","in":"path","required":true,"schema":{"type":"string","title":"Pair Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Block Game Api Pairs  Pair Id  Block Game Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pairs/{pair_id}/unblock_game":{"post":{"summary":"Unblock Game","operationId":"unblock_game_api_pairs__pair_id__unblock_game_post","parameters":[{"name":"pair_id","in":"path","required":true,"schema":{"type":"string","title":"Pair Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Unblock Game Api Pairs  Pair Id  Unblock Game Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings":{"get":{"summary":"Get Settings","description":"Child polls the durable per-pair settings (~2-5 s interval).\n\nReturns the persisted blocked list and its updated_at timestamp so\nthe child can apply changes locally.","operationId":"get_settings_api_settings_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Settings Api Settings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pairs/{pair_id}/settings/blocked":{"put":{"summary":"Web Pair Settings Blocked","description":"Web-panel (owner/session) writes the full blocked list for a child.","operationId":"web_pair_settings_blocked_api_pairs__pair_id__settings_blocked_put","parameters":[{"name":"pair_id","in":"path","required":true,"schema":{"type":"string","title":"Pair Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockedBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Web Pair Settings Blocked Api Pairs  Pair Id  Settings Blocked Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pairs/{pair_id}/command":{"post":{"summary":"Web Pair Command","description":"Web-panel (owner/session) queues an arbitrary command for a child.","operationId":"web_pair_command_api_pairs__pair_id__command_post","parameters":[{"name":"pair_id","in":"path","required":true,"schema":{"type":"string","title":"Pair Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Web Pair Command Api Pairs  Pair Id  Command Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/settings/blocked":{"put":{"summary":"Put Settings Blocked","description":"Parent writes the full blocked list immediately.\n\nPersists to pair_settings (the durable source) and syncs the\nin-memory dashboard so the web panel's live snapshot is consistent.","operationId":"put_settings_blocked_api_settings_blocked_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockedBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Put Settings Blocked Api Settings Blocked Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pairs/{pair_id}/{role}":{"delete":{"summary":"Delete Device","description":"Unlink a parent/child device and unlock everything.\n\nClearing the command queue first means no pending block/lock command\nsurvives; clearing dashboard state removes the lock indicators.","operationId":"delete_device_api_pairs__pair_id___role__delete","parameters":[{"name":"pair_id","in":"path","required":true,"schema":{"type":"string","title":"Pair Id"}},{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Device Api Pairs  Pair Id   Role  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/device/child":{"delete":{"summary":"Unlink Child","description":"Parent app cancels/unlinks its child device (device token auth).","operationId":"unlink_child_api_device_child_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Unlink Child Api Device Child Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/commands":{"post":{"summary":"Parent Scoped Command","operationId":"parent_scoped_command_api_children__child_id__commands_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Parent Scoped Command Api Children  Child Id  Commands Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Child Scoped Commands","operationId":"child_scoped_commands_api_children__child_id__commands_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Commands Api Children  Child Id  Commands Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/block":{"post":{"summary":"Parent Settings Block","operationId":"parent_settings_block_api_children__child_id__settings_block_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Parent Settings Block Api Children  Child Id  Settings Block Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/unblock":{"post":{"summary":"Parent Settings Unblock","operationId":"parent_settings_unblock_api_children__child_id__settings_unblock_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Parent Settings Unblock Api Children  Child Id  Settings Unblock Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/commands/{cmd_id}/result":{"post":{"summary":"Child Scoped Result","operationId":"child_scoped_result_api_children__child_id__commands__cmd_id__result_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"cmd_id","in":"path","required":true,"schema":{"type":"string","title":"Cmd Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Result Api Children  Child Id  Commands  Cmd Id  Result Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/apps":{"get":{"summary":"Child Scoped Apps","operationId":"child_scoped_apps_api_children__child_id__apps_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Apps Api Children  Child Id  Apps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Child Scoped Post Apps","operationId":"child_scoped_post_apps_api_children__child_id__apps_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Post Apps Api Children  Child Id  Apps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/location":{"post":{"summary":"Child Scoped Post Location","description":"Child reports its coordinates, scoped to an explicit child_id.","operationId":"child_scoped_post_location_api_children__child_id__location_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Post Location Api Children  Child Id  Location Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Child Scoped Get Location","description":"Parent fetches a child's live position plus recent history.","operationId":"child_scoped_get_location_api_children__child_id__location_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get Location Api Children  Child Id  Location Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/access":{"post":{"summary":"Child Scoped Post Access","operationId":"child_scoped_post_access_api_children__child_id__access_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Post Access Api Children  Child Id  Access Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Child Scoped Get Access","operationId":"child_scoped_get_access_api_children__child_id__access_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get Access Api Children  Child Id  Access Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/break":{"post":{"summary":"Child Scoped Post Break","description":"Child sets/clears its temporary break-from-blocking timestamp (durable).","operationId":"child_scoped_post_break_api_children__child_id__break_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreakBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Post Break Api Children  Child Id  Break Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings":{"get":{"summary":"Child Scoped Settings","operationId":"child_scoped_settings_api_children__child_id__settings_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Settings Api Children  Child Id  Settings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/blocked":{"put":{"summary":"Child Scoped Put Settings","operationId":"child_scoped_put_settings_api_children__child_id__settings_blocked_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockedBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Put Settings Api Children  Child Id  Settings Blocked Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/daily-limit":{"get":{"summary":"Child Scoped Get Daily Limit","operationId":"child_scoped_get_daily_limit_api_children__child_id__settings_daily_limit_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get Daily Limit Api Children  Child Id  Settings Daily Limit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Child Scoped Put Daily Limit","operationId":"child_scoped_put_daily_limit_api_children__child_id__settings_daily_limit_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyLimitBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Put Daily Limit Api Children  Child Id  Settings Daily Limit Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/daily-limit/add":{"put":{"summary":"Child Scoped Add Daily Limit","operationId":"child_scoped_add_daily_limit_api_children__child_id__settings_daily_limit_add_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyLimitBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Add Daily Limit Api Children  Child Id  Settings Daily Limit Add Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/app-limits":{"get":{"summary":"Child Scoped Get App Limits","operationId":"child_scoped_get_app_limits_api_children__child_id__settings_app_limits_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get App Limits Api Children  Child Id  Settings App Limits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Child Scoped Put App Limits","operationId":"child_scoped_put_app_limits_api_children__child_id__settings_app_limits_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppLimitsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Put App Limits Api Children  Child Id  Settings App Limits Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/tasks":{"get":{"summary":"Child Scoped List Tasks","description":"Parent (or the owning child) lists the child's tasks.","operationId":"child_scoped_list_tasks_api_children__child_id__tasks_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped List Tasks Api Children  Child Id  Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Child Scoped Create Task","operationId":"child_scoped_create_task_api_children__child_id__tasks_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Create Task Api Children  Child Id  Tasks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/tasks/{task_id}/complete":{"post":{"summary":"Child Scoped Complete Task","operationId":"child_scoped_complete_task_api_children__child_id__tasks__task_id__complete_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Complete Task Api Children  Child Id  Tasks  Task Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/tasks/{task_id}/confirm":{"post":{"summary":"Child Scoped Confirm Task","operationId":"child_scoped_confirm_task_api_children__child_id__tasks__task_id__confirm_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Confirm Task Api Children  Child Id  Tasks  Task Id  Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/tasks/{task_id}":{"delete":{"summary":"Child Scoped Delete Task","operationId":"child_scoped_delete_task_api_children__child_id__tasks__task_id__delete","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Delete Task Api Children  Child Id  Tasks  Task Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/challenges":{"get":{"summary":"Child Scoped List Challenges","operationId":"child_scoped_list_challenges_api_children__child_id__challenges_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped List Challenges Api Children  Child Id  Challenges Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Child Scoped Create Challenge","operationId":"child_scoped_create_challenge_api_children__child_id__challenges_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeeklyChallengeCreateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Create Challenge Api Children  Child Id  Challenges Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/challenges/{challenge_id}/complete":{"post":{"summary":"Child Scoped Complete Challenge","operationId":"child_scoped_complete_challenge_api_children__child_id__challenges__challenge_id__complete_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"challenge_id","in":"path","required":true,"schema":{"type":"string","title":"Challenge Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Complete Challenge Api Children  Child Id  Challenges  Challenge Id  Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/challenges/{challenge_id}/award":{"post":{"summary":"Child Scoped Award Challenge","operationId":"child_scoped_award_challenge_api_children__child_id__challenges__challenge_id__award_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"challenge_id","in":"path","required":true,"schema":{"type":"string","title":"Challenge Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Award Challenge Api Children  Child Id  Challenges  Challenge Id  Award Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/challenges/{challenge_id}":{"delete":{"summary":"Child Scoped Delete Challenge","operationId":"child_scoped_delete_challenge_api_children__child_id__challenges__challenge_id__delete","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"challenge_id","in":"path","required":true,"schema":{"type":"string","title":"Challenge Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Delete Challenge Api Children  Child Id  Challenges  Challenge Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/geozones":{"get":{"summary":"Child Scoped Get Geozones","operationId":"child_scoped_get_geozones_api_children__child_id__settings_geozones_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get Geozones Api Children  Child Id  Settings Geozones Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Child Scoped Put Geozones","operationId":"child_scoped_put_geozones_api_children__child_id__settings_geozones_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeozonesBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Put Geozones Api Children  Child Id  Settings Geozones Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/geozones/events":{"post":{"summary":"Child Scoped Post Geozone Event","operationId":"child_scoped_post_geozone_event_api_children__child_id__geozones_events_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeozoneEventBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Post Geozone Event Api Children  Child Id  Geozones Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/geozones/status":{"get":{"summary":"Child Scoped Get Geozone Status","operationId":"child_scoped_get_geozone_status_api_children__child_id__geozones_status_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get Geozone Status Api Children  Child Id  Geozones Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/schedule":{"get":{"summary":"Child Scoped Get Schedule","operationId":"child_scoped_get_schedule_api_children__child_id__settings_schedule_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get Schedule Api Children  Child Id  Settings Schedule Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Child Scoped Put Schedule","operationId":"child_scoped_put_schedule_api_children__child_id__settings_schedule_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Put Schedule Api Children  Child Id  Settings Schedule Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/block-new-installs":{"get":{"summary":"Child Scoped Get Block New Installs","operationId":"child_scoped_get_block_new_installs_api_children__child_id__settings_block_new_installs_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get Block New Installs Api Children  Child Id  Settings Block New Installs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Child Scoped Put Block New Installs","operationId":"child_scoped_put_block_new_installs_api_children__child_id__settings_block_new_installs_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockNewInstallsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Put Block New Installs Api Children  Child Id  Settings Block New Installs Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/new-installs":{"post":{"summary":"Child Scoped Post New Installs","operationId":"child_scoped_post_new_installs_api_children__child_id__new_installs_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackagesBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Post New Installs Api Children  Child Id  New Installs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Child Scoped Get New Installs","operationId":"child_scoped_get_new_installs_api_children__child_id__new_installs_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get New Installs Api Children  Child Id  New Installs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/settings/blocked/items":{"post":{"summary":"Child Scoped Post Blocked Items","operationId":"child_scoped_post_blocked_items_api_children__child_id__settings_blocked_items_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackagesBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Post Blocked Items Api Children  Child Id  Settings Blocked Items Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/groups/{group_id}/settings/block-new-installs":{"get":{"summary":"Teacher Get Block New Installs","operationId":"teacher_get_block_new_installs_api_teacher_groups__group_id__settings_block_new_installs_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Get Block New Installs Api Teacher Groups  Group Id  Settings Block New Installs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Teacher Put Block New Installs","operationId":"teacher_put_block_new_installs_api_teacher_groups__group_id__settings_block_new_installs_put","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockNewInstallsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Put Block New Installs Api Teacher Groups  Group Id  Settings Block New Installs Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/student/new-installs":{"post":{"summary":"Teacher Student New Installs","operationId":"teacher_student_new_installs_api_teacher_student_new_installs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackagesBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Student New Installs Api Teacher Student New Installs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/groups/{group_id}/new-installs":{"get":{"summary":"Teacher Get New Installs","operationId":"teacher_get_new_installs_api_teacher_groups__group_id__new_installs_get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Teacher Get New Installs Api Teacher Groups  Group Id  New Installs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/web-policy":{"get":{"summary":"Get Web Policy","operationId":"get_web_policy_api_children__child_id__web_policy_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Web Policy Api Children  Child Id  Web Policy Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Web Policy","operationId":"put_web_policy_api_children__child_id__web_policy_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Put Web Policy Api Children  Child Id  Web Policy Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/web-filter/lists":{"get":{"summary":"Get Web Filter Lists","operationId":"get_web_filter_lists_api_web_filter_lists_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Web Filter Lists Api Web Filter Lists Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/web-filter/lists/check":{"post":{"summary":"Check Web Filter Lists","operationId":"check_web_filter_lists_api_web_filter_lists_check_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Check Web Filter Lists Api Web Filter Lists Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/name":{"put":{"summary":"Child Scoped Rename","operationId":"child_scoped_rename_api_children__child_id__name_put","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Rename Api Children  Child Id  Name Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commands":{"get":{"summary":"Child Commands","description":"Child polls pending commands for its pair (~2 s interval).","operationId":"child_commands_api_commands_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Commands Api Commands Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/commands/{cmd_id}/result":{"post":{"summary":"Post Command Result","description":"Child posts the execution result of a polled command.","operationId":"post_command_result_api_commands__cmd_id__result_post","parameters":[{"name":"cmd_id","in":"path","required":true,"schema":{"type":"string","title":"Cmd Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Post Command Result Api Commands  Cmd Id  Result Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps":{"post":{"summary":"Post Apps","description":"Child reports its installed-app inventory (PackageManager scan).\n\nStored as ephemeral device state in the in-memory dashboard; the child\nre-pushes the list every ~60 s and on start. Device token auth, child\nrole only. An empty list clears the stored inventory.","operationId":"post_apps_api_apps_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Post Apps Api Apps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Apps","description":"Parent fetches its child's installed-app inventory.\n\nReturns the stored inventory plus the per-game blocked list read\nfrom the durable pair_settings store, and the child online/last-update\nflags, for the caller's pair.","operationId":"get_apps_api_apps_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Apps Api Apps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/location":{"post":{"summary":"Post Location","description":"Child reports its coordinates (legacy one-child convenience form).","operationId":"post_location_api_location_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Post Location Api Location Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Location","description":"Parent fetches its (single) child's live position plus recent history.","operationId":"get_location_api_location_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Location Api Location Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/active-app":{"post":{"summary":"Post Active App","description":"Child reports its current foreground application.","operationId":"post_active_app_api_active_app_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveAppBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Post Active App Api Active App Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/access":{"post":{"summary":"Post Access","description":"Child reports which special accesses (permissions) are granted.\n\nStored as ephemeral device state in the in-memory dashboard; the child\nre-pushes it on start and on change. Device token auth, child role only.\nA null/empty payload clears the stored state.","operationId":"post_access_api_access_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Post Access Api Access Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Access","description":"Parent fetches its child's granted special accesses.\n\nReturns the stored access map plus the child online/last-update flags,\nfor the caller's pair.","operationId":"get_access_api_access_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Access Api Access Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/report":{"post":{"summary":"Child Scoped Post Report","operationId":"child_scoped_post_report_api_children__child_id__report_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Post Report Api Children  Child Id  Report Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Child Scoped Get Report","operationId":"child_scoped_get_report_api_children__child_id__report_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Child Scoped Get Report Api Children  Child Id  Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report":{"post":{"summary":"Post Report","description":"Child reports its per-app usage snapshot (UsageStatsManager).\n\nStored as ephemeral device state in the in-memory dashboard; the child\nre-pushes it periodically. Device token auth, child role only. An empty\nlist clears the stored usage report.","operationId":"post_report_api_report_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Post Report Api Report Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Report","description":"Parent fetches its child's per-app usage report.\n\nReturns the latest snapshot the child reported via POST /api/report\nplus the child online/last-update flags, for the caller's pair. With\n`days` present, returns a per-day history instead of the latest snapshot.","operationId":"get_report_api_report_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Report Api Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/audio":{"post":{"summary":"Child Audio Upload","operationId":"child_audio_upload_api_children__child_id__audio_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Child Audio List","operationId":"child_audio_list_api_children__child_id__audio_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/children/{child_id}/audio/{recording_id}":{"get":{"summary":"Child Audio Download","operationId":"child_audio_download_api_children__child_id__audio__recording_id__get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"recording_id","in":"path","required":true,"schema":{"type":"string","title":"Recording Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Child Audio Delete","operationId":"child_audio_delete_api_children__child_id__audio__recording_id__delete","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"recording_id","in":"path","required":true,"schema":{"type":"string","title":"Recording Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/security":{"get":{"summary":"Security Page","description":"Security & privacy policy page (jurisdiction-neutral, international).","operationId":"security_page_security_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/duck.png":{"get":{"summary":"Duck Image","operationId":"duck_image_duck_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app.css":{"get":{"summary":"Web Styles","operationId":"web_styles_app_css_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app.js":{"get":{"summary":"Web Script","operationId":"web_script_app_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/apk/download":{"get":{"summary":"Download Apk","operationId":"download_apk_apk_download_get","parameters":[{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"}},{"name":"Range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"summary":"Download Apk","operationId":"download_apk_apk_download_get","parameters":[{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"}},{"name":"Range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apk/version":{"get":{"summary":"Apk Version","operationId":"apk_version_apk_version_get","parameters":[{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Apk Version Apk Version Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccessBody":{"properties":{"access":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Access"},"battery":{"anyOf":[{"$ref":"#/components/schemas/BatteryInfo"},{"type":"null"}]}},"type":"object","title":"AccessBody"},"AccountGoogleBody":{"properties":{"id_token":{"type":"string","title":"Id Token"}},"type":"object","required":["id_token"],"title":"AccountGoogleBody"},"AccountLoginBody":{"properties":{"login":{"type":"string","title":"Login"},"password":{"type":"string","title":"Password"}},"type":"object","required":["login","password"],"title":"AccountLoginBody"},"AccountRegisterBody":{"properties":{"kind":{"type":"string","title":"Kind"},"login":{"type":"string","title":"Login"},"password":{"type":"string","title":"Password"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["kind","login","password"],"title":"AccountRegisterBody"},"ActiveAppBody":{"properties":{"active_app":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Active App"}},"type":"object","title":"ActiveAppBody"},"AppItem":{"properties":{"package":{"type":"string","maxLength":200,"title":"Package"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"game":{"type":"boolean","title":"Game","default":false},"system":{"type":"boolean","title":"System","default":false},"first_install_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Install Time"}},"type":"object","required":["package"],"title":"AppItem"},"AppLimitsBody":{"properties":{"app_limits":{"type":"object","title":"App Limits"}},"type":"object","title":"AppLimitsBody"},"AppsBody":{"properties":{"apps":{"items":{"$ref":"#/components/schemas/AppItem"},"type":"array","title":"Apps","default":[]}},"type":"object","title":"AppsBody"},"BatteryInfo":{"properties":{"level":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Level"},"charging":{"type":"boolean","title":"Charging"}},"type":"object","required":["level","charging"],"title":"BatteryInfo","description":"Optional child battery-status snapshot reported with an access report.\n\nlevel must be a strict int in 0..100; charging must be a strict bool.\nStrictness is intentional: the relay tolerates a missing battery block\n(full backward compatibility) but rejects malformed battery values with\nthe standard 422 validation error."},"BlockNewInstallsBody":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"BlockNewInstallsBody"},"BlockedBody":{"properties":{"blocked":{"items":{"type":"string"},"type":"array","title":"Blocked"},"child_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Child Id"}},"type":"object","required":["blocked"],"title":"BlockedBody"},"BreakBody":{"properties":{"break_until":{"type":"integer","minimum":0.0,"title":"Break Until"}},"type":"object","required":["break_until"],"title":"BreakBody"},"ChangePasswordBody":{"properties":{"old_password":{"type":"string","title":"Old Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["old_password","new_password"],"title":"ChangePasswordBody"},"DailyLimitBody":{"properties":{"minutes":{"type":"integer","title":"Minutes"}},"type":"object","required":["minutes"],"title":"DailyLimitBody"},"GameBody":{"properties":{"package":{"type":"string","title":"Package"},"child_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Child Id"}},"type":"object","required":["package"],"title":"GameBody"},"GeozoneEventBody":{"properties":{"zone_id":{"type":"string","title":"Zone Id"},"name":{"type":"string","title":"Name","default":""},"event":{"type":"string","title":"Event"},"lat":{"type":"number","title":"Lat"},"lon":{"type":"number","title":"Lon"},"accuracy_m":{"type":"number","title":"Accuracy M","default":0},"time_ms":{"type":"integer","title":"Time Ms","default":0}},"type":"object","required":["zone_id","event","lat","lon"],"title":"GeozoneEventBody"},"GeozonesBody":{"properties":{"geozones":{"items":{"type":"object"},"type":"array","title":"Geozones"}},"type":"object","title":"GeozonesBody"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LocationBody":{"properties":{"lat":{"type":"number","title":"Lat"},"lon":{"type":"number","title":"Lon"},"accuracy_m":{"type":"number","title":"Accuracy M","default":0},"time_ms":{"type":"integer","title":"Time Ms","default":0}},"type":"object","required":["lat","lon"],"title":"LocationBody"},"LoginBody":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"LoginBody"},"PackagesBody":{"properties":{"packages":{"items":{"type":"string"},"type":"array","title":"Packages","default":[]}},"type":"object","title":"PackagesBody"},"PasswordBody":{"properties":{"password":{"type":"string","minLength":6,"title":"Password"}},"type":"object","required":["password"],"title":"PasswordBody"},"RegisterBody":{"properties":{"mode":{"type":"string","title":"Mode"},"device":{"type":"string","title":"Device","default":"unknown"},"pairing_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pairing Code"},"password":{"anyOf":[{"type":"string","minLength":6},{"type":"null"}],"title":"Password"},"child_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Child Id"}},"type":"object","required":["mode"],"title":"RegisterBody"},"RenameBody":{"properties":{"device":{"type":"string","title":"Device"}},"type":"object","required":["device"],"title":"RenameBody"},"ScheduleBody":{"properties":{"schedule":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Schedule"}},"type":"object","title":"ScheduleBody"},"TaskCreateBody":{"properties":{"title":{"type":"string","title":"Title"},"reward_minutes":{"type":"integer","title":"Reward Minutes"}},"type":"object","required":["title","reward_minutes"],"title":"TaskCreateBody"},"TeacherCommandBody":{"properties":{"command":{"type":"string","title":"Command"},"params":{"type":"object","title":"Params","default":{}},"target_student_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Student Ids"}},"type":"object","required":["command"],"title":"TeacherCommandBody"},"TeacherGroupBody":{"properties":{"name":{"type":"string","title":"Name","default":"Group"}},"type":"object","title":"TeacherGroupBody"},"TeacherJoinBody":{"properties":{"join_code":{"type":"string","title":"Join Code"},"student_id":{"type":"string","title":"Student Id"},"device":{"type":"string","title":"Device","default":"unknown"}},"type":"object","required":["join_code","student_id"],"title":"TeacherJoinBody"},"TeacherSettingsBody":{"properties":{"settings":{"type":"object","title":"Settings"}},"type":"object","required":["settings"],"title":"TeacherSettingsBody"},"UsageBody":{"properties":{"usage":{"items":{"$ref":"#/components/schemas/UsageItem"},"type":"array","title":"Usage","default":[]},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"}},"type":"object","title":"UsageBody"},"UsageItem":{"properties":{"package":{"type":"string","maxLength":200,"title":"Package"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"time_ms":{"type":"integer","title":"Time Ms","default":0}},"type":"object","required":["package"],"title":"UsageItem"},"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"},"WeeklyChallengeCreateBody":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"reward_minutes":{"type":"integer","title":"Reward Minutes"}},"type":"object","required":["title","reward_minutes"],"title":"WeeklyChallengeCreateBody"}}}}