{"openapi":"3.1.0","info":{"title":"Cardinal Square","version":"0.1.0"},"paths":{"/api/auth/me":{"get":{"summary":"Me","operationId":"me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/welcome":{"get":{"summary":"Get Student Welcome","operationId":"get_student_welcome_api_student_welcome_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/welcome/{subject}":{"put":{"summary":"Mark Student Welcome","operationId":"mark_student_welcome_api_student_welcome__subject__put","parameters":[{"name":"subject","in":"path","required":true,"schema":{"enum":["math","english"],"type":"string","title":"Subject"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/register":{"post":{"summary":"Register","operationId":"register_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Register"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Login"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/settings":{"get":{"summary":"Get Settings","operationId":"get_settings_api_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Patch Settings","operationId":"patch_settings_api_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/students":{"get":{"summary":"List Students","operationId":"list_students_api_parent_students_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Student","operationId":"create_student_api_parent_students_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/students/{student_id}":{"patch":{"summary":"Patch Student","operationId":"patch_student_api_parent_students__student_id__patch","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/email-verification":{"get":{"summary":"Email Verification Info","operationId":"email_verification_info_api_auth_email_verification_get","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"}}}}}}},"/api/auth/email-verification/request":{"post":{"summary":"Request Email Verification","operationId":"request_email_verification_api_auth_email_verification_request_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/email-verification/complete":{"post":{"summary":"Complete Email Verification","operationId":"complete_email_verification_api_auth_email_verification_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/student-links":{"get":{"summary":"List Student Requests","operationId":"list_student_requests_api_parent_student_links_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Student Link","operationId":"create_student_link_api_parent_student_links_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentLinkCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/parent-link":{"get":{"summary":"Parent Link Info","operationId":"parent_link_info_api_student_parent_link_get","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"}}}}}},"post":{"summary":"Accept Parent Link","operationId":"accept_parent_link_api_student_parent_link_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkToken"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Remove Parent Link","operationId":"remove_parent_link_api_student_parent_link_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/parent-link/decline":{"post":{"summary":"Decline Parent Link","operationId":"decline_parent_link_api_student_parent_link_decline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/enroll/verify":{"post":{"summary":"Retired Student Signup","operationId":"retired_student_signup_api_auth_enroll_verify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/enroll":{"get":{"summary":"Retired Student Signup","operationId":"retired_student_signup_api_auth_enroll_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Retired Student Signup","operationId":"retired_student_signup_api_auth_enroll_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/student-register":{"post":{"summary":"Retired Student Signup","operationId":"retired_student_signup_api_auth_student_register_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/parent/student-invitations":{"post":{"summary":"Invite Student","operationId":"invite_student_api_parent_student_invitations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/invite":{"get":{"summary":"Invite Info","operationId":"invite_info_api_auth_invite_get","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"}}}}}}},"/api/auth/invite/accept":{"post":{"summary":"Invite Accept","operationId":"invite_accept_api_auth_invite_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteAccept"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/password-reset/request":{"post":{"summary":"Password Reset Request","operationId":"password_reset_request_api_auth_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/password-reset/complete":{"post":{"summary":"Password Reset Complete","operationId":"password_reset_complete_api_auth_password_reset_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetComplete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/dashboard":{"get":{"summary":"Dashboard","operationId":"dashboard_api_student_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/courses":{"get":{"summary":"Courses","operationId":"courses_api_courses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/course":{"patch":{"summary":"Select Course","operationId":"select_course_api_student_course_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseSelection"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/practice-blend":{"get":{"summary":"Practice Blend","operationId":"practice_blend_api_student_practice_blend_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Update Practice Blend","operationId":"update_practice_blend_api_student_practice_blend_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PracticeBlendInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/start":{"post":{"summary":"Start","operationId":"start_api_practice_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/practice/{session_id}":{"get":{"summary":"Session View","operationId":"session_view_api_practice__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/report":{"post":{"summary":"Report Question","operationId":"report_question_api_practice__session_id__report_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionReportInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/attempts/{attempt_id}/acknowledge":{"post":{"summary":"Acknowledge Attempt","operationId":"acknowledge_attempt_api_practice__session_id__attempts__attempt_id__acknowledge_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","title":"Attempt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/attempts/{attempt_id}/retry":{"post":{"summary":"Retry Attempt","operationId":"retry_attempt_api_practice__session_id__attempts__attempt_id__retry_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","title":"Attempt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/answer":{"post":{"summary":"Answer","operationId":"answer_api_practice__session_id__answer_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/attempts/{attempt_id}/explain":{"post":{"summary":"Explain Attempt","operationId":"explain_attempt_api_practice__session_id__attempts__attempt_id__explain_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","title":"Attempt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplanationInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/attempts/{attempt_id}/chat":{"post":{"summary":"Chat About Attempt","operationId":"chat_about_attempt_api_practice__session_id__attempts__attempt_id__chat_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","title":"Attempt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/tutor":{"post":{"summary":"Tutor","operationId":"tutor_api_practice__session_id__tutor_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/continue":{"post":{"summary":"Continue Practice","operationId":"continue_practice_api_practice__session_id__continue_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/tutor/stream":{"post":{"summary":"Tutor Stream","operationId":"tutor_stream_api_practice__session_id__tutor_stream_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/practice/{session_id}/attempts/{attempt_id}/chat/stream":{"post":{"summary":"Attempt Chat Stream","operationId":"attempt_chat_stream_api_practice__session_id__attempts__attempt_id__chat_stream_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","title":"Attempt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/work":{"get":{"summary":"Work","operationId":"work_api_student_work_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/work/{session_id}":{"get":{"summary":"Work Detail","operationId":"work_detail_api_student_work__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/lessons":{"get":{"summary":"Lesson List","operationId":"lesson_list_api_student_lessons_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/lessons/{lesson_id}":{"get":{"summary":"Lesson Detail","operationId":"lesson_detail_api_student_lessons__lesson_id__get","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}},{"name":"visit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/lessons/{lesson_id}/open":{"post":{"summary":"Lesson Open","operationId":"lesson_open_api_student_lessons__lesson_id__open_post","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/lessons/{lesson_id}/chat":{"post":{"summary":"Lesson Chat","operationId":"lesson_chat_api_student_lessons__lesson_id__chat_post","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/lessons/{lesson_id}/chat/stream":{"post":{"summary":"Lesson Chat Stream","operationId":"lesson_chat_stream_api_student_lessons__lesson_id__chat_stream_post","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/activity":{"post":{"summary":"Record Activity","operationId":"record_activity_api_student_activity_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityInterval"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/billing":{"get":{"summary":"Get Billing","operationId":"get_billing_api_parent_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/parent/billing/refresh":{"post":{"summary":"Refresh Billing","operationId":"refresh_billing_api_parent_billing_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/parent/billing/checkout":{"post":{"summary":"Checkout","operationId":"checkout_api_parent_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSelection"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/billing/confirm":{"post":{"summary":"Confirm Checkout","operationId":"confirm_checkout_api_parent_billing_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutConfirmation"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/billing/subscriptions/{subscription_id}/assign":{"post":{"summary":"Assign Subscription","operationId":"assign_subscription_api_parent_billing_subscriptions__subscription_id__assign_post","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentSelection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/billing/portal":{"post":{"summary":"Portal","operationId":"portal_api_parent_billing_portal_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StudentSelection"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/billing":{"get":{"summary":"Get Student Billing","operationId":"get_student_billing_api_student_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/billing/refresh":{"post":{"summary":"Refresh Student Billing","operationId":"refresh_student_billing_api_student_billing_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/billing/checkout":{"post":{"summary":"Student Checkout","operationId":"student_checkout_api_student_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/billing/confirm":{"post":{"summary":"Confirm Student Checkout","operationId":"confirm_student_checkout_api_student_billing_confirm_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/billing/portal":{"post":{"summary":"Student Portal","operationId":"student_portal_api_student_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/studio-webhook":{"post":{"summary":"Webhook","operationId":"webhook_api_billing_studio_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/webhook":{"post":{"summary":"Webhook","operationId":"webhook_api_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/home":{"get":{"summary":"Student Home","operationId":"student_home_api_student_home_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/progress":{"get":{"summary":"Student Progress","operationId":"student_progress_api_student_progress_get","parameters":[{"name":"history_days","in":"query","required":false,"schema":{"enum":["7","30","90","all"],"type":"string","default":"30","title":"History Days"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"enum":["math","english"],"type":"string"},{"type":"null"}],"title":"Subject"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/reports/{student_id}":{"get":{"summary":"Student Report","operationId":"student_report_api_parent_reports__student_id__get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}},{"name":"history_days","in":"query","required":false,"schema":{"enum":["7","30","90","all"],"type":"string","default":"30","title":"History Days"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"enum":["math","english"],"type":"string"},{"type":"null"}],"title":"Subject"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics":{"get":{"summary":"Analytics","operationId":"analytics_api_admin_analytics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/students/{student_id}":{"get":{"summary":"Student Detail","operationId":"student_detail_api_admin_students__student_id__get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/students/{student_id}/history":{"get":{"summary":"History","operationId":"history_api_admin_students__student_id__history_get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"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"}}}}}}},"/api/admin/students/{student_id}/history/{kind}/{identity}":{"get":{"summary":"History Detail","operationId":"history_detail_api_admin_students__student_id__history__kind___identity__get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["math","english","writing","lesson","english_lesson"],"type":"string","title":"Kind"}},{"name":"identity","in":"path","required":true,"schema":{"type":"string","title":"Identity"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/students/{student_id}/questions":{"get":{"summary":"Student Questions","operationId":"student_questions_api_admin_students__student_id__questions_get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/students/{student_id}/activity":{"get":{"summary":"Student Activity","operationId":"student_activity_api_admin_students__student_id__activity_get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/students/{student_id}/audit":{"get":{"summary":"Audit History","description":"Return the student's audit events, newest first.","operationId":"audit_history_api_admin_students__student_id__audit_get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/students/{student_id}/original":{"get":{"summary":"Original View","description":"Return saved material without a new visit, answer, or model request.","operationId":"original_view_api_admin_students__student_id__original_get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}},{"name":"activity","in":"query","required":true,"schema":{"type":"string","maxLength":2000,"title":"Activity"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/students/{student_id}/progress":{"get":{"summary":"Student Progress","operationId":"student_progress_api_admin_students__student_id__progress_get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}},{"name":"history_days","in":"query","required":false,"schema":{"enum":["7","30","90","all"],"type":"string","default":"30","title":"History Days"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"enum":["math","english"],"type":"string"},{"type":"null"}],"title":"Subject"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/students/{student_id}/question-reports":{"get":{"summary":"Question Reports","operationId":"question_reports_api_admin_students__student_id__question_reports_get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/question-reports":{"get":{"summary":"All Question Reports","operationId":"all_question_reports_api_admin_question_reports_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/studio/summary":{"get":{"summary":"Student Summary","operationId":"student_summary_api_student_studio_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/studio/start":{"post":{"summary":"Start","operationId":"start_api_studio_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/studio/assessments/retry":{"post":{"summary":"Retry Assessments","operationId":"retry_assessments_api_studio_assessments_retry_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/studio/{session_id}":{"get":{"summary":"Get Session","operationId":"get_session_api_studio__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Save Session","operationId":"save_session_api_studio__session_id__put","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app_server__english__course__SaveInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/studio/{session_id}/open":{"post":{"summary":"Open Session","operationId":"open_session_api_studio__session_id__open_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/studio/{session_id}/activity":{"post":{"summary":"Record Activity","operationId":"record_activity_api_studio__session_id__activity_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/studio/{session_id}/review":{"post":{"summary":"Review","operationId":"review_api_studio__session_id__review_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/studio/{session_id}/coach/stream":{"post":{"summary":"Coach Stream","operationId":"coach_stream_api_studio__session_id__coach_stream_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app_server__english__course__CoachInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/studio/{session_id}/coach":{"post":{"summary":"Coach","operationId":"coach_api_studio__session_id__coach_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app_server__english__course__CoachInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/studio/{session_id}/finish-day":{"post":{"summary":"Finish Day","operationId":"finish_day_api_studio__session_id__finish_day_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/studio/{session_id}/complete":{"post":{"summary":"Complete","operationId":"complete_api_studio__session_id__complete_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/studio/work":{"get":{"summary":"Previous Work","operationId":"previous_work_api_student_studio_work_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/student/studio/lessons/{lesson_id}":{"get":{"summary":"Saved Lesson","operationId":"saved_lesson_api_student_studio_lessons__lesson_id__get","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/studio/lessons/{lesson_id}/activity":{"post":{"summary":"Record Lesson Activity","operationId":"record_lesson_activity_api_student_studio_lessons__lesson_id__activity_post","parameters":[{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Interval"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-weeks":{"get":{"summary":"Projects","operationId":"projects_api_student_writing_weeks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create","operationId":"create_api_student_writing_weeks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-weeks/{project_id}":{"get":{"summary":"Project","operationId":"project_api_student_writing_weeks__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Save","operationId":"save_api_student_writing_weeks__project_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app_server__english__projects__SaveInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-weeks/{project_id}/advance":{"post":{"summary":"Advance","operationId":"advance_api_student_writing_weeks__project_id__advance_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-weeks/{project_id}/coach":{"post":{"summary":"Coach","operationId":"coach_api_student_writing_weeks__project_id__coach_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app_server__english__projects__CoachInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/students/{student_id}/writing-weeks":{"get":{"summary":"Parent Projects","operationId":"parent_projects_api_parent_students__student_id__writing_weeks_get","parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-week-choice/step":{"put":{"summary":"Set Choice Step","operationId":"set_choice_step_api_student_writing_week_choice_step_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonStepInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-week-choice/concept":{"put":{"summary":"Discuss Choice Concept","operationId":"discuss_choice_concept_api_student_writing_week_choice_concept_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoiceInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-week-choice/complete":{"post":{"summary":"Complete Choice Lesson","operationId":"complete_choice_lesson_api_student_writing_week_choice_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonCompleteInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-week-choice":{"put":{"summary":"Save Choice","operationId":"save_choice_api_student_writing_week_choice_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoiceInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-weeks/{project_id}/studio":{"post":{"summary":"Start Studio","operationId":"start_studio_api_student_writing_weeks__project_id__studio_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/student/writing-week-choice/{cycle}/{genre_id}/activity":{"post":{"summary":"Record Choice Activity","operationId":"record_choice_activity_api_student_writing_week_choice__cycle___genre_id__activity_post","parameters":[{"name":"cycle","in":"path","required":true,"schema":{"type":"integer","title":"Cycle"}},{"name":"genre_id","in":"path","required":true,"schema":{"type":"string","title":"Genre Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Interval"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{path}":{"get":{"summary":"Web App","operationId":"web_app__path__get","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActivityInput":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"type":"string","maxLength":128,"minLength":1,"title":"Session Id"},"mode":{"type":"string","const":"practice","title":"Mode"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"}},"additionalProperties":false,"type":"object","required":["id","session_id","mode","started_at","ended_at"],"title":"ActivityInput"},"ActivityInterval":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"type":"string","maxLength":128,"minLength":1,"title":"Session Id"},"mode":{"type":"string","title":"Mode"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"},"skill_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Skill Id"}},"additionalProperties":false,"type":"object","required":["id","session_id","mode","started_at","ended_at"],"title":"ActivityInterval"},"Annotation":{"properties":{"id":{"type":"string","maxLength":120,"minLength":1,"title":"Id"},"start":{"type":"integer","minimum":0.0,"title":"Start"},"end":{"type":"integer","exclusiveMinimum":0.0,"title":"End"},"quote":{"type":"string","maxLength":20000,"minLength":1,"title":"Quote"},"highlight":{"type":"boolean","title":"Highlight"},"underline":{"type":"boolean","title":"Underline"},"note":{"type":"string","maxLength":2000,"title":"Note"}},"additionalProperties":false,"type":"object","required":["id","start","end","quote","highlight","underline","note"],"title":"Annotation"},"AnswerInput":{"properties":{"question_id":{"type":"string","maxLength":100,"minLength":1,"title":"Question Id"},"answer":{"type":"string","maxLength":4096,"minLength":1,"title":"Answer"},"explanation":{"type":"string","maxLength":4000,"title":"Explanation","default":""},"elapsed_ms":{"type":"integer","maximum":86400000.0,"minimum":0.0,"title":"Elapsed Ms"}},"additionalProperties":false,"type":"object","required":["question_id","answer","elapsed_ms"],"title":"AnswerInput"},"ChatInput":{"properties":{"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"},"visit_id":{"type":"string","maxLength":100,"minLength":1,"title":"Visit Id"}},"additionalProperties":false,"type":"object","required":["message","visit_id"],"title":"ChatInput"},"CheckoutConfirmation":{"properties":{"session_id":{"type":"string","maxLength":255,"pattern":"^cs_[A-Za-z0-9_]+$","title":"Session Id"}},"additionalProperties":false,"type":"object","required":["session_id"],"title":"CheckoutConfirmation"},"CheckoutSelection":{"properties":{"student_id":{"type":"string","maxLength":255,"minLength":1,"title":"Student Id"},"subject":{"type":"string","enum":["english","math","reading-writing"],"title":"Subject"}},"type":"object","required":["student_id"],"title":"CheckoutSelection"},"ChoiceInput":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"},"retry":{"type":"boolean","title":"Retry","default":false},"genre_id":{"type":"string","maxLength":80,"minLength":1,"title":"Genre Id"},"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"}},"additionalProperties":false,"type":"object","required":["version","genre_id","message"],"title":"ChoiceInput"},"CourseSelection":{"properties":{"course_id":{"type":"string","maxLength":8192,"minLength":1,"title":"Course Id"}},"additionalProperties":false,"type":"object","required":["course_id"],"title":"CourseSelection"},"CreateInput":{"properties":{"genre_id":{"type":"string","maxLength":80,"minLength":1,"title":"Genre Id"},"topic":{"type":"string","maxLength":500,"minLength":1,"title":"Topic"}},"additionalProperties":false,"type":"object","required":["genre_id","topic"],"title":"CreateInput"},"Drafts":{"properties":{"plan":{"type":"string","maxLength":20000,"title":"Plan"},"draft":{"type":"string","maxLength":20000,"title":"Draft"}},"additionalProperties":false,"type":"object","required":["plan","draft"],"title":"Drafts"},"ExplanationInput":{"properties":{"explanation":{"type":"string","maxLength":4000,"minLength":1,"title":"Explanation"}},"additionalProperties":false,"type":"object","required":["explanation"],"title":"ExplanationInput"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Interval":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"type":"string","maxLength":128,"minLength":1,"title":"Session Id"},"mode":{"type":"string","const":"lesson","title":"Mode"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"}},"additionalProperties":false,"type":"object","required":["id","session_id","mode","started_at","ended_at"],"title":"Interval"},"InviteAccept":{"properties":{"token":{"type":"string","maxLength":256,"minLength":20,"title":"Token"},"username":{"type":"string","title":"Username"},"display_name":{"type":"string","title":"Display Name"},"password":{"type":"string","title":"Password"},"timezone":{"type":"string","title":"Timezone","default":"UTC"},"school_grade":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":0.0},{"type":"null"}],"title":"School Grade"},"course_id":{"type":"string","title":"Course Id"}},"additionalProperties":false,"type":"object","required":["token","username","display_name","password"],"title":"InviteAccept"},"LessonCompleteInput":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"},"genre_id":{"type":"string","maxLength":80,"minLength":1,"title":"Genre Id"}},"additionalProperties":false,"type":"object","required":["version","genre_id"],"title":"LessonCompleteInput"},"LessonStepInput":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"},"genre_id":{"type":"string","maxLength":80,"minLength":1,"title":"Genre Id"},"step":{"type":"string","enum":["concept","passage","questions"],"title":"Step"}},"additionalProperties":false,"type":"object","required":["version","genre_id","step"],"title":"LessonStepInput"},"LinkToken":{"properties":{"token":{"type":"string","maxLength":256,"minLength":20,"title":"Token"}},"additionalProperties":false,"type":"object","required":["token"],"title":"LinkToken"},"Login":{"properties":{"identifier":{"type":"string","maxLength":254,"minLength":1,"title":"Identifier"},"password":{"type":"string","maxLength":1024,"minLength":1,"title":"Password"}},"additionalProperties":false,"type":"object","required":["identifier","password"],"title":"Login"},"MessageInput":{"properties":{"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"}},"additionalProperties":false,"type":"object","required":["message"],"title":"MessageInput"},"PracticeBlendInput":{"properties":{"weights":{"additionalProperties":{"type":"integer"},"type":"object","title":"Weights"}},"additionalProperties":false,"type":"object","required":["weights"],"title":"PracticeBlendInput"},"QuestionReportInput":{"properties":{"question_id":{"type":"string","maxLength":100,"minLength":1,"title":"Question Id"},"attempt_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Attempt Id"},"category":{"type":"string","enum":["incorrect","malformed","other"],"title":"Category"},"message":{"type":"string","maxLength":2000,"title":"Message","default":""}},"additionalProperties":false,"type":"object","required":["question_id","category"],"title":"QuestionReportInput"},"Register":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"password":{"type":"string","title":"Password"},"display_name":{"type":"string","title":"Display Name"},"timezone":{"type":"string","title":"Timezone","default":"UTC"}},"additionalProperties":false,"type":"object","required":["email","password","display_name"],"title":"Register"},"ResetComplete":{"properties":{"token":{"type":"string","maxLength":256,"minLength":20,"title":"Token"},"password":{"type":"string","title":"Password"}},"additionalProperties":false,"type":"object","required":["token","password"],"title":"ResetComplete"},"ResetRequest":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"}},"additionalProperties":false,"type":"object","required":["email"],"title":"ResetRequest"},"RetryInput":{"properties":{"answer":{"type":"string","maxLength":4096,"minLength":1,"title":"Answer"}},"additionalProperties":false,"type":"object","required":["answer"],"title":"RetryInput"},"SettingsPatch":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"current_password":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Current Password"},"new_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Password"},"daily_quota":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Daily Quota"},"target_grade":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":3.0},{"type":"null"}],"title":"Target Grade"},"school_grade":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":0.0},{"type":"null"}],"title":"School Grade"},"confirm_grade_change":{"type":"boolean","title":"Confirm Grade Change","default":false}},"additionalProperties":false,"type":"object","title":"SettingsPatch"},"StudentCreate":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"display_name":{"type":"string","title":"Display Name"},"daily_quota":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Daily Quota","default":10},"target_grade":{"type":"integer","maximum":8.0,"minimum":3.0,"title":"Target Grade","default":6},"school_grade":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"School Grade"},"course_id":{"type":"string","title":"Course Id"}},"additionalProperties":false,"type":"object","required":["username","password","display_name","school_grade"],"title":"StudentCreate"},"StudentLinkCreate":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"identifier":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Identifier"}},"additionalProperties":false,"type":"object","title":"StudentLinkCreate"},"StudentPatch":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"new_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Password"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"daily_quota":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Daily Quota"},"target_grade":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":3.0},{"type":"null"}],"title":"Target Grade"},"school_grade":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":0.0},{"type":"null"}],"title":"School Grade"},"confirm_grade_change":{"type":"boolean","title":"Confirm Grade Change","default":false}},"additionalProperties":false,"type":"object","title":"StudentPatch"},"StudentSelection":{"properties":{"student_id":{"type":"string","maxLength":255,"minLength":1,"title":"Student Id"}},"type":"object","required":["student_id"],"title":"StudentSelection"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VersionInput":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"}},"additionalProperties":false,"type":"object","required":["version"],"title":"VersionInput"},"app_server__english__course__CoachInput":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"},"retry":{"type":"boolean","title":"Retry","default":false},"feedback_id":{"type":"string","maxLength":200,"minLength":1,"title":"Feedback Id"},"stage":{"type":"string","enum":["plan","draft","revise"],"title":"Stage"},"student_message":{"type":"string","maxLength":2000,"minLength":1,"title":"Student Message"},"quote":{"type":"string","maxLength":2000,"title":"Quote","default":""}},"additionalProperties":false,"type":"object","required":["version","feedback_id","stage","student_message"],"title":"CoachInput"},"app_server__english__course__SaveInput":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"},"drafts":{"$ref":"#/components/schemas/Drafts"},"tab":{"type":"string","enum":["task","plan","response"],"title":"Tab"},"annotations":{"items":{"$ref":"#/components/schemas/Annotation"},"type":"array","maxItems":1000,"title":"Annotations"},"documents":{"additionalProperties":true,"type":"object","title":"Documents"}},"additionalProperties":false,"type":"object","required":["version","drafts","tab"],"title":"SaveInput"},"app_server__english__projects__CoachInput":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"},"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"}},"additionalProperties":false,"type":"object","required":["version","message"],"title":"CoachInput"},"app_server__english__projects__SaveInput":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"},"notes":{"type":"string","maxLength":20000,"title":"Notes"},"plan":{"type":"string","maxLength":20000,"title":"Plan"},"draft":{"type":"string","maxLength":20000,"title":"Draft"},"revision":{"type":"string","maxLength":20000,"title":"Revision"},"final":{"type":"string","maxLength":20000,"title":"Final"}},"additionalProperties":false,"type":"object","required":["version","notes","plan","draft","revision","final"],"title":"SaveInput"}}}}