{"openapi":"3.1.0","info":{"title":"Learn in Labs API","version":"1.0.0"},"paths":{"/api/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/api/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeOut"}}}}}}},"/api/auth/set-language":{"post":{"tags":["auth"],"summary":"Set Language","description":"Persist the logged-in user's chosen UI language.\n\nCalled (fire-and-forget) when a logged-in user toggles the language switcher.\nThis becomes the cross-device source of truth that supersedes browser/locale\ndetection for both the site UI and transactional emails. Returns the\nnormalized value so the client adopts exactly what we stored.","operationId":"set_language_api_auth_set_language_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLanguageIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Language Api Auth Set Language Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/set-password":{"post":{"tags":["auth"],"summary":"Set Password","operationId":"set_password_api_auth_set_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPasswordIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPasswordOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/agree":{"post":{"tags":["auth"],"summary":"Agree","description":"An account from before the Terms agreeing to them, once (/auth/agree,\napp/security/termsgate.py). Recorded and audited; goes on to `next`.","operationId":"agree_api_auth_agree_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/signup":{"post":{"tags":["auth"],"summary":"Signup School","description":"Public school self-signup. Always returns 202 (no email enumeration).\n\nBehaviour:\n- If the contact email isn't already a user, create a School + SCHOOL user in\n  a PENDING state (NULL password, no invite token). Email the applicant that\n  their request is under review, and notify support that a school requested\n  access. An admin must approve before the set-password invite is sent.\n- If the email exists, do nothing visible, but audit it.\n- Either way the response is the same so attackers can't probe for known\n  emails.","operationId":"signup_school_api_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupSchoolIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/forgot":{"post":{"tags":["auth"],"summary":"Forgot","operationId":"forgot_api_auth_forgot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users":{"get":{"tags":["admin"],"summary":"List Users","operationId":"list_users_api_admin_users_get","parameters":[{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Role"},{"type":"null"}],"title":"Role"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/audit":{"get":{"tags":["admin"],"summary":"List Audit","description":"Paginated audit log. ADMIN and DEVELOPER can both read.","operationId":"list_audit_api_admin_audit_get","parameters":[{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Action"}},{"name":"actor_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Actor Email"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/developers":{"post":{"tags":["admin"],"summary":"Create Developer","operationId":"create_developer_api_admin_developers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDeveloperIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools":{"post":{"tags":["admin"],"summary":"Create School","operationId":"create_school_api_admin_schools_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSchoolIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}":{"patch":{"tags":["admin"],"summary":"Update School","operationId":"update_school_api_admin_schools__school_id__patch","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"integer","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSchoolIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete School","description":"Delete a school AND all users tied to it (SCHOOL + any TEACHERS) — a\nSOFT delete (app/accounts.py): nobody can log in any more, but the school's\nsessions and student runs survive for usage history.","operationId":"delete_school_api_admin_schools__school_id__delete","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"integer","title":"School Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/approve":{"post":{"tags":["admin"],"summary":"Approve School","description":"Approve a pending self-signup school, granting it `seats_total` seats and\nsending the set-password invite (in the school's signup language).","operationId":"approve_school_api_admin_schools__school_id__approve_post","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"integer","title":"School Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveSchoolIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/schools/{school_id}/reject":{"post":{"tags":["admin"],"summary":"Reject School","description":"Reject a pending self-signup school: email the applicant (in their\nlanguage) that the request was declined, then delete the request.","operationId":"reject_school_api_admin_schools__school_id__reject_post","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"integer","title":"School Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/resend-invite":{"post":{"tags":["admin"],"summary":"Resend Invite","operationId":"resend_invite_api_admin_users__user_id__resend_invite_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/disable":{"post":{"tags":["admin"],"summary":"Disable User","operationId":"disable_user_api_admin_users__user_id__disable_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/enable":{"post":{"tags":["admin"],"summary":"Enable User","operationId":"enable_user_api_admin_users__user_id__enable_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}":{"delete":{"tags":["admin"],"summary":"Delete User","description":"Delete a developer or teacher — a SOFT delete (app/accounts.py), so the\nsessions and student runs under it survive for usage history. Refuses to\ntouch ADMIN accounts or SCHOOL accounts (delete the school instead).","operationId":"delete_user_api_admin_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/nav":{"get":{"tags":["insights"],"summary":"Nav","description":"What waits for an owner, all time, for the owner bar's badges (insights_ui\nOwnerNav.tsx and templates/partials/owner_bar.html): school sign-ups to\napprove, and the new items of each feedback inbox — each new until an\nowner gives it another status.","operationId":"nav_api_admin_insights_nav_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Nav Api Admin Insights Nav Get"}}}}}}},"/api/admin/insights/overview":{"get":{"tags":["insights"],"summary":"Overview","operationId":"overview_api_admin_insights_overview_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/simulations":{"get":{"tags":["insights"],"summary":"Simulations","operationId":"simulations_api_admin_insights_simulations_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimulationRow"},"title":"Response Simulations Api Admin Insights Simulations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/simulations/{simulation_id}/stages":{"get":{"tags":["insights"],"summary":"Stages","operationId":"stages_api_admin_insights_simulations__simulation_id__stages_get","parameters":[{"name":"simulation_id","in":"path","required":true,"schema":{"type":"string","title":"Simulation Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StageRow"},"title":"Response Stages Api Admin Insights Simulations  Simulation Id  Stages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/surveys":{"get":{"tags":["insights"],"summary":"Surveys","description":"1-5 answer distributions, not just means.\n\nA mean of 3.0 describes both \"everyone thought it was fine\" and \"half loved\nit, half hated it\" — opposite product problems. The histogram separates them.","operationId":"surveys_api_admin_insights_surveys_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Surveys Api Admin Insights Surveys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/trials":{"get":{"tags":["insights"],"summary":"Trials","operationId":"trials_api_admin_insights_trials_get","parameters":[{"name":"completed_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Completed Only"}},{"name":"who","in":"query","required":false,"schema":{"enum":["students","teachers","schools"],"type":"string","default":"students","title":"Who"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":20,"title":"Limit"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrialsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/trials/{participant_id}":{"get":{"tags":["insights"],"summary":"Trial Detail","description":"One student's run, stage by stage, in the order it happened. Stage\ntitles in `lang`, else the page's language (X-Lang).","operationId":"trial_detail_api_admin_insights_trials__participant_id__get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"integer","title":"Participant Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trial Detail Api Admin Insights Trials  Participant Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/trials/{participant_id}/export.zip":{"get":{"tags":["insights"],"summary":"Trial Export","description":"Everything recorded for one run: the run, its stage visits and its raw\nevents, one CSV each. The Trials page shows the timeline; this is how to\nsee every field and every event behind it.\n\nSame columns as the dashboard-wide scopes (participants / visits /\nevents), filtered to one run and in the order it happened — events by\n`seq`, although the column itself is left out (see _event_rows). No\nstudent identity exists to include — the run is an opaque id.","operationId":"trial_export_api_admin_insights_trials__participant_id__export_zip_get","parameters":[{"name":"participant_id","in":"path","required":true,"schema":{"type":"integer","title":"Participant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/groups":{"get":{"tags":["insights"],"summary":"Groups","description":"Every control group, in display order. The dashboard draws one series\nper entry, so a group added in control_registry shows up without UI work.","operationId":"groups_api_admin_insights_groups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Groups Api Admin Insights Groups Get"}}}}}}},"/api/admin/insights/controls/{simulation_id}/entry":{"post":{"tags":["insights"],"summary":"Save Control Entry","description":"Create or replace what one control means (on one stage, or everywhere).\n\nClaude classifies controls while instrumenting; this is the override. The\nperson who saves is recorded as `decided_by`.","operationId":"save_control_entry_api_admin_insights_controls__simulation_id__entry_post","parameters":[{"name":"simulation_id","in":"path","required":true,"schema":{"type":"string","title":"Simulation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlEntryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Control Entry Api Admin Insights Controls  Simulation Id  Entry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["insights"],"summary":"Delete Control Entry","description":"Remove a meaning — for a stage entry, the simulation-wide one applies again.","operationId":"delete_control_entry_api_admin_insights_controls__simulation_id__entry_delete","parameters":[{"name":"simulation_id","in":"path","required":true,"schema":{"type":"string","title":"Simulation Id"}},{"name":"scope","in":"query","required":true,"schema":{"enum":["stage","default"],"type":"string","title":"Scope"}},{"name":"control","in":"query","required":true,"schema":{"type":"string","maxLength":120,"title":"Control"}},{"name":"stage_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Stage Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Control Entry Api Admin Insights Controls  Simulation Id  Entry Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/controls/{simulation_id}/stages/{stage_key}":{"put":{"tags":["insights"],"summary":"Save Stage Spec","description":"A stage's adjust → run → outcome description and where its runs come from.","operationId":"save_stage_spec_api_admin_insights_controls__simulation_id__stages__stage_key__put","parameters":[{"name":"simulation_id","in":"path","required":true,"schema":{"type":"string","title":"Simulation Id"}},{"name":"stage_key","in":"path","required":true,"schema":{"type":"string","title":"Stage Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageSpecIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Stage Spec Api Admin Insights Controls  Simulation Id  Stages  Stage Key  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/controls":{"get":{"tags":["insights"],"summary":"Controls Overview","description":"One row per simulation: how much of what students do is classified.","operationId":"controls_overview_api_admin_insights_controls_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Controls Overview Api Admin Insights Controls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/controls/{simulation_id}":{"get":{"tags":["insights"],"summary":"Controls Detail","description":"Per stage: the stage's loop, every control seen or classified on it,\nwhat it means, what the sweep observed, and how often students used it.\nStage titles in the page's language (X-Lang); `?lang=` is the students'\nlanguage filter. What each control means stays English (reference text,\nwritten by the instrumentation tooling).","operationId":"controls_detail_api_admin_insights_controls__simulation_id__get","parameters":[{"name":"simulation_id","in":"path","required":true,"schema":{"type":"string","title":"Simulation Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Controls Detail Api Admin Insights Controls  Simulation Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/versions":{"get":{"tags":["insights"],"summary":"Versions","description":"Which builds of a simulation ran in this range, for the Build filter.\n\nDeliberately ignores `f.sim_version`: this is the list you pick FROM, so\nfiltering it by the current pick would leave a dropdown with one option.\nUnversioned runs (a sim instrumented before it declared CURRICULUM_VERSION)\ncome back as sim_version=null and are offered as \"unversioned\".","operationId":"versions_api_admin_insights_versions_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Versions Api Admin Insights Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/export.csv":{"get":{"tags":["insights"],"summary":"Export Csv","description":"CSV of whatever the owner is currently looking at.\n\nEach scope delegates to the SAME handler that renders the page, so the\ndownload cannot disagree with the table above it. Aggregates and\npseudonymous rows, plus two scopes of free text: scope=teacher_surveys, the\nteachers' own verbatim comments (identified adults writing about their own\nlesson), and scope=student_comments, the optional comment of the feedback\nview inside each simulation — a child's text, scrubbed of emails, phone\nnumbers and links on the way in, and owners alone can download it. Typed\ntext is written so a spreadsheet cannot run it as a formula (typed_text).\nNo student identity exists to export.\n\nWritten to be opened in a spreadsheet (app/insights/export_format.py):\nevery timestamp as \"YYYY-MM-DD HH:MM:SS\" UTC under a name ending in _utc\n(_utc_columns does it for the view scopes), and the raw scopes with plain\ncolumn names, durations in seconds and yes/no flags. Always in English,\nstage titles included (EXPORT_LANG); there is no Spanish file. The database\nZIP is the one download that keeps the tables' own names and milliseconds.","operationId":"export_csv_api_admin_insights_export_csv_get","parameters":[{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"daily","title":"Scope"}},{"name":"completed_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Completed Only"}},{"name":"who","in":"query","required":false,"schema":{"enum":["students","teachers","schools"],"type":"string","default":"students","title":"Who"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":500,"title":"Limit"}},{"name":"raw_limit","in":"query","required":false,"schema":{"type":"integer","maximum":200000,"minimum":1,"default":50000,"title":"Raw Limit"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/export/database.zip":{"get":{"tags":["insights"],"summary":"Export Database","description":"Every table, every row, no filters — app/db_export.py.\n\nADMIN only, unlike the rest of this router: it carries every account email\nand the audit log, not just insights. Built off the event loop into a\nspooled temp file for the same reason the rollup runs in a thread — a large\nsim_events table must not stall a class posting telemetry.","operationId":"export_database_api_admin_insights_export_database_zip_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/insights/rollup":{"post":{"tags":["insights"],"summary":"Trigger Rollup","description":"Manual pass — the dashboard's Refresh button, a backfill, or after a\nmetric formula change.\n\nasyncio.to_thread is NOT optional, for the same reason as the background\nloop in server.py: the ORM stack here is synchronous, so folding a backlog\non the event loop would stall every other request in the app — including a\nclass mid-simulation posting telemetry.\n\nrun_rollup_once is already single-flight (a non-blocking _run_lock) and\nincremental (it resumes from cursor_event_id), so a button press that lands\non top of the 5-minute timer returns {\"skipped\": \"already running\"} rather\nthan double-folding anything.","operationId":"trigger_rollup_api_admin_insights_rollup_post","parameters":[{"name":"purge","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Purge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trigger Rollup Api Admin Insights Rollup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/usage":{"get":{"tags":["insights"],"summary":"Usage","description":"Company-level adoption: KPIs, usage over time, the adoption funnel,\nsimulation utilisation, class sizes, devices and the \"needs attention\"\nlist. Teacher survey distributions live on each simulation's page, where\nthey describe that simulation.","operationId":"usage_api_admin_insights_usage_get","parameters":[{"name":"grain","in":"query","required":false,"schema":{"enum":["auto","day","week","month"],"type":"string","default":"auto","title":"Grain"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/schools/names":{"get":{"tags":["insights"],"summary":"School Names","description":"Every school's id and name, for the filter bar's dropdown — the same\nschools /schools lists (deleted ones included, their history counts).\nThe dropdown used to call /schools itself on every page and every filter\nchange: the whole adoption table, computed to read two columns.","operationId":"school_names_api_admin_insights_schools_names_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SchoolName"},"type":"array","title":"Response School Names Api Admin Insights Schools Names Get"}}}}}}},"/api/admin/insights/schools":{"get":{"tags":["insights"],"summary":"Schools","description":"Every school — including ones that never taught and soft-deleted ones,\nwhose history still counts. Ignores `school_id`: the Schools page filters\nthe table client-side and names the selected school from it, so changing\nthe School filter does not recompute it. Sorted by last student activity,\nmost recent first: recency is the churn signal.","operationId":"schools_api_admin_insights_schools_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchoolUsageRow"},"title":"Response Schools Api Admin Insights Schools Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/teachers":{"get":{"tags":["insights"],"summary":"Teachers","description":"Every teacher account with its USAGE — never an outcome metric.\n\nDisabled and deleted teachers are listed whenever they have sessions in\nrange (their history still counts), or always with `include_inactive`.\nHonors `school_id`. Sorted by status, then last student activity.","operationId":"teachers_api_admin_insights_teachers_get","parameters":[{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TeacherUsageRow"},"title":"Response Teachers Api Admin Insights Teachers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/teachers/matrix":{"get":{"tags":["insights"],"summary":"Teacher Matrix","description":"Who uses what: used sessions per teacher x simulation in range. Activity\nonly — no cell carries an outcome. Teachers with no used session in range\nare left out (they are in the table).","operationId":"teacher_matrix_api_admin_insights_teachers_matrix_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherMatrixOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/teachers/{teacher_id}/sessions":{"get":{"tags":["insights"],"summary":"Teacher Sessions","description":"One teacher's sessions created in range, newest first — soft-deleted\nones included and labelled. Counts only; no run-level field.","operationId":"teacher_sessions_api_admin_insights_teachers__teacher_id__sessions_get","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TeacherSessionRow"},"title":"Response Teacher Sessions Api Admin Insights Teachers  Teacher Id  Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/feedback/summary":{"get":{"tags":["insights"],"summary":"Summary","description":"The page's figures: the funnel, each question's answer counts, and the\nsame per age band and (with no simulation chosen) per simulation.","operationId":"summary_api_admin_insights_feedback_summary_get","parameters":[{"name":"when","in":"query","required":false,"schema":{"enum":["all","end","before"],"type":"string","default":"all","title":"When"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}},{"name":"age_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Summary Api Admin Insights Feedback Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/feedback/comments":{"get":{"tags":["insights"],"summary":"Comments","description":"What students wrote, for Learn in Labs to triage: one item per student,\nwith their latest FEEDBACK_SENDS_SHOWN sends together (oldest first), so a\nchange of mind can be read, newest student first. A student is listed when\none of those sends carries a comment that matches `when`, `status` and\n`category`; the counts beside the chips count those comments, unnarrowed by\nstatus and category.","operationId":"comments_api_admin_insights_feedback_comments_get","parameters":[{"name":"when","in":"query","required":false,"schema":{"enum":["all","end","before"],"type":"string","default":"all","title":"When"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Category"}},{"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":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}},{"name":"age_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Comments Api Admin Insights Feedback Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/feedback/repeats":{"get":{"tags":["insights"],"summary":"Repeats","description":"Students who sent the feedback view more than once, comment or not,\nin the comments inbox's boxes (their latest FEEDBACK_SENDS_SHOWN sends,\noldest first), newest student first. Listed when one of those sends\nmatches `when` (by the stage it was sent from). `status` is the\nstudent's own (PUT /students/{run_id}); the counts beside its chips count\nstudents, before the chips narrow them.","operationId":"repeats_api_admin_insights_feedback_repeats_get","parameters":[{"name":"when","in":"query","required":false,"schema":{"enum":["all","end","before"],"type":"string","default":"all","title":"When"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}},{"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":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}},{"name":"age_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Repeats Api Admin Insights Feedback Repeats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/feedback/students/{run_id}":{"put":{"tags":["insights"],"summary":"Triage Student","description":"Set a student's own status or note (Students who answered more than\nonce). Audited like a comment's triage, never the note itself.","operationId":"triage_student_api_admin_insights_feedback_students__run_id__put","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentTriageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Triage Student Api Admin Insights Feedback Students  Run Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/feedback/comments/{comment_id}":{"put":{"tags":["insights"],"summary":"Triage","description":"Set a comment's status or note, correct its category, or redact it.\nAudited, with each changed field's old and new value (never the comment\nitself).","operationId":"triage_api_admin_insights_feedback_comments__comment_id__put","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__insights_feedback__TriageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Triage Api Admin Insights Feedback Comments  Comment Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/staff-feedback/summary":{"get":{"tags":["insights"],"summary":"Summary","description":"How many of each kind were sent, and how many are still new.","operationId":"summary_api_admin_insights_staff_feedback_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Summary Api Admin Insights Staff Feedback Summary Get"}}}}}}},"/api/admin/insights/staff-feedback/topics":{"get":{"tags":["insights"],"summary":"Topics","description":"The simulation suggestions, newest first (or oldest, with `order`).","operationId":"topics_api_admin_insights_staff_feedback_topics_get","parameters":[{"name":"order","in":"query","required":false,"schema":{"enum":["newest","oldest"],"type":"string","default":"newest","title":"Order"}},{"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":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Topics Api Admin Insights Staff Feedback Topics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/staff-feedback/problems":{"get":{"tags":["insights"],"summary":"Problems","description":"The problem reports and ideas, newest first (or oldest, with `order`).","operationId":"problems_api_admin_insights_staff_feedback_problems_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Kind"}},{"name":"order","in":"query","required":false,"schema":{"enum":["newest","oldest"],"type":"string","default":"newest","title":"Order"}},{"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":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Problems Api Admin Insights Staff Feedback Problems Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/staff-feedback/{which}/{row_id}":{"put":{"tags":["insights"],"summary":"Triage","description":"Set a suggestion's or a report's status or private note. Audited, with\neach changed field's old and new value (never the text itself).","operationId":"triage_api_admin_insights_staff_feedback__which___row_id__put","parameters":[{"name":"which","in":"path","required":true,"schema":{"enum":["topics","problems"],"type":"string","title":"Which"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"integer","title":"Row Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__insights_staff_feedback__TriageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Triage Api Admin Insights Staff Feedback  Which   Row Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/teacher-feedback/summary":{"get":{"tags":["insights"],"summary":"Summary","description":"The page's figures: the KPIs, each question's answer counts, and (with\nno simulation chosen) the same per simulation.","operationId":"summary_api_admin_insights_teacher_feedback_summary_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}},{"name":"age_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Summary Api Admin Insights Teacher Feedback Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/teacher-feedback/discussion":{"get":{"tags":["insights"],"summary":"Discussion","description":"Each class's discussion answer against its clock time, for one\nsimulation: every simulation has its own length, so pooling them would\nmeasure which simulation was taught, not how much the class discussed.","operationId":"discussion_api_admin_insights_teacher_feedback_discussion_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}},{"name":"age_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Discussion Api Admin Insights Teacher Feedback Discussion Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/teacher-feedback/comments":{"get":{"tags":["insights"],"summary":"Comments","description":"The comments of the surveys in scope, newest first (or oldest, with\n`order`). `status` narrows the list; the counts beside it do not.","operationId":"comments_api_admin_insights_teacher_feedback_comments_get","parameters":[{"name":"order","in":"query","required":false,"schema":{"enum":["newest","oldest"],"type":"string","default":"newest","title":"Order"}},{"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":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}},{"name":"age_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Comments Api Admin Insights Teacher Feedback Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/teacher-feedback/comments/{survey_id}":{"put":{"tags":["insights"],"summary":"Triage","description":"Set a comment's status or private note. Audited, with each changed\nfield's old and new value (never the text itself). The teacher's own\nedit time (updated_at) is left alone.","operationId":"triage_api_admin_insights_teacher_feedback_comments__survey_id__put","parameters":[{"name":"survey_id","in":"path","required":true,"schema":{"type":"integer","title":"Survey Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__insights_teacher_feedback__TriageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Triage Api Admin Insights Teacher Feedback Comments  Survey Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/settings":{"get":{"tags":["insights"],"summary":"Settings Page","operationId":"settings_page_api_admin_insights_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Settings Page Api Admin Insights Settings Get"}}}}}}},"/api/admin/insights/settings/unlock":{"post":{"tags":["insights"],"summary":"Unlock","operationId":"unlock_api_admin_insights_settings_unlock_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlockIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/settings/{key}":{"put":{"tags":["insights"],"summary":"Set Value","operationId":"set_value_api_admin_insights_settings__key__put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["insights"],"summary":"Reset Value","operationId":"reset_value_api_admin_insights_settings__key__delete","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,63}$","title":"Key"}},{"name":"confirm","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Confirm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/lil/sessions":{"get":{"tags":["insights"],"summary":"List Sessions","description":"Every LIL session, newest first; deleted ones on request.","operationId":"list_sessions_api_admin_insights_lil_sessions_get","parameters":[{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LilSessionList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["insights"],"summary":"Create Session","operationId":"create_session_api_admin_insights_lil_sessions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LilSessionIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LilSessionRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/lil/sessions/can-create":{"get":{"tags":["insights"],"summary":"Can Create Session","description":"Whether a new LIL session would be accepted now, asked as the catalog's\nwindow opens and by LIL sessions' \"+ New session\" (as a teacher's\ncan-create). 409 with create's own message at the open-link limit.","operationId":"can_create_session_api_admin_insights_lil_sessions_can_create_get","responses":{"204":{"description":"Successful Response"}}}},"/api/admin/insights/lil/sessions/{session_id}/close":{"post":{"tags":["insights"],"summary":"Close Session","operationId":"close_session_api_admin_insights_lil_sessions__session_id__close_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LilSessionRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/lil/sessions/delete":{"post":{"tags":["insights"],"summary":"Delete Sessions","description":"Off the list and closed, as a teacher's \"Delete selected\": the sessions,\ntheir runs and their answers stay (Show deleted). An id that is not an LIL\nsession, or is already deleted, is skipped.","operationId":"delete_sessions_api_admin_insights_lil_sessions_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSessionsIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/lil/sessions/{session_id}/report":{"get":{"tags":["insights"],"summary":"Report","description":"`lang`, else the page's language (X-Lang): the stage titles' language.","operationId":"report_api_admin_insights_lil_sessions__session_id__report_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LilReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/lil/sessions/{session_id}/live":{"get":{"tags":["insights"],"summary":"Live","description":"The teacher's live board (teacher_insights.build_live), polled the same\nway, with who has the survey open; in a test session, with how far the\nclass is through the test, the test pages included (their own reports,\nparticipants.open_view_now). `lang`: the stage titles' (the students'); an\nerror is in the page's.","operationId":"live_api_admin_insights_lil_sessions__session_id__live_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LilLiveBoard"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/lil/sessions/{session_id}/refresh":{"post":{"tags":["insights"],"summary":"Refresh","operationId":"refresh_api_admin_insights_lil_sessions__session_id__refresh_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/lil/sessions/{session_id}/prepost":{"get":{"tags":["insights"],"summary":"Prepost Results","operationId":"prepost_results_api_admin_insights_lil_sessions__session_id__prepost_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Prepost Results Api Admin Insights Lil Sessions  Session Id  Prepost Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights/lil/answers/{answer_id}":{"put":{"tags":["insights"],"summary":"Mark Answer","description":"Not audited: the answer keeps who marked it and when.","operationId":"mark_answer_api_admin_insights_lil_answers__answer_id__put","parameters":[{"name":"answer_id","in":"path","required":true,"schema":{"type":"integer","title":"Answer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Answer Api Admin Insights Lil Answers  Answer Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/staff-feedback/topics":{"post":{"tags":["staff-feedback"],"summary":"Send Topic","operationId":"send_topic_api_staff_feedback_topics_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/staff-feedback/problems":{"post":{"tags":["staff-feedback"],"summary":"Send Problem","operationId":"send_problem_api_staff_feedback_problems_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/school/teachers":{"get":{"tags":["school"],"summary":"List Teachers","operationId":"list_teachers_api_school_teachers_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["school"],"summary":"Invite Teacher","operationId":"invite_teacher_api_school_teachers_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeacherIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolTeacherRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/school/teachers/{teacher_id}/resend-invite":{"post":{"tags":["school"],"summary":"Resend Invite","operationId":"resend_invite_api_school_teachers__teacher_id__resend_invite_post","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolTeacherRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/school/teachers/{teacher_id}/disable":{"post":{"tags":["school"],"summary":"Disable Teacher","operationId":"disable_teacher_api_school_teachers__teacher_id__disable_post","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolTeacherRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/school/teachers/{teacher_id}/enable":{"post":{"tags":["school"],"summary":"Enable Teacher","operationId":"enable_teacher_api_school_teachers__teacher_id__enable_post","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolTeacherRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/school/teachers/{teacher_id}":{"delete":{"tags":["school"],"summary":"Delete Teacher","operationId":"delete_teacher_api_school_teachers__teacher_id__delete","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/school/insights/usage":{"get":{"tags":["school-insights"],"summary":"Usage","description":"The page's three numbers, the adoption funnel and trend, usage per\nsimulation, and what needs attention.","operationId":"usage_api_school_insights_usage_get","parameters":[{"name":"grain","in":"query","required":false,"schema":{"enum":["auto","day","week","month"],"type":"string","default":"auto","title":"Grain"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolUsageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/school/insights/teachers":{"get":{"tags":["school-insights"],"summary":"Teachers","description":"Every teacher at the school with their usage.","operationId":"teachers_api_school_insights_teachers_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolTeachersOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/school/insights/teachers/{teacher_id}/sessions":{"get":{"tags":["school-insights"],"summary":"Teacher Sessions","description":"One teacher's sessions created in range — soft-deleted ones included and\nlabelled. Counts only: never a class list, never a student.","operationId":"teacher_sessions_api_school_insights_teachers__teacher_id__sessions_get","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchoolSessionRow"},"title":"Response Teacher Sessions Api School Insights Teachers  Teacher Id  Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/school/insights/export.xlsx":{"get":{"tags":["school-insights"],"summary":"Export Xlsx","description":"\"Download Excel\": the page as a workbook (app/insights/school_xlsx.py) —\na summary, the teacher table, every teacher's sessions in one list, usage\nper simulation, the numbers behind \"Adoption over time\", and what each\ncolumn means. Built from the same rows as the page, for the page's dates,\nlanguage filter and grain, in its language (`ui_lang`; `lang` is the\nstudents' language filter). `tzname` is the downloader's time zone\n(\"Europe/Madrid\"), so times read as on their screen on each date, across a\nclock change too; `tz`, their offset from UTC today in minutes, is the\nfallback for a zone this server does not know. Usage only; nothing per\nstudent.","operationId":"export_xlsx_api_school_insights_export_xlsx_get","parameters":[{"name":"grain","in":"query","required":false,"schema":{"enum":["auto","day","week","month"],"type":"string","default":"auto","title":"Grain"}},{"name":"ui_lang","in":"query","required":false,"schema":{"enum":["en","es"],"type":"string","default":"en","title":"Ui Lang"}},{"name":"tz","in":"query","required":false,"schema":{"type":"integer","maximum":840,"minimum":-840,"default":0,"title":"Tz"}},{"name":"tzname","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tzname"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/sessions":{"get":{"tags":["teacher"],"summary":"List My Sessions","description":"The teacher's sessions, newest first — \"My sessions\", the one session\nlist. Deleted ones only on request (\"Show deleted sessions\"): deleting tidies\nthe list, it does not erase history, so their reports stay reachable (plan\n§9, D6).","operationId":"list_my_sessions_api_teacher_sessions_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["teacher"],"summary":"Create Session","operationId":"create_session_api_teacher_sessions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/sessions/can-create":{"get":{"tags":["teacher"],"summary":"Can Create Session","description":"Whether a new session would be accepted now, asked before the teacher\nfills one in: My sessions' \"+ New session\" and the catalog's \"+ Create\nsession\". 409 with create_session's own message at the open-link limit.\nNot audited: only a create that is refused is.","operationId":"can_create_session_api_teacher_sessions_can_create_get","responses":{"204":{"description":"Successful Response"}}}},"/api/teacher/tour-done":{"post":{"tags":["teacher"],"summary":"Tour Done","description":"The My sessions tour was finished or skipped: it never opens by itself\nagain, on any device. The first time is kept; replaying it changes nothing.","operationId":"tour_done_api_teacher_tour_done_post","responses":{"204":{"description":"Successful Response"}}}},"/api/teacher/sessions/{session_id}/revoke":{"post":{"tags":["teacher"],"summary":"Revoke Session","operationId":"revoke_session_api_teacher_sessions__session_id__revoke_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/sessions/delete":{"post":{"tags":["teacher"],"summary":"Delete Sessions","operationId":"delete_sessions_api_teacher_sessions_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSessionsIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/sessions/{session_id}/feedback":{"get":{"tags":["teacher"],"summary":"Get Feedback","description":"Feedback already given for this session, or null.\n\nWithout this the modal is write-only: submit once and the answers are\nunreachable, even though submit_feedback below is idempotent and happily\nupdates. Lets the dashboard offer \"Edit feedback\" with the previous answers\nfilled in.","operationId":"get_feedback_api_teacher_sessions__session_id__feedback_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Response Get Feedback Api Teacher Sessions  Session Id  Feedback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["teacher"],"summary":"Submit Feedback","operationId":"submit_feedback_api_teacher_sessions__session_id__feedback_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherFeedbackIn"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/insights/sessions/{session_id}/report":{"get":{"tags":["teacher-insights"],"summary":"Report","description":"One session, readable in ninety seconds: who took part (as counts), where\nthe class spent its time, how it explored, and the teacher's own read.","operationId":"report_api_teacher_insights_sessions__session_id__report_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/insights/sessions/{session_id}/refresh":{"post":{"tags":["teacher-insights"],"summary":"Refresh","description":"Fold what the class has sent so far into the figures now, rather than\nwaiting for the 5-minute timer.\n\nA full rollup pass, not one limited to this session: folding is ordered by\none cursor over every event, so folding one session ahead of the rest would\nleave the others behind it. A pass takes seconds at this volume and the\nrollup's own lock stops two from overlapping. The owner's view may run it\ntoo: it writes nothing of the teacher's, and the owner can already run the\nsame pass (/api/admin/insights/rollup).","operationId":"refresh_api_teacher_insights_sessions__session_id__refresh_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/insights/trends":{"get":{"tags":["teacher-insights"],"summary":"Trends","description":"This teacher's sessions of one simulation and build (and age group),\npooled, beside all classes. A plain `def`: \"All classes\" may read every run\nof a simulation, and that must never hold up student ingest on the event\nloop (it runs on the thread pool).","operationId":"trends_api_teacher_insights_trends_get","parameters":[{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"age_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teacher/insights/sessions/{session_id}/live":{"get":{"tags":["teacher-insights"],"summary":"Live","description":"Where the room is right now: runs per stage, and how many of them need\nthe teacher. Polled every LIVE_POLL_SEC by the Now tab.","operationId":"live_api_teacher_insights_sessions__session_id__live_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveBoard"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/catalog/search":{"get":{"tags":["catalog"],"summary":"Search","operationId":"search_api_catalog_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":80,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/school/{view_school_id}/usage":{"get":{"tags":["owner-view"],"summary":"Usage","description":"The page's three numbers, the adoption funnel and trend, usage per\nsimulation, and what needs attention.","operationId":"usage_api_admin_view_school__view_school_id__usage_get","parameters":[{"name":"grain","in":"query","required":false,"schema":{"enum":["auto","day","week","month"],"type":"string","default":"auto","title":"Grain"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolUsageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/school/{view_school_id}/teachers":{"get":{"tags":["owner-view"],"summary":"Teachers","description":"Every teacher at the school with their usage.","operationId":"teachers_api_admin_view_school__view_school_id__teachers_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolTeachersOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/school/{view_school_id}/teachers/{teacher_id}/sessions":{"get":{"tags":["owner-view"],"summary":"Teacher Sessions","description":"One teacher's sessions created in range — soft-deleted ones included and\nlabelled. Counts only: never a class list, never a student.","operationId":"teacher_sessions_api_admin_view_school__view_school_id__teachers__teacher_id__sessions_get","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchoolSessionRow"},"title":"Response Teacher Sessions Api Admin View School  View School Id  Teachers  Teacher Id  Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/school/{view_school_id}/export.xlsx":{"get":{"tags":["owner-view"],"summary":"Export Xlsx","description":"\"Download Excel\": the page as a workbook (app/insights/school_xlsx.py) —\na summary, the teacher table, every teacher's sessions in one list, usage\nper simulation, the numbers behind \"Adoption over time\", and what each\ncolumn means. Built from the same rows as the page, for the page's dates,\nlanguage filter and grain, in its language (`ui_lang`; `lang` is the\nstudents' language filter). `tzname` is the downloader's time zone\n(\"Europe/Madrid\"), so times read as on their screen on each date, across a\nclock change too; `tz`, their offset from UTC today in minutes, is the\nfallback for a zone this server does not know. Usage only; nothing per\nstudent.","operationId":"export_xlsx_api_admin_view_school__view_school_id__export_xlsx_get","parameters":[{"name":"grain","in":"query","required":false,"schema":{"enum":["auto","day","week","month"],"type":"string","default":"auto","title":"Grain"}},{"name":"ui_lang","in":"query","required":false,"schema":{"enum":["en","es"],"type":"string","default":"en","title":"Ui Lang"}},{"name":"tz","in":"query","required":false,"schema":{"type":"integer","maximum":840,"minimum":-840,"default":0,"title":"Tz"}},{"name":"tzname","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tzname"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"school_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"School Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"min_participants","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":1,"title":"Min Participants"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/school/{view_school_id}/dashboard/teachers":{"get":{"tags":["owner-view"],"summary":"View Teachers","operationId":"view_teachers_api_admin_view_school__view_school_id__dashboard_teachers_get","parameters":[{"name":"view_school_id","in":"path","required":true,"schema":{"type":"integer","title":"View School Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/teacher/{view_teacher_id}/sessions/{session_id}/report":{"get":{"tags":["owner-view"],"summary":"Report","description":"One session, readable in ninety seconds: who took part (as counts), where\nthe class spent its time, how it explored, and the teacher's own read.","operationId":"report_api_admin_view_teacher__view_teacher_id__sessions__session_id__report_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/teacher/{view_teacher_id}/sessions/{session_id}/refresh":{"post":{"tags":["owner-view"],"summary":"Refresh","description":"Fold what the class has sent so far into the figures now, rather than\nwaiting for the 5-minute timer.\n\nA full rollup pass, not one limited to this session: folding is ordered by\none cursor over every event, so folding one session ahead of the rest would\nleave the others behind it. A pass takes seconds at this volume and the\nrollup's own lock stops two from overlapping. The owner's view may run it\ntoo: it writes nothing of the teacher's, and the owner can already run the\nsame pass (/api/admin/insights/rollup).","operationId":"refresh_api_admin_view_teacher__view_teacher_id__sessions__session_id__refresh_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/teacher/{view_teacher_id}/trends":{"get":{"tags":["owner-view"],"summary":"Trends","description":"This teacher's sessions of one simulation and build (and age group),\npooled, beside all classes. A plain `def`: \"All classes\" may read every run\nof a simulation, and that must never hold up student ingest on the event\nloop (it runs on the thread pool).","operationId":"trends_api_admin_view_teacher__view_teacher_id__trends_get","parameters":[{"name":"simulation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"}},{"name":"sim_version","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Sim Version"}},{"name":"age_range","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/teacher/{view_teacher_id}/sessions/{session_id}/live":{"get":{"tags":["owner-view"],"summary":"Live","description":"Where the room is right now: runs per stage, and how many of them need\nthe teacher. Polled every LIVE_POLL_SEC by the Now tab.","operationId":"live_api_admin_view_teacher__view_teacher_id__sessions__session_id__live_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveBoard"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/view/teacher/{view_teacher_id}/sessions":{"get":{"tags":["owner-view"],"summary":"View Sessions","operationId":"view_sessions_api_admin_view_teacher__view_teacher_id__sessions_get","parameters":[{"name":"view_teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"View Teacher Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Deleted"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/s/{token}":{"get":{"summary":"Join Session","operationId":"join_session_s__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"preview","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Preview"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test/{session_id}/pre":{"get":{"summary":"Pre Test","operationId":"pre_test_test__session_id__pre_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test/{session_id}/post":{"get":{"summary":"Post Test","operationId":"post_test_test__session_id__post_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"rid","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sim-telemetry/hello":{"post":{"tags":["telemetry"],"summary":"Hello","description":"Resolve who this browser is, and whether it should send telemetry at all.\n\nReturning enabled=False here is the entire mechanism that keeps the public\ndemo and accidental staff visits out of the data, so the negative cases\nmatter as much as the positive one.\n\nDeliberate teacher trials are the one exception: they return enabled=True\nand are recorded in full, then filtered out one layer later when the daily\nrollups are built. \"Don't count it\" and \"don't store it\" are different\nrequirements, and only the first one applies to a trial.","operationId":"hello_sim_telemetry_hello_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelloIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelloOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sim-telemetry/collect":{"post":{"tags":["telemetry"],"summary":"Collect","operationId":"collect_sim_telemetry_collect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelemetryBatchIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sim-telemetry/feedback":{"post":{"tags":["telemetry"],"summary":"Feedback","description":"The feedback view inside the simulation opened, or sent its answers\n(app/insights/student_feedback.py; owner-only, metrics-spec §5.11).\n\nThe run is found exactly as /collect finds it — by the session and run the\npage names, authorised by that session's `simpt_<sid>` cookie — so an old\ntab on a shared Chromebook files its answers under its own run, never the\nnext student's. A class link that expired less than SESSION_END_GRACE_SEC\nago still takes them; one its teacher ended does not (_in_grace). A teacher trial\nis stored and, like every trial, left out of every figure (by joining the\nrun, whose is_excluded can still change later).","operationId":"feedback_sim_telemetry_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentFeedbackIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentFeedbackOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sim-telemetry/prepost":{"post":{"tags":["telemetry"],"summary":"Prepost Answers","description":"An LIL pre/post test's answers (app/insights/prepost.py; owner-only,\nmetrics-spec §5.13).\n\nThe run is found as /feedback finds it — the session and run the page\nnames, authorised by that session's `simpt_<sid>` cookie. Each phase is\nstored once: a second send is refused (409) and changes nothing. The\nafter-test ends the run: its cookie is dropped here, so the class link\nopened next on this device starts a new run, at the pre-test. An LIL link\nnever expires, so once an owner closes it no after-test is taken\n(_in_grace): close it after the class has sent theirs.","operationId":"prepost_answers_sim_telemetry_prepost_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrePostIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sim-telemetry/here":{"post":{"tags":["telemetry"],"summary":"Open View","description":"A view besides the simulation is open, or just closed (`closed`): the\nLIL pre-test page, the feedback view, or the after-test page. For the\nowner's LIL live board and sessions list only (participants.open_view_now,\nmetrics-spec §5.13); it moves no other figure, not even `last_seen_at`.\n\nThe run is found as /feedback and /prepost find it. A closed link takes\nno report, but the feedback view and the after-test still get the end\ngrace they get for their answers (_in_grace). A test page needs a test\nsession, and stops counting once its test is sent. `closed` clears the\nrun's open view only while it still names this one: the survey's closing\nbeacon can arrive after the after-test page it led to has reported.","operationId":"open_view_sim_telemetry_here_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenViewIn"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"get":{"summary":"Page Login","operationId":"page_login_auth_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/auth/forgot":{"get":{"summary":"Page Forgot","operationId":"page_forgot_auth_forgot_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/auth/signup":{"get":{"summary":"Page Signup","operationId":"page_signup_auth_signup_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/terms":{"get":{"summary":"Page Terms","description":"The Terms of Service (app/legal.py): open to anyone, read before\nsigning up. Linked beside the \"I agree\" checkbox and from every page's footer.\nThe page shows no version: legal.TERMS_VERSION is recorded on each agreement.","operationId":"page_terms_terms_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/privacy":{"get":{"summary":"Page Privacy","description":"The Privacy Policy, as /terms.","operationId":"page_privacy_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/auth/agree":{"get":{"summary":"Page Agree","description":"An account from before the Terms agrees to them, once\n(app/security/termsgate.py sends it here). Signed out: sign in first.","operationId":"page_agree_auth_agree_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/demo":{"get":{"summary":"Page Demo","operationId":"page_demo_demo_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/":{"get":{"summary":"Page Landing","operationId":"page_landing__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/index.html":{"get":{"summary":"Page Index Html","operationId":"page_index_html_index_html_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/why-it-works":{"get":{"summary":"Page Why It Works","operationId":"page_why_it_works_why_it_works_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/catalog":{"get":{"summary":"Page Catalog","operationId":"page_catalog_catalog_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/teacher-guide":{"get":{"summary":"Page Teacher Guides","operationId":"page_teacher_guides_teacher_guide_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/teacher-guide/{sim_id}":{"get":{"summary":"Page Teacher Guide","operationId":"page_teacher_guide_teacher_guide__sim_id__get","parameters":[{"name":"sim_id","in":"path","required":true,"schema":{"type":"string","title":"Sim Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/accept-invite":{"get":{"summary":"Page Accept Invite","operationId":"page_accept_invite_auth_accept_invite_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset":{"get":{"summary":"Page Reset","operationId":"page_reset_auth_reset_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard":{"get":{"summary":"Page Dashboard","operationId":"page_dashboard_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/dashboard/admin":{"get":{"summary":"Page Dashboard Admin","operationId":"page_dashboard_admin_dashboard_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/dashboard/admin/audit":{"get":{"summary":"Page Dashboard Admin Audit","operationId":"page_dashboard_admin_audit_dashboard_admin_audit_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/dashboard/lil":{"get":{"summary":"Page Dashboard Lil","description":"LIL sessions: the owner's own class links, laid out as a teacher's My\nsessions (app/routers/insights_lil.py). Each session's report and Test\nresults are on the owner dashboard (/dashboard/insights/lil/<id>).","operationId":"page_dashboard_lil_dashboard_lil_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/dashboard/insights/view/school/{school_id}/dashboard":{"get":{"summary":"Page View School Dashboard","operationId":"page_view_school_dashboard_dashboard_insights_view_school__school_id__dashboard_get","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"integer","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/insights/view/teacher/{teacher_id}/my-sessions":{"get":{"summary":"Page View Teacher Sessions","operationId":"page_view_teacher_sessions_dashboard_insights_view_teacher__teacher_id__my_sessions_get","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/insights/view/school/{school_id}/catalog":{"get":{"summary":"Page View School Catalog","operationId":"page_view_school_catalog_dashboard_insights_view_school__school_id__catalog_get","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"integer","title":"School Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/insights/view/teacher/{teacher_id}/catalog":{"get":{"summary":"Page View Teacher Catalog","operationId":"page_view_teacher_catalog_dashboard_insights_view_teacher__teacher_id__catalog_get","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/insights/view/school/{school_id}/{spa_path}":{"get":{"summary":"Page View School","operationId":"page_view_school_dashboard_insights_view_school__school_id___spa_path__get","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"integer","title":"School Id"}},{"name":"spa_path","in":"path","required":true,"schema":{"type":"string","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/insights/view/school/{school_id}":{"get":{"summary":"Page View School","operationId":"page_view_school_dashboard_insights_view_school__school_id__get","parameters":[{"name":"school_id","in":"path","required":true,"schema":{"type":"integer","title":"School Id"}},{"name":"spa_path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/insights/view/teacher/{teacher_id}/{spa_path}":{"get":{"summary":"Page View Teacher","operationId":"page_view_teacher_dashboard_insights_view_teacher__teacher_id___spa_path__get","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}},{"name":"spa_path","in":"path","required":true,"schema":{"type":"string","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/insights/view/teacher/{teacher_id}":{"get":{"summary":"Page View Teacher","operationId":"page_view_teacher_dashboard_insights_view_teacher__teacher_id__get","parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"integer","title":"Teacher Id"}},{"name":"spa_path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/insights/{spa_path}":{"get":{"summary":"Page Dashboard Insights","description":"Owner-only analytics SPA.\n\nThe catch-all sub-path returns the same shell so client-side deep links\n(/dashboard/insights/simulations/epidemic_sir) survive a refresh. Reusing\n_dashboard is what makes this genuinely gated rather than merely obscure:\nit does the auth redirect, the role check and set_csrf_cookie. The bundle\nitself is served separately from /static_insights.","operationId":"page_dashboard_insights_dashboard_insights__spa_path__get","parameters":[{"name":"spa_path","in":"path","required":true,"schema":{"type":"string","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/insights":{"get":{"summary":"Page Dashboard Insights","description":"Owner-only analytics SPA.\n\nThe catch-all sub-path returns the same shell so client-side deep links\n(/dashboard/insights/simulations/epidemic_sir) survive a refresh. Reusing\n_dashboard is what makes this genuinely gated rather than merely obscure:\nit does the auth redirect, the role check and set_csrf_cookie. The bundle\nitself is served separately from /static_insights.","operationId":"page_dashboard_insights_dashboard_insights_get","parameters":[{"name":"spa_path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/school":{"get":{"summary":"Page Dashboard School","operationId":"page_dashboard_school_dashboard_school_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/dashboard/school/insights/{spa_path}":{"get":{"summary":"Page Dashboard School Insights","description":"A school admin's usage dashboard: the same SPA bundle as the owner's\n/dashboard/insights, mounted in school mode (templates/dashboard/\nschool_insights.html sets data-mode). The data it shows is bound to the\nadmin's own school by app/routers/school_insights.py, not by this page.","operationId":"page_dashboard_school_insights_dashboard_school_insights__spa_path__get","parameters":[{"name":"spa_path","in":"path","required":true,"schema":{"type":"string","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/school/insights":{"get":{"summary":"Page Dashboard School Insights","description":"A school admin's usage dashboard: the same SPA bundle as the owner's\n/dashboard/insights, mounted in school mode (templates/dashboard/\nschool_insights.html sets data-mode). The data it shows is bound to the\nadmin's own school by app/routers/school_insights.py, not by this page.","operationId":"page_dashboard_school_insights_dashboard_school_insights_get","parameters":[{"name":"spa_path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/teacher":{"get":{"summary":"Page Dashboard Teacher","operationId":"page_dashboard_teacher_dashboard_teacher_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/dashboard/teacher/insights/{spa_path}":{"get":{"summary":"Page Dashboard Teacher Insights","description":"A teacher's session reports: the insights SPA in teacher mode\n(templates/dashboard/teacher_insights.html). Which sessions it can read is\ndecided by app/routers/teacher_insights.py — only the teacher's own.","operationId":"page_dashboard_teacher_insights_dashboard_teacher_insights__spa_path__get","parameters":[{"name":"spa_path","in":"path","required":true,"schema":{"type":"string","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/teacher/insights":{"get":{"summary":"Page Dashboard Teacher Insights","description":"A teacher's session reports: the insights SPA in teacher mode\n(templates/dashboard/teacher_insights.html). Which sessions it can read is\ndecided by app/routers/teacher_insights.py — only the teacher's own.","operationId":"page_dashboard_teacher_insights_dashboard_teacher_insights_get","parameters":[{"name":"spa_path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Spa Path"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/suggest-simulation":{"get":{"summary":"Page Suggest Simulation","operationId":"page_suggest_simulation_suggest_simulation_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/report-problem":{"get":{"summary":"Page Report Problem","operationId":"page_report_problem_report_problem_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/simulate":{"post":{"summary":"Simulate","operationId":"simulate_api_simulate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationResponse"}}}},"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":{}}}}}}},"/api/ui-values":{"get":{"summary":"Ui Values Now","description":"The numbers the texts state (app/ui_values.py), as of now: the\ndashboards re-read them after a Settings change, and the Vite dev server's\npage, which has no data-values, reads them here. Every page already\ncarries them, the sign-in page included, so nothing here is new to anyone.","operationId":"ui_values_now_api_ui_values_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AgreeIn":{"properties":{"accept_terms":{"type":"boolean","title":"Accept Terms","default":false},"next":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Next"}},"type":"object","title":"AgreeIn","description":"An existing account agreeing on /auth/agree (app/legal.py)."},"AgreeOut":{"properties":{"redirect":{"type":"string","title":"Redirect"}},"type":"object","required":["redirect"],"title":"AgreeOut"},"ApprovalStatus":{"type":"string","enum":["PENDING","APPROVED"],"title":"ApprovalStatus"},"ApproveSchoolIn":{"properties":{"seats_total":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Seats Total"}},"type":"object","required":["seats_total"],"title":"ApproveSchoolIn"},"AttentionItem":{"properties":{"kind":{"type":"string","title":"Kind"},"severity":{"type":"string","enum":["high","medium","low"],"title":"Severity"},"title":{"type":"string","title":"Title"},"detail":{"type":"string","title":"Detail"},"school_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"School Id"},"school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Name"},"teacher_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Teacher Id"},"teacher_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Email"},"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"},"last_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last On"},"teacher_accounts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Teacher Accounts"},"seats_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Used"},"seats_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Total"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"nobody_joined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nobody Joined"},"none_started":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"None Started"},"top_school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top School Name"},"top_school_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top School N"}},"type":"object","required":["kind","severity","title","detail"],"title":"AttentionItem"},"AttentionTeacher":{"properties":{"teacher_id":{"type":"integer","title":"Teacher Id"},"email":{"type":"string","title":"Email"},"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"}},"type":"object","required":["teacher_id","email"],"title":"AttentionTeacher"},"AuditListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AuditRowOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"AuditListOut"},"AuditRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"at":{"type":"string","format":"date-time","title":"At"},"actor_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Actor User Id"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"},"action":{"type":"string","title":"Action"},"target_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"},"target_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Id"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"ua":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ua"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"}},"type":"object","required":["id","at","action"],"title":"AuditRowOut"},"Band":{"properties":{"label":{"type":"string","title":"Label"},"n":{"type":"integer","title":"N"}},"type":"object","required":["label","n"],"title":"Band"},"Bin":{"properties":{"lo":{"type":"number","title":"Lo"},"hi":{"type":"number","title":"Hi"},"n":{"type":"integer","title":"N"},"kept":{"type":"integer","title":"Kept"},"unknown":{"type":"integer","title":"Unknown"}},"type":"object","required":["lo","hi","n","kept","unknown"],"title":"Bin"},"BuildOption":{"properties":{"id":{"type":"string","title":"Id"},"used_sessions":{"type":"integer","title":"Used Sessions"},"released":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Released"}},"type":"object","required":["id","used_sessions","released"],"title":"BuildOption"},"BuyerConfig":{"properties":{"max_willing_to_pay":{"type":"number","title":"Max Willing To Pay"}},"type":"object","required":["max_willing_to_pay"],"title":"BuyerConfig"},"CodeRefIn":{"properties":{"file":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"File"},"find":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Find"},"library":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Library"},"note":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Note"}},"type":"object","title":"CodeRefIn"},"CollectOut":{"properties":{"accepted":{"type":"integer","title":"Accepted"},"stop":{"type":"boolean","title":"Stop","default":false}},"type":"object","required":["accepted"],"title":"CollectOut"},"ControlEntryIn":{"properties":{"scope":{"type":"string","enum":["stage","default"],"title":"Scope"},"stage_key":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Stage Key"},"control":{"type":"string","maxLength":120,"minLength":1,"title":"Control"},"group":{"type":"string","maxLength":32,"minLength":1,"title":"Group"},"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Label"},"counted_by":{"type":"string","enum":["sdk","sim"],"title":"Counted By","default":"sdk"},"reason":{"type":"string","maxLength":800,"minLength":1,"title":"Reason"},"code_ref":{"$ref":"#/components/schemas/CodeRefIn"}},"type":"object","required":["scope","control","group","reason","code_ref"],"title":"ControlEntryIn"},"CreateDeveloperIn":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"CreateDeveloperIn"},"CreateSchoolIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"contact_email":{"type":"string","maxLength":254,"minLength":3,"title":"Contact Email"},"seats_total":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Seats Total"}},"type":"object","required":["name","contact_email","seats_total"],"title":"CreateSchoolIn"},"CreateSessionIn":{"properties":{"simulation_id":{"type":"string","maxLength":64,"minLength":1,"title":"Simulation Id"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"age_range":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}},"type":"object","required":["simulation_id"],"title":"CreateSessionIn"},"CreateTeacherIn":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"}},"type":"object","required":["email"],"title":"CreateTeacherIn"},"DeleteSessionsIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","maxItems":200,"minItems":1,"title":"Ids"}},"type":"object","required":["ids"],"title":"DeleteSessionsIn"},"ExploreParam":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"min":{"type":"number","title":"Min"},"max":{"type":"number","title":"Max"},"step":{"type":"number","title":"Step"},"scale":{"type":"number","title":"Scale"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"tried_one":{"type":"integer","title":"Tried One"},"tried_many":{"type":"integer","title":"Tried Many"},"covered_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Covered P50"},"histogram":{"items":{"$ref":"#/components/schemas/Bin"},"type":"array","title":"Histogram"}},"type":"object","required":["key","label","min","max","step","scale","unit","tried_one","tried_many","covered_p50","histogram"],"title":"ExploreParam","description":"One key parameter of a stage, as the whole class used it."},"ExploreStage":{"properties":{"stage_key":{"type":"string","title":"Stage Key"},"title":{"type":"string","title":"Title"},"reached":{"type":"integer","title":"Reached"},"model_runs":{"type":"integer","title":"Model Runs"},"unrecorded":{"type":"integer","title":"Unrecorded"},"shapes":{"items":{"$ref":"#/components/schemas/Band"},"type":"array","title":"Shapes"},"primary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary"},"params":{"items":{"$ref":"#/components/schemas/ExploreParam"},"type":"array","title":"Params"}},"type":"object","required":["stage_key","title","reached","model_runs","unrecorded","shapes","primary","params"],"title":"ExploreStage","description":"How the class explored one stage (plan §4 \"How the class explored\",\n§5 Gap C). Class-level only: a shape mix, a histogram, a median — no\nendpoint returns one run's sequence of values."},"ForgotIn":{"properties":{"email":{"type":"string","maxLength":254,"minLength":1,"title":"Email"}},"type":"object","required":["email"],"title":"ForgotIn"},"ForgotOut":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true}},"type":"object","title":"ForgotOut"},"FunnelStep":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"n":{"type":"integer","title":"N"}},"type":"object","required":["key","label","n"],"title":"FunnelStep"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Headline":{"properties":{"student_runs":{"type":"integer","title":"Student Runs"},"opened_only":{"type":"integer","title":"Opened Only"},"teacher_trials":{"type":"integer","title":"Teacher Trials"},"stages_total":{"type":"integer","title":"Stages Total"},"depth_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth P50"},"engaged_minutes_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engaged Minutes P50"},"lesson_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lesson Minutes"},"lesson_stages":{"type":"integer","title":"Lesson Stages"},"worked_to_end":{"type":"integer","title":"Worked To End"}},"type":"object","required":["student_runs","opened_only","teacher_trials","stages_total","depth_p50","engaged_minutes_p50","lesson_minutes","lesson_stages","worked_to_end"],"title":"Headline"},"HelloIn":{"properties":{"sim":{"type":"string","maxLength":64,"minLength":1,"title":"Sim"},"lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"},"version":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Version"},"touch":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Touch"},"unsupported":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unsupported"}},"type":"object","required":["sim"],"title":"HelloIn"},"HelloOut":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"page_load":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Load"},"sid":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sid"},"rid":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rid"},"last_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Seq"},"test":{"anyOf":[{"type":"string","enum":["pre","post","done"]},{"type":"null"}],"title":"Test"},"feedback_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feedback Left"}},"type":"object","required":["enabled"],"title":"HelloOut"},"LilLiveBoard":{"properties":{"session":{"$ref":"#/components/schemas/SessionInfo"},"live":{"type":"boolean","title":"Live"},"as_of":{"type":"string","title":"As Of"},"last_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Activity At"},"joined":{"type":"integer","title":"Joined"},"on_board":{"type":"integer","title":"On Board"},"not_started":{"type":"integer","title":"Not Started"},"gone":{"type":"integer","title":"Gone"},"gone_reached_end":{"type":"integer","title":"Gone Reached End"},"columns":{"items":{"$ref":"#/components/schemas/LiveColumn"},"type":"array","title":"Columns"},"totals":{"$ref":"#/components/schemas/LiveTotals"},"rules":{"$ref":"#/components/schemas/LiveRules"},"on_survey":{"type":"integer","title":"On Survey"},"test":{"anyOf":[{"$ref":"#/components/schemas/LilLiveTest"},{"type":"null"}]}},"type":"object","required":["session","live","as_of","last_activity_at","joined","on_board","not_started","gone","gone_reached_end","columns","totals","rules","on_survey","test"],"title":"LilLiveBoard"},"LilLiveTest":{"properties":{"on_pre_test":{"type":"integer","title":"On Pre Test"},"pre_sent":{"type":"integer","title":"Pre Sent"},"post_sent":{"type":"integer","title":"Post Sent"},"gone_after_test":{"type":"integer","title":"Gone After Test"},"gone_on_after_test":{"type":"integer","title":"Gone On After Test"},"gone_reached_end":{"type":"integer","title":"Gone Reached End"},"gone_early":{"type":"integer","title":"Gone Early"}},"type":"object","required":["on_pre_test","pre_sent","post_sent","gone_after_test","gone_on_after_test","gone_reached_end","gone_early"],"title":"LilLiveTest","description":"A test session's progress beside its live board (metrics-spec §5.13).\nThe test pages are not the simulation, so the board's own figures do not\nsee them: a student on the pre-test has not joined yet, and one writing the\nafter-test has left the simulation. These come from the pages' own reports\n(participants.open_view_now) and the answers sent."},"LilReport":{"properties":{"session":{"$ref":"#/components/schemas/LilSessionRow"},"report":{"$ref":"#/components/schemas/SessionReport"}},"type":"object","required":["session","report"],"title":"LilReport"},"LilSessionIn":{"properties":{"simulation_id":{"type":"string","maxLength":64,"minLength":1,"title":"Simulation Id"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"age_range":{"type":"string","maxLength":16,"minLength":1,"title":"Age Range"},"with_test":{"type":"boolean","title":"With Test","default":false}},"type":"object","required":["simulation_id","age_range"],"title":"LilSessionIn"},"LilSessionList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LilSessionRow"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"LilSessionList"},"LilSessionRow":{"properties":{"id":{"type":"integer","title":"Id"},"simulation_id":{"type":"string","title":"Simulation Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"age_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Range"},"with_test":{"type":"boolean","title":"With Test"},"url":{"type":"string","title":"Url"},"status":{"type":"string","enum":["live","closed","deleted"],"title":"Status"},"created_at":{"type":"string","title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"closed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed At"},"student_runs":{"type":"integer","title":"Student Runs"},"not_counted":{"type":"integer","title":"Not Counted"},"in_now":{"type":"integer","title":"In Now"},"on_pre_now":{"type":"integer","title":"On Pre Now"},"on_survey_now":{"type":"integer","title":"On Survey Now"},"on_post_now":{"type":"integer","title":"On Post Now"},"pre_n":{"type":"integer","title":"Pre N"},"post_n":{"type":"integer","title":"Post N"},"paired_n":{"type":"integer","title":"Paired N"},"to_mark":{"type":"integer","title":"To Mark"},"survey_students":{"type":"integer","title":"Survey Students"},"survey_sends":{"type":"integer","title":"Survey Sends"}},"type":"object","required":["id","simulation_id","title","age_range","with_test","url","status","created_at","created_by","closed_at","student_runs","not_counted","in_now","on_pre_now","on_survey_now","on_post_now","pre_n","post_n","paired_n","to_mark","survey_students","survey_sends"],"title":"LilSessionRow"},"LiveBoard":{"properties":{"session":{"$ref":"#/components/schemas/SessionInfo"},"live":{"type":"boolean","title":"Live"},"as_of":{"type":"string","title":"As Of"},"last_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Activity At"},"joined":{"type":"integer","title":"Joined"},"on_board":{"type":"integer","title":"On Board"},"not_started":{"type":"integer","title":"Not Started"},"gone":{"type":"integer","title":"Gone"},"gone_reached_end":{"type":"integer","title":"Gone Reached End"},"columns":{"items":{"$ref":"#/components/schemas/LiveColumn"},"type":"array","title":"Columns"},"totals":{"$ref":"#/components/schemas/LiveTotals"},"rules":{"$ref":"#/components/schemas/LiveRules"}},"type":"object","required":["session","live","as_of","last_activity_at","joined","on_board","not_started","gone","gone_reached_end","columns","totals","rules"],"title":"LiveBoard"},"LiveColumn":{"properties":{"stage_key":{"type":"string","title":"Stage Key"},"stage_ord":{"type":"integer","title":"Stage Ord"},"label":{"type":"string","title":"Label"},"title":{"type":"string","title":"Title"},"here":{"type":"integer","title":"Here"},"working":{"type":"integer","title":"Working"},"stuck":{"type":"integer","title":"Stuck"},"idle":{"type":"integer","title":"Idle"},"racing":{"type":"integer","title":"Racing"}},"type":"object","required":["stage_key","stage_ord","label","title","here","working","stuck","idle","racing"],"title":"LiveColumn"},"LivePoint":{"properties":{"bucket":{"type":"string","title":"Bucket"},"partial":{"type":"boolean","title":"Partial","default":false},"live":{"type":"number","title":"Live"}},"type":"object","required":["bucket","live"],"title":"LivePoint"},"LiveRules":{"properties":{"poll_sec":{"type":"integer","title":"Poll Sec"},"flush_sec":{"type":"integer","title":"Flush Sec"},"stage_flush_sec":{"type":"integer","title":"Stage Flush Sec"},"idle_after_min":{"type":"integer","title":"Idle After Min"},"presence_min":{"type":"integer","title":"Presence Min"},"gone_after_min":{"type":"integer","title":"Gone After Min"},"stuck_factor":{"type":"number","title":"Stuck Factor"},"stuck_min_finished":{"type":"integer","title":"Stuck Min Finished"},"stuck_floor_sec":{"type":"integer","title":"Stuck Floor Sec"},"racing_min_stage":{"type":"integer","title":"Racing Min Stage"},"racing_sec_per_stage":{"type":"integer","title":"Racing Sec Per Stage"}},"type":"object","required":["poll_sec","flush_sec","stage_flush_sec","idle_after_min","presence_min","gone_after_min","stuck_factor","stuck_min_finished","stuck_floor_sec","racing_min_stage","racing_sec_per_stage"],"title":"LiveRules","description":"The thresholds, so the board can say what each colour means in numbers."},"LiveTotals":{"properties":{"working":{"type":"integer","title":"Working"},"stuck":{"type":"integer","title":"Stuck"},"idle":{"type":"integer","title":"Idle"},"racing":{"type":"integer","title":"Racing"}},"type":"object","required":["working","stuck","idle","racing"],"title":"LiveTotals"},"LoginIn":{"properties":{"email":{"type":"string","maxLength":254,"minLength":1,"title":"Email"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"},"next":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Next"},"remember":{"type":"boolean","title":"Remember","default":false}},"type":"object","required":["email","password"],"title":"LoginIn"},"LoginOut":{"properties":{"redirect":{"type":"string","title":"Redirect"}},"type":"object","required":["redirect"],"title":"LoginOut"},"MarkIn":{"properties":{"mark":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":0.0},{"type":"null"}],"title":"Mark"}},"type":"object","title":"MarkIn"},"MatrixCell":{"properties":{"school_id":{"type":"integer","title":"School Id"},"simulation_id":{"type":"string","title":"Simulation Id"},"sessions_used":{"type":"integer","title":"Sessions Used"},"student_runs":{"type":"integer","title":"Student Runs"}},"type":"object","required":["school_id","simulation_id","sessions_used","student_runs"],"title":"MatrixCell"},"MeOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"$ref":"#/components/schemas/Role"},"preferred_lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Lang"},"school_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"School Id"},"school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Name"},"seats_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Total"},"seats_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Used"}},"type":"object","required":["id","email","role"],"title":"MeOut"},"OpenViewIn":{"properties":{"sim":{"type":"string","maxLength":64,"minLength":1,"title":"Sim"},"sid":{"type":"integer","minimum":1.0,"title":"Sid"},"rid":{"type":"integer","minimum":1.0,"title":"Rid"},"view":{"type":"string","enum":["pre","survey","post"],"title":"View"},"closed":{"type":"boolean","title":"Closed","default":false}},"type":"object","required":["sim","sid","rid","view"],"title":"OpenViewIn","description":"A view besides the simulation saying it is open, or that it closed\n(`closed`): the LIL pre-test or after-test page (templates/prepost_test.html)\nor the feedback view (static_auth/sim-feedback.js). For the owner's LIL live\nboard and sessions list only (participants.open_view_now). Named by the run\nas a telemetry batch, and authorised by the same `simpt_<sid>` cookie. Also\nsent by navigator.sendBeacon as the page goes, so nothing else is asked."},"OverviewOut":{"properties":{"participants":{"type":"integer","title":"Participants"},"starters":{"type":"integer","title":"Starters"},"depth_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Pct"},"visible_minutes_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Visible Minutes P50"},"visible_minutes_p90":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Visible Minutes P90"},"engagement_quality":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engagement Quality"},"completers":{"type":"integer","title":"Completers"},"completion_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Completion Rate"},"median_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Minutes"},"sessions":{"type":"integer","title":"Sessions"},"schools":{"type":"integer","title":"Schools"},"versions_seen":{"items":{"$ref":"#/components/schemas/VersionSeen"},"type":"array","title":"Versions Seen","default":[]},"trend":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Trend"},"freshness":{"$ref":"#/components/schemas/app__routers__insights__Freshness"}},"type":"object","required":["participants","starters","depth_pct","visible_minutes_p50","visible_minutes_p90","engagement_quality","completers","completion_rate","median_minutes","sessions","schools","trend","freshness"],"title":"OverviewOut"},"PrePostIn":{"properties":{"sim":{"type":"string","maxLength":64,"minLength":1,"title":"Sim"},"sid":{"type":"integer","minimum":1.0,"title":"Sid"},"rid":{"type":"integer","minimum":1.0,"title":"Rid"},"phase":{"type":"string","enum":["pre","post"],"title":"Phase"},"answers":{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":4,"title":"Answers"}},"type":"object","required":["sim","sid","rid","phase","answers"],"title":"PrePostIn","description":"One phase of an LIL pre/post test: the four answers, sent once\n(templates/prepost_test.html). Named by the run as a telemetry batch, and\nauthorised by the same `simpt_<sid>` cookie. A blank answer is ''."},"ProblemIn":{"properties":{"kind":{"type":"string","enum":["broken","odd","idea"],"title":"Kind"},"description":{"type":"string","maxLength":4000,"title":"Description"},"simulation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Simulation Id"},"page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Page"},"viewport":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Viewport"}},"type":"object","required":["kind","description"],"title":"ProblemIn"},"Reach":{"properties":{"yours":{"$ref":"#/components/schemas/ReachCurve"},"world":{"anyOf":[{"$ref":"#/components/schemas/ReachCurve"},{"type":"null"}]}},"type":"object","required":["yours","world"],"title":"Reach"},"ReachCurve":{"properties":{"n":{"type":"integer","title":"N"},"shares":{"items":{"type":"number"},"type":"array","title":"Shares"}},"type":"object","required":["n","shares"],"title":"ReachCurve"},"RefreshOut":{"properties":{"pending_events":{"type":"integer","title":"Pending Events"},"skipped":{"type":"boolean","title":"Skipped"}},"type":"object","required":["pending_events","skipped"],"title":"RefreshOut"},"Role":{"type":"string","enum":["ADMIN","DEVELOPER","SCHOOL","TEACHER"],"title":"Role"},"SchoolAttentionItem":{"properties":{"kind":{"type":"string","enum":["invite_unaccepted","never_created","nobody_joined","seats_full","seats_unused"],"title":"Kind"},"n":{"type":"integer","title":"N"},"teachers":{"items":{"$ref":"#/components/schemas/AttentionTeacher"},"type":"array","title":"Teachers"}},"type":"object","required":["kind","n","teachers"],"title":"SchoolAttentionItem"},"SchoolInfo":{"properties":{"name":{"type":"string","title":"Name"},"seats_total":{"type":"integer","title":"Seats Total"},"seats_used":{"type":"integer","title":"Seats Used"}},"type":"object","required":["name","seats_total","seats_used"],"title":"SchoolInfo"},"SchoolKpis":{"properties":{"teacher_accounts":{"type":"integer","title":"Teacher Accounts"},"teachers_active":{"type":"integer","title":"Teachers Active"},"teachers_signed_in":{"type":"integer","title":"Teachers Signed In"},"sessions_created":{"type":"integer","title":"Sessions Created"},"sessions_used":{"type":"integer","title":"Sessions Used"},"sessions_unused":{"type":"integer","title":"Sessions Unused"},"participations":{"type":"integer","title":"Participations"},"seats_total":{"type":"integer","title":"Seats Total"},"seats_used":{"type":"integer","title":"Seats Used"}},"type":"object","required":["teacher_accounts","teachers_active","teachers_signed_in","sessions_created","sessions_used","sessions_unused","participations","seats_total","seats_used"],"title":"SchoolKpis"},"SchoolName":{"properties":{"school_id":{"type":"integer","title":"School Id"},"name":{"type":"string","title":"Name"},"internal":{"type":"boolean","title":"Internal","default":false}},"type":"object","required":["school_id","name"],"title":"SchoolName"},"SchoolPoint":{"properties":{"bucket":{"type":"string","title":"Bucket"},"sessions_created":{"type":"integer","title":"Sessions Created"},"sessions_used":{"type":"integer","title":"Sessions Used"},"student_runs":{"type":"integer","title":"Student Runs"},"active_teachers":{"type":"integer","title":"Active Teachers"},"active_teachers_7d":{"type":"integer","title":"Active Teachers 7D"}},"type":"object","required":["bucket","sessions_created","sessions_used","student_runs","active_teachers","active_teachers_7d"],"title":"SchoolPoint"},"SchoolSeries":{"properties":{"school_id":{"type":"integer","title":"School Id"},"name":{"type":"string","title":"Name"},"points":{"items":{"$ref":"#/components/schemas/SchoolPoint"},"type":"array","title":"Points"}},"type":"object","required":["school_id","name","points"],"title":"SchoolSeries"},"SchoolSessionRow":{"properties":{"session_id":{"type":"integer","title":"Session Id"},"simulation_id":{"type":"string","title":"Simulation Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","title":"Created At"},"age_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Range"},"status":{"type":"string","title":"Status"},"participations":{"type":"integer","title":"Participations"},"started":{"type":"integer","title":"Started"}},"type":"object","required":["session_id","simulation_id","title","created_at","age_range","status","participations","started"],"title":"SchoolSessionRow"},"SchoolSimUsage":{"properties":{"simulation_id":{"type":"string","title":"Simulation Id"},"sessions_used":{"type":"integer","title":"Sessions Used"},"teachers":{"type":"integer","title":"Teachers"},"participations":{"type":"integer","title":"Participations"}},"type":"object","required":["simulation_id","sessions_used","teachers","participations"],"title":"SchoolSimUsage"},"SchoolTeacherRow":{"properties":{"teacher_id":{"type":"integer","title":"Teacher Id"},"email":{"type":"string","title":"Email"},"status":{"type":"string","title":"Status"},"section":{"type":"string","enum":["started","not_started","inactive"],"title":"Section"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"sessions_created":{"type":"integer","title":"Sessions Created"},"sessions_used":{"type":"integer","title":"Sessions Used"},"participations":{"type":"integer","title":"Participations"},"simulations_used":{"type":"integer","title":"Simulations Used"},"last_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Activity At"},"days_since_activity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Since Activity"}},"type":"object","required":["teacher_id","email","status","section","created_at","sessions_created","sessions_used","participations","simulations_used","last_activity_at","days_since_activity"],"title":"SchoolTeacherRow"},"SchoolTeacherRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"$ref":"#/components/schemas/Role"},"is_active":{"type":"boolean","title":"Is Active"},"email_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Verified At"},"school_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"School Id"},"school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Name"},"seats_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Used"},"seats_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Total"},"seats_requested":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Requested"},"approval_status":{"anyOf":[{"$ref":"#/components/schemas/ApprovalStatus"},{"type":"null"}]},"subscription_status":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionStatus"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"terms_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terms Accepted At"},"terms_current":{"type":"boolean","title":"Terms Current","default":false},"invite_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invite Sent At"},"invite_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invite Expires At"},"open_links":{"type":"integer","title":"Open Links","default":0}},"type":"object","required":["id","email","role","is_active","created_at"],"title":"SchoolTeacherRowOut","description":"A row of the school admin's Teachers table (/dashboard/school)."},"SchoolTeachersOut":{"properties":{"teachers":{"items":{"$ref":"#/components/schemas/SchoolTeacherRow"},"type":"array","title":"Teachers"}},"type":"object","required":["teachers"],"title":"SchoolTeachersOut"},"SchoolUsageOut":{"properties":{"school":{"$ref":"#/components/schemas/SchoolInfo"},"grain":{"type":"string","title":"Grain"},"allowed_grains":{"items":{"type":"string"},"type":"array","title":"Allowed Grains"},"kpis":{"$ref":"#/components/schemas/SchoolKpis"},"series":{"items":{"$ref":"#/components/schemas/SchoolUsagePoint"},"type":"array","title":"Series"},"funnel":{"items":{"$ref":"#/components/schemas/FunnelStep"},"type":"array","title":"Funnel"},"by_simulation":{"items":{"$ref":"#/components/schemas/SchoolSimUsage"},"type":"array","title":"By Simulation"},"attention":{"items":{"$ref":"#/components/schemas/SchoolAttentionItem"},"type":"array","title":"Attention"},"invite_stale_days":{"type":"integer","title":"Invite Stale Days"},"never_created_grace_days":{"type":"integer","title":"Never Created Grace Days"}},"type":"object","required":["school","grain","allowed_grains","kpis","series","funnel","by_simulation","attention","invite_stale_days","never_created_grace_days"],"title":"SchoolUsageOut"},"SchoolUsagePoint":{"properties":{"bucket":{"type":"string","title":"Bucket"},"span_from":{"type":"string","title":"Span From"},"span_to":{"type":"string","title":"Span To"},"partial":{"type":"boolean","title":"Partial"},"sessions_created":{"type":"integer","title":"Sessions Created"},"sessions_used":{"type":"integer","title":"Sessions Used"},"sessions_unused":{"type":"integer","title":"Sessions Unused"},"participations":{"type":"integer","title":"Participations"},"active_teachers":{"type":"integer","title":"Active Teachers"},"teacher_accounts":{"type":"integer","title":"Teacher Accounts"}},"type":"object","required":["bucket","span_from","span_to","partial","sessions_created","sessions_used","sessions_unused","participations","active_teachers","teacher_accounts"],"title":"SchoolUsagePoint"},"SchoolUsageRow":{"properties":{"school_id":{"type":"integer","title":"School Id"},"name":{"type":"string","title":"Name"},"approval_status":{"type":"string","title":"Approval Status"},"subscription_status":{"type":"string","title":"Subscription Status"},"is_active":{"type":"boolean","title":"Is Active"},"deleted":{"type":"boolean","title":"Deleted"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"seats_total":{"type":"integer","title":"Seats Total"},"seats_used":{"type":"integer","title":"Seats Used"},"teacher_accounts":{"type":"integer","title":"Teacher Accounts"},"teachers_signed_in":{"type":"integer","title":"Teachers Signed In"},"active_teachers":{"type":"integer","title":"Active Teachers"},"sessions_created":{"type":"integer","title":"Sessions Created"},"sessions_used":{"type":"integer","title":"Sessions Used"},"student_runs":{"type":"integer","title":"Student Runs"},"simulations_used":{"type":"integer","title":"Simulations Used"},"surveys_returned":{"type":"integer","title":"Surveys Returned"},"last_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Activity At"},"days_since_activity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Since Activity"},"last_teacher_login_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Teacher Login At"},"internal":{"type":"boolean","title":"Internal","default":false}},"type":"object","required":["school_id","name","approval_status","subscription_status","is_active","deleted","created_at","seats_total","seats_used","teacher_accounts","teachers_signed_in","active_teachers","sessions_created","sessions_used","student_runs","simulations_used","surveys_returned","last_activity_at","days_since_activity","last_teacher_login_at"],"title":"SchoolUsageRow"},"SearchOut":{"properties":{"results":{"items":{"type":"string"},"type":"array","title":"Results"},"meaning":{"type":"boolean","title":"Meaning"}},"type":"object","required":["results","meaning"],"title":"SearchOut"},"SellerConfig":{"properties":{"min_accept_price":{"type":"number","title":"Min Accept Price"}},"type":"object","required":["min_accept_price"],"title":"SellerConfig"},"SentOut":{"properties":{"id":{"type":"integer","title":"Id"}},"type":"object","required":["id"],"title":"SentOut"},"SessionInfo":{"properties":{"id":{"type":"integer","title":"Id"},"simulation_id":{"type":"string","title":"Simulation Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","title":"Created At"},"expires_at":{"type":"string","title":"Expires At"},"status":{"type":"string","enum":["live","expired","revoked","deleted"],"title":"Status"},"age_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Range"},"sim_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sim Version"},"stages":{"items":{"$ref":"#/components/schemas/StageOption"},"type":"array","title":"Stages"}},"type":"object","required":["id","simulation_id","title","created_at","expires_at","status","age_range","sim_version","stages"],"title":"SessionInfo"},"SessionListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SessionRowOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"SessionListOut"},"SessionReport":{"properties":{"session":{"$ref":"#/components/schemas/SessionInfo"},"headline":{"$ref":"#/components/schemas/Headline"},"sittings":{"items":{"$ref":"#/components/schemas/Sitting"},"type":"array","title":"Sittings"},"devices":{"items":{"$ref":"#/components/schemas/Band"},"type":"array","title":"Devices"},"languages":{"items":{"$ref":"#/components/schemas/Band"},"type":"array","title":"Languages"},"stages":{"items":{"$ref":"#/components/schemas/StageOut"},"type":"array","title":"Stages"},"exploration":{"items":{"$ref":"#/components/schemas/ExploreStage"},"type":"array","title":"Exploration"},"survey":{"anyOf":[{"$ref":"#/components/schemas/SurveyOut"},{"type":"null"}]},"freshness":{"$ref":"#/components/schemas/app__routers__teacher_insights__Freshness"},"low_confidence_below":{"type":"integer","title":"Low Confidence Below"},"param_trace_max_runs":{"type":"integer","title":"Param Trace Max Runs"}},"type":"object","required":["session","headline","sittings","devices","languages","stages","exploration","survey","freshness","low_confidence_below","param_trace_max_runs"],"title":"SessionReport"},"SessionRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"token":{"type":"string","title":"Token"},"simulation_id":{"type":"string","title":"Simulation Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"opened_count":{"type":"integer","title":"Opened Count"},"student_runs":{"type":"integer","title":"Student Runs","default":0},"in_now":{"type":"integer","title":"In Now","default":0},"last_left_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Left At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"url":{"type":"string","title":"Url"},"status":{"type":"string","title":"Status"},"age_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Range"},"feedback_given":{"type":"boolean","title":"Feedback Given","default":false}},"type":"object","required":["id","token","simulation_id","expires_at","opened_count","created_at","url","status"],"title":"SessionRowOut"},"SetLanguageIn":{"properties":{"lang":{"type":"string","maxLength":8,"minLength":1,"title":"Lang"}},"type":"object","required":["lang"],"title":"SetLanguageIn"},"SetPasswordIn":{"properties":{"token":{"type":"string","maxLength":512,"minLength":1,"title":"Token"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false}},"type":"object","required":["token","password"],"title":"SetPasswordIn"},"SetPasswordOut":{"properties":{"redirect":{"type":"string","title":"Redirect"}},"type":"object","required":["redirect"],"title":"SetPasswordOut"},"SettingIn":{"properties":{"value":{"title":"Value"},"expected":{"title":"Expected"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"additionalProperties":false,"type":"object","required":["value"],"title":"SettingIn"},"SignupOut":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true}},"type":"object","title":"SignupOut"},"SignupSchoolIn":{"properties":{"school_name":{"type":"string","maxLength":200,"minLength":1,"title":"School Name"},"contact_email":{"type":"string","maxLength":254,"minLength":3,"title":"Contact Email"},"seats_requested":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Seats Requested"},"captcha_token":{"type":"string","maxLength":4096,"title":"Captcha Token","default":""},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false}},"type":"object","required":["school_name","contact_email","seats_requested"],"title":"SignupSchoolIn"},"SimOption":{"properties":{"id":{"type":"string","title":"Id"},"used_sessions":{"type":"integer","title":"Used Sessions"},"has_stages":{"type":"boolean","title":"Has Stages"}},"type":"object","required":["id","used_sessions","has_stages"],"title":"SimOption"},"SimUsage":{"properties":{"simulation_id":{"type":"string","title":"Simulation Id"},"sessions_used":{"type":"integer","title":"Sessions Used"},"schools":{"type":"integer","title":"Schools"},"teachers":{"type":"integer","title":"Teachers"},"student_runs":{"type":"integer","title":"Student Runs"}},"type":"object","required":["simulation_id","sessions_used","schools","teachers","student_runs"],"title":"SimUsage"},"SimulationRequest":{"properties":{"buyers":{"items":{"$ref":"#/components/schemas/BuyerConfig"},"type":"array","title":"Buyers"},"sellers":{"items":{"$ref":"#/components/schemas/SellerConfig"},"type":"array","title":"Sellers"},"initial_price":{"type":"number","title":"Initial Price","default":50.0},"num_steps":{"type":"integer","title":"Num Steps","default":30},"price_adjustment_rate":{"type":"number","title":"Price Adjustment Rate","default":2.0}},"type":"object","required":["buyers","sellers"],"title":"SimulationRequest"},"SimulationResponse":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/TradeResult"},"type":"array","title":"Steps"},"final_price":{"type":"number","title":"Final Price"},"total_trades":{"type":"integer","title":"Total Trades"},"equilibrium_reached":{"type":"boolean","title":"Equilibrium Reached"},"equilibrium_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Equilibrium Step"}},"type":"object","required":["steps","final_price","total_trades","equilibrium_reached","equilibrium_step"],"title":"SimulationResponse"},"SimulationRow":{"properties":{"simulation_id":{"type":"string","title":"Simulation Id"},"instrumented":{"type":"boolean","title":"Instrumented"},"sessions":{"type":"integer","title":"Sessions","default":0},"participants":{"type":"integer","title":"Participants"},"starters":{"type":"integer","title":"Starters"},"completers":{"type":"integer","title":"Completers"},"completion_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Completion Rate"},"depth_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Depth Pct"},"engagement_quality":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engagement Quality"},"median_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Minutes"},"p90_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P90 Minutes"},"teacher_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Teacher Score"},"difficulty_fit_gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Difficulty Fit Gap"},"teacher_survey_n":{"type":"integer","title":"Teacher Survey N"},"sim_health":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sim Health"},"suppressed":{"type":"boolean","title":"Suppressed"},"confidence":{"type":"string","title":"Confidence","default":"ok"}},"type":"object","required":["simulation_id","instrumented","participants","starters","completers","completion_rate","depth_pct","engagement_quality","median_minutes","p90_minutes","teacher_score","difficulty_fit_gap","teacher_survey_n","sim_health","suppressed"],"title":"SimulationRow"},"Sitting":{"properties":{"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"runs":{"type":"integer","title":"Runs"}},"type":"object","required":["start","end","runs"],"title":"Sitting","description":"A stretch of activity. Separate sittings are gaps of more than\nSESSION_SITTING_GAP_HOURS — a link can be reopened days later."},"StageOption":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"}},"type":"object","required":["key","title"],"title":"StageOption"},"StageOut":{"properties":{"stage_key":{"type":"string","title":"Stage Key"},"stage_ord":{"type":"integer","title":"Stage Ord"},"title":{"type":"string","title":"Title"},"reached":{"type":"integer","title":"Reached"},"visits":{"type":"integer","title":"Visits"},"moved_forward":{"type":"integer","title":"Moved Forward"},"moved_back":{"type":"integer","title":"Moved Back"},"backwards":{"type":"integer","title":"Backwards"},"engaged_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engaged Rate"},"hint_runs":{"type":"integer","title":"Hint Runs"},"dwell_p10_ms":{"type":"integer","title":"Dwell P10 Ms"},"dwell_p25_ms":{"type":"integer","title":"Dwell P25 Ms"},"dwell_p50_ms":{"type":"integer","title":"Dwell P50 Ms"},"dwell_p75_ms":{"type":"integer","title":"Dwell P75 Ms"},"dwell_p90_ms":{"type":"integer","title":"Dwell P90 Ms"},"total_dwell_p10_ms":{"type":"integer","title":"Total Dwell P10 Ms"},"total_dwell_p25_ms":{"type":"integer","title":"Total Dwell P25 Ms"},"total_dwell_p50_ms":{"type":"integer","title":"Total Dwell P50 Ms"},"total_dwell_p75_ms":{"type":"integer","title":"Total Dwell P75 Ms"},"total_dwell_p90_ms":{"type":"integer","title":"Total Dwell P90 Ms"},"experimentation_index":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Experimentation Index"},"model_runs_per_run":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Model Runs Per Run"},"sliders_per_run":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sliders Per Run"},"resets_per_run":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Resets Per Run"},"low_n":{"type":"boolean","title":"Low N"},"worked_p25_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Worked P25 Ms"},"worked_p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Worked P50 Ms"},"worked_p75_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Worked P75 Ms"}},"type":"object","required":["stage_key","stage_ord","title","reached","visits","moved_forward","moved_back","backwards","engaged_rate","hint_runs","dwell_p10_ms","dwell_p25_ms","dwell_p50_ms","dwell_p75_ms","dwell_p90_ms","total_dwell_p10_ms","total_dwell_p25_ms","total_dwell_p50_ms","total_dwell_p75_ms","total_dwell_p90_ms","experimentation_index","model_runs_per_run","sliders_per_run","resets_per_run","low_n","worked_p25_ms","worked_p50_ms","worked_p75_ms"],"title":"StageOut"},"StageRow":{"properties":{"stage_key":{"type":"string","title":"Stage Key"},"stage_ord":{"type":"integer","title":"Stage Ord"},"label":{"type":"string","title":"Label"},"title":{"type":"string","title":"Title"},"participants":{"type":"integer","title":"Participants"},"visits":{"type":"integer","title":"Visits"},"first_visits":{"type":"integer","title":"First Visits"},"completions":{"type":"integer","title":"Completions"},"completion_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Completion Rate"},"forwards":{"type":"integer","title":"Forwards"},"forward_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Forward Rate"},"forward_participants":{"type":"integer","title":"Forward Participants"},"backnav_participants":{"type":"integer","title":"Backnav Participants"},"backwards":{"type":"integer","title":"Backwards"},"abandons":{"type":"integer","title":"Abandons"},"abandon_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Abandon Rate"},"engaged_abandons":{"type":"integer","title":"Engaged Abandons"},"engaged_abandon_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engaged Abandon Rate"},"backnav_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Backnav Rate"},"revisit_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revisit Rate"},"skip_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Skip Rate"},"reset_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reset Rate"},"runs_per_participant":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Runs Per Participant"},"dwell_p10_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dwell P10 Ms"},"dwell_p25_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dwell P25 Ms"},"dwell_p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dwell P50 Ms"},"dwell_p75_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dwell P75 Ms"},"dwell_p90_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dwell P90 Ms"},"total_dwell_p10_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Dwell P10 Ms"},"total_dwell_p25_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Dwell P25 Ms"},"total_dwell_p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Dwell P50 Ms"},"total_dwell_p75_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Dwell P75 Ms"},"total_dwell_p90_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Dwell P90 Ms"},"worked_dwell_p50_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Worked Dwell P50 Ms"},"experimentation_index":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Experimentation Index"},"experimentation_components":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Experimentation Components"},"runs_per_student":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Runs Per Student"},"settings_tried_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Settings Tried P50"},"settings_tried_n":{"type":"integer","title":"Settings Tried N"},"sliders_per_student":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sliders Per Student"},"resets_per_student":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Resets Per Student"},"group_counts":{"additionalProperties":true,"type":"object","title":"Group Counts"},"error_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Error Rate"},"likely_broken":{"type":"boolean","title":"Likely Broken"},"confidence":{"type":"string","title":"Confidence"},"suppressed":{"type":"boolean","title":"Suppressed"}},"type":"object","required":["stage_key","stage_ord","label","title","participants","visits","first_visits","completions","completion_rate","forwards","forward_rate","forward_participants","backnav_participants","backwards","abandons","abandon_rate","engaged_abandons","engaged_abandon_rate","backnav_rate","revisit_rate","skip_rate","reset_rate","runs_per_participant","dwell_p10_ms","dwell_p25_ms","dwell_p50_ms","dwell_p75_ms","dwell_p90_ms","total_dwell_p10_ms","total_dwell_p25_ms","total_dwell_p50_ms","total_dwell_p75_ms","total_dwell_p90_ms","worked_dwell_p50_ms","experimentation_index","experimentation_components","runs_per_student","settings_tried_p50","settings_tried_n","sliders_per_student","resets_per_student","group_counts","error_rate","likely_broken","confidence","suppressed"],"title":"StageRow"},"StageSpecIn":{"properties":{"adjust":{"type":"string","maxLength":300,"minLength":1,"title":"Adjust"},"run":{"type":"string","maxLength":300,"minLength":1,"title":"Run"},"outcome":{"type":"string","maxLength":300,"minLength":1,"title":"Outcome"},"run_source":{"type":"string","maxLength":120,"minLength":1,"title":"Run Source","default":"sim"}},"type":"object","required":["adjust","run","outcome"],"title":"StageSpecIn"},"StudentFeedbackIn":{"properties":{"sim":{"type":"string","maxLength":64,"minLength":1,"title":"Sim"},"sid":{"type":"integer","minimum":1.0,"title":"Sid"},"rid":{"type":"integer","minimum":1.0,"title":"Rid"},"kind":{"type":"string","enum":["open","submit"],"title":"Kind"},"from":{"type":"string","enum":["finish","sidebar"],"title":"From","default":"sidebar"},"stage":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Stage"},"lang":{"anyOf":[{"type":"string","enum":["en","es"]},{"type":"null"}],"title":"Lang"},"difficulty":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Difficulty"},"fun":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Fun"},"learned":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Learned"},"comment":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Comment"}},"type":"object","required":["sim","sid","rid","kind"],"title":"StudentFeedbackIn","description":"One message from the feedback view inside a simulation\n(static_auth/sim-feedback.js): it opened (`open`), or the student sent\ntheir answers (`submit`). Named by the run exactly like a telemetry batch\n(`sid`, `rid`), and authorised by the same `simpt_<sid>` cookie."},"StudentFeedbackOut":{"properties":{"answered":{"type":"boolean","title":"Answered"},"comment_saved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Comment Saved"},"sends_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sends Left"}},"type":"object","required":["answered"],"title":"StudentFeedbackOut"},"StudentTriageIn":{"properties":{"status":{"anyOf":[{"type":"string","enum":["new","reviewed","actioned","dismissed"]},{"type":"null"}],"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"StudentTriageIn"},"SubscriptionStatus":{"type":"string","enum":["TRIAL","ACTIVE","PAST_DUE","CANCELED"],"title":"SubscriptionStatus"},"SurveyOut":{"properties":{"engagement":{"type":"integer","title":"Engagement"},"learning_value":{"type":"integer","title":"Learning Value"},"difficulty_fit":{"type":"integer","title":"Difficulty Fit"},"time_fit":{"type":"integer","title":"Time Fit"},"discussion":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discussion"},"free_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Free Text"}},"type":"object","required":["engagement","learning_value","difficulty_fit","time_fit","discussion","free_text"],"title":"SurveyOut","description":"The teacher's own post-session survey — their answers, their words.\nNever Learn in Labs' triage of the comment (status, note), which is\nowner-only."},"TeacherFeedbackIn":{"properties":{"engagement":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Engagement"},"learning_value":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Learning Value"},"difficulty_fit":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Difficulty Fit"},"time_fit":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Time Fit"},"discussion":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Discussion"},"free_text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Free Text"}},"type":"object","required":["engagement","learning_value","difficulty_fit","time_fit","discussion"],"title":"TeacherFeedbackIn"},"TeacherListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SchoolTeacherRowOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"seats_used":{"type":"integer","title":"Seats Used"},"seats_total":{"type":"integer","title":"Seats Total"}},"type":"object","required":["items","total","seats_used","seats_total"],"title":"TeacherListOut"},"TeacherMatrixOut":{"properties":{"teachers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Teachers"},"simulations":{"items":{"type":"string"},"type":"array","title":"Simulations"},"cells":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Cells"}},"type":"object","required":["teachers","simulations","cells"],"title":"TeacherMatrixOut"},"TeacherSessionRow":{"properties":{"session_id":{"type":"integer","title":"Session Id"},"simulation_id":{"type":"string","title":"Simulation Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","title":"Created At"},"age_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Range"},"status":{"type":"string","title":"Status"},"student_runs":{"type":"integer","title":"Student Runs"},"started_runs":{"type":"integer","title":"Started Runs"},"survey_returned":{"type":"boolean","title":"Survey Returned"}},"type":"object","required":["session_id","simulation_id","title","created_at","age_range","status","student_runs","started_runs","survey_returned"],"title":"TeacherSessionRow"},"TeacherUsageRow":{"properties":{"teacher_id":{"type":"integer","title":"Teacher Id"},"email":{"type":"string","title":"Email"},"school_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"School Id"},"school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Name"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"last_login_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Login At"},"status":{"type":"string","title":"Status"},"sessions_created":{"type":"integer","title":"Sessions Created"},"sessions_used":{"type":"integer","title":"Sessions Used"},"sessions_used_prev":{"type":"integer","title":"Sessions Used Prev"},"student_runs":{"type":"integer","title":"Student Runs"},"simulations_used":{"type":"integer","title":"Simulations Used"},"surveys_returned":{"type":"integer","title":"Surveys Returned"},"first_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Activity At"},"last_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Activity At"},"days_since_activity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Since Activity"}},"type":"object","required":["teacher_id","email","school_id","school_name","created_at","last_login_at","status","sessions_created","sessions_used","sessions_used_prev","student_runs","simulations_used","surveys_returned","first_activity_at","last_activity_at","days_since_activity"],"title":"TeacherUsageRow"},"TelemetryBatchIn":{"properties":{"sim":{"type":"string","maxLength":64,"minLength":1,"title":"Sim"},"sid":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Sid"},"rid":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Rid"},"events":{"items":{"$ref":"#/components/schemas/TelemetryEventIn"},"type":"array","maxItems":50,"minItems":1,"title":"Events"}},"type":"object","required":["sim","events"],"title":"TelemetryBatchIn"},"TelemetryEventIn":{"properties":{"k":{"type":"string","maxLength":24,"minLength":1,"title":"K"},"s":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"S"},"q":{"type":"integer","minimum":0.0,"title":"Q"},"ct":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Ct"},"d":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"D"},"h":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"H"},"p":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"P"},"a":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"A"}},"type":"object","required":["k","q"],"title":"TelemetryEventIn","description":"One event. Field names are one or two characters because these travel in\nbatches of up to 50 over school Wi-Fi, often via sendBeacon on pagehide."},"TopicIn":{"properties":{"title":{"type":"string","maxLength":120,"title":"Title"},"description":{"type":"string","maxLength":4000,"title":"Description"},"subject":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Subject"},"age_range":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Age Range"}},"type":"object","required":["title","description"],"title":"TopicIn"},"TradeResult":{"properties":{"step":{"type":"integer","title":"Step"},"price":{"type":"number","title":"Price"},"trades":{"type":"integer","title":"Trades"},"surplus":{"type":"integer","title":"Surplus"},"status":{"type":"string","title":"Status"}},"type":"object","required":["step","price","trades","surplus","status"],"title":"TradeResult"},"TrendOptions":{"properties":{"simulations":{"items":{"$ref":"#/components/schemas/SimOption"},"type":"array","title":"Simulations"},"builds":{"items":{"$ref":"#/components/schemas/BuildOption"},"type":"array","title":"Builds"},"ages":{"items":{"type":"string"},"type":"array","title":"Ages"}},"type":"object","required":["simulations","builds","ages"],"title":"TrendOptions"},"TrendRules":{"properties":{"world_min_schools":{"type":"integer","title":"World Min Schools"},"world_min_runs":{"type":"integer","title":"World Min Runs"},"low_confidence_below":{"type":"integer","title":"Low Confidence Below"},"engaged_stage_min_sec":{"type":"integer","title":"Engaged Stage Min Sec"}},"type":"object","required":["world_min_schools","world_min_runs","low_confidence_below","engaged_stage_min_sec"],"title":"TrendRules","description":"The thresholds, so the page's ⓘ states the rules it actually applies."},"TrendStage":{"properties":{"stage_key":{"type":"string","title":"Stage Key"},"stage_ord":{"type":"integer","title":"Stage Ord"},"title":{"type":"string","title":"Title"},"students":{"type":"integer","title":"Students"},"minutes_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minutes P50"},"model_runs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Model Runs"},"world_minutes_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"World Minutes P50"},"world_model_runs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"World Model Runs"},"ran_model":{"type":"boolean","title":"Ran Model"}},"type":"object","required":["stage_key","stage_ord","title","students","minutes_p50","model_runs","world_minutes_p50","world_model_runs","ran_model"],"title":"TrendStage","description":"One stage, every session pooled; all classes' too, when they are shown\nand enough of their students opened the stage."},"TrendWorld":{"properties":{"enough":{"type":"boolean","title":"Enough"},"runs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Runs"}},"type":"object","required":["enough","runs"],"title":"TrendWorld","description":"Whether \"All classes\" is shown, and how many student joins it pools —\nnever how many schools, nor anything of one."},"TrendsOut":{"properties":{"simulation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Simulation Id"},"sim_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sim Version"},"age_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Range"},"stages_total":{"type":"integer","title":"Stages Total"},"options":{"$ref":"#/components/schemas/TrendOptions"},"sessions_used":{"type":"integer","title":"Sessions Used"},"sessions_deleted":{"type":"integer","title":"Sessions Deleted"},"sessions_no_age":{"type":"integer","title":"Sessions No Age"},"student_runs":{"type":"integer","title":"Student Runs"},"reach":{"anyOf":[{"$ref":"#/components/schemas/Reach"},{"type":"null"}]},"lesson_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lesson Minutes"},"lesson_stages":{"type":"integer","title":"Lesson Stages"},"world_lesson_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"World Lesson Minutes"},"stages":{"items":{"$ref":"#/components/schemas/TrendStage"},"type":"array","title":"Stages"},"world":{"$ref":"#/components/schemas/TrendWorld"},"rules":{"$ref":"#/components/schemas/TrendRules"}},"type":"object","required":["simulation_id","sim_version","age_range","stages_total","options","sessions_used","sessions_deleted","sessions_no_age","student_runs","reach","lesson_minutes","lesson_stages","world_lesson_minutes","stages","world","rules"],"title":"TrendsOut"},"TrialRow":{"properties":{"id":{"type":"integer","title":"Id"},"ref":{"type":"string","title":"Ref"},"simulation_id":{"type":"string","title":"Simulation Id"},"school_id":{"type":"integer","title":"School Id"},"school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Name"},"lang":{"type":"string","title":"Lang"},"lang_pct":{"additionalProperties":true,"type":"object","title":"Lang Pct","default":{}},"device":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device"},"source":{"type":"string","title":"Source"},"started_at":{"type":"string","title":"Started At"},"last_seen_at":{"type":"string","title":"Last Seen At"},"stages_reached":{"type":"integer","title":"Stages Reached"},"stages_total":{"type":"integer","title":"Stages Total"},"engaged_stages":{"type":"integer","title":"Engaged Stages"},"engagement_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engagement Pct"},"visible_minutes":{"type":"number","title":"Visible Minutes"},"reached_end":{"type":"boolean","title":"Reached End"},"staff_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Staff Email"},"opened_via":{"anyOf":[{"type":"string","enum":["link","catalog"]},{"type":"null"}],"title":"Opened Via"}},"type":"object","required":["id","ref","simulation_id","school_id","school_name","lang","device","source","started_at","last_seen_at","stages_reached","stages_total","engaged_stages","engagement_pct","visible_minutes","reached_end"],"title":"TrialRow"},"TrialsOut":{"properties":{"total":{"type":"integer","title":"Total"},"rows":{"items":{"$ref":"#/components/schemas/TrialRow"},"type":"array","title":"Rows"}},"type":"object","required":["total","rows"],"title":"TrialsOut"},"UnlockIn":{"properties":{"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"}},"additionalProperties":false,"type":"object","required":["password"],"title":"UnlockIn"},"UpdateSchoolIn":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"seats_total":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Seats Total"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"subscription_status":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionStatus"},{"type":"null"}]}},"type":"object","title":"UpdateSchoolIn"},"UsageKpis":{"properties":{"schools_total":{"type":"integer","title":"Schools Total"},"schools_active":{"type":"integer","title":"Schools Active"},"teacher_accounts":{"type":"integer","title":"Teacher Accounts"},"teachers_active":{"type":"integer","title":"Teachers Active"},"sessions_created":{"type":"integer","title":"Sessions Created"},"sessions_used":{"type":"integer","title":"Sessions Used"},"sessions_unused":{"type":"integer","title":"Sessions Unused"},"student_runs":{"type":"integer","title":"Student Runs"},"runs_per_used_session_p50":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Runs Per Used Session P50"},"surveys_returned":{"type":"integer","title":"Surveys Returned"},"survey_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Survey Rate"},"seats_total":{"type":"integer","title":"Seats Total"},"seats_used":{"type":"integer","title":"Seats Used"},"sessions_live_now":{"type":"integer","title":"Sessions Live Now"}},"type":"object","required":["schools_total","schools_active","teacher_accounts","teachers_active","sessions_created","sessions_used","sessions_unused","student_runs","runs_per_used_session_p50","surveys_returned","survey_rate","seats_total","seats_used","sessions_live_now"],"title":"UsageKpis"},"UsageOut":{"properties":{"grain":{"type":"string","title":"Grain"},"allowed_grains":{"items":{"type":"string"},"type":"array","title":"Allowed Grains"},"kpis":{"$ref":"#/components/schemas/UsageKpis"},"series":{"items":{"$ref":"#/components/schemas/UsagePoint"},"type":"array","title":"Series"},"school_series":{"items":{"$ref":"#/components/schemas/SchoolSeries"},"type":"array","title":"School Series"},"live":{"items":{"$ref":"#/components/schemas/LivePoint"},"type":"array","title":"Live"},"funnel":{"items":{"$ref":"#/components/schemas/FunnelStep"},"type":"array","title":"Funnel"},"by_simulation":{"items":{"$ref":"#/components/schemas/SimUsage"},"type":"array","title":"By Simulation"},"matrix_schools":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Matrix Schools"},"matrix_simulations":{"items":{"type":"string"},"type":"array","title":"Matrix Simulations"},"matrix":{"items":{"$ref":"#/components/schemas/MatrixCell"},"type":"array","title":"Matrix"},"class_size":{"items":{"$ref":"#/components/schemas/Band"},"type":"array","title":"Class Size"},"devices":{"items":{"$ref":"#/components/schemas/Band"},"type":"array","title":"Devices"},"phones_turned_away":{"type":"integer","title":"Phones Turned Away"},"languages":{"items":{"$ref":"#/components/schemas/Band"},"type":"array","title":"Languages"},"attention":{"items":{"$ref":"#/components/schemas/AttentionItem"},"type":"array","title":"Attention"}},"type":"object","required":["grain","allowed_grains","kpis","series","school_series","live","funnel","by_simulation","matrix_schools","matrix_simulations","matrix","class_size","devices","phones_turned_away","languages","attention"],"title":"UsageOut"},"UsagePoint":{"properties":{"bucket":{"type":"string","title":"Bucket"},"span_from":{"type":"string","title":"Span From"},"span_to":{"type":"string","title":"Span To"},"partial":{"type":"boolean","title":"Partial"},"sessions_created":{"type":"integer","title":"Sessions Created"},"sessions_used":{"type":"integer","title":"Sessions Used"},"sessions_unused":{"type":"integer","title":"Sessions Unused"},"student_runs":{"type":"integer","title":"Student Runs"},"active_teachers":{"type":"integer","title":"Active Teachers"},"active_schools":{"type":"integer","title":"Active Schools"},"new_teachers":{"type":"integer","title":"New Teachers"},"teacher_accounts":{"type":"integer","title":"Teacher Accounts"},"active_teachers_7d":{"type":"integer","title":"Active Teachers 7D"}},"type":"object","required":["bucket","span_from","span_to","partial","sessions_created","sessions_used","sessions_unused","student_runs","active_teachers","active_schools","new_teachers","teacher_accounts","active_teachers_7d"],"title":"UsagePoint"},"UserListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserRowOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"UserListOut"},"UserRowOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"$ref":"#/components/schemas/Role"},"is_active":{"type":"boolean","title":"Is Active"},"email_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Verified At"},"school_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"School Id"},"school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Name"},"seats_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Used"},"seats_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Total"},"seats_requested":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Requested"},"approval_status":{"anyOf":[{"$ref":"#/components/schemas/ApprovalStatus"},{"type":"null"}]},"subscription_status":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionStatus"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"terms_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terms Accepted At"},"terms_current":{"type":"boolean","title":"Terms Current","default":false}},"type":"object","required":["id","email","role","is_active","created_at"],"title":"UserRowOut"},"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"},"VersionSeen":{"properties":{"simulation_id":{"type":"string","title":"Simulation Id"},"sim_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sim Version"},"runs":{"type":"integer","title":"Runs"}},"type":"object","required":["simulation_id","runs"],"title":"VersionSeen"},"app__routers__insights__Freshness":{"properties":{"last_run_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run At"},"last_ok_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Ok At"},"lag_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lag Minutes"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"stale":{"type":"boolean","title":"Stale","default":false},"unmapped_stages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Unmapped Stages","default":[]},"last_data_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Data At"},"last_data_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Data Minutes"}},"type":"object","title":"Freshness"},"app__routers__insights_feedback__TriageIn":{"properties":{"status":{"anyOf":[{"type":"string","enum":["new","reviewed","actioned","dismissed"]},{"type":"null"}],"title":"Status"},"category":{"anyOf":[{"type":"string","enum":["problem","confusing","suggestion","disliked","liked","other"]},{"type":"null"}],"title":"Category"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"redact":{"type":"boolean","title":"Redact","default":false}},"type":"object","title":"TriageIn"},"app__routers__insights_staff_feedback__TriageIn":{"properties":{"status":{"anyOf":[{"type":"string","enum":["new","reviewed","actioned","dismissed"]},{"type":"null"}],"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"type":"object","title":"TriageIn"},"app__routers__insights_teacher_feedback__TriageIn":{"properties":{"status":{"anyOf":[{"type":"string","enum":["new","reviewed","actioned","dismissed"]},{"type":"null"}],"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"type":"object","title":"TriageIn"},"app__routers__teacher_insights__Freshness":{"properties":{"last_rollup_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Rollup At"},"pending_events":{"type":"integer","title":"Pending Events"}},"type":"object","required":["last_rollup_at","pending_events"],"title":"Freshness"}}}}