{"openapi":"3.1.0","info":{"title":"Authentication Server","version":"0.1.0"},"paths":{"/register/tutor":{"post":{"summary":"Register Tutor","description":"Register a Tutor (adult) account. Requires:\n  - self-declared adulthood (#1796); a DOB, if an older build sends one, must be >= 18\n  - Completed phone OTP verification (verification_token from /auth/phone/verify-otp)\n\nTODO(#58): send confirmation email and set email_verified=False until the link is clicked.\nTODO(#56): log tutor_registered(user_id) after successful insert.","operationId":"register_tutor_register_tutor_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TutorRegister"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/login":{"post":{"summary":"Login","operationId":"login_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/refresh":{"post":{"summary":"Refresh Access Token","operationId":"refresh_access_token_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verify":{"post":{"summary":"Verify Token","operationId":"verify_token_verify_post","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"post":{"summary":"Logout","operationId":"logout_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequest"}}},"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":[]}]}},"/me":{"get":{"summary":"Get Current User Info","operationId":"get_current_user_info_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"summary":"Delete Account","operationId":"delete_account_me_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDelete"}}},"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":[]}]}},"/me/password":{"put":{"summary":"Change Password","description":"Change password and evict every *other* session via the #543 epoch.\nReturns a fresh token pair for the calling device so it stays logged in.","operationId":"change_password_me_password_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/me/rebind-device":{"post":{"summary":"Rebind Device","description":"Re-issue this session's tokens under a different `device_id` (#1221).\n\n## Why this has to exist\n\n`device_id` is a JWT claim chosen by the client and fixed at issuance —\n`/refresh` deliberately carries it forward from the chain rather than\nre-reading it, so a session can never quietly change install. That is right,\nand it is also why a client cannot correct the claim on its own.\n\nSince #1221 the id is derived from the handset **and the account**, and at\n`/login` the client does not yet know which account it is about to become:\nit has a username, or only a reset token. So it presents the handset seed,\nlearns its user id from `/me`, and calls this to bind the session to the id\nit will actually publish keys under.\n\n## Why it does not bump the session epoch\n\n`PUT /me/password` and `POST /me/logout-others` re-issue tokens too, but\nboth do it *because* they just evicted every session. This one must not:\nthe caller is correcting its own claim, and the user's other devices have\ndone nothing. Bumping here would sign out the family's whole fleet on the\nfirst launch after upgrade.\n\n## Authority\n\nNone that the caller did not already have. A client picks its own\n`device_id` at `/login`; this lets it pick again for the session it already\nholds, and only for that session. Deliberately does not touch\n`refresh_tokens` rows for other devices.","operationId":"rebind_device_me_rebind_device_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RebindDeviceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/me/logout-others":{"post":{"summary":"Logout Other Sessions","description":"User-facing 'sign out all other devices' (#543 epoch, no password needed —\nthe valid session IS the proof). Bumps the session epoch — evicting every\nexisting token (incl. this device's current one) and dropping all live WS\nconnections — then re-issues ONLY the calling device's pair so it stays\nlogged in. Every other device is forced back to login.","operationId":"logout_other_sessions_me_logout_others_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeOtherSessionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/me/graduate":{"post":{"summary":"Graduate Account","description":"A Protected user who has turned 18 converts their own account into a\nfull adult one. Kid-initiated and one-way: there is no tutor-initiated\npath (releasing a child *before* 18 is what\n`user_permissions.contact_approval_required` is for) and no reversal\nendpoint — undoing this is admin-only manual SQL.\n\nEverything below happens in one transaction, because the halfway states\nare all bad: an adult still carrying group restrictions has nobody left to\nlift them, and a still-Protected account whose tutor links were revoked has\nnobody to approve anything.","operationId":"graduate_account_me_graduate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraduateRequest"}}},"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":[]}]}},"/admin/users/{user_id}/suspend":{"post":{"summary":"Admin Suspend User","description":"Suspend by UUID. Auth: X-Admin-Token or admin JWT.","operationId":"admin_suspend_user_admin_users__user_id__suspend_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/suspend":{"post":{"summary":"Admin Suspend By Ident","description":"Suspend by username (or user_id) — the ops-friendly form: one curl from\nanywhere, no UUID lookup needed. Auth: X-Admin-Token or admin JWT.","operationId":"admin_suspend_by_ident_admin_suspend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSuspendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password/reset":{"post":{"summary":"Reset Password","description":"Issue #281: complete the forgot-password flow. Caller has already proven\nphone ownership via OTP and holds a reset_token. Update password, drop all\nexisting refresh tokens (logging the user out everywhere else), then auto-\nlogin by issuing fresh tokens.","operationId":"reset_password_auth_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/waitlist":{"post":{"summary":"Join Waitlist","description":"Public pre-launch email capture from the coming-soon page (#634).\nIdempotent: a repeat email is a silent 200 (unique constraint → no\nenumeration). Honeypot + per-IP rate limit guard against bots. Served\nsame-origin at maiora.chat/waitlist via Caddy → no CORS needed.","operationId":"join_waitlist_waitlist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pageview":{"post":{"summary":"Track Pageview","description":"Cookieless, privacy-preserving visit counter (#634). Records one hit and a\nsalted, non-reversible hash of the caller IP into a Redis HyperLogLog, so we\ncan estimate UNIQUE visitors without storing any IP or per-visitor row.\nFired as a fire-and-forget beacon on page load; failures are invisible.","operationId":"track_pageview_pageview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/waitlist/stats":{"get":{"summary":"Waitlist Stats","description":"Admin: coming-soon visits → waitlist conversion (#634). Auth: X-Admin-Token or admin JWT.","operationId":"waitlist_stats_admin_waitlist_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/phone/send-otp":{"post":{"summary":"Send Otp","description":"Send a 6-digit OTP to the given phone number.\nRate-limited: 3 sends per 10 minutes per phone, plus a per-IP cap (#55).\nThe OTP must be verified via /auth/phone/verify-otp before registering as tutor.\n\nTODO(#56): emit structured audit log on OTP send and lockout events.","operationId":"send_otp_auth_phone_send_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOTPRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/phone/verify-otp":{"post":{"summary":"Verify Otp","description":"Validate the OTP. On success, returns a verification_token that must be passed\nto POST /register/tutor. The token expires in 15 minutes.\n\nTODO(#56): emit structured audit log on verify success, failure, and lockout.","operationId":"verify_otp_auth_phone_verify_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOTPRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tutor/children":{"get":{"summary":"List Children","description":"Return the Protected accounts linked to the authenticated Tutor.","operationId":"list_children_tutor_children_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Child Profile","description":"Tutor creates a Protected child account. Account is immediately active and linked to the tutor.","operationId":"create_child_profile_tutor_children_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChildRequest"}}},"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":[]}]}},"/tutor/children/{child_id}/password":{"put":{"summary":"Tutor Reset Child Password","description":"Issue #281: tutor resets a child's password from the dashboard.\nCaller must be a tutor with an active relationship to the child. Drops the\nchild's refresh tokens so they're forced to log in again with the new pwd.","operationId":"tutor_reset_child_password_tutor_children__child_id__password_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TutorResetChildPasswordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tutor/children/{child_id}/device-grant":{"post":{"summary":"Grant Child Device","description":"Issue #657: a tutor authorizes putting one of their Protected children onto\nthe device they are signed in on (multi-account switch provisioning).\n\nThis is the enforcement point for the kid-device-provisioning invariant: a\nchild session is minted only when an *active tutor of that specific child*\nasks for it (admin bypasses the relationship check). No standalone child\ncredential is involved — the tutor's authenticated session is the\nauthorization, so a child can never be established on a non-tutor adult's or\na sibling's device.","operationId":"grant_child_device_tutor_children__child_id__device_grant_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChildDeviceGrantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGrantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/identity/start":{"post":{"summary":"Identity Start","description":"Start a Stripe Identity verification session.\nReturns a client_secret for the Stripe Identity SDK.\n(Stub — wire up Stripe SDK and set STRIPE_SECRET_KEY env var in production.)","operationId":"identity_start_auth_identity_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/identity/webhook":{"post":{"summary":"Identity Webhook","description":"Stripe webhook: identity.verification_session.verified\nSets identity_verified=True and stores the session ID on the user.\n(Stub — validate Stripe-Signature header in production.)","operationId":"identity_webhook_auth_identity_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/identity/status":{"get":{"summary":"Identity Status","operationId":"identity_status_auth_identity_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/me/invite-code":{"get":{"summary":"Get My Invite Code","description":"Return the caller's ONE durable, reusable referral code (#709),\nlazy-generating it on first request. Anyone who registers with this code\nis auto-connected to the caller and counts toward `invites_redeemed`.\nThe code never expires and is not single-use — one link, many friends.","operationId":"get_my_invite_code_me_invite_code_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/me/invite-code/rotate":{"post":{"summary":"Rotate My Invite Code","description":"Replace the caller's referral code (#884); the previous one stops\nresolving immediately.\n\nA #709 code is durable, reusable and never expires, which makes a leak\npermanent: one screenshot in a group chat and anyone who ever sees it can\nregister and be inserted as an *accepted* contact of the caller, forever.\nThat set — the caller's accepted contacts — is also what the tutor-vouched\nconnect (#885) trusts when it lets a tutor add contacts to a child's account\nwithout an approval hop. So rotation is not hygiene, it is the containment\nmechanism standing behind that guard: the way a tutor closes a door they\nleft open.\n\nAlready-redeemed connections and `invited_by` attribution are untouched —\nrotating revokes future redemptions, it does not retroactively unfriend\nanyone.","operationId":"rotate_my_invite_code_me_invite_code_rotate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/username-available":{"get":{"summary":"Username Available","description":"Live username-availability check for signup (public — used before a token\nexists). Returns {available} and, when taken, a free {suggestion} so the\nclient's auto-derived handle can always land on an open one. Best-effort: the\nfinal guard is still the UNIQUE constraint at registration (the tiny window\nbetween check and submit can't be closed here).","operationId":"username_available_auth_username_available_get","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/invite-code-valid":{"get":{"summary":"Invite Code Valid","description":"Pre-flight referral-code check for signup (public). Lets the client reject\na bad code BEFORE spending an SMS OTP + running registration — the code is\notherwise only validated at /register/tutor. Read-only; does NOT redeem.\nDurable codes (#709) have no used/expired states, so `reason` is only\n'invalid'. A blank code is 'valid' (no code = no referral, which is allowed\n— the code is optional).","operationId":"invite_code_valid_auth_invite_code_valid_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AccountDelete":{"properties":{"password":{"type":"string","title":"Password"}},"type":"object","required":["password"],"title":"AccountDelete"},"AdminSuspendRequest":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},"type":"object","title":"AdminSuspendRequest"},"ChildDeviceGrantRequest":{"properties":{"device_id":{"type":"string","title":"Device Id"}},"type":"object","required":["device_id"],"title":"ChildDeviceGrantRequest"},"CreateChildRequest":{"properties":{"username":{"type":"string","title":"Username"},"display_name":{"type":"string","title":"Display Name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"contact_approval_required":{"type":"boolean","title":"Contact Approval Required","default":true},"date_of_birth":{"type":"string","format":"date","title":"Date Of Birth"},"sibling_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sibling Ids"}},"type":"object","required":["username","display_name","date_of_birth"],"title":"CreateChildRequest","description":"Tutor-initiated (Flow B): tutor creates a child profile."},"DeviceGrantResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"},"child_id":{"type":"string","title":"Child Id"},"username":{"type":"string","title":"Username"},"display_name":{"type":"string","title":"Display Name"},"account_type":{"type":"string","title":"Account Type","default":"protected"}},"type":"object","required":["access_token","refresh_token","expires_in","child_id","username","display_name"],"title":"DeviceGrantResponse"},"GraduateRequest":{"properties":{"verification_token":{"type":"string","title":"Verification Token"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["verification_token","new_password"],"title":"GraduateRequest","description":"Both fields are mandatory. The phone is the adult identity + recovery\nanchor (#561) and is re-verified even when a number already sits on the\nrow — that proves possession instead of inheriting a tutor-typed number.\nThe password is set here because a child provisioned by device-grant may\nnever have typed one (#657)."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PageviewRequest":{"properties":{"page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"}},"type":"object","title":"PageviewRequest"},"PasswordChange":{"properties":{"old_password":{"type":"string","title":"Old Password"},"new_password":{"type":"string","title":"New Password"},"device_id":{"type":"string","title":"Device Id","default":"_legacy_"}},"type":"object","required":["old_password","new_password"],"title":"PasswordChange"},"PasswordResetRequest":{"properties":{"reset_token":{"type":"string","title":"Reset Token"},"new_password":{"type":"string","title":"New Password"},"device_id":{"type":"string","title":"Device Id","default":"_legacy_"},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"}},"type":"object","required":["reset_token","new_password"],"title":"PasswordResetRequest"},"RebindDeviceRequest":{"properties":{"device_id":{"type":"string","title":"Device Id"}},"type":"object","required":["device_id"],"title":"RebindDeviceRequest","description":"The `device_id` this session should carry from now on (#1221)."},"RefreshTokenRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshTokenRequest"},"RevokeOtherSessionsRequest":{"properties":{"device_id":{"type":"string","title":"Device Id","default":"_legacy_"}},"type":"object","title":"RevokeOtherSessionsRequest"},"SendOTPRequest":{"properties":{"phone":{"type":"string","title":"Phone"},"purpose":{"type":"string","title":"Purpose","default":"register"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},"type":"object","required":["phone"],"title":"SendOTPRequest"},"Token":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["access_token","refresh_token","expires_in"],"title":"Token"},"TutorRegister":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"password":{"type":"string","title":"Password"},"username":{"type":"string","title":"Username"},"display_name":{"type":"string","title":"Display Name"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Of Birth"},"phone":{"type":"string","title":"Phone"},"verification_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Token"},"invite_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite Code"},"device_id":{"type":"string","title":"Device Id","default":"_legacy_"},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"}},"type":"object","required":["password","username","display_name","phone"],"title":"TutorRegister"},"TutorResetChildPasswordRequest":{"properties":{"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["new_password"],"title":"TutorResetChildPasswordRequest"},"UserLogin":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"type":"string","title":"Password"},"device_id":{"type":"string","title":"Device Id","default":"_legacy_"},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"}},"type":"object","required":["password"],"title":"UserLogin"},"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"},"VerifyOTPRequest":{"properties":{"phone":{"type":"string","title":"Phone"},"otp":{"type":"string","title":"Otp"},"purpose":{"type":"string","title":"Purpose","default":"register"}},"type":"object","required":["phone","otp"],"title":"VerifyOTPRequest"},"WaitlistRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"interest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interest"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"type":"object","required":["email"],"title":"WaitlistRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}