{"openapi":"3.1.0","info":{"title":"4GPA API","version":"0.5.0"},"paths":{"/auth/register":{"post":{"tags":["parents"],"summary":"Register","operationId":"register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["parents"],"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me":{"get":{"tags":["parents"],"summary":"Me","operationId":"me_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentOut"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["parents"],"summary":"Patch Me","operationId":"patch_me_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/me/devices":{"post":{"tags":["parents"],"summary":"Add Device","description":"The parent's phone registers for push notifications (called on sign-in and when the token changes).","operationId":"add_device_me_devices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/me/devices/{token}":{"delete":{"tags":["parents"],"summary":"Remove Device","operationId":"remove_device_me_devices__token__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/pin":{"post":{"tags":["parents"],"summary":"Set Pin","operationId":"set_pin_me_pin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/me/pin/verify":{"post":{"tags":["parents"],"summary":"Verify Pin","operationId":"verify_pin_me_pin_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/grades":{"get":{"tags":["parents"],"summary":"Grades","description":"Grades a parent can pick for a child: KG plus every school year that has courses (drafts too, for reviewers).","operationId":"grades_grades_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/children":{"get":{"tags":["parents"],"summary":"List Children","operationId":"list_children_children_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ChildOut"},"type":"array","title":"Response List Children Children Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["parents"],"summary":"Add Child","operationId":"add_child_children_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChildIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChildOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/children/{child_id}":{"get":{"tags":["parents"],"summary":"Get Child","operationId":"get_child_children__child_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"integer","title":"Child Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChildOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["parents"],"summary":"Patch Child","operationId":"patch_child_children__child_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"integer","title":"Child Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChildPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChildOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["parents"],"summary":"Delete Child","operationId":"delete_child_children__child_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"integer","title":"Child Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/children/{child_id}/device-login":{"post":{"tags":["parents"],"summary":"Child Device Login","description":"Give a device a child session (the parent unlocks it on the child's tablet).","operationId":"child_device_login_children__child_id__device_login_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"integer","title":"Child Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/children/{child_id}/logout-devices":{"post":{"tags":["parents"],"summary":"Child Logout Devices","operationId":"child_logout_devices_children__child_id__logout_devices_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"integer","title":"Child Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/children/{child_id}/progress":{"get":{"tags":["parents"],"summary":"Child Progress","operationId":"child_progress_children__child_id__progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"integer","title":"Child Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/children/{child_id}/reports":{"get":{"tags":["parents"],"summary":"Child Reports","operationId":"child_reports_children__child_id__reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"integer","title":"Child Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports/{attempt_id}":{"get":{"tags":["parents"],"summary":"Report","operationId":"report_reports__attempt_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"integer","title":"Attempt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications":{"get":{"tags":["parents"],"summary":"Notifications","operationId":"notifications_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/{nid}/read":{"post":{"tags":["parents"],"summary":"Read Notification","operationId":"read_notification_notifications__nid__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"nid","in":"path","required":true,"schema":{"type":"integer","title":"Nid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/read-all":{"post":{"tags":["parents"],"summary":"Read All","operationId":"read_all_notifications_read_all_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/wallet":{"get":{"tags":["parents"],"summary":"Wallet","operationId":"wallet_wallet_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/kid/me":{"get":{"tags":["kid"],"summary":"Me","operationId":"me_kid_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/kid/courses":{"get":{"tags":["kid"],"summary":"Courses","operationId":"courses_kid_courses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/kid/courses/{course_id}/map":{"get":{"tags":["kid"],"summary":"Course Detail","operationId":"course_detail_kid_courses__course_id__map_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"path","required":true,"schema":{"type":"integer","title":"Course Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/lessons/{lesson_id}":{"get":{"tags":["kid"],"summary":"Get Lesson","operationId":"get_lesson_kid_lessons__lesson_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"integer","title":"Lesson Id"}},{"name":"features","in":"query","required":false,"schema":{"type":"string","default":"","title":"Features"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/lessons/{lesson_id}/start":{"post":{"tags":["kid"],"summary":"Start","operationId":"start_kid_lessons__lesson_id__start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"integer","title":"Lesson Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/attempts/{attempt_id}/events":{"post":{"tags":["kid"],"summary":"Events","operationId":"events_kid_attempts__attempt_id__events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"integer","title":"Attempt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventsIn"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/attempts/{attempt_id}/finish":{"post":{"tags":["kid"],"summary":"Finish","operationId":"finish_kid_attempts__attempt_id__finish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"integer","title":"Attempt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinishIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/ai":{"get":{"tags":["kid"],"summary":"Ai Status","operationId":"ai_status_kid_ai_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/kid/attempts/{attempt_id}/say":{"post":{"tags":["kid"],"summary":"Say Word","description":"Body: 16 kHz mono WAV of the child repeating `word`. Returns what was heard and a pronunciation score.","operationId":"say_word_kid_attempts__attempt_id__say_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"integer","title":"Attempt Id"}},{"name":"word","in":"query","required":true,"schema":{"type":"string","title":"Word"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/attempts/{attempt_id}/chat":{"post":{"tags":["kid"],"summary":"Chat","description":"One turn of conversation with the teacher about this lesson step.","operationId":"chat_kid_attempts__attempt_id__chat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"integer","title":"Attempt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/talk":{"get":{"tags":["talk"],"summary":"Overview","description":"Whether a speaking session can start today, and the topics the child can talk about.","operationId":"overview_kid_talk_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/kid/talk/start":{"post":{"tags":["talk"],"summary":"Start","operationId":"start_kid_talk_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkStartIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/kid/talk/{sid}/turn":{"post":{"tags":["talk"],"summary":"Turn","operationId":"turn_kid_talk__sid__turn_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"integer","title":"Sid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkTurnIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/talk/{sid}/end":{"post":{"tags":["talk"],"summary":"End","description":"Ends the session and returns its summary (also sent to the parent).","operationId":"end_kid_talk__sid__end_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"integer","title":"Sid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/attempts/{attempt_id}/ask":{"post":{"tags":["ask"],"summary":"Ask Teacher","description":"The student's question during a teach step. Returns the answer as beats: a spoken sentence and the line the\nteacher writes on the board while saying it.","operationId":"ask_teacher_kid_attempts__attempt_id__ask_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"integer","title":"Attempt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/ask/{iid}/feedback":{"post":{"tags":["ask"],"summary":"Feedback","description":"Did the answer help? «فهمت» / «لسه مش فاهم» (a label our own model will learn from).","operationId":"feedback_kid_ask__iid__feedback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"iid","in":"path","required":true,"schema":{"type":"integer","title":"Iid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFeedbackIn"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/live":{"get":{"tags":["live"],"summary":"Status ","operationId":"status__kid_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/kid/live/start":{"post":{"tags":["live"],"summary":"Start","operationId":"start_kid_live_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveStartIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/kid/live/{sid}/turn":{"post":{"tags":["live"],"summary":"Turn","operationId":"turn_kid_live__sid__turn_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"integer","title":"Sid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveTurnIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/kid/live/{sid}/end":{"post":{"tags":["live"],"summary":"End","operationId":"end_kid_live__sid__end_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"integer","title":"Sid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin-auth/status":{"get":{"tags":["admin"],"summary":"Setup Status","description":"The panel shows a one-time 'create the first admin' form while there are no admins.","operationId":"setup_status_admin_auth_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin-auth/setup":{"post":{"tags":["admin"],"summary":"First Admin","operationId":"first_admin_admin_auth_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetupIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin-auth/login":{"post":{"tags":["admin"],"summary":"Admin Login","operationId":"admin_login_admin_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminLoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/me":{"get":{"tags":["admin"],"summary":"Me","operationId":"me_admin_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/me/password":{"post":{"tags":["admin"],"summary":"Change Own Password","operationId":"change_own_password_admin_me_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/admins":{"get":{"tags":["admin"],"summary":"Admins","operationId":"admins_admin_admins_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin"],"summary":"Add Admin","operationId":"add_admin_admin_admins_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetupIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/admins/{aid}":{"patch":{"tags":["admin"],"summary":"Patch Admin","operationId":"patch_admin_admin_admins__aid__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"aid","in":"path","required":true,"schema":{"type":"integer","title":"Aid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/stats":{"get":{"tags":["admin"],"summary":"Stats","operationId":"stats_admin_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/parents":{"get":{"tags":["admin"],"summary":"Parents","operationId":"parents_admin_parents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/parents/{pid}":{"get":{"tags":["admin"],"summary":"Parent Detail","operationId":"parent_detail_admin_parents__pid__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Patch Parent","operationId":"patch_parent_admin_parents__pid__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminParentPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/parents/{pid}/credits":{"post":{"tags":["admin"],"summary":"Give Credits","operationId":"give_credits_admin_parents__pid__credits_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/parents/{pid}/password":{"post":{"tags":["admin"],"summary":"Reset Parent Password","description":"No email recovery yet: an admin sets a new password and tells the parent.","operationId":"reset_parent_password_admin_parents__pid__password_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordIn"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/attempts":{"get":{"tags":["admin"],"summary":"Attempts","operationId":"attempts_admin_attempts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/curriculum":{"get":{"tags":["admin"],"summary":"Curriculum","operationId":"curriculum_admin_curriculum_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/curriculum/courses/{cid}/publish":{"post":{"tags":["admin"],"summary":"Publish Course","description":"Reviewer approved (or hid) a course: children see it right away, and it survives curriculum reloads.","operationId":"publish_course_admin_curriculum_courses__cid__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoursePublishIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/curriculum/reload":{"post":{"tags":["admin"],"summary":"Reload Curriculum","operationId":"reload_curriculum_admin_curriculum_reload_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/notifications":{"get":{"tags":["admin"],"summary":"Sent Notifications","description":"The admin's notifications, newest first: one row per message, with how many parents got it.","operationId":"sent_notifications_admin_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin"],"summary":"Send Notification","operationId":"send_notification_admin_notifications_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnounceIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/app/version":{"get":{"tags":["download"],"summary":"App Version","description":"What the app checks on start: if its build is older than `min_build`, it must update before it can be used.","operationId":"app_version_app_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/voice":{"get":{"tags":["voice"],"summary":"Voice","description":"MP3 of the teacher saying `text`. The token rides in the URL so any audio player can fetch it.","operationId":"voice_voice_get","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":600,"title":"Text"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","pattern":"^(ar|en|fr|ru|tr)$","default":"ar","title":"Lang"}},{"name":"dialect","in":"query","required":false,"schema":{"type":"string","pattern":"^(eg|sy|gulf)$","default":"eg","title":"Dialect"}},{"name":"g","in":"query","required":false,"schema":{"type":"string","pattern":"^(f|m)$","default":"f","title":"G"}},{"name":"t","in":"query","required":true,"schema":{"type":"string","description":"app token (players can't send headers)","title":"T"},"description":"app token (players can't send headers)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/voice/clip/{cid}":{"get":{"tags":["voice"],"summary":"Clip Audio","description":"Audio for the review page (admin token in the URL, since <audio> can't send headers).","operationId":"clip_audio_voice_clip__cid__get","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}},{"name":"t","in":"query","required":true,"schema":{"type":"string","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/voice/status":{"get":{"tags":["admin"],"summary":"Status","operationId":"status_admin_voice_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/voice":{"get":{"tags":["admin"],"summary":"Clips","operationId":"clips_admin_voice_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dialect","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dialect"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/voice/{cid}":{"patch":{"tags":["admin"],"summary":"Review","operationId":"review_admin_voice__cid__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceReviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/voice/{cid}/regenerate":{"post":{"tags":["admin"],"summary":"Regenerate","operationId":"regenerate_admin_voice__cid__regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Health Health Get"}}}}}}}},"components":{"schemas":{"AdminLoginIn":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["username","password"],"title":"AdminLoginIn"},"AdminParentPatch":{"properties":{"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_reviewer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Reviewer"}},"type":"object","title":"AdminParentPatch"},"AdminPatch":{"properties":{"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"password":{"anyOf":[{"type":"string","maxLength":128,"minLength":8},{"type":"null"}],"title":"Password"}},"type":"object","title":"AdminPatch"},"AdminSetupIn":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"username":{"type":"string","pattern":"^[A-Za-z0-9_.@+-]{3,40}$","title":"Username"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"}},"type":"object","required":["name","username","password"],"title":"AdminSetupIn"},"AnnounceIn":{"properties":{"title":{"type":"string","maxLength":120,"minLength":2,"title":"Title"},"body":{"type":"string","maxLength":500,"minLength":2,"title":"Body"},"audience":{"type":"string","enum":["all","parent"],"title":"Audience","default":"all"},"parent":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Parent"}},"type":"object","required":["title","body"],"title":"AnnounceIn","description":"A notification the admin sends to parents (push to their phones + their in-app list)."},"AskFeedbackIn":{"properties":{"understood":{"type":"boolean","title":"Understood"}},"type":"object","required":["understood"],"title":"AskFeedbackIn"},"AskIn":{"properties":{"step":{"type":"integer","title":"Step"},"beat":{"type":"integer","title":"Beat","default":0},"audio_b64":{"anyOf":[{"type":"string","maxLength":3000000},{"type":"null"}],"title":"Audio B64"},"text":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Text"}},"type":"object","required":["step"],"title":"AskIn","description":"«اسأل المدرس»: the question asked during the teach step `step`, while beat `beat` was on. Voice or typed."},"ChatIn":{"properties":{"step":{"type":"integer","maximum":50.0,"minimum":0.0,"title":"Step"},"history":{"items":{"$ref":"#/components/schemas/ChatTurn"},"type":"array","maxItems":20,"title":"History"},"audio_b64":{"anyOf":[{"type":"string","maxLength":3000000},{"type":"null"}],"title":"Audio B64"},"text":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Text"}},"type":"object","required":["step"],"title":"ChatIn"},"ChatTurn":{"properties":{"role":{"type":"string","enum":["teacher","child"],"title":"Role"},"text":{"type":"string","maxLength":500,"title":"Text"}},"type":"object","required":["role","text"],"title":"ChatTurn"},"ChildIn":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"birth_year":{"anyOf":[{"type":"integer","maximum":2030.0,"minimum":2010.0},{"type":"null"}],"title":"Birth Year"},"grade":{"type":"string","enum":["KG1","KG2","G1","G2","G3","G4","G5","G6","G7","G8","G9","G10","G11","G12"],"title":"Grade","default":"KG1"},"dialect":{"type":"string","enum":["eg","sy","gulf"],"title":"Dialect","default":"eg"},"avatar":{"type":"string","maxLength":20,"title":"Avatar","default":"boy"},"teacher_gender":{"type":"string","enum":["f","m"],"title":"Teacher Gender","default":"f"},"teacher_name":{"type":"string","maxLength":40,"minLength":1,"title":"Teacher Name","default":"لولو"},"teacher_persona":{"type":"string","enum":["calm","fun","strict"],"title":"Teacher Persona","default":"fun"},"daily_minutes":{"type":"integer","maximum":180.0,"minimum":5.0,"title":"Daily Minutes","default":30},"allowed_subjects":{"items":{"type":"string","enum":["english","arabic","math","stories","science","social","technology","french","russian","turkish"]},"type":"array","title":"Allowed Subjects","default":["english","arabic","math","stories","science","social","technology","french","russian","turkish"]}},"type":"object","required":["name"],"title":"ChildIn"},"ChildOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"birth_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birth Year"},"grade":{"type":"string","title":"Grade"},"dialect":{"type":"string","title":"Dialect"},"avatar":{"type":"string","title":"Avatar"},"teacher_gender":{"type":"string","title":"Teacher Gender"},"teacher_name":{"type":"string","title":"Teacher Name"},"teacher_persona":{"type":"string","title":"Teacher Persona"},"daily_minutes":{"type":"integer","title":"Daily Minutes"},"allowed_subjects":{"items":{"type":"string"},"type":"array","title":"Allowed Subjects"}},"type":"object","required":["id","name","birth_year","grade","dialect","avatar","teacher_gender","teacher_name","teacher_persona","daily_minutes","allowed_subjects"],"title":"ChildOut"},"ChildPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"birth_year":{"anyOf":[{"type":"integer","maximum":2030.0,"minimum":2010.0},{"type":"null"}],"title":"Birth Year"},"grade":{"anyOf":[{"type":"string","enum":["KG1","KG2","G1","G2","G3","G4","G5","G6","G7","G8","G9","G10","G11","G12"]},{"type":"null"}],"title":"Grade"},"dialect":{"anyOf":[{"type":"string","enum":["eg","sy","gulf"]},{"type":"null"}],"title":"Dialect"},"avatar":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Avatar"},"teacher_gender":{"anyOf":[{"type":"string","enum":["f","m"]},{"type":"null"}],"title":"Teacher Gender"},"teacher_name":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Teacher Name"},"teacher_persona":{"anyOf":[{"type":"string","enum":["calm","fun","strict"]},{"type":"null"}],"title":"Teacher Persona"},"daily_minutes":{"anyOf":[{"type":"integer","maximum":180.0,"minimum":5.0},{"type":"null"}],"title":"Daily Minutes"},"allowed_subjects":{"anyOf":[{"items":{"type":"string","enum":["english","arabic","math","stories","science","social","technology","french","russian","turkish"]},"type":"array"},{"type":"null"}],"title":"Allowed Subjects"}},"type":"object","title":"ChildPatch"},"CoursePublishIn":{"properties":{"published":{"type":"boolean","title":"Published"}},"type":"object","required":["published"],"title":"CoursePublishIn"},"CreditIn":{"properties":{"amount":{"type":"integer","maximum":100000.0,"minimum":-100000.0,"title":"Amount"},"note":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Note"}},"type":"object","required":["amount"],"title":"CreditIn"},"DeviceIn":{"properties":{"token":{"type":"string","maxLength":512,"minLength":10,"title":"Token"},"platform":{"type":"string","pattern":"^(android|ios|web)$","title":"Platform","default":"android"}},"type":"object","required":["token"],"title":"DeviceIn"},"EventIn":{"properties":{"t":{"type":"string","maxLength":40,"minLength":1,"title":"T"},"data":{"type":"object","title":"Data"}},"type":"object","required":["t"],"title":"EventIn"},"EventsIn":{"properties":{"events":{"items":{"$ref":"#/components/schemas/EventIn"},"type":"array","maxItems":200,"title":"Events"}},"type":"object","required":["events"],"title":"EventsIn"},"FinishIn":{"properties":{"answers":{"items":{"anyOf":[{"type":"integer"},{"type":"null"}]},"type":"array","maxItems":20,"title":"Answers"}},"type":"object","required":["answers"],"title":"FinishIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LiveStartIn":{"properties":{"lesson_id":{"type":"integer","title":"Lesson Id"},"attempt_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attempt Id"},"can_speak":{"type":"boolean","title":"Can Speak","default":true}},"type":"object","required":["lesson_id"],"title":"LiveStartIn"},"LiveTurnIn":{"properties":{"kind":{"type":"string","pattern":"^(speak|choose|say|next|interrupt)$","title":"Kind"},"audio_b64":{"anyOf":[{"type":"string","maxLength":3000000},{"type":"null"}],"title":"Audio B64"},"text":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Text"},"option":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Option"},"right":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Right"},"target":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Target"},"cut":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Cut"}},"type":"object","required":["kind"],"title":"LiveTurnIn","description":"What the student did. kind: speak (voice or typed answer), choose (tapped an option), say (repeated a word),\nnext (the teacher goes on), interrupt (cut in by voice while the teacher was talking)."},"LoginIn":{"properties":{"login":{"type":"string","maxLength":255,"minLength":3,"title":"Login"},"password":{"type":"string","title":"Password"}},"type":"object","required":["login","password"],"title":"LoginIn"},"ParentOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"ai_data_consent":{"type":"boolean","title":"Ai Data Consent","default":false},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"has_pin":{"type":"boolean","title":"Has Pin","default":false},"balance":{"type":"integer","title":"Balance","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","username","email","phone","country","created_at"],"title":"ParentOut"},"ParentPatch":{"properties":{"ai_data_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Data Consent"},"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":2},{"type":"null"}],"title":"Name"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country"}},"type":"object","title":"ParentPatch"},"PasswordIn":{"properties":{"password":{"type":"string","maxLength":128,"minLength":6,"title":"Password"}},"type":"object","required":["password"],"title":"PasswordIn"},"PinIn":{"properties":{"pin":{"type":"string","pattern":"^\\d{4}$","title":"Pin"}},"type":"object","required":["pin"],"title":"PinIn"},"RegisterIn":{"properties":{"ai_data_consent":{"type":"boolean","title":"Ai Data Consent","default":false},"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"username":{"type":"string","pattern":"^[A-Za-z0-9_.@+-]{3,40}$","title":"Username"},"password":{"type":"string","maxLength":128,"minLength":6,"title":"Password"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country"}},"type":"object","required":["name","username","password"],"title":"RegisterIn"},"TalkStartIn":{"properties":{"unit_id":{"type":"integer","title":"Unit Id"}},"type":"object","required":["unit_id"],"title":"TalkStartIn"},"TalkTurnIn":{"properties":{"audio_b64":{"anyOf":[{"type":"string","maxLength":3000000},{"type":"null"}],"title":"Audio B64"},"text":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Text"}},"type":"object","title":"TalkTurnIn","description":"The student's turn: 16 kHz mono WAV (base64), or typed text."},"TokenOut":{"properties":{"token":{"type":"string","title":"Token"},"kind":{"type":"string","enum":["parent","child","admin"],"title":"Kind"}},"type":"object","required":["token","kind"],"title":"TokenOut"},"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"},"VoiceReviewIn":{"properties":{"status":{"type":"string","enum":["ok","bad","new"],"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Note"}},"type":"object","required":["status"],"title":"VoiceReviewIn"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}