{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/readyz":{"get":{"summary":"Readyz","operationId":"readyz_readyz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/authenticate/register":{"post":{"tags":["authenticate"],"summary":"Register User","operationId":"register_user_api_authenticate_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRegister"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Register User Api Authenticate Register Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/login":{"post":{"tags":["authenticate"],"summary":"Login","operationId":"login_api_authenticate_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login Api Authenticate Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/authenticate":{"post":{"tags":["authenticate"],"summary":"Authenticate","operationId":"authenticate_api_authenticate_authenticate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAuthenticate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessTokenRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/refresh":{"post":{"tags":["authenticate"],"summary":"Refresh","operationId":"refresh_api_authenticate_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRefreshTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessTokenRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/logout":{"post":{"tags":["authenticate"],"summary":"Logout","operationId":"logout_api_authenticate_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLogoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Logout Api Authenticate Logout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/users/ban":{"post":{"tags":["authenticate"],"summary":"Ban User","operationId":"ban_user_api_authenticate_users_ban_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserBanCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserBanRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/authenticate/users/bans":{"get":{"tags":["authenticate"],"summary":"List User Bans","description":"Ban ledger for the admin screen. Revoked rows are the audit trail.","operationId":"list_user_bans_api_authenticate_users_bans_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only bans currently in force","default":true,"title":"Active Only"},"description":"Only bans currently in force"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UserBanRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/users/unban":{"post":{"tags":["authenticate"],"summary":"Unban User","operationId":"unban_user_api_authenticate_users_unban_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserBanRevokeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Unban User Api Authenticate Users Unban Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/authenticate/me/basic-info":{"get":{"tags":["authenticate"],"summary":"Get My Basic Info","description":"Also a PARENT account's: the deneme panel opens with it and switches to the parent mode on ``user_type: PARENT``.","operationId":"get_my_basic_info_api_authenticate_me_basic_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserBasicInfoResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/authenticate/me/communication-consents":{"get":{"tags":["authenticate"],"summary":"Get My Communication Consents","operationId":"get_my_communication_consents_api_authenticate_me_communication_consents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationConsentRead"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["authenticate"],"summary":"Update My Communication Consents","operationId":"update_my_communication_consents_api_authenticate_me_communication_consents_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationConsentUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunicationConsentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/authenticate/me/delete-eligibility":{"get":{"tags":["authenticate"],"summary":"Get My Delete Eligibility","operationId":"get_my_delete_eligibility_api_authenticate_me_delete_eligibility_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteEligibilityRead"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/authenticate/me/delete/request":{"post":{"tags":["authenticate"],"summary":"Request My Account Deletion","operationId":"request_my_account_deletion_api_authenticate_me_delete_request_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Request My Account Deletion Api Authenticate Me Delete Request Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/authenticate/me/delete":{"post":{"tags":["authenticate"],"summary":"Delete My Account","operationId":"delete_my_account_api_authenticate_me_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/authenticate/change/request":{"post":{"tags":["authenticate"],"summary":"Change Request","operationId":"change_request_api_authenticate_change_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Request Api Authenticate Change Request Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/change/verify":{"post":{"tags":["authenticate"],"summary":"Change Verify","operationId":"change_verify_api_authenticate_change_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeVerify"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Verify Api Authenticate Change Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/password/change":{"post":{"tags":["authenticate"],"summary":"Password Change Commit","operationId":"password_change_commit_api_authenticate_password_change_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChangeCommit"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Password Change Commit Api Authenticate Password Change Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/email/change":{"post":{"tags":["authenticate"],"summary":"Email Change Commit","operationId":"email_change_commit_api_authenticate_email_change_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChangeCommit"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Email Change Commit Api Authenticate Email Change Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/webhooks/netgsm/iys/{secret}":{"post":{"tags":["authenticate"],"summary":"Netgsm Iys Webhook","operationId":"netgsm_iys_webhook_api_authenticate_webhooks_netgsm_iys__secret__post","parameters":[{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Netgsm Iys Webhook Api Authenticate Webhooks Netgsm Iys  Secret  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/ops/netgsm/sync/{secret}":{"post":{"tags":["authenticate"],"summary":"Run Netgsm Sync Jobs","operationId":"run_netgsm_sync_jobs_api_authenticate_ops_netgsm_sync__secret__post","parameters":[{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Netgsm Sync Jobs Api Authenticate Ops Netgsm Sync  Secret  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/authenticate/sms/send":{"post":{"tags":["authenticate"],"summary":"Send Sms","operationId":"send_sms_api_authenticate_sms_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSmsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSmsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/authenticate/email/send":{"post":{"tags":["authenticate"],"summary":"Send Email","operationId":"send_email_api_authenticate_email_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/authenticate/whatsapp/send":{"post":{"tags":["authenticate"],"summary":"Send Whatsapp","operationId":"send_whatsapp_api_authenticate_whatsapp_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWhatsAppRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWhatsAppResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/school-launch/{partner}/authorize":{"post":{"tags":["school-launch"],"summary":"Authorize","description":"Server to server. The partner answers its browser with a 302/303 to ``redirect_url`` as is.","operationId":"authorize_api_auth_school_launch__partner__authorize_post","parameters":[{"name":"partner","in":"path","required":true,"schema":{"type":"string","title":"Partner"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/{partner}/callback":{"get":{"tags":["school-launch"],"summary":"Browser landing: spends the single-use code, sets the hand-off cookie, 303 to the application","operationId":"callback_api_auth_school_launch__partner__callback_get","parameters":[{"name":"partner","in":"path","required":true,"schema":{"type":"string","title":"Partner"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","maxLength":512,"default":"","title":"Code"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/{partner}/staff/callback":{"get":{"tags":["school-launch"],"summary":"Browser landing of a STAFF launch: spends the single-use code, sets the hand-off cookie, 303 to the institution panel","description":"The STAFF door (2026-10-30): a ``role: staff`` code is good here and nowhere else; the partner never builds\nthis URL (``redirect_url`` carries it). Errors land on ``staff_error_url`` with the same ``reason`` values. Since\n2026-11-20 the landing redirect carries the institution panel app's code of the hand-off (``?handoff=``), as the\nstudent door's does for the student app: the app claims the panel's addresses and cannot read the cookie.","operationId":"staff_callback_api_auth_school_launch__partner__staff_callback_get","parameters":[{"name":"partner","in":"path","required":true,"schema":{"type":"string","title":"Partner"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","maxLength":512,"default":"","title":"Code"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/session":{"post":{"tags":["school-launch"],"summary":"Exchange Session","description":"The application's first call after landing. ``credentials: 'include'`` is required. A\nstudent's hand-off answers the same body ``/authenticate/authenticate`` returns (and so does a staff\nmember's, from the partner's staff landing origin or from the institution panel app with its code; the panel then\ncalls ``GET /institutions/mine``); a parent's\nanswers ``{\"role\": \"parent\", \"access_token\", \"refresh_token\", \"expiration\", \"parent\", \"students\",\n\"parent_token\", \"expires_in\"}`` with parent accounts on AND ``\"parent_account\": true`` in the body (the\ntoken pair of the parent's PARENT account; ``parent_token`` is transitional), else ``{\"role\": \"parent\",\n\"parent_token\", \"expires_in\", \"parent\", \"students\"}`` (see parent_api.py). The union is listed most specific first: each body\nvalidates against its own model before any wider one, whatever the union mode.\n\nThe native apps (the student app 2026-11-04, the institution panel app 2026-11-20) cannot read the browser's\ncookie: each sends its landing redirect's code as ``handoff_code`` from a request without an ``Origin``, and gets\nthe same bodies. A browser is always answered from\nits cookie and a ``handoff_code`` in its body is ignored: the cookie exists only in the browser the school's site\nsent here, while a link with a code in it can be forwarded to anybody.","operationId":"exchange_session_api_auth_school_launch_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ParentAccountSessionRead"},{"$ref":"#/components/schemas/ParentSessionRead"},{"$ref":"#/components/schemas/AccessTokenRead"}],"title":"Response Exchange Session Api Auth School Launch Session Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/identities":{"get":{"tags":["school-launch"],"summary":"List Identities","description":"Who is linked to what, and how the link was made. The asserted phone is masked.","operationId":"list_identities_api_auth_school_launch_admin_identities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"issuer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Issuer"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Subject"}},{"name":"phone","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"The phone the partner asserted at link time, any format","title":"Phone"},"description":"The phone the partner asserted at link time, any format"},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ExternalIdentityRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/identities/{identity_id}/unlink":{"post":{"tags":["school-launch"],"summary":"Unlink Identity","description":"Idempotent. Ends the link, the account's place in the partner's institution and every\nsession of the account. ``block_relink`` (default true) leaves a tombstone: without it the\nnext click opens a fresh account for the same partner user.","operationId":"unlink_identity_api_auth_school_launch_admin_identities__identity_id__unlink_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalIdentityRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/identities/{identity_id}/unblock":{"post":{"tags":["school-launch"],"summary":"Unblock Identity","description":"Lifts the tombstone: the partner's user may be linked again on the next click.","operationId":"unblock_identity_api_auth_school_launch_admin_identities__identity_id__unblock_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalIdentityRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/parents":{"get":{"tags":["school-launch"],"summary":"List Parents","description":"The partner's parents we have seen. The asserted phone is masked.","operationId":"list_parents_api_auth_school_launch_admin_parents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"issuer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Issuer"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Subject"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ExternalParentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/parents/{parent_id}/revoke":{"post":{"tags":["school-launch"],"summary":"Revoke Parent","description":"Idempotent. Ends the parent's access: every parent session dies, and so does the parent's PARENT account\n(its sessions and refresh tokens, and the account is closed); the next launch opens a fresh row (and account).","operationId":"revoke_parent_api_auth_school_launch_admin_parents__parent_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"parent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Parent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeParentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalParentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/parents/{parent_id}/students/{student_ref}/unlink":{"post":{"tags":["school-launch"],"summary":"Unlink Parent Child","description":"Idempotent. Takes one child away from one parent (``student_ref``: the child's identity id, as ``/admin/identities``\nlists it): the link ends now and no later launch brings it back, whatever the partner's list says (the links\nare otherwise permanent). 404 ``PARENT_NOT_FOUND`` / ``PARENT_STUDENT_NOT_FOUND``.","operationId":"unlink_parent_child_api_auth_school_launch_admin_parents__parent_id__students__student_ref__unlink_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"parent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Parent Id"}},{"name":"student_ref","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentChildLinkRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/parents/{parent_id}/students/{student_ref}/unblock":{"post":{"tags":["school-launch"],"summary":"Unblock Parent Child","description":"Lifts the block of an ``unlink``: the link stays ended until the partner's next launch lists the child again.","operationId":"unblock_parent_child_api_auth_school_launch_admin_parents__parent_id__students__student_ref__unblock_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"parent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Parent Id"}},{"name":"student_ref","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentChildLinkRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/staff":{"get":{"tags":["school-launch"],"summary":"List Staff","description":"The partner's staff rows (2026-10-30): the allow-list entry and the account link, ids only, never a name.","operationId":"list_staff_api_auth_school_launch_admin_staff_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"issuer","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Issuer"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Subject"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ExternalStaffRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/staff/{staff_id}/revoke":{"post":{"tags":["school-launch"],"summary":"Revoke Staff","description":"Idempotent. Ends the staff member's access now: the row is marked, the account's staff memberships of the\npartner's institution and every session of the account end; the link stays, and the next import that lists the\n``sub`` restores it. 404 ``STAFF_NOT_FOUND``.","operationId":"revoke_staff_api_auth_school_launch_admin_staff__staff_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"staff_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Staff Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeStaffRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalStaffRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/school-launch/admin/atolyem/students/import":{"post":{"tags":["school-launch"],"summary":"Atölyem students ahead of their first click: every row does what the click would (CSV/XLSX, dry_run by default)","description":"One row per student, the student launch claims as columns. A row opens the passwordless account, the\n``(atolyem, sub)`` link, the institution identity row with the name, the membership and the roster row: what\nthe student's first click would do, minus the code and the session. The click later lands on that account.\nAt most ``max_writes_per_call`` rows are written per call; send the same file again while ``remaining`` > 0.","operationId":"import_atolyem_students_api_auth_school_launch_admin_atolyem_students_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"true (default): read and report only; false: write","default":true,"title":"Dry Run"},"description":"true (default): read and report only; false: write"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_atolyem_students_api_auth_school_launch_admin_atolyem_students_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentImportReport_"}}}},"404":{"description":"PARTNER_NOT_CONFIGURED: no 'atolyem' launch partner in this environment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"PARTNER_INSTITUTION_MISSING, or IMPORT_CONFLICTS (students, real run): rows whose sub / student_id disagree with the links the clicks made; the report is in items[0].","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"FILE_TOO_LARGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"IMPORT_FILE_INVALID: the file is unusable, or (a real run) has issues; the report is in items[0]. IMPORT_FILE_UNREADABLE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/auth/school-launch/admin/atolyem/campuses/import":{"post":{"tags":["school-launch"],"summary":"Atölyem campus and section names by their ids (CSV/XLSX, dry_run by default)","description":"One row per section (or per campus). Creates a missing campus / section row and renames an existing one;\nthe file's name wins over a name set in the panel. The report lists the old and the new names.","operationId":"import_atolyem_campuses_api_auth_school_launch_admin_atolyem_campuses_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"true (default): read and report only; false: write","default":true,"title":"Dry Run"},"description":"true (default): read and report only; false: write"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_atolyem_campuses_api_auth_school_launch_admin_atolyem_campuses_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CampusImportReport_"}}}},"404":{"description":"PARTNER_NOT_CONFIGURED: no 'atolyem' launch partner in this environment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"PARTNER_INSTITUTION_MISSING, or IMPORT_CONFLICTS (students, real run): rows whose sub / student_id disagree with the links the clicks made; the report is in items[0].","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"FILE_TOO_LARGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"IMPORT_FILE_INVALID: the file is unusable, or (a real run) has issues; the report is in items[0]. IMPORT_FILE_UNREADABLE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/auth/school-launch/admin/atolyem/staff/import":{"post":{"tags":["school-launch"],"summary":"Atölyem staff allow-list of the staff launch: the WHOLE list, a sub left out is revoked (CSV/XLSX, dry_run by default)","description":"One row per Atölyem staff ``sub`` who may enter the institution panel through ``role: staff`` (owner decisions\nSA1-SA9, 2026-10-29). A new sub gets a row (the account opens at the first click), a changed row is applied to a\nlinked account's membership now, a revoked row listed again comes back, and a live row whose sub is NOT in the\nfile is revoked: its memberships and sessions end. No names in the file, none in the report.","operationId":"import_atolyem_staff_api_auth_school_launch_admin_atolyem_staff_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"true (default): read and report only; false: write","default":true,"title":"Dry Run"},"description":"true (default): read and report only; false: write"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_atolyem_staff_api_auth_school_launch_admin_atolyem_staff_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StaffImportReport_"}}}},"404":{"description":"PARTNER_NOT_CONFIGURED: no 'atolyem' launch partner in this environment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"PARTNER_INSTITUTION_MISSING, or IMPORT_CONFLICTS (students, real run): rows whose sub / student_id disagree with the links the clicks made; the report is in items[0].","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"FILE_TOO_LARGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"IMPORT_FILE_INVALID: the file is unusable, or (a real run) has issues; the report is in items[0]. IMPORT_FILE_UNREADABLE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/auth/app-switch/{target}":{"post":{"tags":["app-switch"],"summary":"Start App Switch","description":"The signed-in application asks to carry its user to ``target``. ``credentials: 'include'``\nis required (the answer sets the binding cookie the callback checks); the application then\nnavigates the browser to ``redirect_url`` as is. The session it is called with lives on.","operationId":"start_app_switch_api_auth_app_switch__target__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"target","in":"path","required":true,"schema":{"type":"string","title":"Target"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AppSwitchRequest"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSwitchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/app-switch/{target}/callback":{"get":{"tags":["app-switch"],"summary":"Browser landing of an application switch: spends the code, sets the hand-off cookie, 303 to the target application","operationId":"app_switch_callback_api_auth_app_switch__target__callback_get","parameters":[{"name":"target","in":"path","required":true,"schema":{"type":"string","title":"Target"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","maxLength":512,"default":"","title":"Code"}},{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Next"}}],"responses":{"303":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/me":{"get":{"tags":["school-launch-parent"],"summary":"The parent and the children: the ones the partner listed under them and the ones linked through a student's shared link (can_leave). Each child's ref and institution_id name it on the student panel's routes (?student_ref=); a partner-listed child's ref also on the pst_ routes below.","description":"A PARENT account's access token or the transitional ``pst_`` bearer.","operationId":"parent_me_api_parent_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentMeRead"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/parent/students/{student_ref}/exams":{"get":{"tags":["school-launch-parent"],"summary":"The exams the child sat (their results were uploaded), newest first.","operationId":"parent_student_exams_api_parent_students__student_ref__exams_get","parameters":[{"name":"student_ref","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Ref"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentExamListResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/students/{student_ref}/denemeler/overview":{"get":{"tags":["school-launch-parent"],"summary":"The child's Denemeler overview of one scope (the student panel's S1).","operationId":"parent_student_denemeler_overview_api_parent_students__student_ref__denemeler_overview_get","parameters":[{"name":"student_ref","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Ref"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"description":"TYT | AYT | TARAMA; omitted = the scope of the latest analysed TYT / AYT sitting, else TYT (TARAMA only when asked, D35)","title":"Scope"},"description":"TYT | AYT | TARAMA; omitted = the scope of the latest analysed TYT / AYT sitting, else TYT (TARAMA only when asked, D35)"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DenemelerOverviewResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent/students/{student_ref}/exams/{exam_id}/analysis":{"get":{"tags":["school-launch-parent"],"summary":"The child's own analysis of one exam (the student panel's S2 / S8).","operationId":"parent_student_exam_analysis_api_parent_students__student_ref__exams__exam_id__analysis_get","parameters":[{"name":"student_ref","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Ref"}},{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"part","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"description":"denemeler | strateji | konu-atlasi | konu_atlasi; omitted = all three","title":"Part"},"description":"denemeler | strateji | konu-atlasi | konu_atlasi; omitted = all three"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyExamAnalysisResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/institution/login":{"post":{"tags":["institution-login"],"summary":"Institution Login","description":"The student's first login: the triple the school handed out. ``password_change_required``\ntells the application to go to the change screen before anything else.","operationId":"institution_login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/institution/password":{"post":{"tags":["institution-login"],"summary":"Change Password","description":"Replaces the one-time password. Every other session ends; the answer is a fresh session.","operationId":"change_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionPasswordChangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessTokenRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/institution/phone/request":{"post":{"tags":["institution-login"],"summary":"Request Phone Link","description":"Sends a 6-digit code to the number the student wants on the account (non-prod: ``mock``).","operationId":"request_phone_link","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneLinkRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/institution/phone/verify":{"post":{"tags":["institution-login"],"summary":"Verify Phone Link","description":"Attaches the number. ``merged: true`` means the number already belonged to another student\naccount, which is now the institution account; use the returned ``tokens`` from then on.","operationId":"verify_phone_link","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneLinkVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneLinkVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/parent-links/institutions/{institution_id}":{"get":{"tags":["parent-links"],"summary":"Get My Parent Links","description":"The student's linked parents (``is_new``: linked since they last looked) and their unused links.","operationId":"get_my_parent_links","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentParentLinksRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/institutions/{institution_id}/invites":{"post":{"tags":["parent-links"],"summary":"Create Parent Invite","description":"A new single-use link (3 days). ``token`` is answered only here; share ``url`` (or build it on the panel's own\norigin when ``url`` is null: ``https://<origin>/veli/davet#<token>``).","operationId":"create_parent_invite","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentInviteCreatedRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/institutions/{institution_id}/invites/{invite_id}/cancel":{"post":{"tags":["parent-links"],"summary":"Cancel Parent Invite","operationId":"cancel_parent_invite","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invite Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/institutions/{institution_id}/parents/seen":{"post":{"tags":["parent-links"],"summary":"Mark My Parents Seen","operationId":"mark_my_parents_seen","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/institutions/{institution_id}/parents/{link_id}/remove":{"post":{"tags":["parent-links"],"summary":"Remove My Parent","description":"The parent's access to this student ends at once (the parent's next read is a 404).","operationId":"remove_my_parent","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/invite/preview":{"post":{"tags":["parent-links"],"summary":"Preview Parent Invite","description":"What the landing page shows before the form. Spends nothing.","operationId":"preview_parent_invite","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentInvitePreviewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/invite/code":{"post":{"tags":["parent-links"],"summary":"Send Parent Invite Code","description":"A 6-digit code to the number on the form (non-prod: ``mock``).","operationId":"send_parent_invite_code","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentCodeSentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/invite/accept":{"post":{"tags":["parent-links"],"summary":"Accept Parent Invite","description":"The form and the code: the parent account (opened, or the number's existing one), the link, a token pair. The\nlink is spent here and only here.","operationId":"accept_parent_invite","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteAcceptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentLinkSessionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/login/code":{"post":{"tags":["parent-links"],"summary":"Send Parent Login Code","description":"A code when the number is a parent account's; the same answer for any other number.","operationId":"send_parent_login_code","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentLoginCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentLoginCodeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/login":{"post":{"tags":["parent-links"],"summary":"Parent Login","operationId":"parent_login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentLinkSessionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/children/{student_ref}/leave":{"post":{"tags":["parent-links"],"summary":"Leave Parent Child","description":"The parent ends their own access to one child linked through a shared link (``can_leave`` on ``/parent/me``).\nAny other caller, and any other child, is the same 404.","operationId":"leave_parent_child","security":[{"HTTPBearer":[]}],"parameters":[{"name":"student_ref","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Ref"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/institutions/{institution_id}/admin/links":{"get":{"tags":["parent-links"],"summary":"List Institution Parent Links","operationId":"list_institution_parent_links","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"student_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"One student's links: their identity row id (institution_student.id)","title":"Student Id"},"description":"One student's links: their identity row id (institution_student.id)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionParentLinkPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/parent-links/institutions/{institution_id}/admin/links/{link_id}/remove":{"post":{"tags":["parent-links"],"summary":"Remove Institution Parent Link","operationId":"remove_institution_parent_link","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/levels":{"post":{"tags":["curriculum"],"summary":"Insert Levels","operationId":"insert_levels_api_curriculum_levels_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LevelInsert"},"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LevelRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["curriculum"],"summary":"Read All Levels","operationId":"read_all_levels_api_curriculum_levels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LevelRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["curriculum"],"summary":"Delete Levels","operationId":"delete_levels_api_curriculum_levels_delete","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Ids"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LevelRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/subbranches":{"post":{"tags":["curriculum"],"summary":"Insert Subbranches","operationId":"insert_subbranches_api_curriculum_subbranches_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SubbranchInsert"},"type":"array","title":"Payload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubbranchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["curriculum"],"summary":"Delete Subbranches","operationId":"delete_subbranches_api_curriculum_subbranches_delete","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubbranchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/units":{"post":{"tags":["curriculum"],"summary":"Insert Units","operationId":"insert_units_api_curriculum_units_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UnitInsert"},"type":"array","title":"Payload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/subunits":{"post":{"tags":["curriculum"],"summary":"Insert Subunits","operationId":"insert_subunits_api_curriculum_subunits_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SubunitInsert"},"type":"array","title":"Payload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/outcomes":{"post":{"tags":["curriculum"],"summary":"Insert Outcomes","operationId":"insert_outcomes_api_curriculum_outcomes_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OutcomeInsert"},"type":"array","title":"Payload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_OutcomeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/branches":{"get":{"tags":["curriculum"],"summary":"Get Branches","operationId":"get_branches_api_curriculum_branches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BranchReturn_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/full-tree":{"get":{"tags":["curriculum"],"summary":"Read Full Tree","operationId":"read_full_tree_api_curriculum_full_tree_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LevelTree_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/children/subbranches":{"post":{"tags":["curriculum"],"summary":"Read Child Subbranches","operationId":"read_child_subbranches_api_curriculum_children_subbranches_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Level Ids"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubbranchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/children/subbranches/by-branches":{"post":{"tags":["curriculum"],"summary":"Read Child Subbranches By Branches","operationId":"read_child_subbranches_by_branches_api_curriculum_children_subbranches_by_branches_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubbranchByBranchesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubbranchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/children/units":{"post":{"tags":["curriculum"],"summary":"Read Child Units","operationId":"read_child_units_api_curriculum_children_units_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Subbranch Ids"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/children/subunits":{"post":{"tags":["curriculum"],"summary":"Read Child Subunits","operationId":"read_child_subunits_api_curriculum_children_subunits_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Unit Ids"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/children/outcomes":{"post":{"tags":["curriculum"],"summary":"Read Child Outcomes","operationId":"read_child_outcomes_api_curriculum_children_outcomes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"title":"Subunit Ids"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_OutcomeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/parents/level/{subbranch_id}":{"get":{"tags":["curriculum"],"summary":"Read Parent Level","operationId":"read_parent_level_api_curriculum_parents_level__subbranch_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subbranch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subbranch Id"}},{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LevelWithSubbranches_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/parents/subbranch/{unit_id}":{"get":{"tags":["curriculum"],"summary":"Read Parent Subbranch","operationId":"read_parent_subbranch_api_curriculum_parents_subbranch__unit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}},{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubbranchWithUnits_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/parents/unit/{subunit_id}":{"get":{"tags":["curriculum"],"summary":"Read Parent Unit","operationId":"read_parent_unit_api_curriculum_parents_unit__subunit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subunit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subunit Id"}},{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitWithSubunits_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/parents/subunit/{outcome_id}":{"get":{"tags":["curriculum"],"summary":"Read Parent Subunit","operationId":"read_parent_subunit_api_curriculum_parents_subunit__outcome_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outcome_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Outcome Id"}},{"name":"OnlyActive","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onlyactive"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitWithOutcomes_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curriculum/update/levels":{"post":{"tags":["curriculum"],"summary":"Update Levels","operationId":"update_levels_api_curriculum_update_levels_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LevelUpdate"},"type":"array","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LevelRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/update/subbranches":{"post":{"tags":["curriculum"],"summary":"Update Subbranches","operationId":"update_subbranches_api_curriculum_update_subbranches_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SubbranchUpdate"},"type":"array","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubbranchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/update/units":{"post":{"tags":["curriculum"],"summary":"Update Units","operationId":"update_units_api_curriculum_update_units_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UnitUpdate"},"type":"array","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/update/subunits":{"post":{"tags":["curriculum"],"summary":"Update Subunits","operationId":"update_subunits_api_curriculum_update_subunits_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SubunitUpdate"},"type":"array","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/update/subunit/labels":{"post":{"tags":["curriculum"],"summary":"Update Subunit Labels","operationId":"update_subunit_labels_api_curriculum_update_subunit_labels_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UpdateSubunitLabelsRequest"},"type":"array","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/update/outcomes":{"post":{"tags":["curriculum"],"summary":"Update Outcomes","operationId":"update_outcomes_api_curriculum_update_outcomes_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OutcomeUpdate"},"type":"array","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_OutcomeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/reorder/subbranch":{"post":{"tags":["curriculum"],"summary":"Reorder Subbranch","operationId":"reorder_subbranch_api_curriculum_reorder_subbranch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubbranchReorder"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/reorder/unit":{"post":{"tags":["curriculum"],"summary":"Reorder Unit","operationId":"reorder_unit_api_curriculum_reorder_unit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnitReorder"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/reorder/subunit":{"post":{"tags":["curriculum"],"summary":"Reorder Subunit","operationId":"reorder_subunit_api_curriculum_reorder_subunit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubunitReorder"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_OutcomeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/deactivate/units":{"post":{"tags":["curriculum"],"summary":"Deactivate Units","operationId":"deactivate_units_api_curriculum_deactivate_units_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/deactivate/subunits":{"post":{"tags":["curriculum"],"summary":"Deactivate Subunits","operationId":"deactivate_subunits_api_curriculum_deactivate_subunits_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/deactivate/outcomes":{"post":{"tags":["curriculum"],"summary":"Deactivate Outcomes","operationId":"deactivate_outcomes_api_curriculum_deactivate_outcomes_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_OutcomeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/reactivate/units":{"post":{"tags":["curriculum"],"summary":"Reactivate Units","operationId":"reactivate_units_api_curriculum_reactivate_units_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/reactivate/subunits":{"post":{"tags":["curriculum"],"summary":"Reactivate Subunits","operationId":"reactivate_subunits_api_curriculum_reactivate_subunits_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/reactivate/outcomes":{"post":{"tags":["curriculum"],"summary":"Reactivate Outcomes","operationId":"reactivate_outcomes_api_curriculum_reactivate_outcomes_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_OutcomeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/sync/mufredat/branch-audit":{"get":{"tags":["curriculum"],"summary":"List branch_enum values in bundled Excel vs Branch enum","operationId":"get_mufredat_branch_audit_api_curriculum_sync_mufredat_branch_audit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchAuditResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["curriculum"],"summary":"Branch audit: optional XLSX upload (otherwise same as GET / bundled path)","operationId":"post_mufredat_branch_audit_api_curriculum_sync_mufredat_branch_audit_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_post_mufredat_branch_audit_api_curriculum_sync_mufredat_branch_audit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchAuditResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/curriculum/sync/mufredat":{"post":{"tags":["curriculum"],"summary":"Import missing curriculum rows from bundled MUFREDAT.xlsx or an uploaded file","operationId":"post_sync_mufredat_api_curriculum_sync_mufredat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"Parse only; no database writes.","default":false,"title":"Dry Run"},"description":"Parse only; no database writes."}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_post_sync_mufredat_api_curriculum_sync_mufredat_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MufredatSyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/permissions/me":{"get":{"tags":["permissions"],"summary":"Current user's own active roles and effective permissions (no RBAC permission required)","operationId":"my_access_api_permissions_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MyAccessRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/list/permissions":{"get":{"tags":["permissions"],"summary":"List registered permissions (admin)","operationId":"list_permissions_api_permissions_list_permissions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PermissionRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/list/roles":{"get":{"tags":["permissions"],"summary":"List registered roles (admin)","operationId":"list_roles_api_permissions_list_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RoleRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/grant/permission":{"post":{"tags":["permissions"],"summary":"Grant permission(s) to a role (idempotent; reactivates if soft-deleted) (admin)","operationId":"grant_permission_api_permissions_grant_permission_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantPermissionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PermissionRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/revoke/permission":{"post":{"tags":["permissions"],"summary":"Revoke a permission from a role (idempotent soft-deactivate) (admin)","operationId":"revoke_permission_api_permissions_revoke_permission_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokePermissionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/grant/role":{"post":{"tags":["permissions"],"summary":"Grant a role to a user (idempotent; reactivates if soft-deleted) (admin)","operationId":"grant_role_api_permissions_grant_role_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantRoleRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RoleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/revoke/role":{"post":{"tags":["permissions"],"summary":"Revoke a role from a user (idempotent soft-deactivate) (admin)","operationId":"revoke_role_api_permissions_revoke_role_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeRoleRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/view/permissions":{"post":{"tags":["permissions"],"summary":"Given role_ids, return each role with its (active) permissions (admin)","operationId":"view_permissions_api_permissions_view_permissions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewPermissionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RoleWithPermissions_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/view/roles":{"post":{"tags":["permissions"],"summary":"Given a user_id, return user roles and their (active) permissions (admin)","operationId":"view_roles_api_permissions_view_roles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewRolesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RoleWithPermissions_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/view/users":{"post":{"tags":["permissions"],"summary":"DEPRECATED — use GET /permissions/users/directory. View users by role (paginated; 100 per page).","operationId":"view_users_by_role_api_permissions_view_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewUsersByRoleRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UserRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/catalog/search":{"get":{"tags":["permissions"],"summary":"Search roles and permissions by substring (mixed, paginated)","operationId":"search_catalog_api_permissions_catalog_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"description":"Substring to search","title":"Q"},"description":"Substring to search"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"1-based page index","default":1,"title":"Page"},"description":"1-based page index"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CatalogSearchItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/permissions/grant/role-by-phone":{"post":{"tags":["permissions"],"summary":"Grant a role to a user identified by phone number (idempotent; reactivates if soft-deleted) (admin)","operationId":"grant_role_by_phone_api_permissions_grant_role_by_phone_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantRoleByPhoneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RoleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/roles/by-permission/{permission_id}":{"get":{"tags":["permissions"],"summary":"List all roles that currently have the given permission","operationId":"roles_by_permission_api_permissions_roles_by_permission__permission_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"permission_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Permission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ViewRolesByPermissionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/permissions/roles/overview":{"get":{"tags":["permissions"],"summary":"Assignable roles with their permissions, member counts and edit flags (admin)","operationId":"roles_overview_api_permissions_roles_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RoleOverviewRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/permissions/users/directory":{"get":{"tags":["permissions"],"summary":"Searchable account directory with role chips (admin)","operationId":"user_directory_api_permissions_users_directory_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Name substring or phone digits","title":"Q"},"description":"Name substring or phone digits"},{"name":"user_type","in":"query","required":false,"schema":{"enum":["MODERATOR","STUDENT","TEACHER","ALL"],"type":"string","default":"MODERATOR","title":"User Type"}},{"name":"role_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Role Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UserDirectoryRow_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scheme/items":{"post":{"tags":["scheme"],"summary":"Create Items","operationId":"create_items_api_scheme_items_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SchemeTodoInsert"},"type":"array","title":"Payload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SchemeTodoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["scheme"],"summary":"Remove Items","operationId":"remove_items_api_scheme_items_delete","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/scheme/items/unit/{unit_id}":{"get":{"tags":["scheme"],"summary":"Get Items By Unit","operationId":"get_items_by_unit_api_scheme_items_unit__unit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitTodosView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scheme/items/subunit/{subunit_id}":{"get":{"tags":["scheme"],"summary":"Get Items By Subunit","operationId":"get_items_by_subunit_api_scheme_items_subunit__subunit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subunit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subunit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitTodosView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scheme/items/outcome/{outcome_id}":{"get":{"tags":["scheme"],"summary":"Get Items By Outcome","operationId":"get_items_by_outcome_api_scheme_items_outcome__outcome_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"outcome_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Outcome Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_OutcomeTodosView_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scheme/summary/unit/{unit_id}":{"get":{"tags":["scheme"],"summary":"Get All Items Summary","operationId":"get_all_items_summary_api_scheme_summary_unit__unit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unit_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Unit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SchemeTodoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scheme/summary/subunits":{"post":{"tags":["scheme"],"summary":"Get Subunit Items Summary","operationId":"get_subunit_items_summary_api_scheme_summary_subunits_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Subunit Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SchemeTodoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/scheme/summary/outcomes":{"post":{"tags":["scheme"],"summary":"Get Outcome Items Summary","operationId":"get_outcome_items_summary_api_scheme_summary_outcomes_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Outcome Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SchemeTodoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/scheme/update/items":{"post":{"tags":["scheme"],"summary":"Update Items","operationId":"update_items_api_scheme_update_items_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SchemeTodoUpdate"},"type":"array","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SchemeTodoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/scheme/update/item/{todo_id}":{"post":{"tags":["scheme"],"summary":"Update Item","operationId":"update_item_api_scheme_update_item__todo_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"todo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Todo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemeTodoUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SchemeTodoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/profile":{"get":{"tags":["course_profile"],"summary":"Get profile by user/profile id","operationId":"get_profile_api_course_profile_profile_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Profile/User ID","title":"Profile Id"},"description":"Profile/User ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProfileRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/profile/tckn":{"get":{"tags":["course_profile"],"summary":"Current user's own TCKN (owner-only readback; no id parameter by design).","operationId":"get_my_tckn_api_course_profile_profile_tckn_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProfileTcknRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/profile/update":{"patch":{"tags":["course_profile"],"summary":"Updates the profile of a user. Requires at least one of name,surname, or birthdate.","operationId":"update_profile_api_course_profile_profile_update_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProfileRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/profile/picture":{"delete":{"tags":["course_profile"],"summary":"Remove current user's profile picture (idempotent; also deletes the stored object best-effort).","operationId":"remove_profile_picture_api_course_profile_profile_picture_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProfileRead_"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["course_profile"],"summary":"Upload or replace current user's profile picture","operationId":"set_profile_picture_api_course_profile_profile_picture_patch","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_set_profile_picture_api_course_profile_profile_picture_patch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProfileRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/profile/pictures/files":{"get":{"tags":["course_profile"],"summary":"Batch resolve profile picture object_ids to public URLs (keeps order).","operationId":"get_profile_pictures_files_api_course_profile_profile_pictures_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"object_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Repeatable: ?object_ids=profile_pictures/<uuid>.png&object_ids=profile_pictures/<uuid>.jpg","title":"Object Ids"},"description":"Repeatable: ?object_ids=profile_pictures/<uuid>.png&object_ids=profile_pictures/<uuid>.jpg"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_str_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/profiles/batch":{"get":{"tags":["course_profile"],"summary":"Load multiple profiles by user_id (Name, Surname, Birthdate, AvatarLink). Order preserved.","operationId":"load_profiles_api_course_profile_profiles_batch_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":200,"description":"Repeatable: ?user_ids=<uuid>&user_ids=<uuid> (max 200 ids per request)","title":"User Ids"},"description":"Repeatable: ?user_ids=<uuid>&user_ids=<uuid> (max 200 ids per request)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProfileRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher/update":{"patch":{"tags":["course_profile"],"summary":"Updates teacher fields (first_teaching_year, biography, slot_price). At least one required.","operationId":"update_teacher_api_course_profile_teacher_update_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/teacher/subbranches/change":{"patch":{"tags":["course_profile"],"summary":"Remove and add teacher subbranches atomically (removals first, then additions).","operationId":"change_teacher_subbranches_api_course_profile_teacher_subbranches_change_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubbranchChangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/teacher/overview":{"get":{"tags":["course_profile"],"summary":"Get teacher overview","operationId":"get_teacher_overview_api_course_profile_teacher_overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher ID","title":"Teacher Id"},"description":"Teacher ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher/overview/batch":{"get":{"tags":["course_profile"],"summary":"Load multiple teacher overviews by teacher_id. Order preserved.","operationId":"load_teacher_overviews_api_course_profile_teacher_overview_batch_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":200,"description":"Repeatable: ?teacher_ids=<uuid>&teacher_ids=<uuid> (max 200 ids per request)","title":"Teacher Ids"},"description":"Repeatable: ?teacher_ids=<uuid>&teacher_ids=<uuid> (max 200 ids per request)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher_labels/fields":{"post":{"tags":["course_profile"],"summary":"Create a teacher label field (tenant-scoped dictionary item).","operationId":"create_teacher_label_field_api_course_profile_teacher_labels_fields_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherLabelFieldCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherLabelFieldRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["course_profile"],"summary":"List teacher label fields (tenant-scoped, paginated). Optional query filter by name.","operationId":"list_teacher_label_fields_api_course_profile_teacher_labels_fields_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1–100)","default":20,"title":"Page Size"},"description":"Page size (1–100)"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional case-insensitive filter","title":"Query"},"description":"Optional case-insensitive filter"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherLabelFieldListRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher_labels/fields/{label_id}":{"get":{"tags":["course_profile"],"summary":"Get a single teacher label field by id (tenant-scoped).","operationId":"get_teacher_label_field_api_course_profile_teacher_labels_fields__label_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"TeacherLabelField ID","title":"Label Id"},"description":"TeacherLabelField ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherLabelFieldRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["course_profile"],"summary":"Update a teacher label field's name/description (tenant-scoped).","operationId":"update_teacher_label_field_api_course_profile_teacher_labels_fields__label_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"TeacherLabelField ID","title":"Label Id"},"description":"TeacherLabelField ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherLabelFieldUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherLabelFieldRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["course_profile"],"summary":"Hard delete a teacher label field (tenant-scoped). Cascades mappings.","operationId":"delete_teacher_label_field_api_course_profile_teacher_labels_fields__label_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"TeacherLabelField ID","title":"Label Id"},"description":"TeacherLabelField ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher/labels":{"get":{"tags":["course_profile"],"summary":"Get current teacher's labels.","operationId":"get_my_teacher_labels_api_course_profile_teacher_labels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherLabelsRead_"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["course_profile"],"summary":"Patch current teacher's labels strictly (remove first, then add).","operationId":"patch_my_teacher_labels_api_course_profile_teacher_labels_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTeacherLabelsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PatchTeacherLabelsResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/teacher/me/onboarding-state":{"get":{"tags":["course_profile"],"summary":"Authenticated teacher's onboarding state (token-based).","operationId":"get_my_teacher_onboarding_state_api_course_profile_teacher_me_onboarding_state_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOnboardingStateRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/teachers/{teacher_id}/labels":{"get":{"tags":["course_profile"],"summary":"Get a teacher's labels by teacher_id (public within auth).","operationId":"get_teacher_labels_api_course_profile_teachers__teacher_id__labels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher/User ID","title":"Teacher Id"},"description":"Teacher/User ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherLabelsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher/list":{"post":{"tags":["course_profile"],"summary":"Filter & list VERIFIED teachers with complex filters.","operationId":"list_teachers_filtered_api_course_profile_teacher_list_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1–100)","default":10,"title":"Page Size"},"description":"Page size (1–100)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherListFilter"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher/search":{"get":{"tags":["course_profile"],"summary":"Search teachers by exact full name (normalized, paginated).","operationId":"search_teachers_by_fullname_api_course_profile_teacher_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Full first name + last name as one string. Must match exactly after trim/collapse spaces/lowercase (no partial or fuzzy match).","title":"Query"},"description":"Full first name + last name as one string. Must match exactly after trim/collapse spaces/lowercase (no partial or fuzzy match)."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1–100)","default":10,"title":"Page Size"},"description":"Page size (1–100)"},{"name":"only_verified","in":"query","required":false,"schema":{"type":"boolean","description":"If true, only VERIFIED teachers are returned.","default":true,"title":"Only Verified"},"description":"If true, only VERIFIED teachers are returned."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher/reviews":{"get":{"tags":["course_profile"],"summary":"Get paginated teacher reviews. page=0 => first page_size rows, page=1 => next, etc.","operationId":"get_teacher_reviews_api_course_profile_teacher_reviews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher ID","title":"Teacher Id"},"description":"Teacher ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Page Size"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TeacherReviewSort","description":"NEWEST (default) or HIGHEST_SCORE.","default":"NEWEST"},"description":"NEWEST (default) or HIGHEST_SCORE."},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only reviews tagged with this marketplace bundle.","title":"Product Id"},"description":"Only reviews tagged with this marketplace bundle."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherReviews_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["course_profile"],"summary":"Create or update a review for a teacher by the current student.","operationId":"student_review_teacher_api_course_profile_teacher_reviews_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher/approval/request":{"post":{"tags":["course_profile"],"summary":"Request a teacher approval (creates PENDING if profile complete and none pending).","operationId":"request_teacher_approval_api_course_profile_teacher_approval_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherApprovalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/teacher/verify":{"patch":{"tags":["course_profile"],"summary":"Approve or reject the current pending teacher approval","operationId":"verify_teacher_api_course_profile_teacher_verify_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/teacher/approvals":{"get":{"tags":["course_profile"],"summary":"List pending teacher approvals (10 per page, oldest first)","operationId":"list_pending_teacher_approvals_api_course_profile_teacher_approvals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page number: 0=first 10, 1=next 10, ...","default":0,"title":"Page"},"description":"Page number: 0=first 10, 1=next 10, ..."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherApprovalRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher/approvals/me":{"get":{"tags":["course_profile"],"summary":"Authenticated teacher's own approval history (latest first), incl. reviewer_comment.","operationId":"list_my_teacher_approvals_api_course_profile_teacher_approvals_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherApprovalRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/teacher/approvals/{teacher_id}":{"get":{"tags":["course_profile"],"summary":"List past approvals for a teacher (latest first)","operationId":"list_teacher_approvals_for_teacher_api_course_profile_teacher_approvals__teacher_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher ID","title":"Teacher Id"},"description":"Teacher ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherApprovalRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/teacher/approval/stream":{"get":{"tags":["course_profile"],"summary":"SSE stream for teacher approval events (tenant-scoped).","operationId":"teacher_approval_stream_api_course_profile_teacher_approval_stream_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/student/profile":{"get":{"tags":["course_profile"],"summary":"Get a student's profile by student_id (self, a teacher who teaches them, or an admin).","operationId":"get_student_profile_api_course_profile_student_profile_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"student_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Student/User ID","title":"Student Id"},"description":"Student/User ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/profile/batch":{"get":{"tags":["course_profile"],"summary":"Load multiple student profiles by student_id. Order preserved; ids you may not read come back in meta.missing_ids.","operationId":"load_student_profiles_api_course_profile_student_profile_batch_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"student_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":200,"description":"Repeatable: ?student_ids=<uuid>&student_ids=<uuid> (max 200 ids per request)","title":"Student Ids"},"description":"Repeatable: ?student_ids=<uuid>&student_ids=<uuid> (max 200 ids per request)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/profile/completion":{"get":{"tags":["course_profile"],"summary":"Get current student's profile completion flags (required profile fields + questionnaire completion).","operationId":"get_student_profile_completion_api_course_profile_student_profile_completion_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentProfileCompletionRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/student/update":{"patch":{"tags":["course_profile"],"summary":"Update student's school_level / province / district / school / target_ranking / target college-program / parent_phone atomically.","operationId":"update_student_api_course_profile_student_update_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/student/questionaire":{"get":{"tags":["course_profile"],"summary":"Get current student's questionnaire answers and completion state.","operationId":"get_student_questionaire_api_course_profile_student_questionaire_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentQuestionnaireRead_"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["course_profile"],"summary":"Patch current student's questionnaire (only provided fields are updated).","operationId":"patch_student_questionaire_api_course_profile_student_questionaire_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentQuestionnairePatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentQuestionnaireRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/student/questionaire/complete":{"post":{"tags":["course_profile"],"summary":"Mark current student's questionnaire as completed (may enforce required answers).","operationId":"complete_student_questionaire_api_course_profile_student_questionaire_complete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentQuestionnaireRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/student/favourites":{"get":{"tags":["course_profile"],"summary":"List favourite teachers of current student.","operationId":"list_student_favourites_api_course_profile_student_favourites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/student/favourites/{teacher_id}":{"post":{"tags":["course_profile"],"summary":"Add a teacher to current student's favourites.","operationId":"add_student_favourite_api_course_profile_student_favourites__teacher_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the teacher to favourite","title":"Teacher Id"},"description":"ID of the teacher to favourite"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["course_profile"],"summary":"Remove a teacher from current student's favourites.","operationId":"remove_student_favourite_api_course_profile_student_favourites__teacher_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the teacher to remove from favourites","title":"Teacher Id"},"description":"ID of the teacher to remove from favourites"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherOverview_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/levels":{"get":{"tags":["course_profile"],"summary":"List all curriculum levels of current student.","operationId":"list_student_levels_api_course_profile_student_levels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LevelRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/student/levels/{level_id}":{"post":{"tags":["course_profile"],"summary":"Add a curriculum level to current student.","operationId":"add_student_level_api_course_profile_student_levels__level_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"level_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the level to add","title":"Level Id"},"description":"ID of the level to add"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LevelRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["course_profile"],"summary":"Remove a curriculum level from current student.","operationId":"remove_student_level_api_course_profile_student_levels__level_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"level_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"ID of the level to remove","title":"Level Id"},"description":"ID of the level to remove"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LevelRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/provinces":{"get":{"tags":["course_profile"],"summary":"Search provinces by name (case-insensitive). If query is omitted, returns all provinces.","operationId":"student_school_selection_provinces_api_course_profile_student_school_selection_provinces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive substring of province name","title":"Query"},"description":"Case-insensitive substring of province name"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of provinces to return","default":20,"title":"Limit"},"description":"Maximum number of provinces to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProvinceRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/province":{"get":{"tags":["course_profile"],"summary":"Get a single province by id.","operationId":"student_school_selection_get_province_api_course_profile_student_school_selection_province_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"province_id","in":"query","required":true,"schema":{"type":"integer","minimum":1,"description":"Province id","title":"Province Id"},"description":"Province id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProvinceRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/districts":{"get":{"tags":["course_profile"],"summary":"Search districts within a province by name (case-insensitive).","operationId":"student_school_selection_districts_api_course_profile_student_school_selection_districts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"province_id","in":"query","required":true,"schema":{"type":"integer","minimum":1,"description":"Parent province id","title":"Province Id"},"description":"Parent province id"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive substring of district name","title":"Query"},"description":"Case-insensitive substring of district name"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of districts to return","default":20,"title":"Limit"},"description":"Maximum number of districts to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_DistrictRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/district":{"get":{"tags":["course_profile"],"summary":"Get a single district by id.","operationId":"student_school_selection_get_district_api_course_profile_student_school_selection_district_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"district_id","in":"query","required":true,"schema":{"type":"integer","minimum":1,"description":"District id","title":"District Id"},"description":"District id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_DistrictRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/schools":{"get":{"tags":["course_profile"],"summary":"Search schools by name with optional filters (province, district, level).","operationId":"student_school_selection_schools_api_course_profile_student_school_selection_schools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Case-insensitive substring of school name","title":"Query"},"description":"Case-insensitive substring of school name"},{"name":"district_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Optional district filter.","title":"District Id"},"description":"Optional district filter."},{"name":"province_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Optional province filter.","title":"Province Id"},"description":"Optional province filter."},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SchoolLevel"},{"type":"null"}],"description":"Optional school level filter.","title":"Level"},"description":"Optional school level filter."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of schools to return","default":20,"title":"Limit"},"description":"Maximum number of schools to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SchoolRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/school":{"get":{"tags":["course_profile"],"summary":"Get a single school by id.","operationId":"student_school_selection_get_school_api_course_profile_student_school_selection_school_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"school_id","in":"query","required":true,"schema":{"type":"integer","minimum":1,"description":"School id","title":"School Id"},"description":"School id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SchoolRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/colleges":{"get":{"tags":["course_profile"],"summary":"Search colleges/universities by name (case-insensitive). If query is omitted, returns all colleges.","operationId":"student_school_selection_colleges_api_course_profile_student_school_selection_colleges_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive substring of college/university name","title":"Query"},"description":"Case-insensitive substring of college/university name"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of colleges to return","default":20,"title":"Limit"},"description":"Maximum number of colleges to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CollegeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/college":{"get":{"tags":["course_profile"],"summary":"Get a single college/university by id.","operationId":"student_school_selection_get_college_api_course_profile_student_school_selection_college_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"college_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"College/University id","title":"College Id"},"description":"College/University id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CollegeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/colleges":{"get":{"tags":["course_profile"],"summary":"Search universities by name (case-insensitive). If query is omitted, returns all universities. Role-agnostic alias.","operationId":"list_or_search_colleges_api_course_profile_colleges_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive substring of university name","title":"Query"},"description":"Case-insensitive substring of university name"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of universities to return","default":20,"title":"Limit"},"description":"Maximum number of universities to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CollegeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/college":{"get":{"tags":["course_profile"],"summary":"Get a single university by id. Role-agnostic alias.","operationId":"get_college_by_id_api_course_profile_college_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"college_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"University id","title":"College Id"},"description":"University id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CollegeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/programs":{"get":{"tags":["course_profile"],"summary":"Search programs by name (case-insensitive). If query is omitted, lists programs of the given college_id. Program results include the parent college info (nested).","operationId":"student_school_selection_programs_api_course_profile_student_school_selection_programs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"college_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Parent college/university id","title":"College Id"},"description":"Parent college/university id"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Case-insensitive substring of program name","title":"Query"},"description":"Case-insensitive substring of program name"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of programs to return","default":20,"title":"Limit"},"description":"Maximum number of programs to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProgramRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/school_selection/program":{"get":{"tags":["course_profile"],"summary":"Get a single program by id (includes the parent college info).","operationId":"student_school_selection_get_program_api_course_profile_student_school_selection_program_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"program_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Program id","title":"Program Id"},"description":"Program id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProgramRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/colleges/sync":{"post":{"tags":["course_profile"],"summary":"Admin: replace ALL colleges/programs from uploaded XLSX. Nulls student/teacher college/program references, then rebuilds the tables. Requires RBAC_MANAGE.","operationId":"sync_colleges_xlsx_api_course_profile_colleges_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"Parse only; no DB writes.","default":false,"title":"Dry Run"},"description":"Parse only; no DB writes."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_sync_colleges_xlsx_api_course_profile_colleges_sync_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollegesSyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course_profile/student/parent-phone/request":{"post":{"tags":["course_profile"],"summary":"Send a one-time code to the parent's phone so the student can verify it (self only).","operationId":"request_parent_phone_otp_api_course_profile_student_parent_phone_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentPhoneOtpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ParentPhoneOtpRequestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/student/parent-phone/verify":{"post":{"tags":["course_profile"],"summary":"Verify the code the parent received; on success the number becomes the student's verified parent phone.","operationId":"verify_parent_phone_otp_api_course_profile_student_parent_phone_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentPhoneOtpVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course_profile/student/parent-phone/status":{"get":{"tags":["course_profile"],"summary":"Current parent-phone verification state (verified number, pending code, cooldown, remaining sends).","operationId":"get_parent_phone_status_api_course_profile_student_parent_phone_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ParentPhoneStatusRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/item":{"get":{"tags":["course"],"summary":"Load a single course by id. Optionally include teacher overview.","operationId":"load_course_api_course_course_item_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"load_teacher","in":"query","required":false,"schema":{"type":"boolean","description":"Include TeacherOverview in DTO","default":false,"title":"Load Teacher"},"description":"Include TeacherOverview in DTO"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/batch":{"get":{"tags":["course"],"summary":"Load multiple courses by ids. Optionally include teacher overview.","operationId":"load_courses_api_course_course_batch_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Repeatable query param: ?course_ids=...&course_ids=...","title":"Course Ids"},"description":"Repeatable query param: ?course_ids=...&course_ids=..."},{"name":"include_teacher_overview","in":"query","required":false,"schema":{"type":"boolean","description":"Include TeacherOverview for each","default":false,"title":"Include Teacher Overview"},"description":"Include TeacherOverview for each"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/by-teacher":{"get":{"tags":["course"],"summary":"List all courses for a given teacher.","operationId":"load_teacher_courses_api_course_course_by_teacher_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher ID","title":"Teacher Id"},"description":"Teacher ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/by-teacher/me":{"get":{"tags":["course"],"summary":"List all courses for the authenticated teacher (token-based).","operationId":"load_my_teacher_courses_api_course_course_by_teacher_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/list":{"post":{"tags":["course"],"summary":"Filter & list courses with complex filters (PUBLISHED/ONGOING only).","operationId":"list_courses_filtered_api_course_course_list_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":10,"title":"Page Size"},"description":"Page size"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseListFilter"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/create":{"post":{"tags":["course"],"summary":"Create a course for the current teacher (optional start_date).","operationId":"create_course_api_course_course_create_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Optional start date","title":"Start Date"},"description":"Optional start date"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/update":{"patch":{"tags":["course"],"summary":"Update mutable fields of a course owned by the current teacher.","operationId":"update_course_api_course_course_update_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/banner":{"patch":{"tags":["course"],"summary":"Upload or replace the banner image for a course owned by the current teacher.","operationId":"change_course_banner_api_course_course_banner_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_change_course_banner_api_course_course_banner_patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/start":{"patch":{"tags":["course"],"summary":"Start a course (PUBLISHED → ONGOING). Current user must own the course.","operationId":"teacher_start_course_api_course_course_start_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/cancel":{"patch":{"tags":["course"],"summary":"Cancel a course (DRAFT/PUBLISHED → CANCELLED). Current user must own the course.","operationId":"teacher_cancel_course_api_course_course_cancel_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/complete":{"patch":{"tags":["course"],"summary":"Complete a course (ONGOING → COMPLETED). Current user must own the course.","operationId":"teacher_complete_course_api_course_course_complete_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/clear-enrollments":{"patch":{"tags":["course"],"summary":"Clear all active enrollments of a course (mark them CANCELLED). Current user must own the course.","operationId":"teacher_clear_course_enrollments_api_course_course_clear_enrollments_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/draft/request":{"post":{"tags":["course"],"summary":"Teacher requests draft verification for a course.","operationId":"request_course_draft_api_course_course_draft_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseDraftCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseDraftRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/draft/pending":{"get":{"tags":["course"],"summary":"List pending course drafts (paged).","operationId":"list_pending_course_drafts_api_course_course_draft_pending_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":10,"title":"Page Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseDraftRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/draft/by-course":{"get":{"tags":["course"],"summary":"List drafts for a specific course.","operationId":"list_course_drafts_by_course_api_course_course_draft_by_course_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseDraftRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/draft/decide":{"patch":{"tags":["course"],"summary":"Admin/mod decides a draft (APPROVED/REJECTED).","operationId":"decide_course_draft_api_course_course_draft_decide_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseDraftDecisionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseDraftRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/schedule/by-course":{"get":{"tags":["course"],"summary":"Get the weekly schedule for a course.","operationId":"get_weekly_course_schedule_api_course_course_schedule_by_course_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/schedule/by-teacher":{"get":{"tags":["course"],"summary":"Get the merged weekly schedule for a teacher.","operationId":"get_weekly_teacher_schedule_api_course_course_schedule_by_teacher_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher ID","title":"Teacher Id"},"description":"Teacher ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/student/schedule":{"get":{"tags":["course"],"summary":"Get current student's weekly schedule (PUBLISHED/ONGOING only).","operationId":"get_student_weekly_schedule_api_course_course_student_schedule_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapDTO_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/schedule/insert":{"post":{"tags":["course"],"summary":"Insert a schedule block for a course owned by the current teacher.","operationId":"insert_course_schedule_entry_api_course_course_schedule_insert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseScheduleInsertionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/schedule/update":{"patch":{"tags":["course"],"summary":"Update a schedule row for a course owned by the current teacher.","operationId":"update_course_schedule_entry_api_course_course_schedule_update_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseScheduleUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/schedule/remove":{"delete":{"tags":["course"],"summary":"Remove a schedule row from a course owned by the current teacher.","operationId":"remove_course_schedule_entry_api_course_course_schedule_remove_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseScheduleRemovalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/schedule/clear":{"delete":{"tags":["course"],"summary":"Clear the entire weekly schedule for a course owned by the current teacher.","operationId":"clear_course_schedule_api_course_course_schedule_clear_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseScheduleClearRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapDTO_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/syllabus":{"get":{"tags":["course"],"summary":"Get the syllabus for a course.","operationId":"get_course_syllabus_api_course_course_syllabus_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseSyllabusRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/lesson-request/subunits/attach":{"post":{"tags":["course"],"summary":"Bulk-attach subunits to a lesson request (teacher-owned).","operationId":"attach_lesson_request_subunits_api_course_course_lesson_request_subunits_attach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachSubunitsToLessonRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestSubunitsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/lesson-request/subunits/detach":{"post":{"tags":["course"],"summary":"Bulk-detach subunits from a lesson request (teacher-owned).","operationId":"detach_lesson_request_subunits_api_course_course_lesson_request_subunits_detach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachSubunitsFromLessonRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestSubunitsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/lesson-request/subunits":{"get":{"tags":["course"],"summary":"Return the subunits currently attached to a lesson request (teacher owner or enrolled student).","operationId":"get_lesson_request_subunits_api_course_course_lesson_request_subunits_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lesson_request_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Lesson Request ID","title":"Lesson Request Id"},"description":"Lesson Request ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestSubunitsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/announcements/feed":{"get":{"tags":["course"],"summary":"List announcements across all courses the current student is ENROLLED in (paginated).","operationId":"get_student_announcements_feed_api_course_course_announcements_feed_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":20,"title":"Page Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseAnnouncementOverviewPageRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/announcements":{"get":{"tags":["course"],"summary":"List announcements for a course (paginated) and unseen count for current user.","operationId":"get_course_announcements_api_course_course_announcements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":20,"title":"Page Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseAnnouncementOverviewPageRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/announcements/item":{"get":{"tags":["course"],"summary":"Get a single course announcement by id.","operationId":"get_course_announcement_api_course_course_announcements_item_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"announcement_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Announcement ID","title":"Announcement Id"},"description":"Announcement ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseAnnouncementRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/announcements/create":{"post":{"tags":["course"],"summary":"Create a new announcement for a course owned by the current teacher.","operationId":"create_course_announcement_api_course_course_announcements_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseAnnouncementCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseAnnouncementRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/announcements/update":{"patch":{"tags":["course"],"summary":"Update an existing announcement (title/body/is_pinned). Current teacher must own the course.","operationId":"update_course_announcement_api_course_course_announcements_update_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"announcement_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Announcement ID","title":"Announcement Id"},"description":"Announcement ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseAnnouncementUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseAnnouncementRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/announcements/delete":{"delete":{"tags":["course"],"summary":"Soft-delete an announcement. Current teacher must own the course.","operationId":"delete_course_announcement_api_course_course_announcements_delete_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"announcement_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Announcement ID","title":"Announcement Id"},"description":"Announcement ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/announcements/read":{"post":{"tags":["course"],"summary":"Mark a single announcement as seen by the current user.","operationId":"read_course_announcement_api_course_course_announcements_read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"announcement_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Announcement ID","title":"Announcement Id"},"description":"Announcement ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/announcements/mark-all-seen":{"post":{"tags":["course"],"summary":"Mark all announcements of a course as seen for the current user.","operationId":"mark_all_announcements_seen_for_course_api_course_course_announcements_mark_all_seen_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarkAllAnnouncementsSeenRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/teacher/upload":{"post":{"tags":["course"],"summary":"Upload a file into the current teacher's document library. HOMEWORK uploads carry their answer key.","operationId":"insert_teacher_document_api_course_course_documents_teacher_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_insert_teacher_document_api_course_course_documents_teacher_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/documents/teacher/upload/batch":{"post":{"tags":["course"],"summary":"Upload multiple NOTES files into the current teacher's document library (atomic).","operationId":"insert_teacher_documents_batch_api_course_course_documents_teacher_upload_batch_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_insert_teacher_documents_batch_api_course_course_documents_teacher_upload_batch_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/documents/teacher":{"get":{"tags":["course"],"summary":"List current teacher's document library (paginated, optional subbranch/unit/kind filters).","operationId":"list_teacher_documents_paginated_api_course_course_documents_teacher_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1–100)","default":20,"title":"Page Size"},"description":"Page size (1–100)"},{"name":"only_active","in":"query","required":false,"schema":{"type":"boolean","description":"If true, hide soft-deleted teacher documents.","default":true,"title":"Only Active"},"description":"If true, hide soft-deleted teacher documents."},{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by curriculum subbranch label.","title":"Subbranch Id"},"description":"Filter by curriculum subbranch label."},{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Filter by curriculum unit label.","title":"Unit Id"},"description":"Filter by curriculum unit label."},{"name":"only_homework","in":"query","required":false,"schema":{"type":"boolean","description":"Legacy spelling of document_kind=HOMEWORK.","default":false,"title":"Only Homework"},"description":"Legacy spelling of document_kind=HOMEWORK."},{"name":"document_kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TeacherDocumentKind"},{"type":"null"}],"description":"Filter by library kind (HOMEWORK or NOTES).","title":"Document Kind"},"description":"Filter by library kind (HOMEWORK or NOTES)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["course"],"summary":"Soft-delete a teacher library document. Refused (409) while a course, a bundle template or a marketplace bundle still uses it.","operationId":"delete_teacher_document_api_course_course_documents_teacher_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_document_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher document (library) id","title":"Teacher Document Id"},"description":"Teacher document (library) id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/teacher/attachments":{"post":{"tags":["course"],"summary":"Where are these library documents used? Courses + ONGOING marketplace bundles per document id.","operationId":"get_teacher_document_attachments_api_course_course_documents_teacher_attachments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherDocumentAttachmentsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherDocumentAttachmentsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/documents/teacher/file":{"patch":{"tags":["course"],"summary":"Replace the file of a teacher library document (extension changes allowed).","operationId":"update_teacher_document_file_api_course_course_documents_teacher_file_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_document_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher document (library) id","title":"Teacher Document Id"},"description":"Teacher document (library) id"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_update_teacher_document_file_api_course_course_documents_teacher_file_patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/teacher/labels":{"patch":{"tags":["course"],"summary":"Patch the curriculum labels (subbranch_id / unit_id) and/or display name (original_filename) of a teacher library document.","operationId":"update_teacher_document_labels_api_course_course_documents_teacher_labels_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherDocumentLabelsUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/teacher-documents/homework/upsert":{"post":{"tags":["course"],"summary":"Upsert the library-level homework answer key of a teacher document. Owner only.","operationId":"upsert_teacher_document_homework_api_course_course_teacher_documents_homework_upsert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherDocumentHomeworkUpsertRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherDocumentHomeworkRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/teacher-documents/homework":{"get":{"tags":["course"],"summary":"Get the library-level homework answer key of a teacher document. Owner only.","operationId":"get_teacher_document_homework_api_course_course_teacher_documents_homework_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_document_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher document (library) id","title":"Teacher Document Id"},"description":"Teacher document (library) id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherDocumentHomeworkRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/teacher/subbranches":{"get":{"tags":["course"],"summary":"List distinct subbranches the current teacher has active library materials in.","operationId":"list_teacher_document_subbranches_api_course_course_documents_teacher_subbranches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubbranchRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/documents/teacher/units":{"get":{"tags":["course"],"summary":"List distinct units the current teacher has active library materials in, scoped to one subbranch.","operationId":"list_teacher_document_units_api_course_course_documents_teacher_units_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subbranch_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Curriculum subbranch to scope the unit facets to.","title":"Subbranch Id"},"description":"Curriculum subbranch to scope the unit facets to."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/lesson-request/documents":{"get":{"tags":["course"],"summary":"List documents attached to a single lesson request (paginated). Caller must be the lesson request's teacher or student.","operationId":"list_lesson_request_documents_paginated_api_course_course_lesson_request_documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lesson_request_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Lesson Request ID","title":"Lesson Request Id"},"description":"Lesson Request ID"},{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional unit filter (teacher library unit_id)","title":"Unit Id"},"description":"Optional unit filter (teacher library unit_id)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1-100)","default":20,"title":"Page Size"},"description":"Page size (1-100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["course"],"summary":"Detach (soft-delete) a lesson-request document by row id. Caller must own the lesson request.","operationId":"detach_lesson_request_document_api_course_course_lesson_request_documents_delete","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachLessonRequestDocumentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/lesson-request/documents/attach":{"post":{"tags":["course"],"summary":"Attach a teacher library document to a lesson request (creates a LessonRequestDocument row).","operationId":"attach_lesson_request_document_api_course_course_lesson_request_documents_attach_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachLessonRequestDocumentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/lesson-request/documents/attach/batch":{"post":{"tags":["course"],"summary":"Attach multiple teacher library documents to one lesson request (atomic).","operationId":"attach_lesson_request_documents_batch_api_course_course_lesson_request_documents_attach_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachLessonRequestDocumentsBatchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/documents":{"get":{"tags":["course"],"summary":"List documents attached to any lesson request of the given course (paginated). Optional unit_id filter.","operationId":"list_course_documents_paginated_api_course_course_documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional unit filter (teacher library unit_id)","title":"Unit Id"},"description":"Optional unit filter (teacher library unit_id)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1–100)","default":20,"title":"Page Size"},"description":"Page size (1–100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/batch":{"get":{"tags":["course"],"summary":"Batch: list documents attached to lesson requests of MULTIPLE courses (one combined paginated list; doc_group is mandatory).","operationId":"list_course_documents_batch_api_course_course_documents_batch_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Repeatable query param: ?course_ids=<uuid>&course_ids=<uuid> ... (max 50)","title":"Course Ids"},"description":"Repeatable query param: ?course_ids=<uuid>&course_ids=<uuid> ... (max 50)"},{"name":"doc_group","in":"query","required":true,"schema":{"$ref":"#/components/schemas/CourseDocumentGroup","description":"HOMEWORK = only homework attachments; OTHERS = every other document_type"},"description":"HOMEWORK = only homework attachments; OTHERS = every other document_type"},{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional unit filter (teacher library unit_id)","title":"Unit Id"},"description":"Optional unit filter (teacher library unit_id)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1–100)","default":20,"title":"Page Size"},"description":"Page size (1–100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/units":{"get":{"tags":["course"],"summary":"List distinct units present across documents attached to any lesson request of the given course.","operationId":"list_course_document_units_api_course_course_documents_units_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/lesson-request/documents/update":{"patch":{"tags":["course"],"summary":"Update metadata of a lesson-request document (no file upload). Caller must own the lesson request.","description":"JSON body: UpdateLessonRequestDocumentRequest\n\nSelector:\n  - payload.id (LessonRequestDocument row PK)\n\nUpdates:\n  - document_name, description, document_type, visible_from, deadline.","operationId":"update_lesson_request_document_api_course_course_lesson_request_documents_update_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLessonRequestDocumentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestDocumentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/documents/files":{"get":{"tags":["course"],"summary":"Batch resolve teacher library document ids to signed URLs (keeps order). Owner, or a student the document is visibly assigned to.","operationId":"get_course_documents_files_api_course_course_documents_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Repeatable: ?document_ids=<uuid>&document_ids=<uuid> ... (teacher library document ids / CourseDocumentOfTeacher.id)","title":"Document Ids"},"description":"Repeatable: ?document_ids=<uuid>&document_ids=<uuid> ... (teacher library document ids / CourseDocumentOfTeacher.id)"},{"name":"expires_in_seconds","in":"query","required":false,"schema":{"type":"integer","maximum":86400,"minimum":60,"description":"Signed URL TTL in seconds (60..86400). Default 900.","default":900,"title":"Expires In Seconds"},"description":"Signed URL TTL in seconds (60..86400). Default 900."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_str_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/canvas":{"get":{"tags":["course"],"summary":"Get the caller's own canvas on a course document (participants of the lesson request only).","operationId":"get_course_document_canvas_api_course_course_documents_canvas_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"LessonRequestDocument row id","title":"Document Id"},"description":"LessonRequestDocument row id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseDocumentCanvasRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["course"],"summary":"Create or update the caller's own canvas: upload the JSON file and/or set visibility (teacher may share with the student).","operationId":"update_course_document_canvas_api_course_course_documents_canvas_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"LessonRequestDocument row id","title":"Document Id"},"description":"LessonRequestDocument row id"},{"name":"visibility","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CanvasVisibility"},{"type":"null"}],"description":"PRIVATE | SHARED_WITH_STUDENTS; omitted = unchanged. Only the document's teacher may share.","title":"Visibility"},"description":"PRIVATE | SHARED_WITH_STUDENTS; omitted = unchanged. Only the document's teacher may share."}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_update_course_document_canvas_api_course_course_documents_canvas_patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseDocumentCanvasRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["course"],"summary":"Hard delete current user's canvas row for a course document.","operationId":"delete_course_document_canvas_api_course_course_documents_canvas_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"canvas_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"LessonRequestDocumentCanvas id","title":"Canvas Id"},"description":"LessonRequestDocumentCanvas id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/canvas/list":{"get":{"tags":["course"],"summary":"List the canvases the caller may read on a course document: own row, plus the teacher's shared row for the student.","operationId":"list_course_document_canvases_api_course_course_documents_canvas_list_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"LessonRequestDocument row id","title":"Document Id"},"description":"LessonRequestDocument row id"},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CanvasRole"},{"type":"null"}],"description":"Keep only rows of this role (TEACHER / STUDENT)","title":"Role"},"description":"Keep only rows of this role (TEACHER / STUDENT)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseDocumentCanvasRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/canvas/url":{"get":{"tags":["course"],"summary":"Get a signed GET URL for a canvas object_id. Own canvas, or the teacher's shared canvas on a document assigned to you.","operationId":"get_course_document_canvas_signed_url_api_course_course_documents_canvas_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"canvas_link","in":"query","required":true,"schema":{"type":"string","description":"Canvas object_id in GCS, e.g. canvase/<uuid>","title":"Canvas Link"},"description":"Canvas object_id in GCS, e.g. canvase/<uuid>"},{"name":"minutes","in":"query","required":false,"schema":{"type":"integer","maximum":1440,"minimum":1,"description":"Signed URL TTL (minutes)","default":15,"title":"Minutes"},"description":"Signed URL TTL (minutes)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_str_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/homework":{"get":{"tags":["course"],"summary":"Get homework details by LessonRequestDocument row id. Teacher owner or enrolled student only.","operationId":"get_homework_api_course_course_homework_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"LessonRequestDocument row id (homework document)","title":"Document Id"},"description":"LessonRequestDocument row id (homework document)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_HomeworkRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/homeworks/deadlines":{"get":{"tags":["course"],"summary":"List upcoming homework deadlines for the current student (window in days, default 14).","operationId":"get_homework_deadlines_api_course_course_homeworks_deadlines_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"description":"Deadline window in days","default":14,"title":"Days"},"description":"Deadline window in days"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_HomeworkMiniRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/homeworks/upsert":{"post":{"tags":["course"],"summary":"Upsert homework answers for a homework document. Teacher must own the course.","operationId":"upsert_document_homeworks_api_course_course_documents_homeworks_upsert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeworkUpsertRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_HomeworkRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/documents/homework/submit":{"post":{"tags":["course"],"summary":"Submit (upsert) homework answers for the current student.","operationId":"upload_homework_assignment_api_course_course_documents_homework_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeworkSubmissionUpsertRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_HomeworkSubmissionRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/documents/homework/submission":{"get":{"tags":["course"],"summary":"Get my homework submission + grading for a homework document.","operationId":"get_homework_submission_api_course_course_documents_homework_submission_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"document_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"LessonRequestDocument row id (homework document)","title":"Document Id"},"description":"LessonRequestDocument row id (homework document)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_HomeworkSubmissionRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/documents/homework/submissions":{"get":{"tags":["course"],"summary":"List enrolled students + their submission status for a homework document (paginated). Teacher must own course.","operationId":"list_homework_student_assignments_paginated_api_course_course_documents_homework_submissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"document_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"LessonRequestDocument row id (homework document)","title":"Document Id"},"description":"LessonRequestDocument row id (homework document)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1–100)","default":20,"title":"Page Size"},"description":"Page size (1–100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentHomeworkAssignmentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/quizes/upload":{"post":{"tags":["course"],"summary":"Upload a quiz file into the current teacher's quiz library (DB insert + GCS upload).","operationId":"upload_teacher_quiz_api_course_course_quizes_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Quiz display name","title":"Name"},"description":"Quiz display name"},{"name":"answer","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":1,"description":"Correct answer (single char)","title":"Answer"},"description":"Correct answer (single char)"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_teacher_quiz_api_course_course_quizes_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherQuizRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/quizes/{teacher_quiz_id}":{"delete":{"tags":["course"],"summary":"Soft-delete one of my quizzes.","operationId":"delete_teacher_quiz_api_course_course_quizes__teacher_quiz_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_quiz_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"TeacherQuiz id","title":"Teacher Quiz Id"},"description":"TeacherQuiz id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/quizes":{"get":{"tags":["course"],"summary":"List my quizzes (paginated, newest first).","operationId":"list_teacher_quizzes_paginated_api_course_course_quizes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1–100)","default":20,"title":"Page Size"},"description":"Page size (1–100)"},{"name":"only_active","in":"query","required":false,"schema":{"type":"boolean","description":"If true, hide soft-deleted quizzes.","default":true,"title":"Only Active"},"description":"If true, hide soft-deleted quizzes."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherQuizRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/quizes/files":{"get":{"tags":["course"],"summary":"Batch resolve quiz object_ids to signed URLs (keeps order).","operationId":"get_teacher_quiz_files_api_course_course_quizes_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"quiz_links","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"description":"Repeatable: ?quiz_links=teacher_quizzes/<uuid>&quiz_links=teacher_quizzes/<uuid>","title":"Quiz Links"},"description":"Repeatable: ?quiz_links=teacher_quizzes/<uuid>&quiz_links=teacher_quizzes/<uuid>"},{"name":"expires_in_seconds","in":"query","required":false,"schema":{"type":"integer","maximum":86400,"minimum":60,"description":"Signed URL TTL in seconds (60..86400). Default 900.","default":900,"title":"Expires In Seconds"},"description":"Signed URL TTL in seconds (60..86400). Default 900."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_str_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/enroll":{"post":{"tags":["course"],"summary":"Student enrolls/cancels enrollment for a course.","operationId":"student_enroll_to_course_api_course_course_enroll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourseEnrollRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_EnrollmentChangeMessage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/student/enrolled":{"get":{"tags":["course"],"summary":"List courses current student is enrolled in (paged).","operationId":"student_get_enrolled_courses_api_course_course_student_enrolled_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"filter_statuses","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/CourseStatus"}},{"type":"null"}],"description":"Optional filter of course statuses (e.g., PUBLISHED,ONGOING,COMPLETED,CANCELLED)","title":"Filter Statuses"},"description":"Optional filter of course statuses (e.g., PUBLISHED,ONGOING,COMPLETED,CANCELLED)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/enrollment/status":{"get":{"tags":["course"],"summary":"Get a student's enrollment status for a given course.","operationId":"student_get_enrollment_status_api_course_course_enrollment_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"student_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional explicit student ID. Defaults to current user if omitted.","title":"Student Id"},"description":"Optional explicit student ID. Defaults to current user if omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_EnrollmentStatus_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/roster":{"get":{"tags":["course"],"summary":"Teacher roster: students currently enrolled in the course (20/page).","operationId":"get_enrolled_students_api_course_course_roster_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/remove-student":{"delete":{"tags":["course"],"summary":"Teacher removes a student's enrollment from a course.","operationId":"teacher_remove_student_from_course_api_course_course_remove_student_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"student_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Student/User ID","title":"Student Id"},"description":"Student/User ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_EnrollmentChangeMessage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/lesson/attendance":{"get":{"tags":["course"],"summary":"List all lessons in a course annotated with the student's attendance (includes never-joined).","operationId":"get_student_attendance_for_course_api_course_course_lesson_attendance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"student_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional explicit student ID; defaults to current user.","title":"Student Id"},"description":"Optional explicit student ID; defaults to current user."},{"name":"require_enrollment","in":"query","required":false,"schema":{"type":"boolean","description":"If true, returns 422 unless the student is ENROLLED in the course.","default":false,"title":"Require Enrollment"},"description":"If true, returns 422 unless the student is ENROLLED in the course."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentAttendanceRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/subunits/complete":{"post":{"tags":["course"],"summary":"Teacher marks a subunit as completed for a specific lesson of a course they own.","operationId":"teacher_insert_completed_subunit_api_course_course_subunits_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertCompletedSubunitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["course"],"summary":"Teacher cancels (uncompletes) a subunit for a course they own.","operationId":"teacher_cancel_completed_subunit_api_course_course_subunits_complete_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelCompletedSubunitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/course/course/subunits/completed":{"get":{"tags":["course"],"summary":"List all completed subunits for a course.","operationId":"get_completed_subunits_api_course_course_subunits_completed_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubunitRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/subunits/completed-with-lessons":{"get":{"tags":["course"],"summary":"List all lessons of a course with the completed subunits for each.","operationId":"get_completed_subunits_with_lessons_api_course_course_subunits_completed_with_lessons_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonCompletedSubunitsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/course/course/subunits/completed-with-lesson":{"get":{"tags":["course"],"summary":"Get a single lesson of a course with the completed subunits for that lesson.","operationId":"get_completed_subunits_with_lesson_api_course_course_subunits_completed_with_lesson_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"lesson_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Lesson ID (must belong to the course)","title":"Lesson Id"},"description":"Lesson ID (must belong to the course)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonCompletedSubunitsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoom/course/lesson/status":{"get":{"tags":["zoom"],"summary":"Get lesson window status for one or more courses (batch). Accepts repeatable ?course_ids=.. and/or a legacy single ?course_id=.. param.","operationId":"check_course_lesson_status_api_zoom_course_lesson_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Legacy single course id. Merged with course_ids if both provided.","title":"Course Id"},"description":"Legacy single course id. Merged with course_ids if both provided."},{"name":"course_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Repeatable query param: ?course_ids=<uuid>&course_ids=<uuid>","title":"Course Ids"},"description":"Repeatable query param: ?course_ids=<uuid>&course_ids=<uuid>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonStatusItemRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoom/course/lesson/create":{"post":{"tags":["zoom"],"summary":"Create a live lesson session now for a course owned by the current teacher.","operationId":"teacher_create_lesson_session_api_zoom_course_lesson_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLessonSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CourseLessonRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/zoom/course/lesson/join-token":{"post":{"tags":["zoom"],"summary":"Generate a Zoom Video SDK join token for the course's ACTIVE lesson.","operationId":"generate_join_token_api_zoom_course_lesson_join_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ZoomJoinToken_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoom/course/lesson/heartbeat":{"post":{"tags":["zoom"],"summary":"Heartbeat tick for participant attendance (server-time delta; no client interval).","operationId":"participant_heartbeat_api_zoom_course_lesson_heartbeat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lesson_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Lesson ID to heartbeat","title":"Lesson Id"},"description":"Lesson ID to heartbeat"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoom/course/lesson/verify-token":{"get":{"tags":["zoom"],"summary":"Verify a Zoom Video SDK token against the current user and an ACTIVE lesson.","operationId":"verify_zoom_token_api_zoom_course_lesson_verify_token_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","description":"Zoom Video SDK JWT","title":"Token"},"description":"Zoom Video SDK JWT"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoom/course/lesson/join":{"post":{"tags":["zoom"],"summary":"The endpoint that should be triggered after zoom sdk join succeeds.","operationId":"join_with_token_api_zoom_course_lesson_join_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","description":"Zoom Video SDK JWT","title":"Token"},"description":"Zoom Video SDK JWT"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoom/course/lesson/exit":{"post":{"tags":["zoom"],"summary":"Exit a live lesson session (host or participant). Marks left_at/host_left_at accordingly.","operationId":"exit_lesson_session_api_zoom_course_lesson_exit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lesson_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Lesson ID to exit","title":"Lesson Id"},"description":"Lesson ID to exit"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoom/course/live_lesson/stream/{course_id}":{"get":{"tags":["zoom"],"summary":"Live Lesson Stream","operationId":"live_lesson_stream_api_zoom_course_live_lesson_stream__course_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Course Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoom/course/material/stream/{course_id}":{"get":{"tags":["zoom"],"summary":"Course Material Stream","operationId":"course_material_stream_api_zoom_course_material_stream__course_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Course Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/zoom/course/live_lesson/quiz/publish":{"post":{"tags":["zoom"],"summary":"Teacher publishes a quiz into the live lesson stream of a course.","operationId":"teacher_publish_quiz_api_zoom_course_live_lesson_quiz_publish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherPublishQuizRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/zoom/course/live_lesson/quiz/answer":{"post":{"tags":["zoom"],"summary":"Student answers a quiz (single-char) and publishes correctness to the live lesson stream.","operationId":"student_answer_quiz_api_zoom_course_live_lesson_quiz_answer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentAnswerQuizRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/zoom/course/lesson/complete":{"post":{"tags":["zoom"],"summary":"Mark a lesson as completed (teacher/host only).","operationId":"mark_lesson_completed_api_zoom_course_lesson_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"lesson_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Lesson ID to mark completed","title":"Lesson Id"},"description":"Lesson ID to mark completed"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payment/me/payments":{"get":{"tags":["payment"],"summary":"Current student's combined payment-attempt history (lessons + bundles), newest first.","operationId":"list_my_payments_api_payment_me_payments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MyPaymentRowRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payment/me/payout-account":{"get":{"tags":["payment"],"summary":"Teacher: own payout account (IBAN unmasked — the owner's value).","operationId":"get_my_payout_account_api_payment_me_payout_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PayoutAccountRead_"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["payment"],"summary":"Teacher: set/replace the payout IBAN (normalized + mod-97 validated).","operationId":"update_my_payout_account_api_payment_me_payout_account_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutAccountUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PayoutAccountRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/payment/me/payout-requests":{"post":{"tags":["payment"],"summary":"Teacher: request a payout of everything EARNED at this very second (snapshot claim).","operationId":"create_my_payout_request_api_payment_me_payout_requests_post","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PayoutRequestDetailRead_"}}}}}},"get":{"tags":["payment"],"summary":"Teacher: own payout requests, newest first (+ per-status counts in meta).","operationId":"list_my_payout_requests_api_payment_me_payout_requests_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutRequestsListResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payment/me/payout-eligibility":{"get":{"tags":["payment"],"summary":"Teacher: can a payout be requested right now — blocker, claimable total, open request, excluded rows.","operationId":"get_my_payout_eligibility_api_payment_me_payout_eligibility_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PayoutEligibilityRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/payment/me/payout-requests/{payout_request_id}":{"get":{"tags":["payment"],"summary":"Teacher: one payout request with its transfer rows.","operationId":"get_my_payout_request_api_payment_me_payout_requests__payout_request_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payout_request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PayoutRequestDetailRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/payment/balance/adjust":{"post":{"tags":["payment"],"summary":"Admin: adjust user's wallet balance by inserting an adjustment ledger row.","operationId":"admin_adjust_user_balance_api_payment_balance_adjust_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAdjustBalanceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UserCreditsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/payment/webhook/paytr":{"post":{"tags":["payment-webhook"],"summary":"PayTR Callback (Bildirim URL)","description":"PayTR posts the payment result as application/x-www-form-urlencoded. The response body must be the plain string 'OK'. Configure this URL once in the PayTR merchant panel; it must be publicly reachable without auth.","operationId":"paytr_callback_api_payment_webhook_paytr_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"text/plain":{"example":"OK"}}},"400":{"description":"Bad Request","content":{"text/plain":{"example":"BAD_HASH"}}}}}},"/api/payment/webhook/paytr/transfer":{"post":{"tags":["payment-webhook"],"summary":"PayTR Platform Transfer Sonucu Bildirim URL (result + cashout callbacks)","description":"PayTR posts BOTH callback kinds to this single panel-configured URL: the platform-transfer result (trans_ids JSON list + hash) and the cashout/geri-dönen result (mode=cashout, trans_id + processed_result). The response body must be the plain string 'OK'. No auth; the HMAC hash is the authentication. Neither callback carries a test_mode field — hash verification is the only gate (documented stance).","operationId":"paytr_transfer_callback_api_payment_webhook_paytr_transfer_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}},"text/plain":{"example":"OK"}}},"400":{"description":"Bad Request","content":{"text/plain":{"example":"BAD_HASH"}}}}}},"/api/tutoring/streak":{"get":{"tags":["tutoring"],"summary":"Student: get current weekly streak count (max 50).","operationId":"get_student_streak_api_tutoring_streak_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_int_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/availability/update":{"post":{"tags":["tutoring"],"summary":"Atomic bulk update of weekly availability slots (add + remove).","operationId":"update_availability_slots_api_tutoring_availability_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAvailabilityUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/availability":{"get":{"tags":["tutoring"],"summary":"Get weekly availability slots of current teacher (what teacher marked as available).","operationId":"get_availability_slots_api_tutoring_availability_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/availability/teacher":{"get":{"tags":["tutoring"],"summary":"Get a teacher's computed availability (declared - busy schedules - active ongoing tutoring - upcoming marketplace live lectures).","operationId":"get_teacher_availability_api_tutoring_availability_teacher_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Teacher/User ID","title":"Teacher Id"},"description":"Teacher/User ID"},{"name":"start_weekday","in":"query","required":false,"schema":{"type":"integer","maximum":7,"minimum":1,"description":"Rotation anchor (1..7)","default":1,"title":"Start Weekday"},"description":"Rotation anchor (1..7)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/availability/my":{"get":{"tags":["tutoring"],"summary":"Get current teacher's computed availability (declared - busy schedules - active ongoing tutoring - upcoming marketplace live lectures).","operationId":"get_teacher_availability_fp_api_tutoring_availability_my_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_weekday","in":"query","required":false,"schema":{"type":"integer","maximum":7,"minimum":1,"description":"Rotation anchor (1..7)","default":1,"title":"Start Weekday"},"description":"Rotation anchor (1..7)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_WeeklyBusyMapRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/match/teachers":{"get":{"tags":["tutoring"],"summary":"Get pending match-group teachers if any; otherwise create a new match-group (3 eligible teachers).","operationId":"get_or_create_match_teachers_api_tutoring_match_teachers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"price_bucket","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PriceBucket","description":"Price bucket: LT_1000|BTW_1000_2000|GT_2000"},"description":"Price bucket: LT_1000|BTW_1000_2000|GT_2000"},{"name":"teacher_experience","in":"query","required":true,"schema":{"type":"string","description":"Teacher experience: low|mid|high","title":"Teacher Experience"},"description":"Teacher experience: low|mid|high"},{"name":"subbranch_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Subbranch ID","title":"Subbranch Id"},"description":"Subbranch ID"},{"name":"hours_per_week","in":"query","required":true,"schema":{"type":"integer","maximum":7,"minimum":1,"description":"Hours per week (1..7)","title":"Hours Per Week"},"description":"Hours per week (1..7)"},{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional Unit ID","title":"Unit Id"},"description":"Optional Unit ID"},{"name":"busy_week_days","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","maximum":7,"minimum":1},"description":"Student available days (1..7). Example: ?busy_week_days=1&busy_week_days=3","min_items":0,"max_items":7,"title":"Busy Week Days"},"description":"Student available days (1..7). Example: ?busy_week_days=1&busy_week_days=3"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringMatchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/match/initiate":{"post":{"tags":["tutoring"],"summary":"Initiate match flow for a price bucket (if pending teachers exist returns them, otherwise returns empty list with initiated=true).","operationId":"initiate_match_api_tutoring_match_initiate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subbranch_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Subbranch ID","title":"Subbranch Id"},"description":"Subbranch ID"},{"name":"price_bucket","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PriceBucket","description":"Price bucket: LT_1000|BTW_1000_2000|GT_2000"},"description":"Price bucket: LT_1000|BTW_1000_2000|GT_2000"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringMatchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/match/last-trio":{"get":{"tags":["tutoring"],"summary":"Get last matched teacher trio for a subbranch and price bucket (student's most recent match group).","operationId":"get_last_match_trio_api_tutoring_match_last_trio_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subbranch_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Subbranch ID","title":"Subbranch Id"},"description":"Subbranch ID"},{"name":"price_bucket","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PriceBucket","description":"Price bucket: LT_1000|BTW_1000_2000|GT_2000"},"description":"Price bucket: LT_1000|BTW_1000_2000|GT_2000"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringMatchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/match/history":{"get":{"tags":["tutoring"],"summary":"Student: paginated history of previous algorithmic match groups (newest first).","operationId":"get_match_history_api_tutoring_match_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1..100)","default":5,"title":"Page Size"},"description":"Page size (1..100)"},{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional subbranch filter","title":"Subbranch Id"},"description":"Optional subbranch filter"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringMatchGroupRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/match/generate-meet-link":{"post":{"tags":["tutoring"],"summary":"Teacher: generate a shareable meet-link for a subbranch.","operationId":"generate_meet_link_api_tutoring_match_generate_meet_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateMeetLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MeetLinkGenerated_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/match/preview-meet-link":{"post":{"tags":["tutoring"],"summary":"Student: preview teacher/time/price from meet-link token (no side effects).","operationId":"preview_meet_link_api_tutoring_match_preview_meet_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetLinkTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MeetLinkPreviewRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/match/consume-meet-link":{"post":{"tags":["tutoring"],"summary":"Student: consume a meet-link token to match + meet and auto-send lesson request.","operationId":"consume_meet_link_api_tutoring_match_consume_meet_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetLinkTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonRequestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/teachers/matched":{"get":{"tags":["tutoring"],"summary":"Student: list teachers the student has been matched with (paginated, most-recent first).","operationId":"list_matched_teachers_api_tutoring_teachers_matched_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1..100)","default":20,"title":"Page Size"},"description":"Page size (1..100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringMatchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/teachers/met":{"get":{"tags":["tutoring"],"summary":"Student: list teachers the student has met with (paginated, most-recent first).","operationId":"list_met_teachers_api_tutoring_teachers_met_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1..100)","default":20,"title":"Page Size"},"description":"Page size (1..100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringMatchRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/lesson-request/send":{"post":{"tags":["tutoring"],"summary":"Student sends a lesson request to a teacher.","operationId":"send_lesson_request_api_tutoring_lesson_request_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendLessonRequestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonRequestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/lesson-request/has-meeting-lesson":{"get":{"tags":["tutoring"],"summary":"Student: check if an active (WAITING/APPROVED) meeting lesson request exists for subbranch.","operationId":"has_meeting_lesson_request_api_tutoring_lesson_request_has_meeting_lesson_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subbranch_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Subbranch ID","title":"Subbranch Id"},"description":"Subbranch ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/lesson-request/answer":{"post":{"tags":["tutoring"],"summary":"Teacher answers (approve/reject) a lesson request.","operationId":"answer_lesson_request_api_tutoring_lesson_request_answer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerLessonRequestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AnswerLessonRequestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/lesson-request/cancel-by-teacher":{"post":{"tags":["tutoring"],"summary":"Teacher cancels an approved lesson request.","operationId":"cancel_lesson_request_by_teacher_api_tutoring_lesson_request_cancel_by_teacher_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelLessonRequestByTeacherRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CancelLessonRequestByTeacherRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/lesson-request/cancel-by-student":{"post":{"tags":["tutoring"],"summary":"Student cancels a waiting/approved lesson request.","operationId":"cancel_lesson_request_by_student_api_tutoring_lesson_request_cancel_by_student_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelLessonRequestByStudentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CancelLessonRequestByStudentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/lesson-request/reschedule-by-student":{"post":{"tags":["tutoring"],"summary":"Student reschedules a lesson request that is in RESCHEDULE status.","operationId":"reschedule_lesson_request_by_student_api_tutoring_lesson_request_reschedule_by_student_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleLessonRequestByStudentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonRequestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/lesson-request/invoice":{"post":{"tags":["tutoring"],"summary":"Student: invoice data of a lesson request (+ PayTR iframe token when payable).","operationId":"get_lesson_request_invoice_api_tutoring_lesson_request_invoice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonRequestInvoiceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_LessonRequestInvoiceRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/lesson-requests/received":{"post":{"tags":["tutoring"],"summary":"Teacher: list received lesson requests (paginated + status-filtered).","operationId":"get_received_lesson_requests_api_tutoring_lesson_requests_received_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TutoringLessonRequestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonRequestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/lesson-requests/sent":{"post":{"tags":["tutoring"],"summary":"Student: list sent lesson requests (paginated + status-filtered).","operationId":"get_sent_lesson_requests_api_tutoring_lesson_requests_sent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TutoringLessonRequestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonRequestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/active-students":{"get":{"tags":["tutoring"],"summary":"Teacher: list active students (at least 1 COMPLETED lesson in last 30 days), 20/page.","operationId":"get_active_students_api_tutoring_active_students_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/my-students":{"get":{"tags":["tutoring"],"summary":"Teacher: student roster, newest student first (50/page). source=tutoring (default) -> at least 1 COMPLETED lesson request in the last 90 days; source=bundle -> enrolled in one of the teacher's ONGOING marketplace bundles. Every row carries Platform_Joined_At, Is_Active (engagement with this teacher, not the account flag) and Bundles (the teacher's ONGOING bundles the student is ENROLLED in, with their subbranch) - the item shape does not depend on source, and Bundles is always empty on source=tutoring.","operationId":"get_my_students_api_tutoring_my_students_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TeacherStudentSource","description":"Which relation makes somebody a student of this teacher. 'tutoring' (default): at least 1 COMPLETED lesson request in the last 90 days, ordered by most recent lesson. 'bundle': ENROLLED in one of the teacher's ONGOING marketplace bundles, ordered by most recent enrolment (no time window).","default":"tutoring"},"description":"Which relation makes somebody a student of this teacher. 'tutoring' (default): at least 1 COMPLETED lesson request in the last 90 days, ordered by most recent lesson. 'bundle': ENROLLED in one of the teacher's ONGOING marketplace bundles, ordered by most recent enrolment (no time window)."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherRosterStudentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/my-students-with-courses":{"get":{"tags":["tutoring"],"summary":"Teacher: distinct students with at least 1 COMPLETED lesson request in the last 365 days, each enriched with the (course_id, subbranch) pairs they share with the teacher. Optional subbranch filter; if omitted, returns all subbranches/courses for that student-teacher pair. Each pair carries LIFETIME Scheduled_Lesson_Count / Attended_Lesson_Count (lessons that happened vs. those with an attendance row), Last_Lesson_At, Next_Lesson_At (earliest APPROVED still ahead, deliberately not in the scheduled count) and Success_Rate_Percent (mean submitted-homework score; null means nothing scoreable was submitted, 0 means it was). Rows carry Platform_Joined_At and Is_Active.","operationId":"get_my_students_with_courses_api_tutoring_my_students_with_courses_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Optional subbranch filter; if omitted, returns all subbranches/courses.","title":"Subbranch Id"},"description":"Optional subbranch filter; if omitted, returns all subbranches/courses."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentWithCoursesRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/lesson-requests/by-course":{"get":{"tags":["tutoring"],"summary":"List lesson requests for a course (default: only COMPLETED/ONGOING/APPROVED), latest -> earliest. User must be teacher or student of that course.","operationId":"get_lesson_requests_by_course_api_tutoring_lesson_requests_by_course_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"course_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Course ID","title":"Course Id"},"description":"Course ID"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1..100)","default":20,"title":"Page Size"},"description":"Page size (1..100)"},{"name":"show_ineligible","in":"query","required":false,"schema":{"type":"boolean","description":"If true, also include lesson requests whose status is not COMPLETED/ONGOING/APPROVED (they will return lesson_order=0). Default: false.","default":false,"title":"Show Ineligible"},"description":"If true, also include lesson requests whose status is not COMPLETED/ONGOING/APPROVED (they will return lesson_order=0). Default: false."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonRequestByCourseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/analytics/attendance":{"post":{"tags":["tutoring"],"summary":"Student: tutoring lessons (ONGOING/COMPLETED by default) with attendance_status (JOINED/NOT_JOINED). Latest -> earliest via keyset cursor.","operationId":"get_student_attendance_analytics_api_tutoring_analytics_attendance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TutoringAttendanceAnalyticsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonAttendanceAnalyticsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/analytics/lesson-request-attendance":{"post":{"tags":["tutoring"],"summary":"Map lesson request ids to student attendance rows (null when absent).","operationId":"get_lesson_request_attendance_map_api_tutoring_analytics_lesson_request_attendance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TutoringLessonRequestAttendanceMapRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonRequestAttendanceMapRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/analytics/parent-report":{"post":{"tags":["tutoring"],"summary":"Student: build parent WhatsApp report payload for a completed lesson.","operationId":"build_parent_whatsapp_report_api_tutoring_analytics_parent_report_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TutoringLessonParentReportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonParentReportRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/teacher-analytics/student-analytics-for-teacher":{"post":{"tags":["tutoring"],"summary":"Teacher: the whole student-detail page in ONE call (overview + course analytics + lesson list + homework list + bundle ranks).","operationId":"get_student_analytics_for_teacher_api_tutoring_teacher_analytics_student_analytics_for_teacher_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherStudentAnalyticsForTeacherRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherStudentAnalyticsForTeacherRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/teacher-analytics/student-report":{"post":{"tags":["tutoring"],"summary":"Teacher: the shareable student report (identity, success, progress tiles, last homework) as a live read.","operationId":"get_student_report_api_tutoring_teacher_analytics_student_report_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentReportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentReportRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/teacher-analytics/student-report/share":{"post":{"tags":["tutoring"],"summary":"Teacher: mint a parent-openable link to a student's report. The report is FROZEN at this moment, and the raw token is returned ONLY here — it is stored hashed and cannot be recovered.","operationId":"create_student_report_share_api_tutoring_teacher_analytics_student_report_share_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentReportShareCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentReportShareRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/teacher-analytics/student-report/shares":{"get":{"tags":["tutoring"],"summary":"Teacher: their own report links (active by default). Never returns tokens.","operationId":"list_student_report_shares_api_tutoring_teacher_analytics_student_report_shares_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"student_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only this student's links","title":"Student Id"},"description":"Only this student's links"},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","description":"Include revoked and expired links","default":false,"title":"Include Inactive"},"description":"Include revoked and expired links"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"0-based page","default":0,"title":"Page"},"description":"0-based page"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentReportShareListItemRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/teacher-analytics/student-report/shares/{share_id}/revoke":{"post":{"tags":["tutoring"],"summary":"Teacher: kill one report link. Idempotent; the parent then gets 410.","operationId":"revoke_student_report_share_api_tutoring_teacher_analytics_student_report_shares__share_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentReportShareListItemRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/student-report/shared":{"get":{"tags":["tutoring"],"summary":"Public (no bearer): the frozen student report behind a share token. ?format=json (default) returns the envelope; html renders a printable page; pdf redirects to a signed PDF and falls back to html.","operationId":"get_shared_student_report_api_tutoring_student_report_shared_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","description":"The opaque share token from the teacher's link","title":"Token"},"description":"The opaque share token from the teacher's link"},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(json|html|pdf)$","default":"json","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/teacher-analytics/summary":{"get":{"tags":["tutoring"],"summary":"Teacher: the 'Analizler' header strip (subbranches, branches, students, reviews, attendance, bundles). branch_count and students_by_branch count BRANCHES and their distinct students over a fixed 365-day window; like the other counts they are stock metrics and ignore from/to, which only narrow the review and attendance numbers.","operationId":"get_teacher_analytics_summary_api_tutoring_teacher_analytics_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Half-open window start (inclusive)","title":"From"},"description":"Half-open window start (inclusive)"},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Half-open window end (exclusive)","title":"To"},"description":"Half-open window end (exclusive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherAnalyticsSummaryRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/teacher/earnings/summary":{"get":{"tags":["tutoring"],"summary":"Teacher: lifetime gross earnings balances (pending / unpaid / earned).","operationId":"get_teacher_earnings_summary_api_tutoring_teacher_earnings_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"months","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":36,"minimum":1},{"type":"null"}],"description":"Last N Istanbul-time calendar months (1 = this month, 3 = this month + the two before). Omit for lifetime.","title":"Months"},"description":"Last N Istanbul-time calendar months (1 = this month, 3 = this month + the two before). Omit for lifetime."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherEarningsSummaryRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/teacher/earnings":{"get":{"tags":["tutoring"],"summary":"Teacher: monthly earnings statement — paid lessons by status (PENDING/EARNED/PAID_OUT), bucketed by lesson_end.","operationId":"get_teacher_earnings_api_tutoring_teacher_earnings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}],"description":"Istanbul-time month, e.g. 2026-07; defaults to the current month","title":"Month"},"description":"Istanbul-time month, e.g. 2026-07; defaults to the current month"},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/EarningStatus","description":"PENDING = paid, not yet accrued; EARNED = lesson COMPLETED; PAID_OUT = empty until payouts exist","default":"EARNED"},"description":"PENDING = paid, not yet accrued; EARNED = lesson COMPLETED; PAID_OUT = empty until payouts exist"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page index (0-based)","default":0,"title":"Page"},"description":"Page index (0-based)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (1..100)","default":50,"title":"Page Size"},"description":"Page size (1..100)"},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TeacherEarningsSortBy"},{"type":"null"}],"description":"Sort column, applied before pagination. Omit to keep the statement order (oldest accrual first).","title":"Sort By"},"description":"Sort column, applied before pagination. Omit to keep the statement order (oldest accrual first)."},{"name":"order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortOrder","description":"Sort direction; ignored without sort_by.","default":"asc"},"description":"Sort direction; ignored without sort_by."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherEarningsListResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tutoring/all_subbranches":{"get":{"tags":["tutoring"],"summary":"List unique subbranches (distinct) that exist in TeacherSubbranch (tenant-scoped).","operationId":"list_all_subbranches_api_tutoring_all_subbranches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubbranchRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/tutoring/my-taught-subbranches":{"get":{"tags":["tutoring"],"summary":"Teacher: distinct subbranches in which the teacher has at least 1 COMPLETED or ONGOING lesson request (i.e. actually taught).","operationId":"list_my_taught_subbranches_api_tutoring_my_taught_subbranches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SubbranchRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/notifications":{"get":{"tags":["notifications"],"summary":"List current user's notifications with unseen summary.","operationId":"get_notifications_api_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NotificationPageRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/unseen/total":{"get":{"tags":["notifications"],"summary":"Get total unseen notification count for current user.","operationId":"get_unseen_total_api_notifications_unseen_total_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_UnseenNotificationTotalRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/notifications/item":{"get":{"tags":["notifications"],"summary":"Get a single notification by id for current user.","operationId":"get_notification_item_api_notifications_item_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NotificationRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/seen":{"post":{"tags":["notifications"],"summary":"Mark one notification as seen (idempotent).","operationId":"mark_notification_seen_api_notifications_seen_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarkSeenRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/seen/all":{"post":{"tags":["notifications"],"summary":"Mark all notifications as seen for current user (idempotent).","operationId":"mark_all_notifications_seen_api_notifications_seen_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarkAllSeenRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/notifications/clicked":{"post":{"tags":["notifications"],"summary":"Mark one notification as clicked (idempotent).","operationId":"mark_notification_clicked_api_notifications_clicked_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarkClickedRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/devices":{"post":{"tags":["notifications"],"summary":"Register/refresh this device's FCM token (idempotent; re-registering moves the token to the current user).","operationId":"register_device_api_notifications_devices_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceTokenRegisterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_DeviceTokenRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notifications"],"summary":"Unregister a device token for the current user (idempotent).","operationId":"unregister_device_api_notifications_devices_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":16,"maxLength":512,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_DeviceTokenDeleteRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/channel_preferences":{"get":{"tags":["notifications"],"summary":"Get current user's channel preferences per notification category.","operationId":"get_channel_preferences_api_notifications_channel_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NotificationChannelPreferencesRead_"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["notifications"],"summary":"Update channel preferences by category (only allowed channels can be selected).","operationId":"update_channel_preferences_api_notifications_channel_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannelPreferencesUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NotificationChannelPreferencesRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/entry-tasks":{"get":{"tags":["gamification"],"summary":"List current user's onboarding tasks (auto-resolved by user_type).","operationId":"get_entry_tasks_api_entry_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_EntryTasksResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/conversations/open":{"post":{"tags":["chat"],"summary":"Open (or fetch) a 1:1 conversation with a peer user.","operationId":"chat_open_conversation_api_chat_conversations_open_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatOpenConversationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ChatConversationRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/conversations":{"post":{"tags":["chat"],"summary":"List conversations (chat inbox) for current user (paged).","operationId":"chat_list_conversations_api_chat_conversations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatListConversationsQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ChatConversationPageRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/messages/send":{"post":{"tags":["chat"],"summary":"Send a chat message into a conversation.","operationId":"chat_send_message_api_chat_messages_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSendMessageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ChatMessageRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/messages/last":{"post":{"tags":["chat"],"summary":"Get last messages of a conversation (paged backwards).","operationId":"chat_get_last_messages_api_chat_messages_last_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGetLastMessagesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ChatMessagesPageRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/messages/after":{"post":{"tags":["chat"],"summary":"Get messages after a cursor/time for a conversation.","operationId":"chat_get_messages_after_api_chat_messages_after_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGetMessagesAfterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ChatMessagesPageRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/messages/{message_id}":{"delete":{"tags":["chat"],"summary":"Delete my own chat message (soft-delete; blocked once peer has read it).","operationId":"chat_delete_message_api_chat_messages__message_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/seen":{"post":{"tags":["chat"],"summary":"Mark a conversation as seen (updates read state using read_at).","operationId":"chat_mark_seen_api_chat_seen_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMarkSeenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ChatReadStateRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/chat/unseen/count":{"get":{"tags":["chat"],"summary":"Get number of unseen chat messages in a conversation for current user.","operationId":"chat_get_unseen_count_api_chat_unseen_count_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Conversation ID","title":"Conversation Id"},"description":"Conversation ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ChatUnseenCountRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/unseen/total":{"get":{"tags":["chat"],"summary":"Get total number of unseen chat messages across all conversations for current user.","operationId":"chat_get_unseen_total_api_chat_unseen_total_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ChatUnseenTotalRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/realtime/stream":{"get":{"tags":["realtime"],"summary":"Unified SSE stream for current user's global realtime events.","operationId":"realtime_stream_api_realtime_stream_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/analytics/subbranches/overview":{"get":{"tags":["admin-analytics"],"summary":"Cross-subbranch comparison table (Zoom 1)","description":"Default landing page. One row per subbranch, sortable on the client.\n\nCached for :data:`settings.admin_analytics.CACHE_TTL_SECONDS`. The\nrefresh runner explicitly flushes the prefix so admins never see\nstale data after a successful refresh.","operationId":"subbranch_overview_api_admin_analytics_subbranches_overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window","in":"query","required":false,"schema":{"enum":["1d","7d","30d","90d","365d"],"type":"string","default":"30d","title":"Window"}},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Branch"}},{"type":"null"}],"title":"Branch"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubbranchOverviewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/subbranches/{subbranch_id}":{"get":{"tags":["admin-analytics"],"summary":"Single-subbranch detail (Zoom 2)","description":"KPI strip + trend + funnel + heatmap + availability + top-10.\n\nReturned as a single payload to keep the dashboard at one round-trip.\nAny individual sub-block that fails is set to ``null`` while the\nrest of the dashboard continues to render — see ``partial`` on the\nresponse model.","operationId":"subbranch_detail_api_admin_analytics_subbranches__subbranch_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subbranch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Subbranch Id"}},{"name":"window","in":"query","required":false,"schema":{"enum":["1d","7d","30d","90d","365d"],"type":"string","default":"30d","title":"Window"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubbranchDetailRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/teachers/segments":{"get":{"tags":["admin-analytics"],"summary":"Platform KPI strip + 13 segment chip counts","description":"Zoom-1 strip: four tenant-global platform KPI cards (with Δ vs thirty\ncalendar days ago when that prior snapshot exists) plus thirteen segment\nchips carrying ``count`` in the same payload (no extra click).\n\nKPI values mirror today's snapshot merged with MV counts only when a KPI\nkey row is absent. Branch / subbranch filters narrow **chip counts** via\nlive MV scans; KPI cards remain global and still expose Δ pills when the\nhistorical snapshot row exists.","operationId":"teacher_segments_api_admin_analytics_teachers_segments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Branch"}},{"type":"null"}],"title":"Branch"}},{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherSegmentsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/teachers":{"get":{"tags":["admin-analytics"],"summary":"Segment-driven paged teacher list","description":"Paged list driven by ``segment``. The flat-wide row schema means\nevery page returns the same field set; only a subset is populated\nper segment (the rest are ``null``).\n\nThe list intentionally does **not** accept a name / phone filter — the\nsearch box on the segments page navigates to a teacher profile via\n:func:`teacher_search` instead of narrowing the visible segment list.","operationId":"teacher_list_api_admin_analytics_teachers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"segment","in":"query","required":true,"schema":{"enum":["s1_top_performer","s2_top_rated","s3_fading","s4_low_score","s5_high_ghost","s6_high_teacher_cancel","s7_high_late","s8_high_meeting_reject","s9_no_homework","s10_no_syllabus","s11_high_demand","s12_low_meeting_conv","s13_high_meeting_conv"],"type":"string","title":"Segment"}},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Branch"}},{"type":"null"}],"title":"Branch"}},{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherListRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/teachers/search":{"get":{"tags":["admin-analytics"],"summary":"Navigational teacher search (name substring or phone exact)","description":"Look up a teacher to jump to the detail page.\n\nTwo paths sit behind a single ``q`` parameter:\n\n* **Name** — substring match (case-insensitive) against ``first +\n  last``; matches occur anywhere in the name so ``\"hmet\"`` finds\n  ``\"Ahmet ...\"``. Returns at most 10 hits, ordered by where the\n  match starts and then by name length.\n* **Phone** — the parameter is detected as a phone number when it\n  contains only digits, spaces, ``+``, ``-`` or parentheses and at\n  least 7 digits.\n  The comparison is done on digits-only projections of both sides,\n  with full equality for 10+ digit inputs and an \"ends-with\" match\n  for shorter ones so admins can omit the country code.\n\nThis endpoint is **not cached**: search latency on the read pool\nis sub-millisecond once the GIN trgm + the user(phone) B-tree\ncooperate, and caching a typeahead would only churn keys. The\nresponse is also not pollutable from the cache layer used by the\nother admin analytics endpoints.\n\nThe minimum ``q`` length (3 characters) is enforced at the FastAPI\nlayer; shorter values return ``422 Unprocessable Entity`` so a\ndebounced UI can render a hint without round-tripping.","operationId":"teacher_search_api_admin_analytics_teachers_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":120,"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherSearchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/teachers/{teacher_id}":{"get":{"tags":["admin-analytics"],"summary":"Single-teacher detail page (Zoom 2)","description":"Single-trip payload covering header + 9 sub-blocks. Failed blocks\nare nulled and reported via ``partial`` / ``failed_blocks`` so the\nUI degrades gracefully (one panel down, the rest still render).","operationId":"teacher_detail_api_admin_analytics_teachers__teacher_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Teacher Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherDetailRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/students/segments":{"get":{"tags":["admin-analytics"],"summary":"Student platform KPI strip + 10 segment chip counts","description":"Zoom-1 strip for students: five tenant-global platform KPI cards\n(with Δ vs the snapshot from\n:data:`_kpi_rules.STUDENT_PLATFORM_KPI_DELTA_DAYS` calendar days\nearlier when the prior row exists) plus ten segment chips carrying\n``count`` in the same payload.\n\nClass level / target program / branch / subbranch filters narrow\nchip counts only via live MV scans; KPI cards remain global and\nstill expose Δ pills when the historical snapshot row exists.","operationId":"student_segments_api_admin_analytics_students_segments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"class_level","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Class Level"}},{"name":"target_program_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id"}},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Branch"}},{"type":"null"}],"title":"Branch"}},{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentSegmentsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/students":{"get":{"tags":["admin-analytics"],"summary":"Segment-driven paged student list","description":"Paged list driven by ``segment``. The flat-wide row schema means\nevery page returns the same field set; only a subset is populated\nper segment (the rest are ``null``).","operationId":"student_list_api_admin_analytics_students_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"segment","in":"query","required":true,"schema":{"enum":["s1_meeting_unconverted","s2_meeting_failed","s3_onboarded_inactive","s4_high_ltv","s5_fading_high_value","s6_new_hot","s7_bad_experience","s8_subbranch_unsettled","s9_complaint","s10_winback"],"type":"string","title":"Segment"}},{"name":"class_level","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Class Level"}},{"name":"target_program_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id"}},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Branch"}},{"type":"null"}],"title":"Branch"}},{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentListRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/students/search":{"get":{"tags":["admin-analytics"],"summary":"Navigational student search (name / student phone / parent phone)","description":"Three-mode lookup. ``p:<digits>`` forces parent-phone, plain\ndigits go through student-phone with parent-phone fallback,\neverything else is a name substring.\n\nNot cached for the same reason as ``/teachers/search`` — typeahead\nchurn would only churn keys.","operationId":"student_search_api_admin_analytics_students_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":120,"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentSearchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/students/{student_id}":{"get":{"tags":["admin-analytics"],"summary":"Single-student detail page (Zoom 2)","description":"Single-trip payload for the 9-panel student profile.\n\nFailed panels are nulled and reported via ``partial`` /\n``failed_blocks`` so the UI degrades gracefully (one panel down,\nthe rest still render).","operationId":"student_detail_api_admin_analytics_students__student_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentDetailRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/refresh":{"post":{"tags":["admin-analytics"],"summary":"Force a materialized-view refresh + cache flush","description":"Rebuild all analytics MVs *now* and drop the response cache.\n\nUses the OLTP session, not the read-only analytics session: the\nanalytics session forces every transaction to read-only and would\nrefuse the ``REFRESH MATERIALIZED VIEW`` statement. Per-statement\ntimeout is also disabled here because a manual refresh on a busy\nDB can occasionally cross the 15 s threshold.","operationId":"force_refresh_api_admin_analytics_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshResponseRead"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/students/me/attendance":{"get":{"tags":["student-analytics"],"summary":"Student: combined attendance rate (tutoring + bundle live lectures) for last 30 days, last 180 days and lifetime.","operationId":"get_my_attendance_api_analytics_students_me_attendance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentCombinedAttendanceRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/students/me/attendance/breakdown":{"get":{"tags":["student-analytics"],"summary":"Student: lifetime attendance broken down per course and per bundle (adds teacher-cancellation counts).","operationId":"get_my_attendance_breakdown_api_analytics_students_me_attendance_breakdown_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentAttendanceBreakdownRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/students/me/homework-discipline":{"get":{"tags":["student-analytics"],"summary":"Student: how many homeworks were assigned and how many were delivered on time (totals + per course/bundle).","operationId":"get_my_homework_discipline_api_analytics_students_me_homework_discipline_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentHomeworkDisciplineRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/students/me/dashboard-stats":{"get":{"tags":["student-analytics"],"summary":"Student: the four calendar cards in one call (ongoing bundles, private lessons, submitted assignments, attended live minutes — last 15 days).","operationId":"get_my_dashboard_stats_api_analytics_students_me_dashboard_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentDashboardStatsRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/students/me/homework-ranking":{"get":{"tags":["student-analytics"],"summary":"Student: homework success ranking inside each enrolled bundle + average percentile across all bundles.","operationId":"get_my_homework_ranking_api_analytics_students_me_homework_ranking_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentHomeworkRankingRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/asynchronous-videos/teacher/videos/thumbnail":{"post":{"tags":["asynchronous-videos"],"summary":"Upload an optional custom cover image (before init).","operationId":"upload_custom_thumbnail_api_asynchronous_videos_teacher_videos_thumbnail_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_custom_thumbnail_api_asynchronous_videos_teacher_videos_thumbnail_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ThumbnailUploadResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/asynchronous-videos/teacher/videos/init":{"post":{"tags":["asynchronous-videos"],"summary":"Create a Cloudflare direct upload + persist video metadata.","operationId":"init_video_api_asynchronous_videos_teacher_videos_init_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitVideoRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_VideoInitResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/asynchronous-videos/teacher/videos/{video_id}/complete":{"post":{"tags":["asynchronous-videos"],"summary":"Reconcile encoding status from Cloudflare (dev polling / finalize).","operationId":"complete_video_api_asynchronous_videos_teacher_videos__video_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherProfileVideoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asynchronous-videos/teacher/videos/{video_id}":{"patch":{"tags":["asynchronous-videos"],"summary":"Update editable metadata (title/description).","operationId":"update_video_api_asynchronous_videos_teacher_videos__video_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVideoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherProfileVideoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["asynchronous-videos"],"summary":"Soft-delete a video (and best-effort remove it from Cloudflare).","operationId":"delete_video_api_asynchronous_videos_teacher_videos__video_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asynchronous-videos/teacher/videos/{video_id}/pin":{"post":{"tags":["asynchronous-videos"],"summary":"Pin a video to the top of the teacher's videos tab.","operationId":"pin_video_api_asynchronous_videos_teacher_videos__video_id__pin_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherProfileVideoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["asynchronous-videos"],"summary":"Unpin a video.","operationId":"unpin_video_api_asynchronous_videos_teacher_videos__video_id__pin_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherProfileVideoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asynchronous-videos/teacher/videos/me":{"get":{"tags":["asynchronous-videos"],"summary":"List my own videos (all statuses, including processing).","operationId":"list_my_videos_api_asynchronous_videos_teacher_videos_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TeacherProfileVideoKind"},{"type":"null"}],"title":"Video Kind"}},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}],"title":"Branch"}},{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherProfileVideoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asynchronous-videos/teachers/{teacher_id}/videos":{"get":{"tags":["asynchronous-videos"],"summary":"List a teacher's public (READY) videos, sorted (pinned first).","operationId":"list_teacher_videos_api_asynchronous_videos_teachers__teacher_id__videos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Teacher Id"}},{"name":"video_kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TeacherProfileVideoKind"},{"type":"null"}],"title":"Video Kind"}},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}],"title":"Branch"}},{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherProfileVideoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asynchronous-videos/videos/{video_id}":{"get":{"tags":["asynchronous-videos"],"summary":"Get a single READY video's detail.","operationId":"get_video_detail_api_asynchronous_videos_videos__video_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherProfileVideoRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asynchronous-videos/videos/{video_id}/playback":{"get":{"tags":["asynchronous-videos"],"summary":"Get public playback URLs (iframe/hls/dash/thumbnail) for a READY video.","operationId":"get_video_playback_api_asynchronous_videos_videos__video_id__playback_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PlaybackResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/asynchronous-videos/webhooks/cloudflare-stream/{secret}":{"post":{"tags":["asynchronous-videos-webhook"],"summary":"SKELETON: Cloudflare Stream webhook receiver (validates secret, body not processed yet).","operationId":"cloudflare_stream_webhook_api_asynchronous_videos_webhooks_cloudflare_stream__secret__post","parameters":[{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/me":{"get":{"tags":["bundles"],"summary":"List my bundle templates (updated_at DESC).","operationId":"list_my_bundles_api_bundles_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/":{"post":{"tags":["bundles"],"summary":"Create a bundle template (all metadata optional).","operationId":"create_bundle_api_bundles__post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CreateBundleRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/bundles/{bundle_id}":{"get":{"tags":["bundles"],"summary":"Get a bundle template with hydrated components + stale flags.","operationId":"get_bundle_api_bundles__bundle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["bundles"],"summary":"Patch bundle metadata (partial).","operationId":"update_bundle_api_bundles__bundle_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBundleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["bundles"],"summary":"Soft-delete a bundle template.","operationId":"delete_bundle_api_bundles__bundle_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/{bundle_id}/components":{"put":{"tags":["bundles"],"summary":"Full-replace the ordered component list.","operationId":"replace_components_api_bundles__bundle_id__components_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceComponentsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/{bundle_id}/wallpaper":{"post":{"tags":["bundles"],"summary":"Upload/replace the bundle wallpaper image.","operationId":"upload_wallpaper_api_bundles__bundle_id__wallpaper_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_wallpaper_api_bundles__bundle_id__wallpaper_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/{bundle_id}/duplicate":{"post":{"tags":["bundles"],"summary":"Duplicate a bundle template (metadata + components).","operationId":"duplicate_bundle_api_bundles__bundle_id__duplicate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/storefront":{"get":{"tags":["bundles-marketplace-storefront"],"summary":"Browse PUBLISHED bundles with open enrollment, scored by recency + fill gap + few lectures. include_closed widens to the full non-DRAFT lifecycle.","operationId":"list_storefront_bundles_api_bundles_marketplace_storefront_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":3,"maxLength":255},{"type":"null"}],"description":"Teacher name search: Turkish case-insensitive prefix on first OR last name.","title":"Teacher Q"},"description":"Teacher name search: Turkish case-insensitive prefix on first OR last name."},{"name":"teacher_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only bundles taught by this teacher.","title":"Teacher Id"},"description":"Only bundles taught by this teacher."},{"name":"subbranch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"}},{"name":"unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"}},{"name":"duration","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DurationCategory"},{"type":"null"}],"description":"Pacing filter: ACCELERATED (<=5 days), MEDIUM (<=14), LONG (>14).","title":"Duration"},"description":"Pacing filter: ACCELERATED (<=5 days), MEDIUM (<=14), LONG (>14)."},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","description":"Include FULL/ONGOING/COMPLETED/CANCELLED bundles too (DRAFT never); default lists only open-enrollment PUBLISHED.","default":false,"title":"Include Closed"},"description":"Include FULL/ONGOING/COMPLETED/CANCELLED bundles too (DRAFT never); default lists only open-enrollment PUBLISHED."},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/StorefrontSort"},{"type":"null"}],"description":"Primary ordering; ties keep the default score order.","title":"Sort"},"description":"Primary ordering; ties keep the default score order."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StorefrontBundleItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/storefront/{marketplace_bundle_id}":{"get":{"tags":["bundles-marketplace-storefront"],"summary":"Unenrolled bundle detail for any non-DRAFT bundle: outline, dates, teacher card, lifecycle status (no assets/answer keys).","operationId":"get_storefront_bundle_detail_api_bundles_marketplace_storefront__marketplace_bundle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StorefrontBundleDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/{bundle_id}/marketplace/submit":{"post":{"tags":["bundles-marketplace"],"summary":"Submit a bundle template to the marketplace (creates a DRAFT snapshot).","operationId":"submit_marketplace_bundle_api_bundles__bundle_id__marketplace_submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitMarketplaceBundleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/me":{"get":{"tags":["bundles-marketplace"],"summary":"List the current teacher's marketplace bundles (optional status filter).","operationId":"list_my_marketplace_bundles_api_bundles_marketplace_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MarketplaceBundleStatus"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/publishing-config":{"get":{"tags":["bundles-marketplace"],"summary":"Publishing-window constants: submit lead, sales window, auto-start / cancel-decision leads, sweep interval.","operationId":"get_marketplace_publishing_config_api_bundles_marketplace_publishing_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplacePublishingConfigRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/bundles/marketplace/teachers/me/earnings/summary":{"get":{"tags":["bundles-marketplace"],"summary":"Teacher: lifetime gross bundle-earnings balances (pending / unpaid / earned).","operationId":"get_teacher_bundle_earnings_summary_api_bundles_marketplace_teachers_me_earnings_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"months","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":36,"minimum":1},{"type":"null"}],"description":"Last N Istanbul-time calendar months (1 = this month, 3 = this month + the two before). Omit for lifetime.","title":"Months"},"description":"Last N Istanbul-time calendar months (1 = this month, 3 = this month + the two before). Omit for lifetime."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherBundleEarningsSummaryRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/teachers/me/earnings":{"get":{"tags":["bundles-marketplace"],"summary":"Teacher: bundle earnings statement — paid purchases by status (PENDING/EARNED/PAID_OUT), month = bundle completed_at.","operationId":"get_teacher_bundle_earnings_api_bundles_marketplace_teachers_me_earnings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}],"description":"Istanbul-time month, e.g. 2026-07; defaults to the current month. Ignored for PENDING (no accrual date yet).","title":"Month"},"description":"Istanbul-time month, e.g. 2026-07; defaults to the current month. Ignored for PENDING (no accrual date yet)."},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/EarningStatus","description":"PENDING = paid, bundle not COMPLETED; EARNED = bundle COMPLETED; PAID_OUT = empty until payouts exist","default":"EARNED"},"description":"PENDING = paid, bundle not COMPLETED; EARNED = bundle COMPLETED; PAID_OUT = empty until payouts exist"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TeacherBundleEarningsSortBy"},{"type":"null"}],"description":"Sort column, applied before pagination. Omit to keep the statement order (oldest accrual first; oldest payment for PENDING).","title":"Sort By"},"description":"Sort column, applied before pagination. Omit to keep the statement order (oldest accrual first; oldest payment for PENDING)."},{"name":"order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortOrder","description":"Sort direction; ignored without sort_by.","default":"asc"},"description":"Sort direction; ignored without sort_by."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherBundleEarningsListResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/teachers/{teacher_id}/ongoing":{"get":{"tags":["bundles-marketplace"],"summary":"Public: the given teacher's ONGOING marketplace bundles as storefront cards (display-only; not enrollable).","operationId":"list_teacher_ongoing_bundles_api_bundles_marketplace_teachers__teacher_id__ongoing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"teacher_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Teacher Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StorefrontBundleItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}":{"get":{"tags":["bundles-marketplace"],"summary":"Get a marketplace bundle owned by the current teacher.","operationId":"get_marketplace_bundle_api_bundles_marketplace__marketplace_bundle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/start":{"post":{"tags":["bundles-marketplace"],"summary":"Start a PUBLISHED marketplace bundle (min enrollment must be met) -> ONGOING.","operationId":"start_marketplace_bundle_api_bundles_marketplace__marketplace_bundle_id__start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/planned-live":{"post":{"tags":["bundles-marketplace"],"summary":"Teacher: append a makeup live lecture to an ONGOING bundle (conflict-checked against teacher + all enrolled students).","operationId":"add_makeup_lecture_api_bundles_marketplace__marketplace_bundle_id__planned_live_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMakeupLectureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PlannedLiveLectureRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/makeup-availability":{"get":{"tags":["bundles-marketplace"],"summary":"Teacher: common free windows (teacher + every enrolled student) for the 7-day window starting at week_start, 09:00-23:00 IST per day.","operationId":"get_makeup_availability_api_bundles_marketplace__marketplace_bundle_id__makeup_availability_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"week_start","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First day (IST) of the 7-day window, e.g. 2026-08-10","title":"Week Start"},"description":"First day (IST) of the 7-day window, e.g. 2026-08-10"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MakeupAvailabilityDayRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/content":{"get":{"tags":["bundles-marketplace-content"],"summary":"Ordered component list with lock/done state for the enrolled student.","operationId":"marketplace_bundle_content_api_bundles_marketplace__marketplace_bundle_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceContentComponentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/content/{component_id}/document-url":{"get":{"tags":["bundles-marketplace-content"],"summary":"Signed URL of a document/homework component (enrolled + unlocked).","operationId":"marketplace_component_document_url_api_bundles_marketplace__marketplace_bundle_id__content__component_id__document_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_DocumentUrlRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/content/{component_id}/video-playback":{"get":{"tags":["bundles-marketplace-content"],"summary":"Playback URLs of a video component (enrolled + unlocked; soft-deleted assets still play).","operationId":"marketplace_component_video_playback_api_bundles_marketplace__marketplace_bundle_id__content__component_id__video_playback_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleVideoPlaybackRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/content/{component_id}/video-progress":{"post":{"tags":["bundles-marketplace-content"],"summary":"Watch heartbeat for a video component (enrolled + unlocked; ~15s cadence, time accrued server-side).","operationId":"marketplace_component_video_progress_api_bundles_marketplace__marketplace_bundle_id__content__component_id__video_progress_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoProgressBeatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_VideoWatchStateRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/components/{component_id}/done":{"post":{"tags":["bundles-marketplace-content"],"summary":"Manually mark a component done (not for HOMEWORK; idempotent, one-way).","operationId":"marketplace_component_done_api_bundles_marketplace__marketplace_bundle_id__components__component_id__done_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentBundleProgressRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/students/me/progress":{"get":{"tags":["bundles-marketplace-content"],"summary":"The current student's own progress in an enrolled bundle.","operationId":"marketplace_my_progress_api_bundles_marketplace__marketplace_bundle_id__students_me_progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentBundleProgressRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/students/me/purchases":{"get":{"tags":["bundles-marketplace-enrollment"],"summary":"List the current student's bundle purchases (payment history).","operationId":"list_my_bundle_purchases_api_bundles_marketplace_students_me_purchases_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MyBundlePurchaseItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/students/me/enrollments":{"get":{"tags":["bundles-marketplace-enrollment"],"summary":"List the current student's enrolled bundles with progress and next live lecture.","operationId":"list_my_marketplace_enrollments_api_bundles_marketplace_students_me_enrollments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MyEnrolledBundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/students/me/schedule":{"get":{"tags":["bundles-marketplace-enrollment"],"summary":"Combined student calendar: tutoring lessons + planned live lectures of enrolled bundles.","operationId":"my_marketplace_schedule_api_bundles_marketplace_students_me_schedule_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentScheduleItemRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/students/me/next-live-lessons":{"get":{"tags":["bundles-marketplace-enrollment"],"summary":"Upcoming live lessons strip: tutoring lessons + enrolled-bundle lectures, nearest (or ongoing) first.","operationId":"student_next_live_lessons_api_bundles_marketplace_students_me_next_live_lessons_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NextLiveLessonRead_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/bundles/marketplace/students/me/tutoring-lesson-cards":{"get":{"tags":["bundles-marketplace-enrollment"],"summary":"Tutoring-course cards: teacher, curriculum, next lesson payment flag, pending homework — latest-taught first.","operationId":"student_tutoring_lesson_cards_api_bundles_marketplace_students_me_tutoring_lesson_cards_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TutoringLessonCardRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/students/me/bundle-cards":{"get":{"tags":["bundles-marketplace-enrollment"],"summary":"Enrolled-bundle cards: progression (live included), pending material before the next lecture — newest enrollment first.","operationId":"student_bundle_cards_api_bundles_marketplace_students_me_bundle_cards_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleCardRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/teacher/me/schedule":{"get":{"tags":["bundles-marketplace-enrollment"],"summary":"Combined teacher calendar: tutoring lessons + planned live lectures of own bundles.","operationId":"teacher_marketplace_schedule_api_bundles_marketplace_teacher_me_schedule_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TeacherScheduleItemRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/enroll":{"post":{"tags":["bundles-marketplace-enrollment"],"summary":"Enroll the current student into a FREE (price 0) PUBLISHED bundle. Paid bundles: PAYMENT_REQUIRED -> use /purchase.","operationId":"enroll_marketplace_bundle_api_bundles_marketplace__marketplace_bundle_id__enroll_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceEnrollmentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/purchase":{"post":{"tags":["bundles-marketplace-enrollment"],"summary":"Buy a PAID bundle: purchase state + attempts + PayTR iframe token (webhook enrolls on success).","operationId":"purchase_marketplace_bundle_api_bundles_marketplace__marketplace_bundle_id__purchase_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Cancel the pending intent and mint a fresh PayTR token even if the current one still looks fresh ('start a new payment' after PayTR declared the page invalid).","default":false,"title":"Refresh"},"description":"Cancel the pending intent and mint a fresh PayTR token even if the current one still looks fresh ('start a new payment' after PayTR declared the page invalid)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundlePurchaseRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/roster":{"get":{"tags":["bundles-marketplace-enrollment"],"summary":"Enrolled-student roster of an owned marketplace bundle (paginated, 20/page). Carries Last_Seen_At (last authenticated request, +/-2 min).","operationId":"marketplace_bundle_roster_api_bundles_marketplace__marketplace_bundle_id__roster_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RosterStudentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/students/{student_id}/progress":{"get":{"tags":["bundles-marketplace-enrollment"],"summary":"Per-component progress of one enrolled student (owner teacher only).","operationId":"marketplace_student_progress_api_bundles_marketplace__marketplace_bundle_id__students__student_id__progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"student_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentBundleProgressRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/components/{component_id}/homework/submit":{"post":{"tags":["bundles-marketplace-homework"],"summary":"One-shot homework submit; returns score + answer key immediately.","operationId":"marketplace_homework_submit_api_bundles_marketplace_components__component_id__homework_submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitHomeworkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_HomeworkSubmissionResultRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/components/{component_id}/homework/stats":{"get":{"tags":["bundles-marketplace-homework"],"summary":"Homework stats: one student's result + rank + aggregates (owner teacher: any student; student: self after submit).","operationId":"marketplace_homework_stats_api_bundles_marketplace_components__component_id__homework_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}},{"name":"student_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Student Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_HomeworkStatsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/components/{component_id}/homework/submissions":{"get":{"tags":["bundles-marketplace-homework"],"summary":"All enrolled students' submission status for a homework (owner teacher, paginated).","operationId":"marketplace_homework_submissions_api_bundles_marketplace_components__component_id__homework_submissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_HomeworkSubmissionListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/students/me/assignments/deadlines":{"get":{"tags":["bundles-marketplace-homework"],"summary":"Combined upcoming assignment deadlines: course homeworks + enrolled-bundle components (sandwich rule).","operationId":"student_assignment_deadlines_api_bundles_marketplace_students_me_assignments_deadlines_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"description":"Deadline window in days","default":14,"title":"Days"},"description":"Deadline window in days"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentAssignmentDeadlineRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/planned-live/{planned_live_lecture_id}/window":{"get":{"tags":["bundles-marketplace-zoom"],"summary":"Join window state for a planned live lecture.","operationId":"planned_live_window_api_bundles_marketplace_planned_live__planned_live_lecture_id__window_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"planned_live_lecture_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Planned Live Lecture Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PlannedLiveWindowRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/planned-live/{planned_live_lecture_id}/join-token":{"post":{"tags":["bundles-marketplace-zoom"],"summary":"Issue a Zoom Video SDK token. Teacher auto-opens the session; students gated on it.","operationId":"planned_live_join_token_api_bundles_marketplace_planned_live__planned_live_lecture_id__join_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"planned_live_lecture_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Planned Live Lecture Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ZoomJoinTokenRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/planned-live/{planned_live_lecture_id}/verify-token":{"get":{"tags":["bundles-marketplace-zoom"],"summary":"Validate a Zoom Video SDK token before joining the session.","operationId":"planned_live_verify_token_api_bundles_marketplace_planned_live__planned_live_lecture_id__verify_token_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"planned_live_lecture_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Planned Live Lecture Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/planned-live/{planned_live_lecture_id}/join":{"post":{"tags":["bundles-marketplace-zoom"],"summary":"Register a successful join using the Zoom Video SDK token.","operationId":"planned_live_join_api_bundles_marketplace_planned_live__planned_live_lecture_id__join_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"planned_live_lecture_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Planned Live Lecture Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/planned-live/{planned_live_lecture_id}/heartbeat":{"post":{"tags":["bundles-marketplace-zoom"],"summary":"Presence heartbeat for host or participant while in the session.","operationId":"planned_live_heartbeat_api_bundles_marketplace_planned_live__planned_live_lecture_id__heartbeat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"planned_live_lecture_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Planned Live Lecture Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/planned-live/{planned_live_lecture_id}/exit":{"post":{"tags":["bundles-marketplace-zoom"],"summary":"Exit a session. Host exit of the final live slot completes the bundle.","operationId":"planned_live_exit_api_bundles_marketplace_planned_live__planned_live_lecture_id__exit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"planned_live_lecture_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Planned Live Lecture Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/analytics/summary":{"get":{"tags":["bundles-marketplace-analytics"],"summary":"Teacher (owner): bundle cohort summary + per-student rows + per-homework rows.","operationId":"get_bundle_analytics_summary_api_bundles_marketplace__marketplace_bundle_id__analytics_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleAnalyticsSummaryRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/analytics/students/{student_id}":{"get":{"tags":["bundles-marketplace-analytics"],"summary":"Teacher (owner): one student's homework + lecture attendance detail inside the bundle.","operationId":"get_bundle_student_analytics_api_bundles_marketplace__marketplace_bundle_id__analytics_students__student_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"student_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleStudentAnalyticsDetailRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/analytics/homeworks/{component_id}":{"get":{"tags":["bundles-marketplace-analytics"],"summary":"Teacher (owner): one homework's per-question correctness rates + student ranking.","operationId":"get_bundle_homework_analytics_api_bundles_marketplace__marketplace_bundle_id__analytics_homeworks__component_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}},{"name":"include_question_student_ids","in":"query","required":false,"schema":{"type":"boolean","description":"Also name who is in each per-question bucket (correct_student_ids / wrong_student_ids / blank_student_ids). Off by default: the lists cost roughly submitted_count x question_count UUIDs, so a large cohort on a long homework adds megabytes. Ask for it when the per-question drill-down is actually opened.","default":false,"title":"Include Question Student Ids"},"description":"Also name who is in each per-question bucket (correct_student_ids / wrong_student_ids / blank_student_ids). Off by default: the lists cost roughly submitted_count x question_count UUIDs, so a large cohort on a long homework adds megabytes. Ask for it when the per-question drill-down is actually opened."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_BundleHomeworkAnalyticsDetailRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/announcements":{"post":{"tags":["bundles-marketplace-announcements"],"summary":"Teacher (owner): post an announcement; notifies every enrolled student.","operationId":"create_bundle_announcement_api_bundles_marketplace__marketplace_bundle_id__announcements_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAnnouncementCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleAnnouncementRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["bundles-marketplace-announcements"],"summary":"Owner teacher or enrolled student: bundle announcements, newest first.","operationId":"list_bundle_announcements_api_bundles_marketplace__marketplace_bundle_id__announcements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleAnnouncementRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/bundles/marketplace/{marketplace_bundle_id}/announcements/{announcement_id}":{"patch":{"tags":["bundles-marketplace-announcements"],"summary":"Teacher (owner): edit an announcement (no new notification; existing ones are rewritten).","operationId":"update_bundle_announcement_api_bundles_marketplace__marketplace_bundle_id__announcements__announcement_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"announcement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Announcement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceAnnouncementUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleAnnouncementRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["bundles-marketplace-announcements"],"summary":"Teacher (owner): delete an announcement and the notifications it produced.","operationId":"delete_bundle_announcement_api_bundles_marketplace__marketplace_bundle_id__announcements__announcement_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"announcement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Announcement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/marketplace/bundles":{"get":{"tags":["admin-marketplace"],"summary":"List marketplace bundles awaiting moderation (default: DRAFT).","operationId":"list_pending_bundles_api_admin_marketplace_bundles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MarketplaceBundleStatus","default":"DRAFT"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"flagged_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only bundles whose content changed after review (content_flagged_at set)","default":false,"title":"Flagged Only"},"description":"Only bundles whose content changed after review (content_flagged_at set)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/marketplace/bundles/{marketplace_bundle_id}/components":{"get":{"tags":["admin-marketplace"],"summary":"Moderation content inventory: document names/mimes, video state, question counts (never answer keys).","operationId":"list_bundle_components_api_admin_marketplace_bundles__marketplace_bundle_id__components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminComponentRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/marketplace/bundles/{marketplace_bundle_id}/components/{component_id}/document-url":{"get":{"tags":["admin-marketplace"],"summary":"Signed preview URL for a snapshot document (moderation; serves soft-deleted files too).","operationId":"get_component_document_url_api_admin_marketplace_bundles__marketplace_bundle_id__components__component_id__document_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminDocumentUrlRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/marketplace/bundles/{marketplace_bundle_id}/components/{component_id}/video-playback":{"get":{"tags":["admin-marketplace"],"summary":"Playback URLs for a snapshot video (moderation; includes non-READY and soft-deleted assets).","operationId":"get_component_video_playback_api_admin_marketplace_bundles__marketplace_bundle_id__components__component_id__video_playback_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}},{"name":"component_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Component Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminVideoPlaybackRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/marketplace/bundles/{marketplace_bundle_id}":{"get":{"tags":["admin-marketplace"],"summary":"Full bundle detail for moderation review (any status; components + planned lectures).","operationId":"get_bundle_detail_api_admin_marketplace_bundles__marketplace_bundle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/marketplace/bundles/{marketplace_bundle_id}/approve":{"post":{"tags":["admin-marketplace"],"summary":"Approve a DRAFT marketplace bundle -> PUBLISHED.","operationId":"approve_bundle_api_admin_marketplace_bundles__marketplace_bundle_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/marketplace/bundles/{marketplace_bundle_id}/clear-content-flag":{"post":{"tags":["admin-marketplace"],"summary":"Resolve a content-changed flag after re-review (idempotent; meta.already_clear).","operationId":"clear_content_flag_api_admin_marketplace_bundles__marketplace_bundle_id__clear_content_flag_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClearContentFlagRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/marketplace/bundles/{marketplace_bundle_id}/reject":{"post":{"tags":["admin-marketplace"],"summary":"Reject a DRAFT marketplace bundle (stays DRAFT; records rejection feedback).","operationId":"reject_bundle_api_admin_marketplace_bundles__marketplace_bundle_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"marketplace_bundle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectMarketplaceBundleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MarketplaceBundleRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds":{"get":{"tags":["admin-refunds"],"summary":"List refund rows (oldest first) + per-status counters in meta.","operationId":"list_refund_rows_api_admin_refunds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"PENDING_APPROVAL | NEEDS_REVIEW | EXECUTING | CONFIRMED | FAILED | UNCERTAIN | DISMISSED","title":"Status"},"description":"PENDING_APPROVAL | NEEDS_REVIEW | EXECUTING | CONFIRMED | FAILED | UNCERTAIN | DISMISSED"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RefundRowRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/sweep":{"post":{"tags":["admin-refunds"],"summary":"Run the safety-net sweep now (legacy flags, orphans, stale EXECUTING).","operationId":"run_sweep_api_admin_refunds_sweep_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RefundSweepResult_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/refunds/{refund_id}":{"get":{"tags":["admin-refunds"],"summary":"One enriched refund row (for deep links from the payment detail).","operationId":"get_refund_row_api_admin_refunds__refund_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Refund Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RefundRowRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/{refund_id}/execute":{"post":{"tags":["admin-refunds"],"summary":"Execute ONE PENDING_APPROVAL refund against PayTR (moves money).","operationId":"execute_refund_api_admin_refunds__refund_id__execute_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Refund Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RefundActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/{refund_id}/verify":{"post":{"tags":["admin-refunds"],"summary":"Durum-Sorgu: resolve an UNCERTAIN row (or attach evidence to NEEDS_REVIEW).","operationId":"verify_refund_api_admin_refunds__refund_id__verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Refund Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RefundActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/{refund_id}/retry":{"post":{"tags":["admin-refunds"],"summary":"Re-queue ONE FAILED refund (retry_count++). Auto mode never does this.","operationId":"retry_refund_api_admin_refunds__refund_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Refund Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RefundActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/{refund_id}/approve":{"post":{"tags":["admin-refunds"],"summary":"NEEDS_REVIEW -> PENDING_APPROVAL (requires a resolvable amount + a note).","operationId":"approve_reviewed_refund_api_admin_refunds__refund_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Refund Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RefundActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/refunds/{refund_id}/dismiss":{"post":{"tags":["admin-refunds"],"summary":"NEEDS_REVIEW -> DISMISSED (no refund owed; note is mandatory).","operationId":"dismiss_refund_api_admin_refunds__refund_id__dismiss_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Refund Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RefundActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts":{"get":{"tags":["admin-payouts"],"summary":"List payout requests (oldest first) + per-status counters in meta.","operationId":"list_payout_requests_api_admin_payouts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"REQUESTED | PROCESSING | PAID | REJECTED","title":"Status"},"description":"REQUESTED | PROCESSING | PAID | REJECTED"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminPayoutRequestRowRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/teacher-balances":{"get":{"tags":["admin-payouts"],"summary":"Accountant table: per-teacher unpaid-EARNED balance (both verticals) + open request flag.","operationId":"list_teacher_balances_api_admin_payouts_teacher_balances_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"nonzero_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only teachers with balance > 0","default":false,"title":"Nonzero Only"},"description":"Only teachers with balance > 0"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminTeacherBalanceRow_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/returned-transfers":{"get":{"tags":["admin-payouts"],"summary":"PayTR geri-dönen (bounced) transfers, annotated with candidate matches (read-only).","operationId":"list_returned_transfers_api_admin_payouts_returned_transfers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":true,"schema":{"type":"string","description":"YYYY-MM-DD hh:mm:ss","title":"Start Date"},"description":"YYYY-MM-DD hh:mm:ss"},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","description":"YYYY-MM-DD hh:mm:ss (window <= 31 days, PayTR rule)","title":"End Date"},"description":"YYYY-MM-DD hh:mm:ss (window <= 31 days, PayTR rule)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminReturnedTransferRow_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/sweep":{"post":{"tags":["admin-payouts"],"summary":"Park stale EXECUTING/RESENDING transfers as UNCERTAIN (crash net).","operationId":"run_sweep_api_admin_payouts_sweep_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_PayoutSweepResult_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/payouts/transfers/{transfer_id}/mark-returned":{"post":{"tags":["admin-payouts"],"summary":"Link a geri-dönen row: ACCEPTED/CONFIRMED -> RETURNED (paid_out stamp reverts).","operationId":"mark_transfer_returned_api_admin_payouts_transfers__transfer_id__mark_returned_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transfer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutMarkReturnedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminTransferActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/transfers/{transfer_id}/resend":{"post":{"tags":["admin-payouts"],"summary":"RETURNED -> cashout resend from balance with the teacher's CURRENT IBAN.","operationId":"resend_transfer_api_admin_payouts_transfers__transfer_id__resend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transfer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminTransferActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/transfers/{transfer_id}/resolve":{"post":{"tags":["admin-payouts"],"summary":"UNCERTAIN's only manual exits (panel-verified + note): CONFIRM or RELEASE.","operationId":"resolve_transfer_api_admin_payouts_transfers__transfer_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"transfer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Transfer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminTransferActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/{payout_request_id}":{"get":{"tags":["admin-payouts"],"summary":"One payout request with its transfer ledger (IBAN always masked).","operationId":"get_payout_request_api_admin_payouts__payout_request_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payout_request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminPayoutRequestDetailRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/{payout_request_id}/evidence-url":{"get":{"tags":["admin-payouts"],"summary":"Short-lived signed URL for the manual-paid dekont evidence.","operationId":"get_payout_evidence_url_api_admin_payouts__payout_request_id__evidence_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payout_request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminPayoutEvidenceUrlRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/{payout_request_id}/payment-instructions":{"get":{"tags":["admin-payouts"],"summary":"FULL IBAN + live payable total for the manual bank transfer (REQUESTED only; every serve is audit-logged).","operationId":"get_payout_payment_instructions_api_admin_payouts__payout_request_id__payment_instructions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payout_request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminPayoutPaymentInstructionsRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/{payout_request_id}/mark-paid":{"post":{"tags":["admin-payouts"],"summary":"Manual bank-transfer settlement: confirm every PENDING transfer + upload dekont evidence (no PayTR call).","operationId":"mark_payout_request_paid_api_admin_payouts__payout_request_id__mark_paid_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payout_request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Request Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_mark_payout_request_paid_api_admin_payouts__payout_request_id__mark_paid_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminTransferActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/{payout_request_id}/send":{"post":{"tags":["admin-payouts"],"summary":"Instruct PayTR for every PENDING transfer of this request (moves money).","operationId":"send_payout_request_api_admin_payouts__payout_request_id__send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payout_request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminTransferActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payouts/{payout_request_id}/reject":{"post":{"tags":["admin-payouts"],"summary":"REQUESTED -> REJECTED: releases every claim back to the EARNED pool (note mandatory).","operationId":"reject_payout_request_api_admin_payouts__payout_request_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"payout_request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Payout Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminPayoutActionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payments":{"get":{"tags":["admin-payments"],"summary":"List payment intents with settlement/refund context (+status & attention counters in meta).","operationId":"list_payments_api_admin_payments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CREATED | PENDING | SUCCEEDED | FAILED | CANCELED","title":"Status"},"description":"CREATED | PENDING | SUCCEEDED | FAILED | CANCELED"},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"LESSON_REQUEST | BUNDLE_PURCHASE | CREDIT_PACKAGE","title":"Purpose"},"description":"LESSON_REQUEST | BUNDLE_PURCHASE | CREDIT_PACKAGE"},{"name":"merchant_oid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Exact merchant_oid","title":"Merchant Oid"},"description":"Exact merchant_oid"},{"name":"phone","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"Student phone (digits are extracted; >=10 digits exact, 7-9 tail match)","title":"Phone"},"description":"Student phone (digits are extracted; >=10 digits exact, 7-9 tail match)"},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"attention_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only stale unsettled + amount-mismatch intents (oldest first)","default":false,"title":"Attention Only"},"description":"Only stale unsettled + amount-mismatch intents (oldest first)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminPaymentRowRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payments/reconcile-sweep":{"post":{"tags":["admin-payments"],"summary":"Reconcile up to 25 stale unsettled intents against PayTR (admin-triggered; oldest first).","operationId":"reconcile_sweep_api_admin_payments_reconcile_sweep_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminPaymentReconcileResult_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/payments/{intent_id}":{"get":{"tags":["admin-payments"],"summary":"Full payment chain for one intent: student, invoice/purchase, enrollment, refund.","operationId":"get_payment_detail_api_admin_payments__intent_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Intent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminPaymentDetailRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/payments/{intent_id}/reconcile":{"post":{"tags":["admin-payments"],"summary":"Ask PayTR Durum-Sorgu about this order and act on the provider's answer (never on belief).","operationId":"reconcile_payment_api_admin_payments__intent_id__reconcile_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"intent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Intent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AdminPaymentReconcileResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/finance/expense-ledger":{"get":{"tags":["admin-finance"],"summary":"List ledger runs (all versions, newest period first).","operationId":"list_expense_ledger_runs_api_admin_finance_expense_ledger_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(teacher|refund)$"},{"type":"null"}],"title":"Scope"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseLedgerRunsResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/finance/expense-ledger/generate":{"post":{"tags":["admin-finance"],"summary":"Generate (or idempotently return) the run for one scope+period; force opens a new version.","operationId":"generate_expense_ledger_api_admin_finance_expense_ledger_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseLedgerGenerateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseLedgerResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/finance/expense-ledger/{scope}/{period}":{"get":{"tags":["admin-finance"],"summary":"One run (live version by default) with its frozen rows.","operationId":"get_expense_ledger_api_admin_finance_expense_ledger__scope___period__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scope","in":"path","required":true,"schema":{"type":"string","pattern":"^(teacher|refund)$","description":"teacher = monthly series, refund = weekly series","title":"Scope"},"description":"teacher = monthly series, refund = weekly series"},{"name":"period","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{4}-(W(0[1-9]|[1-4]\\d|5[0-3])|(0[1-9]|1[0-2]))$","description":"teacher: YYYY-MM · refund: YYYY-Wnn","title":"Period"},"description":"teacher: YYYY-MM · refund: YYYY-Wnn"},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Version"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseLedgerResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/finance/expense-ledger/{scope}/{period}/xlsx":{"get":{"tags":["admin-finance"],"summary":"Signed download URL for the run's xlsx (rendered on first request, then frozen).","operationId":"get_expense_ledger_xlsx_api_admin_finance_expense_ledger__scope___period__xlsx_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scope","in":"path","required":true,"schema":{"type":"string","pattern":"^(teacher|refund)$","description":"teacher = monthly series, refund = weekly series","title":"Scope"},"description":"teacher = monthly series, refund = weekly series"},{"name":"period","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{4}-(W(0[1-9]|[1-4]\\d|5[0-3])|(0[1-9]|1[0-2]))$","description":"teacher: YYYY-MM · refund: YYYY-Wnn","title":"Period"},"description":"teacher: YYYY-MM · refund: YYYY-Wnn"},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ExpenseLedgerXlsxRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/taxonomy":{"get":{"tags":["question-bank"],"summary":"Subject → bucket → question-type tree for a branch, with live question counts (empty types hidden).","operationId":"get_taxonomy_api_question_bank_taxonomy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"branch","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Branch"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TaxonomyTreeRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests":{"post":{"tags":["question-bank"],"summary":"Create a DRAFT test (branch + soft question-count target).","operationId":"create_test_api_question_bank_tests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/question-bank/tests/me":{"get":{"tags":["question-bank"],"summary":"List my tests (created_at DESC).","operationId":"list_my_tests_api_question_bank_tests_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/QbTestStatus"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TestListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests/{test_id}":{"get":{"tags":["question-bank"],"summary":"Test detail: progress + questions ordered by position (no answers in drafts).","operationId":"get_test_api_question_bank_tests__test_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["question-bank"],"summary":"Update draft title / target count.","operationId":"update_test_api_question_bank_tests__test_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["question-bank"],"summary":"Delete a DRAFT test (finalized tests are permanent; views are never touched).","operationId":"delete_test_api_question_bank_tests__test_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests/{test_id}/next-question":{"get":{"tags":["question-bank"],"summary":"Random least-viewed question of a type. Pure read: serving marks nothing (Cache-Control: no-store on the client).","operationId":"next_question_api_question_bank_tests__test_id__next_question_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}},{"name":"type_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Type Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_NextQuestionRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests/{test_id}/questions/order":{"put":{"tags":["question-bank"],"summary":"Reorder the draft: body must be an exact permutation of current question ids.","operationId":"reorder_questions_api_question_bank_tests__test_id__questions_order_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests/{test_id}/questions":{"post":{"tags":["question-bank"],"summary":"Ekle: append the served question at the next position (also counts as viewed).","operationId":"add_question_api_question_bank_tests__test_id__questions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddQuestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_AddQuestionResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests/{test_id}/skip":{"post":{"tags":["question-bank"],"summary":"Geç: mark the served question viewed without adding it.","operationId":"skip_question_api_question_bank_tests__test_id__skip_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkipQuestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SkipResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests/{test_id}/questions/{question_id}":{"delete":{"tags":["question-bank"],"summary":"Remove a question from the draft and compact positions.","operationId":"remove_question_api_question_bank_tests__test_id__questions__question_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":1,"title":"Question Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests/{test_id}/finalize":{"post":{"tags":["question-bank"],"summary":"Finalize the draft (≥1 question; soft target NOT enforced). Irreversible.","operationId":"finalize_test_api_question_bank_tests__test_id__finalize_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_TestRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests/{test_id}/document-token":{"post":{"tags":["question-bank"],"summary":"Mint a short-lived token for the printable document page (FINALIZED only).","operationId":"create_document_token_api_question_bank_tests__test_id__document_token_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_DocumentTokenRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/question-bank/tests/{test_id}/document":{"get":{"tags":["question-bank"],"summary":"Printable document. PDF by default (302 to a signed URL); ?format=html or any PDF failure falls back to browser-print HTML. Auth via the short-lived token (no bearer).","operationId":"get_document_api_question_bank_tests__test_id__document_get","parameters":[{"name":"test_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Test Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}},{"name":"format","in":"query","required":false,"schema":{"enum":["pdf","html"],"type":"string","default":"pdf","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/intelligence/institutions/{institution_id}/intervention-groups/suggestions":{"get":{"tags":["intelligence-suggestions"],"summary":"Suggested intervention groups of the scope (institution doc 6.13, P7): groups of 4 or more, small candidates of 1 to 3.","operationId":"list_intervention_group_suggestions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default), campus:{campus_id} or section:{section_id}: roster codes, matched on each student's latest record.","title":"Scope"},"description":"institution (default), campus:{campus_id} or section:{section_id}: roster codes, matched on each student's latest record."},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section reads 11, anything else 12","title":"Grade"},"description":"D48: the series, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section reads 11, anything else 12"},{"name":"type","in":"query","required":false,"schema":{"type":"string","maxLength":16,"description":"all (default), topic or skill","default":"all","title":"Type"},"description":"all (default), topic or skill"},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Topic groups of one subject; skill groups drop out when set","title":"Subject"},"description":"Topic groups of one subject; skill groups drop out when set"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Group name search (Turkish fold, substring); small candidates are not searched","title":"Q"},"description":"Group name search (Turkish fold, substring); small candidates are not searched"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionsResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope) or INVALID_PARAMETER (meta.parameter names it: type, q, exclude_entry_ids, limit).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch), or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. SCOPE_NOT_FOUND: an unknown campus / section, or one outside the caller's sections / campuses; GROUP_NOT_FOUND: no such suggestion in the scope (detail) or a malformed group id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: the If-None-Match is the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/intervention-groups/suggestions/{group_id}":{"get":{"tags":["intelligence-suggestions"],"summary":"One suggestion (a small candidate too): members with the evidence to save as evidence_snapshot, and the per-question summary.","operationId":"get_intervention_group_suggestion","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"A suggestion id: konu.<subject>.<topic> or beceri.<skill>.","title":"Group Id"},"description":"A suggestion id: konu.<subject>.<topic> or beceri.<skill>."},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default), campus:{campus_id} or section:{section_id}: roster codes, matched on each student's latest record.","title":"Scope"},"description":"institution (default), campus:{campus_id} or section:{section_id}: roster codes, matched on each student's latest record."},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section reads 11, anything else 12","title":"Grade"},"description":"D48: the series, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section reads 11, anything else 12"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionDetailResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope) or INVALID_PARAMETER (meta.parameter names it: type, q, exclude_entry_ids, limit).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch), or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. SCOPE_NOT_FOUND: an unknown campus / section, or one outside the caller's sections / campuses; GROUP_NOT_FOUND: no such suggestion in the scope (detail) or a malformed group id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: the If-None-Match is the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/intervention-groups/suggestions/{group_id}/candidates":{"get":{"tags":["intelligence-suggestions"],"summary":"Manual-add candidates for the suggestion's target: name search over the whole scope pool, out-of-series students flagged.","operationId":"list_intervention_group_suggestion_candidates","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"A suggestion id: konu.<subject>.<topic> or beceri.<skill>.","title":"Group Id"},"description":"A suggestion id: konu.<subject>.<topic> or beceri.<skill>."},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default), campus:{campus_id} or section:{section_id}: roster codes, matched on each student's latest record.","title":"Scope"},"description":"institution (default), campus:{campus_id} or section:{section_id}: roster codes, matched on each student's latest record."},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section reads 11, anything else 12","title":"Grade"},"description":"D48: the series, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section reads 11, anything else 12"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Required: name search, at least 2 characters after the Turkish fold","title":"Q"},"description":"Required: name search, at least 2 characters after the Turkish fold"},{"name":"exclude_entry_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"description":"Comma-separated roster entry ids (the draft's current members)","title":"Exclude Entry Ids"},"description":"Comma-separated roster entry ids (the draft's current members)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"1 to 50","default":12,"title":"Limit"},"description":"1 to 50"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionCandidatesResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope) or INVALID_PARAMETER (meta.parameter names it: type, q, exclude_entry_ids, limit).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch), or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. SCOPE_NOT_FOUND: an unknown campus / section, or one outside the caller's sections / campuses; GROUP_NOT_FOUND: no such suggestion in the scope (detail) or a malformed group id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: the If-None-Match is the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/campuses":{"get":{"tags":["intelligence-entities"],"summary":"The institution's campuses with display names, slugs and the operational flag (a teacher / campus manager sees their own).","operationId":"list_institution_campuses","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampusListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/campuses/{campus_id}":{"patch":{"tags":["intelligence-entities"],"summary":"Rename a campus or change its operational flag (admin). Slugs and derived short names follow.","operationId":"update_institution_campus","security":[{"HTTPBearer":[]}],"parameters":[{"name":"campus_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campus Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampusPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_CampusRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER (meta.parameter = body): the body changes nothing; or a field fails validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. SCOPE_NOT_FOUND: no campus / section entity with this id on the institution.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/sections":{"get":{"tags":["intelligence-entities"],"summary":"One term's sections (default: the newest term) with names, short names, slugs and the operational flag.","operationId":"list_institution_sections","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows","title":"Term"},"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SectionListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/sections/{section_id}":{"patch":{"tags":["intelligence-entities"],"summary":"Rename a section, set its short name or its operational flag (admin). The term's slugs follow.","operationId":"update_institution_section","security":[{"HTTPBearer":[]}],"parameters":[{"name":"section_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Section Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SectionPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SectionRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER (meta.parameter = body): the body changes nothing; or a field fails validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. SCOPE_NOT_FOUND: no campus / section entity with this id on the institution.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/analytics/materialize":{"post":{"tags":["intelligence-entities"],"summary":"Queue the analytics materialisation of the exam's current analysis run (admin; idempotent, force re-fetches a ready one). It starts right after the response.","operationId":"materialize_exam_analytics","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","description":"Re-fetch the current run even when it is materialised","default":false,"title":"Force"},"description":"Re-fetch the current run even when it is materialised"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaterializeResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch), or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial (D14), nothing to materialise.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/analytics":{"get":{"tags":["intelligence-entities"],"summary":"Where the exam's analytics materialisation stands: the job, the run, its row counts, fetched_at and errors.","operationId":"get_exam_analytics","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamAnalyticsResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/analytics":{"get":{"tags":["intelligence-entities"],"summary":"The analytics state of up to 100 exams in one call (?exam_ids=, order kept): each item is the single read's object without run.counts; ids that are not the institution's exams are listed in meta.missing.","operationId":"get_exam_analytics_batch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"exam_ids","in":"query","required":true,"schema":{"type":"string","maxLength":4000,"description":"Comma-separated exam ids, 1 to 100; duplicates are dropped, the order is kept","title":"Exam Ids"},"description":"Comma-separated exam ids, 1 to 100; duplicates are dropped, the order is kept"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamAnalyticsStatusListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/reference":{"get":{"tags":["intelligence-analytics"],"summary":"P0: dictionaries, vocabularies, labels and default gates (no student data); one call at app start, cache with ETag.","operationId":"get_analytics_reference","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"description":"TYT | AYT | all (default): limits subjects, topics, units, skills and question types to one exam scope","title":"Scope"},"description":"TYT | AYT | all (default): limits subjects, topics, units, skills and question types to one exam scope"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/student-records":{"get":{"tags":["intelligence-analytics"],"summary":"P1: one record per student of the exam in a scope (opportunity, what-if rank, percentiles); filters, facets, orders, paging.","operationId":"list_exam_student_records","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); historical, term-local section ids of this exam are accepted","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); historical, term-local section ids of this exam are accepted"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Name search: Turkish fold (5.8), substring","title":"Q"},"description":"Name search: Turkish fold (5.8), substring"},{"name":"campus_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"Facet filter inside the scope","title":"Campus Id"},"description":"Facet filter inside the scope"},{"name":"section_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"Facet filter; only with campus_id or a campus scope (else 422 INVALID_PARAMETER)","title":"Section Id"},"description":"Facet filter; only with campus_id or a campus scope (else 422 INVALID_PARAMETER)"},{"name":"group","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"description":"all (default) | top_tier (is_top_tier_candidate) | opportunity (opportunity_net > 0)","title":"Group"},"description":"all (default) | top_tier (is_top_tier_candidate) | opportunity (opportunity_net > 0)"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"description":"official (default: general rank asc, net desc, name) | opportunity | lowest | net_desc | name","title":"Sort"},"description":"official (default: general rank asc, net desc, name) | opportunity | lowest | net_desc | name"},{"name":"include_facets","in":"query","required":false,"schema":{"type":"boolean","description":"Adds meta.facets (counts over the scope without q)","default":false,"title":"Include Facets"},"description":"Adds meta.facets (counts over the scope without q)"},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1-based, default 1; an out-of-range page is empty with the right total","title":"Page"},"description":"1-based, default 1; an out-of-range page is empty with the right total"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 to 500, default 25","title":"Page Size"},"description":"1 to 500, default 25"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentRecordsResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/scope-detail":{"get":{"tags":["intelligence-analytics"],"summary":"P2: the exam detail page for one scope: summary, subject benchmark, campus x subject matrix, section rows, subjects, questions with signals, pointers.","operationId":"get_exam_scope_detail","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeDetailResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/questions/{question_id}/missed":{"get":{"tags":["intelligence-analytics"],"summary":"P2a: the scoped students who did not answer the question correctly (reason expected / trap / other / blank, then general rank), a page of them.","operationId":"list_question_missed_students","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"title":"Question Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)"},{"name":"reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"description":"all (default) | expected | trap | blank","title":"Reason"},"description":"all (default) | expected | trap | blank"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 to 500, default 40: the size of a page, kept for the callers before paging; alone it is page 1, with page_size a 422","title":"Limit"},"description":"1 to 500, default 40: the size of a page, kept for the callers before paging; alone it is page 1, with page_size a 422"},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1-based, default 1; an out-of-range page is empty with the right total (D46)","title":"Page"},"description":"1-based, default 1; an out-of-range page is empty with the right total (D46)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 to 500, default 40 (D46)","title":"Page Size"},"description":"1 to 500, default 40 (D46)"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionMissedResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND, SCOPE_NOT_FOUND and ITEM_NOT_FOUND (meta.parameter = question_id: the exam has no such question).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/subject-opportunity":{"get":{"tags":["intelligence-analytics"],"summary":"P2b: the scoped students with the largest opportunity in one subject, a page of them.","operationId":"list_subject_opportunity_students","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Required: a subject id of the exam (P0 subjects[].id)","title":"Subject"},"description":"Required: a subject id of the exam (P0 subjects[].id)"},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 to 100, default 10: the size of a page, kept for the callers before paging; alone it is page 1, with page_size a 422","title":"Limit"},"description":"1 to 100, default 10: the size of a page, kept for the callers before paging; alone it is page 1, with page_size a 422"},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1-based, default 1; an out-of-range page is empty with the right total (D46)","title":"Page"},"description":"1-based, default 1; an out-of-range page is empty with the right total (D46)"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 to 100, default 10 (D46)","title":"Page Size"},"description":"1 to 100, default 10 (D46)"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectOpportunityResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/kova-gaps":{"get":{"tags":["intelligence-analytics"],"summary":"P2c: the kova gap heatmap of a scope on one exam: the scope's campuses or sections by ders and kova (core kova_group_gap over the stored 8.4 cells).","operationId":"get_kova_gaps","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)"},{"name":"subject","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Optional: one subject id of the exam (P0 subjects[].id); default every ders with a kova cell","title":"Subject"},"description":"Optional: one subject id of the exam (P0 subjects[].id); default every ders with a kova cell"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KovaGapsResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/net-distribution":{"get":{"tags":["intelligence-analytics"],"summary":"P9 (experimental page): quantiles, 5-net histogram, quarters and 10-net levels of the scope's actual and potential nets.","operationId":"get_exam_net_distribution","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10)"},{"name":"bin_width","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Histogram bin width in net, 1 to 60, default 5","title":"Bin Width"},"description":"Histogram bin width in net, 1 to 60, default 5"},{"name":"level_width","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Level bucket width in net, 1 to 60, default 10","title":"Level Width"},"description":"Level bucket width in net, 1 to 60, default 10"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetDistributionResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/questions/{question_id}/image":{"get":{"tags":["intelligence-analytics"],"summary":"P10: 302 to a short-lived signed URL of the question image, or 404 IMAGE_NOT_FOUND (D11).","operationId":"get_question_image","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"title":"Question Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"302":{"description":"Successful Response"},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND and IMAGE_NOT_FOUND (the question has no image: D11, images are not hosted yet).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/overview":{"get":{"tags":["intelligence-analytics"],"summary":"P3: the overview of a scope on the latest exam: latest-exam card, attention list (the four unranked signals' entries; signal filter, limit), campus / section explorer.","operationId":"get_analytics_overview","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); resolved against the exam's hierarchy","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); resolved against the exam's hierarchy"},{"name":"exam_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Override of the latest exam (testing); the UI uses the default","title":"Exam Id"},"description":"Override of the latest exam (testing); the UI uses the default"},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12","title":"Grade"},"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12"},{"name":"full","in":"query","required":false,"schema":{"type":"boolean","description":"Deprecated (A4): used to add the ranked pools, which are empty now","default":false,"title":"Full"},"description":"Deprecated (A4): used to add the ranked pools, which are empty now"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Attention entries served, 1 to 500, default 40 (attention.n_entries_total tells the rest)","title":"Limit"},"description":"Attention entries served, 1 to 500, default 40 (attention.n_entries_total tells the rest)"},{"name":"signal","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"Only this signal's entries: below_expected | blank_outlier | transition_below_cell | person_fit","title":"Signal"},"description":"Only this signal's entries: below_expected | blank_outlier | transition_below_cell | person_fit"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/trajectory":{"get":{"tags":["intelligence-analytics"],"summary":"P4: the scope's mean and accessible mean per dated series exam, with the same-student line.","operationId":"get_analytics_trajectory","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); membership by each point's own exam","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); membership by each point's own exam"},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12","title":"Grade"},"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrajectoryResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/transitions":{"get":{"tags":["intelligence-analytics"],"summary":"P4: same-student transitions per consecutive pair of dated series exams (every grade | track group, reliable or not).","operationId":"list_analytics_transitions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); the current side is scoped, the previous side is not","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); the current side is scoped, the previous side is not"},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12","title":"Grade"},"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransitionsResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/rank-changes":{"get":{"tags":["intelligence-analytics"],"summary":"P4 (D46): each matched student's official general rank in the latest two dated series exams, most declined rank share first.","operationId":"list_rank_changes","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); the current side is scoped, the previous side is not","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); the current side is scoped, the previous side is not"},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12","title":"Grade"},"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12"},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1-based, default 1; an out-of-range page is empty with the right total","title":"Page"},"description":"1-based, default 1; an out-of-range page is empty with the right total"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 to 500, default 25","title":"Page Size"},"description":"1 to 500, default 25"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RankChangesResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/term-lists":{"get":{"tags":["intelligence-analytics"],"summary":"P4 (D46): the term's \"derece adayı\" and \"potansiyelinin altında\" students over the series, each by their latest sitting.","operationId":"get_term_lists","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); membership by each student's latest series sitting","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); membership by each student's latest series sitting"},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12","title":"Grade"},"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Students served per list, 1 to 200, default 5 (the totals count them all)","title":"Limit"},"description":"Students served per list, 1 to 200, default 5 (the totals count them all)"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermListsResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/students":{"get":{"tags":["intelligence-analytics"],"summary":"P5: the students directory: one row per person with their latest analysed TYT sitting; name search, campus / section facets, paging.","operationId":"list_students_directory","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); matched on each person's latest record","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); matched on each person's latest record"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Name search: Turkish fold (5.8), substring","title":"Q"},"description":"Name search: Turkish fold (5.8), substring"},{"name":"campus_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"User filter inside the scope","title":"Campus Id"},"description":"User filter inside the scope"},{"name":"section_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"User filter; only with campus_id or a campus scope","title":"Section Id"},"description":"User filter; only with campus_id or a campus scope"},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1-based, default 1","title":"Page"},"description":"1-based, default 1"},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"1 to 200, default 25","title":"Page Size"},"description":"1 to 200, default 25"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentsDirectoryResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/students/{student_id}/panel":{"get":{"tags":["intelligence-analytics"],"summary":"P6: the student page: identity, sittings, organisational context, section mates, series history and the selected exam's dashboard.","operationId":"get_student_panel","security":[{"HTTPBearer":[]}],"parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"exam_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Selected exam (one the student sat); default: the chronologically latest sitting","title":"Exam Id"},"description":"Selected exam (one the student sat); default: the chronologically latest sitting"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentPanelResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also STUDENT_NOT_FOUND (unknown or not visible student) and EXAM_NOT_FOUND (an exam the student did not sit).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/students/{student_id}/exams/{exam_id}/ozet":{"get":{"tags":["intelligence-analytics"],"summary":"P11: one student's deneme özeti of one exam (Intelligence's 8.11, D44): the screens the student sees, as stored.","operationId":"get_student_ozet","security":[{"HTTPBearer":[]}],"parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Id"}},{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentOzetResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also STUDENT_NOT_FOUND (unknown or not visible student) and EXAM_NOT_FOUND (an exam the student did not sit).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/exam-series":{"get":{"tags":["intelligence-analytics"],"summary":"P8: the institution's TYT series, its latest exam and every analysed dated exam of any type (TYT, AYT, Tarama) newest first (with scope: each exam's scope n and mean).","operationId":"get_exam_series","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); optional, adds scope_stats","title":"Scope"},"description":"institution (default) | campus:{campus_id} | section:{section_id}; ids are the roster codes (D10); optional, adds scope_stats"},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12","title":"Grade"},"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamSeriesResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/hierarchy":{"get":{"tags":["intelligence-analytics"],"summary":"P8: campus -> sections of an exam's records (default: the caller's latest exam, D42), names, slugs, counts, operational flags.","operationId":"get_exam_hierarchy","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"exam_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Default: the caller's latest exam (P8 `/exam-series` `latest`, D42)","title":"Exam Id"},"description":"Default: the caller's latest exam (P8 `/exam-series` `latest`, D42)"},{"name":"grade","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12","title":"Grade"},"description":"D48: the series read, 12 (the 12th grade and the graduates) or 11 (the 11th grade); omitted, the scope decides: an 11th-grade section (`/hierarchy` `grade: 11`) reads 11, anything else 12"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HierarchyResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND (unknown exam) and SCOPE_NOT_FOUND (a campus / section the exam does not have, or one outside a teacher's sections / a campus manager's campuses).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/org-context":{"get":{"tags":["intelligence-analytics"],"summary":"P8: where a student's record or a campus / section of an exam was, and which current page can show it (continuity, fallback).","operationId":"get_org_context","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"exam_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Required: the source exam","title":"Exam Id"},"description":"Required: the source exam"},{"name":"entry_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"A student's record in that exam","title":"Entry Id"},"description":"A student's record in that exam"},{"name":"campus_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"Or a campus of that exam","title":"Campus Id"},"description":"Or a campus of that exam"},{"name":"section_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"Or a section of that exam (with or without campus_id)","title":"Section Id"},"description":"Or a section of that exam (with or without campus_id)"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgContextResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_SCOPE (a malformed scope: institution | campus:{id} | section:{id}) or INVALID_PARAMETER (meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also STUDENT_NOT_FOUND (unknown or not visible student) and EXAM_NOT_FOUND (an exam the student did not sit).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not completed / partial with a ready materialisation (D14), or the institution has no analysed exam of its cohort yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/me/reference":{"get":{"tags":["intelligence-student-analytics"],"summary":"S0: the reference dictionaries, vocabularies, labels and default gates (the institution panel's P0 body); no student data.","operationId":"get_my_reference","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"description":"TYT | AYT | all; omitted = all (subjects, topics, units, question types and skills of one exam scope)","title":"Scope"},"description":"TYT | AYT | all; omitted = all (subjects, topics, units, question types and skills of one exam scope)"},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyReferenceResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: a query parameter is invalid (meta.parameter names it); VALIDATION_ERROR for a malformed path or header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here) or EXAM_NOT_FOUND (an unknown exam, or one the caller did not sit). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/me/denemeler/overview":{"get":{"tags":["intelligence-student-analytics"],"summary":"S1: the Denemeler overview of one scope: the caller's analysed sittings, rolling peers, pending sittings.","operationId":"get_my_denemeler_overview","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"description":"TYT | AYT | TARAMA; omitted = the scope of the latest analysed TYT / AYT sitting, else TYT (TARAMA only when asked, D35)","title":"Scope"},"description":"TYT | AYT | TARAMA; omitted = the scope of the latest analysed TYT / AYT sitting, else TYT (TARAMA only when asked, D35)"},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DenemelerOverviewResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: a query parameter is invalid (meta.parameter names it); VALIDATION_ERROR for a malformed path or header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here) or EXAM_NOT_FOUND (an unknown exam, or one the caller did not sit). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/me/exams/{exam_id}/analysis":{"get":{"tags":["intelligence-student-analytics"],"summary":"S2 / S8: the caller's own analysis of one exam: the extended denemeler body and the typed per-exam strateji and konu atlası.","operationId":"get_my_exam_analysis","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"part","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"description":"denemeler | strateji | konu-atlasi | konu_atlasi (D12); omitted = all three","title":"Part"},"description":"denemeler | strateji | konu-atlasi | konu_atlasi (D12); omitted = all three"},{"name":"advice","in":"query","required":false,"schema":{"type":"boolean","description":"false: no advice block is read, every part's advice is null and the body has its own ETag. For a screen that draws no advice card, the Denemeler list's per-exam reads (2026-10-26); the Deneme Detay keeps the default","default":true,"title":"Advice"},"description":"false: no advice block is read, every part's advice is null and the body has its own ETag. For a screen that draws no advice card, the Denemeler list's per-exam reads (2026-10-26); the Deneme Detay keeps the default"},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyExamAnalysisResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: a query parameter is invalid (meta.parameter names it); VALIDATION_ERROR for a malformed path or header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here) or EXAM_NOT_FOUND (an unknown exam, or one the caller did not sit). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the caller sat the exam but its analysis is not completed / partial, or not materialised yet (D14); meta.reason says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/me/exams/{exam_id}/ozet":{"get":{"tags":["intelligence-student-analytics"],"summary":"S9: the caller's own deneme özeti of one exam (Intelligence's 8.11, D44): the opening and the screens in their order, final Turkish texts and the data of every visual.","operationId":"get_my_exam_ozet","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyExamOzetResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: a query parameter is invalid (meta.parameter names it); VALIDATION_ERROR for a malformed path or header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here) or EXAM_NOT_FOUND (an unknown exam, or one the caller did not sit). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the caller sat the exam but its analysis is not completed / partial, or not materialised yet (D14); meta.reason says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/me/exams/{exam_id}/ozet/view":{"post":{"tags":["intelligence-student-analytics"],"summary":"S11: record that the caller opened their deneme özeti of one exam, reached a screen of it, or finished it (D45); returns the progress as it now stands. The student alone: a parent token is 403 PARENT_SCOPE_FORBIDDEN.","operationId":"record_my_exam_ozet_view","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OzetViewEventWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyExamOzetViewResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: a query parameter is invalid (meta.parameter names it); VALIDATION_ERROR for a malformed path or header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here) or EXAM_NOT_FOUND (an unknown exam, or one the caller did not sit). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam is not analysed and materialised yet (meta.reason as S9), or the sitting has no özet to open (meta.reason ``ozet_not_available``: none stored, or Intelligence's gated null).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/me/strateji":{"get":{"tags":["intelligence-student-analytics"],"summary":"S3: Sınav Stratejisi pooled over the caller's analysed sittings of one scope and one term (D33).","operationId":"get_my_strateji","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"description":"TYT | AYT | TARAMA (all is 422 INVALID_PARAMETER since 2026-10-25, D33; TARAMA pools the caller's analysed Taramas of one term, only when asked, D41); omitted = the scope of the latest analysed TYT / AYT sitting, of the requested ones when exam_ids is given, else TYT","title":"Scope"},"description":"TYT | AYT | TARAMA (all is 422 INVALID_PARAMETER since 2026-10-25, D33; TARAMA pools the caller's analysed Taramas of one term, only when asked, D41); omitted = the scope of the latest analysed TYT / AYT sitting, of the requested ones when exam_ids is given, else TYT"},{"name":"exam_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"Comma list of exam ids restricting the pool; default every analysed sitting of the scope in the term of its latest one (D33). An analysed one outside the scope or that term is 422 INVALID_PARAMETER (meta.parameter exam_ids), one not analysed yet is skipped","title":"Exam Ids"},"description":"Comma list of exam ids restricting the pool; default every analysed sitting of the scope in the term of its latest one (D33). An analysed one outside the scope or that term is 422 INVALID_PARAMETER (meta.parameter exam_ids), one not analysed yet is skipped"},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StratejiPooledResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: a query parameter is invalid (meta.parameter names it); VALIDATION_ERROR for a malformed path or header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND, or EXAM_NOT_FOUND for an exam_ids entry the caller did not sit. For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/me/konu-atlasi":{"get":{"tags":["intelligence-student-analytics"],"summary":"S4: Konu Atlası pooled over the caller's analysed sittings of one scope.","operationId":"get_my_konu_atlasi","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"description":"TYT | AYT | TARAMA (TARAMA pools the caller's analysed Taramas, only when asked, D41; its dersler mix TYT and AYT under S0's one set of ders codes, edebiyat included); omitted = the scope of the latest analysed TYT / AYT sitting, else TYT","title":"Scope"},"description":"TYT | AYT | TARAMA (TARAMA pools the caller's analysed Taramas, only when asked, D41; its dersler mix TYT and AYT under S0's one set of ders codes, edebiyat included); omitted = the scope of the latest analysed TYT / AYT sitting, else TYT"},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KonuAtlasiPooledResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: a query parameter is invalid (meta.parameter names it); VALIDATION_ERROR for a malformed path or header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here) or EXAM_NOT_FOUND (an unknown exam, or one the caller did not sit). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/me/rank-estimate":{"get":{"tags":["intelligence-student-analytics"],"summary":"S5: Ayna, the rank-estimate preview over the institution's population of the scope (D15).","operationId":"get_my_rank_estimate","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"description":"TYT | AYT; omitted = TYT","title":"Scope"},"description":"TYT | AYT; omitted = TYT"},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RankEstimateResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: a query parameter is invalid (meta.parameter names it); VALIDATION_ERROR for a malformed path or header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/me/exams/{exam_id}/exam-analysis":{"get":{"tags":["intelligence-student-analytics"],"summary":"S6: the exam-level analysis of an exam the caller sat (question rates, distribution, labels); no per-student data.","operationId":"get_my_exam_level_analysis","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"An ETag of a previous response; the current one answers 304.","title":"If-None-Match"},"description":"An ETag of a previous response; the current one answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamLevelAnalysisResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: a query parameter is invalid (meta.parameter names it); VALIDATION_ERROR for a malformed path or header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here) or EXAM_NOT_FOUND (an unknown exam, or one the caller did not sit). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the caller sat the exam but its analysis is not completed / partial, or not materialised yet (D14); meta.reason says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/me/exams/{exam_id}/questions/{question_id}/image":{"get":{"tags":["intelligence-student-analytics"],"summary":"S7: the question image of an exam the caller sat (302 to a signed URL, or 404 IMAGE_NOT_FOUND).","operationId":"get_my_question_image","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","maxLength":128,"description":"The backend question id (``<exam_id>:<booklet>:<number>``)","title":"Question Id"},"description":"The backend question id (``<exam_id>:<booklet>:<number>``)"},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."}],"responses":{"302":{"description":"Redirect to a short-lived signed URL of the question image (valid at least an hour)."},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED (INTELLIGENCE__ANALYTICS_ENABLED is off), INTELLIGENCE_DISABLED (the kill switch) or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND, EXAM_NOT_FOUND (not sat) or IMAGE_NOT_FOUND (the question has no image, D11). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the caller sat the exam but its analysis is not completed / partial, or not materialised yet (D14); meta.reason says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/me/exams/{exam_id}/karne.pdf":{"get":{"tags":["Karne"],"summary":"The caller's own karne of one exam as a PDF (the student panel's S1 / S2 / S8 bodies, printed with a design).","operationId":"get_my_karne","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"design","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"A karne design (``karne_export/designs/<name>``); omitted = the default, ``klasik``.","title":"Design"},"description":"A karne design (``karne_export/designs/<name>``); omitted = the default, ``klasik``."},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"The ETag of a karne already held: 304 when it is still current.","title":"If-None-Match"},"description":"The ETag of a karne already held: 304 when it is still current."}],"responses":{"200":{"description":"The karne (``Content-Disposition: attachment``, an ``ETag``).","content":{"application/pdf":{}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: an unknown design (meta.parameter = design, meta.allowed lists the designs).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED, INTELLIGENCE_DISABLED or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND or EXAM_NOT_FOUND (an unknown exam, or one the student did not sit). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam's analysis is not completed / partial, or not materialised yet; meta.reason says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: the caller rendered INTELLIGENCE__THROTTLE_KARNE_RENDERS_PER_MINUTE karnes this minute (Retry-After); a 304 or a stored PDF does not count.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/students/{student_id}/exams/{exam_id}/karne.pdf":{"get":{"tags":["Karne"],"summary":"One student's karne of one exam as a PDF: the one the student downloads from their own panel.","operationId":"get_student_karne","security":[{"HTTPBearer":[]}],"parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Id"}},{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"design","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"A karne design (``karne_export/designs/<name>``); omitted = the default, ``klasik``.","title":"Design"},"description":"A karne design (``karne_export/designs/<name>``); omitted = the default, ``klasik``."},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"The ETag of a karne already held: 304 when it is still current.","title":"If-None-Match"},"description":"The ETag of a karne already held: 304 when it is still current."}],"responses":{"200":{"description":"The karne (``Content-Disposition: attachment``, an ``ETag``).","content":{"application/pdf":{}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_PARAMETER: an unknown design (meta.parameter = design, meta.allowed lists the designs).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED, INTELLIGENCE_DISABLED or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."},"404":{"description":"STUDENT_NOT_FOUND (unknown, no active roster row, or outside the caller's sections and campuses) or EXAM_NOT_FOUND.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"ANALYSIS_NOT_AVAILABLE: the exam's analysis is not completed / partial, or not materialised yet; meta.reason says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: the caller rendered INTELLIGENCE__THROTTLE_KARNE_RENDERS_PER_MINUTE karnes this minute (Retry-After); a 304 or a stored PDF does not count.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/karne-exports":{"post":{"tags":["Karne"],"summary":"Ask for every karne of the exam in one PDF: the caller's whole scope, or one campus or section of it; made in the background (GET the export for its progress and download link).","operationId":"create_karne_export","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KarneExportCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_KarneExportRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"KARNE_EXPORT_EMPTY (no student of the exam in the caller's scope and the filters), KARNE_EXPORT_TOO_LARGE (meta.total, meta.max: narrow it to a campus or section), INVALID_PARAMETER (an unknown design, meta.allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"ANALYTICS_DISABLED, INTELLIGENCE_DISABLED or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"200":{"description":"The same export (exam, filters, design) is still queued or running: that export.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_KarneExportRead_"}}}},"404":{"description":"INSTITUTION_NOT_FOUND or EXAM_NOT_FOUND.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"KARNE_EXPORT_BUSY: the caller already holds INTELLIGENCE__KARNE_EXPORT_MAX_ACTIVE_PER_USER queued or running exports (meta.active); or the panel's own ANALYSIS_NOT_AVAILABLE for the exam (meta.reason), which would refuse every karne.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"tags":["Karne"],"summary":"The caller's bulk karne exports of the exam (an admin's: every staff member's), newest first, at most 20; no download link here.","operationId":"list_karne_exports","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_KarneExportRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/karne-exports/{export_id}":{"get":{"tags":["Karne"],"summary":"One bulk karne export: its state and progress, the students skipped and why, and once done a short signed download_url.","operationId":"get_karne_export","security":[{"HTTPBearer":[]}],"parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Export Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_KarneExportRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND or KARNE_EXPORT_NOT_FOUND (unknown, or another staff member's export: an admin reads every export of the institution).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/me/profile":{"get":{"tags":["intelligence-served-reads"],"summary":"The caller's cumulative profile (contract 8.7) of a term and scope (TYT, AYT or, when asked, TARAMA): per ders level, position ranges and practice targets, the focus list, the locks, the served advice. Intelligence's body without its student id; the caller's roster row as student. A parent account (?student_ref=) gets the child's body as the child does. A weak ETag (meta.etag and the header) over Intelligence's tag and the caller's row: If-None-Match answers 304 when neither changed (2026-10-26).","operationId":"get_my_student_profile","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"description":"TYT, AYT or TARAMA (any case); omitted: Intelligence's default, the scope of the caller's latest sitting. TARAMA (D40) is the same body pooled over the caller's analysed Taramas; with term omitted it reads the term of their newest analysed Tarama. Without one it is the empty profile (the gate profile_not_built), as on TYT and AYT.","title":"Scope"},"description":"TYT, AYT or TARAMA (any case); omitted: Intelligence's default, the scope of the caller's latest sitting. TARAMA (D40) is the same body pooled over the caller's analysed Taramas; with term omitted it reads the term of their newest analysed Tarama. Without one it is the empty profile (the gate profile_not_built), as on TYT and AYT."},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows","title":"Term"},"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"The ETag of a previous response; an unchanged profile answers 304.","title":"If-None-Match"},"description":"The ETag of a previous response; an unchanged profile answers 304."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentProfileResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_TERM (term is not YYYY-YYYY) or INVALID_PARAMETER (scope is not TYT / AYT / TARAMA; meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_UNAVAILABLE: Intelligence did not answer, or (meta.reason = route_missing) the gateway does not publish its route yet; INTELLIGENCE_DISABLED (the kill switch); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here); EXAM_NOT_FOUND (an unknown exam, or one the caller did not sit); ANALYSIS_NOT_AVAILABLE (the exam's analysis is not completed / partial, meta.status, or Intelligence has no scoring of it); PROFILE_NOT_FOUND (Intelligence knows no submitted sitting of the caller yet). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: If-None-Match holds the current ETag (ETag header only, no body)."},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/me/exams/{exam_id}/expectation":{"get":{"tags":["intelligence-served-reads"],"summary":"The caller's expectation in an exam they sat (contract 8.9): per ders the range before the sitting and the verdict after it (withheld under expectation_calibration until the school is calibrated), the personal potential, the exam-wide potential net, the served advice. A parent account (?student_ref=) gets the child's body as the child does.","operationId":"get_my_exam_expectation","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentExpectationResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_UNAVAILABLE: Intelligence did not answer, or (meta.reason = route_missing) the gateway does not publish its route yet; INTELLIGENCE_DISABLED (the kill switch); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND (no student membership with an active roster row here); EXAM_NOT_FOUND (an unknown exam, or one the caller did not sit); ANALYSIS_NOT_AVAILABLE (the exam's analysis is not completed / partial, meta.status, or Intelligence has no scoring of it); PROFILE_NOT_FOUND (Intelligence knows no submitted sitting of the caller yet). For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/students/{student_id}/profile":{"get":{"tags":["intelligence-served-reads"],"summary":"A student's cumulative profile (contract 8.7) for staff, inside the caller's scope; student_id is the identity id of the student page. The roster row of the term (else of the newest term) decides the visibility.","operationId":"get_institution_student_profile","security":[{"HTTPBearer":[]}],"parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Student Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"description":"TYT or AYT (any case); omitted: Intelligence's default, the scope of the student's latest sitting.","title":"Scope"},"description":"TYT or AYT (any case); omitted: Intelligence's default, the scope of the student's latest sitting."},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows","title":"Term"},"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentProfileResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"INVALID_TERM (term is not YYYY-YYYY) or INVALID_PARAMETER (scope is not TYT / AYT; meta.parameter names it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_UNAVAILABLE: Intelligence did not answer, or (meta.reason = route_missing) the gateway does not publish its route yet; INTELLIGENCE_DISABLED (the kill switch); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also STUDENT_NOT_FOUND (an unknown identity, a term without a roster row, a student outside a teacher's sections / a campus manager's campuses: one identical body) and PROFILE_NOT_FOUND (Intelligence knows no submitted sitting of the student).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/person-fit":{"get":{"tags":["intelligence-served-reads"],"summary":"The exam's person-fit flags (contract 8.9, staff only): answer patterns that do not fit a student's ability, a reason for a person to look, never an accusation. Rows of the students the caller may see, each with its roster row; the exam's counts as served.","operationId":"get_exam_person_fit","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamPersonFitResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_UNAVAILABLE: Intelligence did not answer, or (meta.reason = route_missing) the gateway does not publish its route yet; INTELLIGENCE_DISABLED (the kill switch); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller. Also EXAM_NOT_FOUND and ANALYSIS_NOT_AVAILABLE (the analysis is not completed / partial, meta.status).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/documents/{kind}":{"put":{"tags":["intelligence-intake"],"summary":"Upload or replace one of the exam's documents (karne PDF, booklet PDF, key_table XLSX / CSV / key PDF); the file is checked on the spot (422 DOCUMENT_CONTENT_INVALID with meta.message), the conversion starts once the karne and the booklet are in; meta.inspection says what the check saw.","operationId":"put_exam_document","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_put_exam_document"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ExamIntakeRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"DOCUMENT_KIND_INVALID (karne | booklet | key_table), DOCUMENT_EMPTY, DOCUMENT_TYPE_INVALID (meta.expected: pdf for karne / booklet, xlsx | csv | pdf for key_table, read from the bytes), DOCUMENT_CONTENT_INVALID (the file opened but is not the document: meta.code is the intake code, meta.message / meta.hint say in Turkish what is wrong — no text layer, unknown karne format, no question pages, no header row — with the counts the check saw).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTAKE_DISABLED (INTELLIGENCE__INTAKE_ENABLED is off), INTELLIGENCE_DISABLED, or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"EXAM_NOT_INTAKE (a partner's delivery or an exam of the removed form), INTAKE_BUSY (meta.reason: converting | analyzing | delivery_queued | delivery_retrying), EXAM_RUN_STARTED, INTAKE_NOT_READY (meta.missing).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"The upload exceeds its size cap (PAYLOAD_TOO_LARGE).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many calls of this kind for the institution / user in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["intelligence-intake"],"summary":"Remove one of the exam's documents (only before the first run; after it a document is replaced).","operationId":"delete_exam_document","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ExamIntakeRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"DOCUMENT_KIND_INVALID (karne | booklet | key_table), DOCUMENT_EMPTY, DOCUMENT_TYPE_INVALID (meta.expected: pdf for karne / booklet, xlsx | csv | pdf for key_table, read from the bytes), DOCUMENT_CONTENT_INVALID (the file opened but is not the document: meta.code is the intake code, meta.message / meta.hint say in Turkish what is wrong — no text layer, unknown karne format, no question pages, no header row — with the counts the check saw).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTAKE_DISABLED (INTELLIGENCE__INTAKE_ENABLED is off), INTELLIGENCE_DISABLED, or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND, EXAM_NOT_FOUND or DOCUMENT_NOT_FOUND.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"EXAM_NOT_INTAKE (a partner's delivery or an exam of the removed form), INTAKE_BUSY (meta.reason: converting | analyzing | delivery_queued | delivery_retrying), EXAM_RUN_STARTED, INTAKE_NOT_READY (meta.missing).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/documents/{kind}/download":{"get":{"tags":["intelligence-intake"],"summary":"A short signed URL to download one of the exam's documents (admin).","operationId":"download_exam_document","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_DocumentDownloadRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"DOCUMENT_KIND_INVALID (karne | booklet | key_table), DOCUMENT_EMPTY, DOCUMENT_TYPE_INVALID (meta.expected: pdf for karne / booklet, xlsx | csv | pdf for key_table, read from the bytes), DOCUMENT_CONTENT_INVALID (the file opened but is not the document: meta.code is the intake code, meta.message / meta.hint say in Turkish what is wrong — no text layer, unknown karne format, no question pages, no header row — with the counts the check saw).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND, EXAM_NOT_FOUND or DOCUMENT_NOT_FOUND.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"EXAM_NOT_INTAKE (a partner's delivery or an exam of the removed form), INTAKE_BUSY (meta.reason: converting | analyzing | delivery_queued | delivery_retrying), EXAM_RUN_STARTED, INTAKE_NOT_READY (meta.missing).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/intake":{"get":{"tags":["intelligence-intake"],"summary":"The exam's documents, what is missing, the conversion state, the last run's report, the delivery rows and the exam's pipeline state.","operationId":"get_exam_intake","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ExamIntakeRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"EXAM_NOT_INTAKE (a partner's delivery or an exam of the removed form), INTAKE_BUSY (meta.reason: converting | analyzing | delivery_queued | delivery_retrying), EXAM_RUN_STARTED, INTAKE_NOT_READY (meta.missing).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/intake/rerun":{"post":{"tags":["intelligence-intake"],"summary":"Convert the same documents again (after a refusal fixed elsewhere, e.g. the roster; the same bytes send nothing new).","operationId":"rerun_exam_intake","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ExamIntakeRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTAKE_DISABLED (INTELLIGENCE__INTAKE_ENABLED is off), INTELLIGENCE_DISABLED, or database contention (Retry-After).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"EXAM_NOT_INTAKE (a partner's delivery or an exam of the removed form), INTAKE_BUSY (meta.reason: converting | analyzing | delivery_queued | delivery_retrying), EXAM_RUN_STARTED, INTAKE_NOT_READY (meta.missing).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}":{"delete":{"tags":["intelligence-intake"],"summary":"Delete an exam that never ran (draft, no delivery, not converting) with its documents; an exam that ran is never deleted.","operationId":"delete_intake_exam","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionExamRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"EXAM_NOT_INTAKE (a partner's delivery or an exam of the removed form), INTAKE_BUSY (meta.reason: converting | analyzing | delivery_queued | delivery_retrying), EXAM_RUN_STARTED, INTAKE_NOT_READY (meta.missing).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"tags":["intelligence-exams"],"summary":"One exam with its definition, upload and analysis state.","operationId":"get_exam","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionExamRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/ops/summary":{"get":{"tags":["intelligence-ops"],"summary":"Intelligence across every school: the queue by worker role, the last day's failures, undelivered events, today's model spend and the labeling jobs waiting for the quota, the budget or a person.","operationId":"get_ops_summary","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsSummaryResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/intelligence/admin/ops/jobs/{job_id}/approve":{"post":{"tags":["intelligence-ops"],"summary":"Let a labeling job that waits for an approval start now, with every job of its group. It spends the estimate shown in the summary.","operationId":"approve_ops_job","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsJobDecisionResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"JOB_NOT_FOUND.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"JOB_NOT_HELD: the job does not wait for an approval (already decided, or never held).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/ops/jobs/{job_id}/reject":{"post":{"tags":["intelligence-ops"],"summary":"End a labeling job that waits for an approval, with every job of its group, without a model call. Its questions stay unlabelled.","operationId":"reject_ops_job","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpsJobDecisionResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"JOB_NOT_FOUND.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"JOB_NOT_HELD: the job does not wait for an approval (already decided, or never held).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/labeling-job":{"get":{"tags":["intelligence-ops"],"summary":"Why the exam's labels have not come (admin): the labeling job's state, its reason, what is pending and when it tries next. All null when the definition needed no job.","operationId":"get_exam_labeling_job","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamLabelingJobResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/institutions/{institution_id}/site":{"get":{"tags":["intelligence-sites"],"summary":"The institution's site as stored: its look, its hosts, the public body they make.","operationId":"admin_get_institution_site","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionSiteRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND: no institution with this id. SITE_NOT_FOUND: the institution has no site yet (PUT .../site first).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["intelligence-sites"],"summary":"Write the institution's whole site and its hosts (what is left out is cleared; the logo stays). New hosts reach the CORS allowlist within a minute.","operationId":"admin_put_institution_site","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionSitePut"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionSiteRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"201":{"description":"The institution had no site: created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionSiteRead_"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND: no institution with this id. SITE_NOT_FOUND: the institution has no site yet (PUT .../site first).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"SITE_HOST_TAKEN (meta.host): the host is another institution's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["intelligence-sites"],"summary":"Remove the institution's site, its hosts and its logo (the panels draw Alfabemy's brand for it again).","operationId":"admin_delete_institution_site","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionSiteRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND: no institution with this id. SITE_NOT_FOUND: the institution has no site yet (PUT .../site first).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/institutions/{institution_id}/site/logo":{"put":{"tags":["intelligence-sites"],"summary":"Upload the institution's logo (PNG, JPEG or WebP): stored as a square PNG of at most 1024 px plus a 128 px tab icon; meta: their sizes.","operationId":"admin_put_institution_site_logo","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_admin_put_institution_site_logo"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionSiteRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND: no institution with this id. SITE_NOT_FOUND: the institution has no site yet (PUT .../site first).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"SITE_LOGO_TOO_LARGE: the upload is over meta.max_bytes (2 MB).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["intelligence-sites"],"summary":"Remove the institution's logo (the panels draw Alfabemy's mark in its place).","operationId":"admin_delete_institution_site_logo","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionSiteRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"INSTITUTION_NOT_FOUND: no institution with this id. SITE_NOT_FOUND: the institution has no site yet (PUT .../site first).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/institution-requests":{"get":{"tags":["intelligence-directory"],"summary":"The requests and demo requests sent from the landing page, newest first, with their source (personal data: the name and the contact).","operationId":"admin_list_institution_requests","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionAccessRequestListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/institutions":{"post":{"tags":["intelligence-admin"],"summary":"Create an institution (the Intelligence tenant on our side).","operationId":"admin_create_institution","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflicts with the resource's current state (CONSTRAINT_VIOLATION / a module code).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"tags":["intelligence-admin"],"summary":"List institutions (paged; inactive ones on request).","operationId":"admin_list_institutions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Q"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/institutions/onboard":{"post":{"tags":["intelligence-admin"],"summary":"A school in one request: institution + login code, the term's roster, and a one-time password for every student (shown once; ?format=xlsx hands them as a workbook).","operationId":"admin_onboard_institution","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format","in":"query","required":false,"schema":{"enum":["json","xlsx"],"type":"string","description":"xlsx: the accounts workbook (every active student of the term; passwords only for the accounts this call created) as an attachment instead of the envelope; errors and dry runs stay JSON","default":"json","title":"Format"},"description":"xlsx: the accounts workbook (every active student of the term; passwords only for the accounts this call created) as an attachment instead of the envelope; errors and dry runs stay JSON"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_admin_onboard_institution"}}}},"responses":{"201":{"description":"The envelope; with ?format=xlsx the accounts workbook as an attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionOnboardReport_"}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflicts with the resource's current state (CONSTRAINT_VIOLATION / a module code).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"The upload exceeds its size cap (PAYLOAD_TOO_LARGE).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many calls of this kind for the institution / user in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/institutions/{institution_id}":{"get":{"tags":["intelligence-admin"],"summary":"One institution with its membership counts (meta.memberships).","operationId":"admin_get_institution","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller (ITEM_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"tags":["intelligence-admin"],"summary":"Rename or (de)activate an institution. The slug never changes.","operationId":"admin_update_institution","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller (ITEM_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflicts with the resource's current state (CONSTRAINT_VIOLATION / a module code).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/institutions/{institution_id}/memberships":{"get":{"tags":["intelligence-admin"],"summary":"Memberships of an institution (platform view; revoked rows on request).","operationId":"admin_list_memberships","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"include_revoked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Revoked"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MembershipRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller (ITEM_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/institutions/{institution_id}/admins":{"post":{"tags":["intelligence-admin"],"summary":"Grant a user the institution admin role (idempotent: 200 when already granted).","operationId":"admin_grant_institution_admin","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionAdminGrant"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MembershipRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"200":{"description":"Already granted: the existing live row, unchanged (idempotent).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MembershipRead_"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller (ITEM_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/admin/institutions/{institution_id}/memberships/{membership_id}":{"delete":{"tags":["intelligence-admin"],"summary":"Revoke any membership of an institution (platform view).","operationId":"admin_revoke_membership","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MembershipRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks INTELLIGENCE_INSTITUTION_MANAGE.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller (ITEM_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/mine":{"get":{"tags":["intelligence-institution"],"summary":"The caller's live memberships on active institutions.","operationId":"my_institutions","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MyInstitutionRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/intelligence/institutions/{institution_id}":{"get":{"tags":["intelligence-institution"],"summary":"The institution as seen by one of its members (meta: the caller's role and scope).","operationId":"get_institution","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/memberships":{"get":{"tags":["intelligence-institution"],"summary":"Memberships of the institution (admin only; display names and masked phones).","operationId":"list_memberships","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MembershipRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/memberships/teachers":{"post":{"tags":["intelligence-institution"],"summary":"Add a teacher by their Alfabemy phone number, scoped to section codes.","operationId":"add_teacher_membership","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeacherMembershipCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MembershipRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"MEMBERSHIP_EXISTS: the user already holds a live row of this role here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/memberships/campus-managers":{"post":{"tags":["intelligence-institution"],"summary":"Add a campus manager (the panel's 'müdür') by their Alfabemy phone number, scoped to campus codes.","operationId":"add_campus_manager_membership","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampusManagerMembershipCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MembershipRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"MEMBERSHIP_EXISTS: the user already holds a live row of this role here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/memberships/{membership_id}":{"patch":{"tags":["intelligence-institution"],"summary":"Replace a teacher row's section codes or a campus manager row's campus codes.","operationId":"update_membership_scope","security":[{"HTTPBearer":[]}],"parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipScopePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MembershipRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["intelligence-institution"],"summary":"Revoke a teacher or campus manager membership (admin rows are removed by the platform).","operationId":"revoke_membership","security":[{"HTTPBearer":[]}],"parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_MembershipRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/me":{"get":{"tags":["intelligence-student"],"summary":"The caller's own roster identity on the institution (students only).","operationId":"get_me","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentMeRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The caller has no student membership with an active roster row on this institution, or the exam is not one they sat. For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/me/exams":{"get":{"tags":["intelligence-student"],"summary":"The exams the caller sat (their results were uploaded), newest first.","operationId":"list_my_exams","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"student_ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED).","title":"Student Ref"},"description":"Parent accounts only: the child's ref from GET /parent/me. A student never sends it (400 STUDENT_REF_NOT_ALLOWED); a parent always does (400 STUDENT_REF_REQUIRED)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentExamListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"STUDENT_REF_REQUIRED: a parent account called without ?student_ref (the child's ref from GET /parent/me); STUDENT_REF_NOT_ALLOWED: an account that is not a parent's sent student_ref.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"PASSWORD_CHANGE_REQUIRED: the one-time password must be replaced first (POST /auth/institution/password).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The caller has no student membership with an active roster row on this institution, or the exam is not one they sat. For a parent account: the child is not theirs, was taken away by an operator, has no active roster row here, or is not a student of this institution (the same INSTITUTION_NOT_FOUND).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/roster/upload":{"post":{"tags":["intelligence-roster"],"summary":"Replace one term's student list from a CSV/XLSX (dry_run only reports); new identities get an account with a one-time password, existing accounts are untouched; ?format=xlsx hands the school its accounts workbook.","operationId":"upload_roster","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","xlsx"],"type":"string","description":"xlsx: the accounts workbook (every active student of the term; passwords only for the accounts this call created) as an attachment instead of the envelope; errors and dry runs stay JSON","default":"json","title":"Format"},"description":"xlsx: the accounts workbook (every active student of the term; passwords only for the accounts this call created) as an attachment instead of the envelope; errors and dry runs stay JSON"},{"name":"term","in":"query","required":true,"schema":{"type":"string","maxLength":32,"description":"School year, e.g. 2026-2027","title":"Term"},"description":"School year, e.g. 2026-2027"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_roster"}}}},"responses":{"200":{"description":"The envelope; with ?format=xlsx the accounts workbook as an attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RosterUploadReport_"}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"The upload exceeds its size cap (PAYLOAD_TOO_LARGE).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many calls of this kind for the institution / user in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/roster/terms":{"get":{"tags":["intelligence-roster"],"summary":"Terms that have a roster, with active counts.","operationId":"list_roster_terms","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RosterTermRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/roster/uploads":{"get":{"tags":["intelligence-roster"],"summary":"Roster upload history, newest first, paged (admin only).","operationId":"list_roster_uploads","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows","title":"Term"},"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RosterUploadListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/roster":{"get":{"tags":["intelligence-roster"],"summary":"The term's student list (a teacher sees only their sections, a campus manager their campuses).","operationId":"list_roster","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}},{"name":"section_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Section Code"}},{"name":"campus_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Campus Code"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Name or student number, case-insensitive substring","title":"Q"},"description":"Name or student number, case-insensitive substring"},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","description":"Admin only; ignored for teachers and campus managers","default":false,"title":"Include Inactive"},"description":"Admin only; ignored for teachers and campus managers"},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows","title":"Term"},"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RosterListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/roster/accounts/provision":{"post":{"tags":["intelligence-roster"],"summary":"Accounts for every student of the term still without one (the remainder of a large upload, or a roster that predates accounts). Passwords shown once; ?format=xlsx hands them as a workbook.","operationId":"provision_missing_accounts","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","xlsx"],"type":"string","description":"xlsx: the accounts workbook (every active student of the term; passwords only for the accounts this call created) as an attachment instead of the envelope; errors and dry runs stay JSON","default":"json","title":"Format"},"description":"xlsx: the accounts workbook (every active student of the term; passwords only for the accounts this call created) as an attachment instead of the envelope; errors and dry runs stay JSON"},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows","title":"Term"},"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows"}],"responses":{"200":{"description":"The envelope; with ?format=xlsx the accounts workbook as an attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RosterAccountsReport_"}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflicts with the resource's current state (CONSTRAINT_VIOLATION / a module code).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many calls of this kind for the institution / user in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"500":{"description":"ACCOUNT_PROVISIONING_FAILED / LOGIN_CODE_EXHAUSTED: nothing of this call was kept.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/roster/accounts/reissue":{"post":{"tags":["intelligence-roster"],"summary":"A new one-time password for every student of the term whose account was never used (first login still pending, no phone); accounts the students own are untouched, their old passwords and sessions end. Passwords shown once; ?format=xlsx hands them as a workbook.","operationId":"reissue_unused_credentials","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","xlsx"],"type":"string","description":"xlsx: the accounts workbook (every active student of the term; passwords only for the accounts this call created) as an attachment instead of the envelope; errors and dry runs stay JSON","default":"json","title":"Format"},"description":"xlsx: the accounts workbook (every active student of the term; passwords only for the accounts this call created) as an attachment instead of the envelope; errors and dry runs stay JSON"},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows","title":"Term"},"description":"School year, e.g. 2026-2027; omitted = the newest term with active rows"}],"responses":{"200":{"description":"The envelope; with ?format=xlsx the accounts workbook as an attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RosterAccountsReport_"}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many calls of this kind for the institution / user in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/roster/{entry_id}/credentials/reset":{"post":{"tags":["intelligence-roster"],"summary":"A new one-time password for a student who lost theirs; refused once the student has attached a phone (they recover through it).","operationId":"reset_student_credentials","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_IssuedCredentialRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"CREDENTIAL_RESET_NOT_ALLOWED (the student attached a phone and recovers through it) or STUDENT_HAS_NO_ACCOUNT.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many calls of this kind for the institution / user in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/roster/{entry_id}":{"get":{"tags":["intelligence-roster"],"summary":"One roster row (a teacher outside the row's section gets 404).","operationId":"get_roster_entry","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_RosterEntryRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/roster/{entry_id}/results":{"get":{"tags":["intelligence-results"],"summary":"One student's results across exams, oldest first (every exam of the identity; the caller must see the roster row).","operationId":"get_student_results","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_StudentExamResultRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams":{"get":{"tags":["intelligence-exams"],"summary":"The institution's exams, newest first. An exam a partner's later copy replaced (replaced_by) is left out unless include_replaced=true.","operationId":"list_exams","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Status"}},{"name":"include_replaced","in":"query","required":false,"schema":{"type":"boolean","description":"Also list the exams a partner's later copy of the deneme replaced (their replaced_by names the copy); the operations view","default":false,"title":"Include Replaced"},"description":"Also list the exams a partner's later copy of the deneme replaced (their replaced_by names the copy); the operations view"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionExamListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["intelligence-exams"],"summary":"Create an exam from its metadata (name, term, TYT / AYT, date, grade); its booklets, key and questions come from its documents (PUT .../documents/{kind}), never from a form.","operationId":"create_exam","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamCreateForm"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionExamRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTAKE_DISABLED (INTELLIGENCE__INTAKE_ENABLED is off), INTELLIGENCE_DISABLED, or database contention.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"EXAM_NAME_TAKEN (any exam of the term under this name), INTAKE_NUMBERING_REQUIRED (the institution is not numbered by the school number).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/labels/summary":{"get":{"tags":["intelligence-analysis"],"summary":"The labels summary of up to 100 exams in one call (?exam_ids=, order kept): counters, the records not labeled or with an error, taxonomy status counts. Always 200 for a valid request; an exam that cannot be read carries the single read's error in its item.","operationId":"get_exam_labels_summary_batch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"exam_ids","in":"query","required":true,"schema":{"type":"string","maxLength":4000,"description":"Comma-separated exam ids, 1 to 100; duplicates are dropped, the order is kept","title":"Exam Ids"},"description":"Comma-separated exam ids, 1 to 100; duplicates are dropped, the order is kept"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamLabelsSummaryListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/refresh-status":{"post":{"tags":["intelligence-exams"],"summary":"Poll the analysis job now instead of waiting for the background runner (admin: it spends the school's Intelligence budget).","operationId":"refresh_exam_status","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionExamRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many calls of this kind for the institution / user in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/release":{"post":{"tags":["intelligence-exams"],"summary":"Open the exam to its students now, or at release_at (hidden until then). Admin: the release gate.","description":"An institution in ``manual`` release mode starts every new exam held: its students and their parents do not see it until a manager opens it here. A body ``{}`` (or a ``release_at`` already past) opens it now; a ``release_at`` ahead keeps it hidden until then (also an exam that was visible). Staff always see it. Intelligence keeps a held exam out of every computation across exams and brings it in when it opens (``meta.intelligence``: ``synced``, ``in_sync``, ``unknown`` before its definition reached Intelligence, ``failed``: the sweep tries again).","operationId":"release_exam_to_students","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ExamReleaseRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionExamRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/hold":{"post":{"tags":["intelligence-exams"],"summary":"Hide the exam from its students again until a release. Admin: the release gate.","operationId":"hold_exam_from_students","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionExamRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/results":{"get":{"tags":["intelligence-results"],"summary":"The exam's results table: official D/Y/B/net, our 120-rule count, overall/campus/section ranks (teacher: their sections as they sat it).","operationId":"get_exam_results","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"campus_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Campus Code"}},{"name":"section_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Section Code"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Name or school number","title":"Q"},"description":"Name or school number"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","maxLength":16,"description":"rank | net_desc | net_asc | student_no | name | section","default":"rank","title":"Sort"},"description":"rank | net_desc | net_asc | student_no | name | section"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamResultListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/results/summary":{"get":{"tags":["intelligence-results"],"summary":"Group sizes and mean nets by campus / section / grade / field; a group under the minimum size shows its size only.","operationId":"get_exam_results_summary","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","maxLength":16,"description":"campus | section | grade | field","default":"section","title":"Group By"},"description":"campus | section | grade | field"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ResultSummaryRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/analysis":{"get":{"tags":["intelligence-analysis"],"summary":"The exam-level analysis payload, verbatim from Intelligence (cached per run).","operationId":"get_exam_analysis","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamAnalysisResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/students/{entry_id}/analysis":{"get":{"tags":["intelligence-analysis"],"summary":"One student's analysis (or one slice of it) with the roster identity re-attached.","operationId":"get_student_analysis","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"part","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"description":"denemeler | strateji | konu-atlasi; omitted = the full payload","title":"Part"},"description":"denemeler | strateji | konu-atlasi; omitted = the full payload"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentAnalysisResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/questions/labels":{"get":{"tags":["intelligence-analysis"],"summary":"The question labels of the exam; honours If-None-Match (304 + ETag).","operationId":"get_exam_labels","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamLabelsResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"EXAM_NOT_DEFINED: a draft has no questions at Intelligence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: the panel's If-None-Match is current (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/exams/{exam_id}/import-report":{"get":{"tags":["intelligence-analysis"],"summary":"An Intelligence import report (definition / results / analyze) stored on this exam (admin: an upload diagnostic naming students of every section).","operationId":"get_import_report","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exam_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Exam Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","maxLength":16,"description":"definition | results | analyze","default":"analyze","title":"Kind"},"description":"definition | results | analyze"},{"name":"import_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"One of the ids stored on the exam; omitted = the latest of that kind","title":"Import Id"},"description":"One of the ids stored on the exam; omitted = the latest of that kind"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportReportResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/labeling/taxonomy":{"get":{"tags":["intelligence-labeling"],"summary":"The shared kova / question-type taxonomy for every ders (cached; honours If-None-Match).","operationId":"get_taxonomy","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"fields","in":"query","required":false,"schema":{"type":"string","pattern":"^(full|ids)$","description":"full (about 3 MB) or ids (ids and names only)","default":"full","title":"Fields"},"description":"full (about 3 MB) or ids (ids and names only)"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyBundleResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: the panel's If-None-Match is current (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/labeling/taxonomy/{subject}":{"get":{"tags":["intelligence-labeling"],"summary":"The taxonomy of one ders (turkce, matematik, geometri...), the Konu Atlası screen's display text.","operationId":"get_taxonomy_subject","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subject","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9_-]*$","title":"Subject"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"fields","in":"query","required":false,"schema":{"type":"string","pattern":"^(full|ids)$","default":"full","title":"Fields"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyBundleResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: the panel's If-None-Match is current (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/labeling/skills":{"get":{"tags":["intelligence-labeling"],"summary":"The shared skills vocabulary (cached; honours If-None-Match).","operationId":"get_skills","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillsResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified: the panel's If-None-Match is current (ETag header only, no body)."}}}},"/api/intelligence/institutions/{institution_id}/intervention-groups":{"post":{"tags":["intelligence-groups"],"summary":"Save a reviewed Müdahale Grubu: members are roster entry ids, the series comes from exam_id.","operationId":"create_intervention_group","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterventionGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InterventionGroupRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Our own checks before any call (GROUP_SCOPE_INVALID, GROUP_MEMBER_NOT_FOUND, GROUP_MEMBER_OUT_OF_SCOPE, GROUP_MEMBER_DUPLICATED, GROUP_TOO_MANY_MEMBERS, GROUP_EVIDENCE_PII, GROUP_EVIDENCE_TOO_LARGE, GROUP_EMPTY_PATCH), Intelligence's scope_campus_required as GROUP_SCOPE_CAMPUS_REQUIRED, or INTELLIGENCE_REJECTED with meta.import_report and meta.entry_ids (students_unknown / students_outside_scope / members_*).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"GROUP_EXAM_NOT_READY: the exam's results are not at Intelligence yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many calls of this kind for the institution / user in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"tags":["intelligence-groups"],"summary":"The institution's groups, newest first, without member rows (a teacher sees their sections' groups only); meta.returned / meta.truncated, no total.","operationId":"list_intervention_groups","security":[{"HTTPBearer":[]}],"parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(active|archived)$"},{"type":"null"}],"title":"Status"}},{"name":"scope_level","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(institution|campus|section)$"},{"type":"null"}],"title":"Scope Level"}},{"name":"campus_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"The roster campus code","title":"Campus Id"},"description":"The roster campus code"},{"name":"section_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"The roster section code, e.g. 12-A","title":"Section Id"},"description":"The roster section code, e.g. 12-A"},{"name":"exam_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Narrow to the series of this exam","title":"Exam Id"},"description":"Narrow to the series of this exam"},{"name":"target_curriculum_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Target Curriculum Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterventionGroupListResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/intelligence/institutions/{institution_id}/intervention-groups/{group_id}":{"get":{"tags":["intelligence-groups"],"summary":"One group with its members, roster identities re-attached.","operationId":"get_intervention_group","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InterventionGroupRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation failed: errors[].detail carries the module's code (schemas/return_envelope.IntelligenceErrorCode), meta what the caller can act on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"tags":["intelligence-groups"],"summary":"Rename, archive / unarchive, add or remove members (entry ids).","operationId":"patch_intervention_group","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}},{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterventionGroupPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InterventionGroupRead_"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Our own checks before any call (GROUP_SCOPE_INVALID, GROUP_MEMBER_NOT_FOUND, GROUP_MEMBER_OUT_OF_SCOPE, GROUP_MEMBER_DUPLICATED, GROUP_TOO_MANY_MEMBERS, GROUP_EVIDENCE_PII, GROUP_EVIDENCE_TOO_LARGE, GROUP_EMPTY_PATCH), Intelligence's scope_campus_required as GROUP_SCOPE_CAMPUS_REQUIRED, or INTELLIGENCE_REJECTED with meta.import_report and meta.entry_ids (students_unknown / students_outside_scope / members_*).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED (the kill switch) or Intelligence unavailable / rate limited / not ready (INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_TENANT_NOT_READY); Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The institution is unknown or inactive, the caller holds no fitting membership on it (one identical envelope, INSTITUTION_NOT_FOUND), or the resource is not there / not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many calls of this kind for the institution / user in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Intelligence credential, scope or contract problem (INTELLIGENCE_CREDENTIAL_ERROR, INTELLIGENCE_SCOPE_MISSING, INTELLIGENCE_KEY_MISSING, INTELLIGENCE_NOT_IMPLEMENTED); an onboarding task, never a user error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/exchange/{partner}/deliveries":{"post":{"tags":["partner-exchange"],"summary":"A delivery is complete in the inbound bucket: queue it (202). The same delivery_id again answers created=false; a failed one is queued again.","operationId":"receive_partner_delivery","parameters":[{"name":"partner","in":"path","required":true,"schema":{"type":"string","maxLength":32,"pattern":"^[a-z0-9][a-z0-9_-]{1,31}$","description":"The partner's name (its SCHOOL_LAUNCH__PARTNERS key)","title":"Partner"},"description":"The partner's name (its SCHOOL_LAUNCH__PARTNERS key)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryPingRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_DeliveryRead_"}}}},"401":{"description":"DELIVERY_ASSERTION_INVALID (signature, header or registered claims) or DELIVERY_ASSERTION_EXPIRED.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"DELIVERY_PARTNER_UNKNOWN: the partner is not configured for deliveries (or is disabled); DELIVERY_NOT_FOUND on the status read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"DELIVERY_CLAIMS_INVALID: the signature held but a claim is malformed (meta.reason names it). DELIVERY_IMAGES_MISSING (a definition ping of a partner under the image gate): more questions without an image link than its limit (meta: questions, missing, allowed, question_ids); nothing is recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many pings and status reads of this partner in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED / DELIVERIES_DISABLED (switches), DELIVERY_KEYS_UNAVAILABLE (the partner's keys cannot be read), DELIVERY_INSTITUTION_MISSING; Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"DELIVERY_URI_OUTSIDE_INBOUND: manifest_uri is not gs://<bucket>/<prefix>/exams/<exam_id>/<delivery_id>/manifest.json (meta.expected).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"DELIVERY_CONFLICT: this delivery_id was pinged before with another kind, exam or manifest.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/exchange/{partner}/deliveries/{delivery_id}":{"get":{"tags":["partner-exchange"],"summary":"The state of one delivery: received, processing, accepted, ready, rejected or failed (with the reason). Authorization: Bearer <assertion with purpose delivery.status>.","operationId":"read_partner_delivery","parameters":[{"name":"partner","in":"path","required":true,"schema":{"type":"string","maxLength":32,"pattern":"^[a-z0-9][a-z0-9_-]{1,31}$","description":"The partner's name (its SCHOOL_LAUNCH__PARTNERS key)","title":"Partner"},"description":"The partner's name (its SCHOOL_LAUNCH__PARTNERS key)"},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$","title":"Delivery Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":9000},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_DeliveryRead_"}}}},"401":{"description":"DELIVERY_ASSERTION_INVALID (signature, header or registered claims) or DELIVERY_ASSERTION_EXPIRED.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"DELIVERY_PARTNER_UNKNOWN: the partner is not configured for deliveries (or is disabled); DELIVERY_NOT_FOUND on the status read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"DELIVERY_CLAIMS_INVALID: the signature held but a claim is malformed (meta.reason names it). DELIVERY_IMAGES_MISSING (a definition ping of a partner under the image gate): more questions without an image link than its limit (meta: questions, missing, allowed, question_ids); nothing is recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"RATE_LIMITED: too many pings and status reads of this partner in the window; Retry-After says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"INTELLIGENCE_DISABLED / DELIVERIES_DISABLED (switches), DELIVERY_KEYS_UNAVAILABLE (the partner's keys cannot be read), DELIVERY_INSTITUTION_MISSING; Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/sites/by-host":{"get":{"tags":["intelligence-sites"],"summary":"The site a panel is served on, before sign-in (no token): the brand, the sign-in methods, the locked institution code. Cache-Control 5 minutes, ETag.","operationId":"site_by_host","parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":253,"description":"The panel's own host name (location.hostname); upper case and a trailing dot are accepted","title":"Host"},"description":"The panel's own host name (location.hostname); upper case and a trailing dot are accepted"},{"name":"If-None-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"If-None-Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_SiteRead_"}}}},"422":{"description":"SITE_HOST_INVALID (meta.host): not a host name (a scheme, a port, a path or a space in it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Database contention; Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"If-None-Match named the current ETag: no body, reuse the stored one."},"404":{"description":"SITE_NOT_FOUND: no active institution's site is served on this host (an inactive institution shows nothing of its brand).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/sites/{institution_id}/logo/{file_name}":{"get":{"tags":["intelligence-sites"],"summary":"An institution's logo: a square PNG of at most 1024 px.","operationId":"site_logo","parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"file_name","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"<the first 16 characters of the logo's sha256>.png, as logo_url gives it","title":"File Name"},"description":"<the first 16 characters of the logo's sha256>.png, as logo_url gives it"}],"responses":{"200":{"description":"The PNG; the URL carries its hash, so it never changes (Cache-Control a year, immutable).","content":{"image/png":{}}},"422":{"description":"SITE_HOST_INVALID (meta.host): not a host name (a scheme, a port, a path or a space in it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Database contention; Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"307":{"description":"The URL names an earlier logo: Location is the current one."},"404":{"description":"SITE_NOT_FOUND: no such institution, no logo, an inactive institution or a malformed file name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/sites/{institution_id}/favicon/{file_name}":{"get":{"tags":["intelligence-sites"],"summary":"An institution's tab icon: the logo as a square PNG of at most 128 px.","operationId":"site_favicon","parameters":[{"name":"institution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Institution Id"}},{"name":"file_name","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"<the first 16 characters of the logo's sha256>.png, as favicon_url gives it","title":"File Name"},"description":"<the first 16 characters of the logo's sha256>.png, as favicon_url gives it"}],"responses":{"200":{"description":"The PNG; the URL carries its hash, so it never changes (Cache-Control a year, immutable).","content":{"image/png":{}}},"422":{"description":"SITE_HOST_INVALID (meta.host): not a host name (a scheme, a port, a path or a space in it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Database contention; Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"307":{"description":"The URL names an earlier logo: Location is the current one."},"404":{"description":"SITE_NOT_FOUND: no such institution, no logo, an inactive institution or a malformed file name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/provinces":{"get":{"tags":["intelligence-directory"],"summary":"The 81 provinces in Turkish alphabetical order: the ids province_id takes (they are the catalogue's own ids, not plate codes).","operationId":"list_public_provinces","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_ProvinceRead_"}}}},"503":{"description":"Database contention; Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"PUBLIC_RATE_LIMITED (error_code RATE_LIMITED): too many calls from this address in the window; Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/public/institution-requests":{"post":{"tags":["intelligence-directory"],"summary":"The landing page's request (/talep: source request_form) or demo request (demo_request): stored once per contact and institution a day, the sales team told by e-mail.","operationId":"create_institution_request","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstitutionRequestCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionRequestReceipt_"}}}},"503":{"description":"Database contention; Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"200":{"description":"The same contact named the same institution in the last 24 hours: the earlier request (meta.duplicate), nothing stored, no second notification.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result_InstitutionRequestReceipt_"}}}},"422":{"description":"INSTITUTION_REQUEST_CONSENT_REQUIRED: consent is missing or false. INSTITUTION_REQUEST_CONTACT_INVALID: contact is neither a Turkish phone number nor an e-mail address. PROVINCE_NOT_FOUND: no province with this id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"PUBLIC_RATE_LIMITED (error_code RATE_LIMITED): too many calls from this address in the window; Retry-After in seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/karne-studio/meta":{"get":{"tags":["Karne studio"],"summary":"The designs, the fixtures, every block's option specs and the theme defaults.","operationId":"karne_studio_meta","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KarneStudioMetaResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks the permission (FORBIDDEN).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"KARNE_STUDIO_DISABLED: INTELLIGENCE__KARNE_STUDIO_ENABLED is off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/karne-studio/version":{"get":{"tags":["Karne studio"],"summary":"Changes whenever a template, a CSS file, a design or a fixture changes on disk (a deploy, or an edit on a local backend): poll it to render again.","operationId":"karne_studio_version","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KarneStudioVersionResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks the permission (FORBIDDEN).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"KARNE_STUDIO_DISABLED: INTELLIGENCE__KARNE_STUDIO_ENABLED is off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/karne-studio/designs/{name}":{"get":{"tags":["Karne studio"],"summary":"A design as a draft, and the blocks only it has.","operationId":"karne_studio_design","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KarneStudioDesignResult"}}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks the permission (FORBIDDEN).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"KARNE_STUDIO_DISABLED: INTELLIGENCE__KARNE_STUDIO_ENABLED is off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"KARNE_DESIGN_INVALID: the draft does not load (``errors[0].detail`` says why: an unknown block or option, a bad value, a bad theme token).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"KARNE_STUDIO_NOT_FOUND: an unknown design or fixture.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/karne-studio/designs/{name}/render":{"post":{"tags":["Karne studio"],"summary":"Render a draft of the design (saved or not; a new design renders as the one it started from) against a fixture.","operationId":"karne_studio_render","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KarneStudioRenderBody"}}}},"responses":{"200":{"description":"The karne as a PDF.","content":{"application/pdf":{}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks the permission (FORBIDDEN).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"KARNE_STUDIO_DISABLED: INTELLIGENCE__KARNE_STUDIO_ENABLED is off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"KARNE_DESIGN_INVALID: the draft does not load (``errors[0].detail`` says why: an unknown block or option, a bad value, a bad theme token).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"KARNE_STUDIO_NOT_FOUND: an unknown design or fixture.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/karne-studio/designs/{name}/yaml":{"post":{"tags":["Karne studio"],"summary":"The draft as design.yaml, checked as production loads it: what a pull request commits to karne_export/designs/<name>/.","operationId":"karne_studio_yaml","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KarneStudioYamlBody"}}}},"responses":{"200":{"description":"The draft as the design's design.yaml.","content":{"application/yaml":{}}},"401":{"description":"Missing, expired or invalid bearer token (UNAUTHORIZED).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"The caller lacks the permission (FORBIDDEN).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"KARNE_STUDIO_DISABLED: INTELLIGENCE__KARNE_STUDIO_ENABLED is off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"KARNE_DESIGN_INVALID: the draft does not load (``errors[0].detail`` says why: an unknown block or option, a bad value, a bad theme token).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"KARNE_STUDIO_NOT_FOUND: an unknown design or fixture.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}},"components":{"schemas":{"AccessTokenRead":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"expiration":{"type":"integer","exclusiveMinimum":0.0,"title":"Expiration"}},"type":"object","required":["access_token","refresh_token","expiration"],"title":"AccessTokenRead"},"AccessibleRead":{"properties":{"realized_net":{"type":"number","title":"Realized Net","description":"Derived net."},"opportunity_net":{"type":"number","title":"Opportunity Net","description":"Expected net + other trap net (no reachable blanks)."},"reachable_net":{"type":"number","title":"Reachable Net","description":"`realized_net + opportunity_net`."}},"type":"object","required":["realized_net","opportunity_net","reachable_net"],"title":"AccessibleRead"},"AccountDeleteRequest":{"properties":{"otp":{"type":"string","maxLength":12,"minLength":4,"title":"Otp"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["otp"],"title":"AccountDeleteRequest"},"AccountDeleteResponse":{"properties":{"message":{"type":"string","title":"Message"},"deleted_at":{"type":"string","format":"date-time","title":"Deleted At"}},"type":"object","required":["message","deleted_at"],"title":"AccountDeleteResponse"},"AccountDeletionBlockerCode":{"type":"string","enum":["PENDING_EARNINGS","OPEN_PAYOUT_REQUEST","PAYOUT_TRANSFER_IN_FLIGHT","UPCOMING_APPROVED_LESSONS","ACTIVE_MARKETPLACE_BUNDLES"],"title":"AccountDeletionBlockerCode","description":"Reasons a self-service account deletion is refused (teacher accounts) or\nflagged (student accounts). Returned in ``DeleteEligibilityRead`` and in the\n409 ``ACCOUNT_DELETION_BLOCKED`` envelope under ``meta.blockers``."},"ActBlanksItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"act-blanks","title":"Id"},"params":{"$ref":"#/components/schemas/ActBlanksParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"ActBlanksItemRead"},"ActBlanksParamsRead":{"properties":{"subject":{"type":"string","title":"Subject","description":"The subject with most blanks (ties in subject order)."},"blank":{"type":"integer","title":"Blank"}},"type":"object","required":["subject","blank"],"title":"ActBlanksParamsRead"},"ActReviewMissedItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"act-review-missed","title":"Id"},"params":{"$ref":"#/components/schemas/ActReviewMissedParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"ActReviewMissedItemRead"},"ActReviewMissedParamsRead":{"properties":{"count":{"type":"integer","title":"Count"},"expected_net":{"type":"number","title":"Expected Net"}},"type":"object","required":["count","expected_net"],"title":"ActReviewMissedParamsRead"},"ActTrapsItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"act-traps","title":"Id"},"params":{"$ref":"#/components/schemas/ActTrapsParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"ActTrapsItemRead"},"ActTrapsParamsRead":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"ActTrapsParamsRead"},"ActWorstSubjectItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"act-worst-subject","title":"Id"},"params":{"$ref":"#/components/schemas/ActWorstSubjectParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"ActWorstSubjectItemRead"},"ActWorstSubjectParamsRead":{"properties":{"subject":{"type":"string","title":"Subject"},"abs_delta":{"type":"number","title":"Abs Delta"}},"type":"object","required":["subject","abs_delta"],"title":"ActWorstSubjectParamsRead"},"AddMakeupLectureRequest":{"properties":{"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"slot_title":{"type":"string","maxLength":125,"title":"Slot Title"},"slot_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Slot Description"},"makeup_for_planned_live_lecture_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Makeup For Planned Live Lecture Id"}},"type":"object","required":["starts_at","duration_minutes","slot_title"],"title":"AddMakeupLectureRequest","description":"A teacher-added live lecture on an ONGOING bundle (typically a makeup for\na GHOSTED one). Same duration bounds as template live slots."},"AddQuestionRequest":{"properties":{"question_id":{"type":"integer","maximum":9.223372036854776e+18,"minimum":1.0,"title":"Question Id","description":"The served question's platform id (from next-question)."}},"type":"object","required":["question_id"],"title":"AddQuestionRequest"},"AddQuestionResult":{"properties":{"question_id":{"type":"integer","title":"Question Id"},"position":{"type":"integer","title":"Position"},"progress":{"$ref":"#/components/schemas/ProgressRead"}},"type":"object","required":["question_id","position","progress"],"title":"AddQuestionResult"},"AdminAdjustBalanceRequest":{"properties":{"target_user_id":{"type":"string","format":"uuid","title":"Target User Id"},"credits_delta":{"type":"integer","title":"Credits Delta","description":"Signed delta. Positive adds, negative removes. Cannot be 0."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["target_user_id","credits_delta"],"title":"AdminAdjustBalanceRequest"},"AdminComponentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"sort_order":{"type":"integer","title":"Sort Order"},"component_type":{"type":"string","title":"Component Type"},"slot_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Title"},"slot_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Description"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Question Count"},"teacher_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Document Id"},"document_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Name"},"document_mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Mime"},"document_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Kind"},"document_deleted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Document Deleted"},"teacher_profile_video_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Profile Video Id"},"video_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Title"},"video_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Duration Seconds"},"video_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Status"},"video_thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Thumbnail Url"}},"type":"object","required":["id","sort_order","component_type"],"title":"AdminComponentRead"},"AdminDocumentUrlRead":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"teacher_document_id":{"type":"string","format":"uuid","title":"Teacher Document Id"},"document_url":{"type":"string","title":"Document Url"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"expires_in_minutes":{"type":"integer","title":"Expires In Minutes"}},"type":"object","required":["component_id","teacher_document_id","document_url","expires_in_minutes"],"title":"AdminDocumentUrlRead"},"AdminPaymentBundleContext":{"properties":{"marketplace_bundle_purchase_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Purchase Id"},"marketplace_bundle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"settled":{"type":"boolean","title":"Settled","default":false},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refund_needed":{"type":"boolean","title":"Refund Needed","default":false},"enrollment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Enrollment Id"},"enrollment_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enrollment Status"}},"type":"object","required":["marketplace_bundle_purchase_id"],"title":"AdminPaymentBundleContext"},"AdminPaymentDetailRead":{"properties":{"intent_id":{"type":"string","format":"uuid","title":"Intent Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"student_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student First Name"},"student_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Last Name"},"student_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Phone"},"purpose":{"type":"string","title":"Purpose"},"status":{"type":"string","title":"Status"},"provider":{"type":"string","title":"Provider"},"merchant_oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Oid"},"amount_try":{"type":"string","title":"Amount Try"},"currency":{"type":"string","title":"Currency"},"credits_to_grant":{"type":"integer","title":"Credits To Grant","default":0},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"test_mode":{"type":"boolean","title":"Test Mode","default":false},"settled":{"type":"boolean","title":"Settled","default":false},"attention":{"anyOf":[{"type":"string","enum":["STALE_UNSETTLED","AMOUNT_MISMATCH"]},{"type":"null"}],"title":"Attention"},"refund":{"anyOf":[{"$ref":"#/components/schemas/AdminPaymentRefundBrief"},{"type":"null"}]},"lesson":{"anyOf":[{"$ref":"#/components/schemas/AdminPaymentLessonContext"},{"type":"null"}]},"bundle":{"anyOf":[{"$ref":"#/components/schemas/AdminPaymentBundleContext"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"},"provider_payment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Payment Id"},"provider_token_present":{"type":"boolean","title":"Provider Token Present","default":false},"lesson_request_dead":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Lesson Request Dead"},"init_summary":{"anyOf":[{"$ref":"#/components/schemas/AdminPaymentInitSummary"},{"type":"null"}]},"result_summary":{"anyOf":[{"$ref":"#/components/schemas/AdminPaymentResultSummary"},{"type":"null"}]}},"type":"object","required":["intent_id","user_id","purpose","status","provider","amount_try","currency","created_at","updated_at"],"title":"AdminPaymentDetailRead"},"AdminPaymentInitSummary":{"properties":{"merchant_oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Oid"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"test_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Test Mode"},"payment_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payment Amount"}},"type":"object","title":"AdminPaymentInitSummary","description":"Whitelisted view of provider_init_payload (never the token)."},"AdminPaymentLessonContext":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"lesson_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lesson Start"},"lesson_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lesson End"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"settled":{"type":"boolean","title":"Settled","default":false},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refund_needed":{"type":"boolean","title":"Refund Needed","default":false}},"type":"object","required":["lesson_request_id"],"title":"AdminPaymentLessonContext"},"AdminPaymentReconcileResult":{"properties":{"intent_id":{"type":"string","format":"uuid","title":"Intent Id"},"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["intent_id","outcome"],"title":"AdminPaymentReconcileResult"},"AdminPaymentRefundBrief":{"properties":{"refund_id":{"type":"string","format":"uuid","title":"Refund Id"},"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason"},"amount_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount Try"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["refund_id","status","reason","created_at"],"title":"AdminPaymentRefundBrief"},"AdminPaymentResultSummary":{"properties":{"source":{"anyOf":[{"type":"string","enum":["callback","reconcile_status_query"]},{"type":"null"}],"title":"Source"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"total_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Amount"},"test_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Mode"},"failed_reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failed Reason Code"},"failed_reason_msg":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failed Reason Msg"},"reconciled_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reconciled By"},"reconciled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reconciled At"}},"type":"object","title":"AdminPaymentResultSummary","description":"Whitelisted view of provider_result_payload (never the hash)."},"AdminPaymentRowRead":{"properties":{"intent_id":{"type":"string","format":"uuid","title":"Intent Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"student_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student First Name"},"student_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Last Name"},"student_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Phone"},"purpose":{"type":"string","title":"Purpose"},"status":{"type":"string","title":"Status"},"provider":{"type":"string","title":"Provider"},"merchant_oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Oid"},"amount_try":{"type":"string","title":"Amount Try"},"currency":{"type":"string","title":"Currency"},"credits_to_grant":{"type":"integer","title":"Credits To Grant","default":0},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"test_mode":{"type":"boolean","title":"Test Mode","default":false},"settled":{"type":"boolean","title":"Settled","default":false},"attention":{"anyOf":[{"type":"string","enum":["STALE_UNSETTLED","AMOUNT_MISMATCH"]},{"type":"null"}],"title":"Attention"},"refund":{"anyOf":[{"$ref":"#/components/schemas/AdminPaymentRefundBrief"},{"type":"null"}]},"lesson":{"anyOf":[{"$ref":"#/components/schemas/AdminPaymentLessonContext"},{"type":"null"}]},"bundle":{"anyOf":[{"$ref":"#/components/schemas/AdminPaymentBundleContext"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["intent_id","user_id","purpose","status","provider","amount_try","currency","created_at","updated_at"],"title":"AdminPaymentRowRead"},"AdminPayoutActionResult":{"properties":{"payout_request_id":{"type":"string","format":"uuid","title":"Payout Request Id"},"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["payout_request_id","outcome"],"title":"AdminPayoutActionResult"},"AdminPayoutEvidenceUrlRead":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"expires_minutes":{"type":"integer","title":"Expires Minutes"}},"type":"object","required":["url","expires_minutes"],"title":"AdminPayoutEvidenceUrlRead"},"AdminPayoutPaymentInstructionsRead":{"properties":{"payout_request_id":{"type":"string","format":"uuid","title":"Payout Request Id"},"status":{"type":"string","title":"Status"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher First Name"},"teacher_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Last Name"},"account_holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Holder Name"},"iban":{"type":"string","title":"Iban"},"payable_amount_try":{"type":"string","title":"Payable Amount Try"},"total_amount_try":{"type":"string","title":"Total Amount Try"},"pending_transfer_count":{"type":"integer","title":"Pending Transfer Count"}},"type":"object","required":["payout_request_id","status","teacher_id","iban","payable_amount_try","total_amount_try","pending_transfer_count"],"title":"AdminPayoutPaymentInstructionsRead"},"AdminPayoutRequestDetailRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher First Name"},"teacher_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Last Name"},"status":{"type":"string","title":"Status"},"total_amount_try":{"type":"string","title":"Total Amount Try"},"transfer_count":{"type":"integer","title":"Transfer Count"},"reject_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reject Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"excluded_meta":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Excluded Meta"},"teacher_iban_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Iban Masked"},"teacher_account_holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Account Holder Name"},"paid_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Paid By"},"paid_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid Method"},"paid_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid Note"},"has_paid_evidence":{"type":"boolean","title":"Has Paid Evidence","default":false},"paid_evidence_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid Evidence Filename"},"transfers":{"items":{"$ref":"#/components/schemas/AdminPayoutTransferRead"},"type":"array","title":"Transfers"}},"type":"object","required":["id","teacher_id","status","total_amount_try","transfer_count","created_at"],"title":"AdminPayoutRequestDetailRead"},"AdminPayoutRequestRowRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher First Name"},"teacher_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Last Name"},"status":{"type":"string","title":"Status"},"total_amount_try":{"type":"string","title":"Total Amount Try"},"transfer_count":{"type":"integer","title":"Transfer Count"},"reject_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reject Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"}},"type":"object","required":["id","teacher_id","status","total_amount_try","transfer_count","created_at"],"title":"AdminPayoutRequestRowRead"},"AdminPayoutTransferRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"payout_request_id":{"type":"string","format":"uuid","title":"Payout Request Id"},"source_type":{"type":"string","title":"Source Type"},"source_id":{"type":"string","format":"uuid","title":"Source Id"},"merchant_oid":{"type":"string","title":"Merchant Oid"},"amount_try":{"type":"string","title":"Amount Try"},"commission_try":{"type":"string","title":"Commission Try"},"total_amount_try":{"type":"string","title":"Total Amount Try"},"status":{"type":"string","title":"Status"},"attempt":{"type":"integer","title":"Attempt"},"trans_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trans Id"},"iban_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iban Masked"},"account_holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Holder Name"},"provider_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Reference"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"claim_released":{"type":"boolean","title":"Claim Released","default":false},"resolve_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolve Note"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"returned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Returned At"}},"type":"object","required":["id","payout_request_id","source_type","source_id","merchant_oid","amount_try","commission_try","total_amount_try","status","attempt"],"title":"AdminPayoutTransferRead"},"AdminReturnedTransferRow":{"properties":{"ref_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref No"},"date_detected":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Detected"},"date_reimbursed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Reimbursed"},"transfer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Name"},"transfer_iban_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Iban Masked"},"transfer_amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Amount"},"transfer_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Currency"},"transfer_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Date"},"matched_transfer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Transfer Id"},"matched_payout_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Payout Request Id"},"match_is_fuzzy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Match Is Fuzzy"}},"type":"object","title":"AdminReturnedTransferRow"},"AdminTeacherBalanceRow":{"properties":{"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher First Name"},"teacher_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Last Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"balance_try":{"type":"string","title":"Balance Try"},"tutoring_unpaid_try":{"type":"string","title":"Tutoring Unpaid Try"},"bundles_unpaid_try":{"type":"string","title":"Bundles Unpaid Try"},"open_request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Open Request Id"},"open_request_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Open Request Status"},"has_iban":{"type":"boolean","title":"Has Iban","default":false},"iban_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iban Masked"}},"type":"object","required":["teacher_id","balance_try","tutoring_unpaid_try","bundles_unpaid_try"],"title":"AdminTeacherBalanceRow","description":"Accountant table row: unpaid-EARNED balance across both verticals."},"AdminTransferActionResult":{"properties":{"transfer_id":{"type":"string","format":"uuid","title":"Transfer Id"},"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["transfer_id","outcome"],"title":"AdminTransferActionResult"},"AdminVideoPlaybackRead":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"teacher_profile_video_id":{"type":"string","format":"uuid","title":"Teacher Profile Video Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"iframe_url":{"type":"string","title":"Iframe Url"},"hls_url":{"type":"string","title":"Hls Url"},"dash_url":{"type":"string","title":"Dash Url"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"}},"type":"object","required":["component_id","teacher_profile_video_id","iframe_url","hls_url","dash_url","thumbnail_url"],"title":"AdminVideoPlaybackRead"},"AdviceAboutRead":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Id"},"skill_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skill Id"},"question_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Id","description":"An 8.2 ``answers[]`` question an evidence chip is about (AV10)."},"exam_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Id","description":"The deneme's external id, only on the profile's sitting label: one label per ``subjects[].sittings[]`` entry, about its ders and its sitting (decision 161, N2)."}},"additionalProperties":true,"type":"object","title":"AdviceAboutRead","description":"What the card speaks about: the ders code, the kova id, the skill id, the question id of an 8.2 evidence chip, the\ndeneme of a profile sitting label; all ``null`` for a profile-level card or a strategy card."},"AdviceBlockRead":{"properties":{"advice_version":{"type":"string","title":"Advice Version"},"items":{"items":{"$ref":"#/components/schemas/AdviceItemRead"},"type":"array","title":"Items"},"withheld":{"items":{"$ref":"#/components/schemas/AdviceWithheldRead"},"type":"array","title":"Withheld"}},"additionalProperties":true,"type":"object","required":["advice_version"],"title":"AdviceBlockRead","description":"The advice block while the advice version is approved (Intelligence's ledger)."},"AdviceGateRead":{"properties":{"name":{"type":"string","title":"Name"},"required":{"title":"Required"},"actual":{"title":"Actual"}},"additionalProperties":true,"type":"object","required":["name"],"title":"AdviceGateRead","description":"A gate as the advice block carries it; ``required`` and ``actual`` may be compound, so they stay untyped."},"AdviceGatedRead":{"properties":{"value":{"type":"null","title":"Value"},"gate":{"$ref":"#/components/schemas/AdviceGateRead"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":true,"type":"object","required":["gate","reason"],"title":"AdviceGatedRead","description":"The advice block while the advice version is not approved: no text at all (``advice_version_approved``)."},"AdviceItemRead":{"properties":{"action_code":{"type":"string","title":"Action Code"},"template_id":{"type":"string","title":"Template Id"},"template_version":{"type":"string","title":"Template Version"},"slots":{"additionalProperties":{"$ref":"#/components/schemas/AdviceSlotRead"},"type":"object","title":"Slots"},"text":{"$ref":"#/components/schemas/AdviceTextRead"},"about":{"$ref":"#/components/schemas/AdviceAboutRead"}},"additionalProperties":true,"type":"object","required":["action_code","template_id","template_version","text","about"],"title":"AdviceItemRead","description":"One card: its ``action_code`` (the machine code a panel keys its placement on), the template and its version,\nthe slots and the rendered ``text``. Show ``text`` as served; never write a sentence of your own beside it."},"AdviceSlotRead":{"properties":{"value":{"title":"Value"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"gate":{"anyOf":[{"$ref":"#/components/schemas/AdviceGateRead"},{"type":"null"}]}},"additionalProperties":true,"type":"object","title":"AdviceSlotRead","description":"One number or name of a card: the served value, its ``n`` when it is a statistic, and ``gate`` (``null`` beside\na shown value; a gate object only on a ``withheld[]`` card)."},"AdviceStyleRead":{"properties":{"style":{"type":"string","title":"Style"},"action_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Code","description":"The advice code the client maps to text; null when the style has none (or the style dictionary is not wired, see the README)."}},"type":"object","required":["style"],"title":"AdviceStyleRead"},"AdviceTextRead":{"properties":{"context_label":{"type":"string","title":"Context Label","default":""},"headline":{"type":"string","title":"Headline","default":""},"body":{"type":"string","title":"Body","default":""},"why":{"type":"string","title":"Why","default":""},"steps":{"items":{"type":"string"},"type":"array","title":"Steps"},"cta":{"type":"string","title":"Cta","default":""}},"additionalProperties":true,"type":"object","title":"AdviceTextRead","description":"The card's parts, rendered by Intelligence; a part the template does not use is ``\"\"`` (``steps`` ``[]``)."},"AdviceWithheldRead":{"properties":{"action_code":{"type":"string","title":"Action Code"},"template_id":{"type":"string","title":"Template Id"},"gate":{"$ref":"#/components/schemas/AdviceGateRead"},"about":{"$ref":"#/components/schemas/AdviceAboutRead"}},"additionalProperties":true,"type":"object","required":["action_code","template_id","gate","about"],"title":"AdviceWithheldRead","description":"A card that applied and was withheld: the gate that withheld a slot's value, ``missing_evidence``, or\n``selection`` (``required`` the surface's limit, ``actual`` the card's rank) for a card the selection rule left out\n(AV8, AV22)."},"AnalysisAtlasBucketRead":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id"},"name":{"type":"string","title":"Name","description":"Kova name from Intelligence's taxonomy, Turkish."},"subject":{"type":"string","title":"Subject"},"source_units":{"items":{"$ref":"#/components/schemas/AnalysisAtlasSourceUnitRead"},"type":"array","title":"Source Units"},"judgement":{"anyOf":[{"$ref":"#/components/schemas/AnalysisAtlasJudgementGatedRead"},{"$ref":"#/components/schemas/AnalysisAtlasJudgementRead"}],"title":"Judgement"},"counts":{"$ref":"#/components/schemas/AnalysisAtlasCountsRead"},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids"},"prerequisite_bucket_ids":{"items":{"type":"string"},"type":"array","title":"Prerequisite Bucket Ids"},"dependent_bucket_ids":{"items":{"type":"string"},"type":"array","title":"Dependent Bucket Ids"}},"additionalProperties":true,"type":"object","required":["bucket_id","name","subject","source_units","judgement","counts","question_ids","prerequisite_bucket_ids","dependent_bucket_ids"],"title":"AnalysisAtlasBucketRead","description":"One kova of the exam the student was scored on: the verdict, the counts, the question ids, the institution's units\nbehind it, and its prerequisite and dependent kova ids in this exam."},"AnalysisAtlasCountsRead":{"properties":{"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"}},"additionalProperties":true,"type":"object","required":["correct","wrong","blank"],"title":"AnalysisAtlasCountsRead","description":"The student's correct, wrong and blank answers in a cell."},"AnalysisAtlasCoverageNotedRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"n_questions":{"type":"integer","title":"N Questions"},"n_labeled":{"type":"integer","title":"N Labeled"},"n_buckets":{"type":"integer","title":"N Buckets"},"note":{"type":"string","title":"Note"}},"additionalProperties":true,"type":"object","required":["subject","subject_name","n_questions","n_labeled","n_buckets","note"],"title":"AnalysisAtlasCoverageNotedRead","description":"A ders without a labeled question in this exam (``n_labeled`` 0): no kova verdict, a Turkish ``note`` instead."},"AnalysisAtlasCoverageRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"n_questions":{"type":"integer","title":"N Questions"},"n_labeled":{"type":"integer","title":"N Labeled"},"n_buckets":{"type":"integer","title":"N Buckets"}},"additionalProperties":true,"type":"object","required":["subject","subject_name","n_questions","n_labeled","n_buckets"],"title":"AnalysisAtlasCoverageRead","description":"One ders of the exam: its questions, the labeled ones, the distinct kovalar among them."},"AnalysisAtlasEdgeRead":{"properties":{"subject":{"type":"string","title":"Subject"},"from":{"type":"string","title":"From","description":"The prerequisite kova id."},"to":{"type":"string","title":"To"},"weight":{"type":"number","title":"Weight"},"n":{"type":"integer","title":"N"}},"additionalProperties":true,"type":"object","required":["subject","from","to","weight","n"],"title":"AnalysisAtlasEdgeRead","description":"A prerequisite edge between two kovalar of one ders, measured on this exam's labels: the questions of ``to`` cite\n``from`` (``weight`` the citing share, ``n`` the citations). The key is ``from`` (a Python keyword, hence the\nalias), as in the source."},"AnalysisAtlasGates10aRead":{"properties":{"min_bucket":{"type":"integer","title":"Min Bucket"},"min_cell":{"type":"integer","title":"Min Cell"},"gap_target_max":{"type":"number","title":"Gap Target Max"},"subject_signal_closed":{"items":{"type":"string"},"type":"array","title":"Subject Signal Closed"},"skill_cross_subject_min_n":{"type":"integer","title":"Skill Cross Subject Min N"}},"additionalProperties":true,"type":"object","required":["min_bucket","min_cell","gap_target_max","subject_signal_closed","skill_cross_subject_min_n"],"title":"AnalysisAtlasGates10aRead","description":"The thresholds since ``2026.10-a`` (core 0.7.0, owner decision 93 of 2026-10-03): the answers a cross-ders skill\nverdict needs beside the others (the source writes the key; not in its typed models)."},"AnalysisAtlasGatesRead":{"properties":{"min_bucket":{"type":"integer","title":"Min Bucket"},"min_cell":{"type":"integer","title":"Min Cell"},"gap_target_max":{"type":"number","title":"Gap Target Max"},"subject_signal_closed":{"items":{"type":"string"},"type":"array","title":"Subject Signal Closed"}},"additionalProperties":true,"type":"object","required":["min_bucket","min_cell","gap_target_max","subject_signal_closed"],"title":"AnalysisAtlasGatesRead","description":"The thresholds of Konu Atlası and the dersler the per-ders signal gate closes."},"AnalysisAtlasJudgementGatedRead":{"properties":{"verdict":{"type":"string","title":"Verdict","description":"``weak`` | ``strong`` | ``expected``; ``insufficient`` on the gated shape."},"label":{"type":"string","title":"Label","description":"Turkish display text of the verdict."},"n":{"type":"integer","title":"N"},"observed":{"type":"number","title":"Observed"},"expected":{"type":"number","title":"Expected"},"gap":{"type":"number","title":"Gap"},"se":{"type":"number","title":"Se"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":true,"type":"object","required":["verdict","label","n","observed","expected","gap","se","gate","reason"],"title":"AnalysisAtlasJudgementGatedRead","description":"No verdict (``verdict: insufficient``), counts only: the gate that failed with its reason, ``min_bucket`` or\n``min_cell`` (``insufficient_n``) or the per-ders ``subject_signal_gate`` (``subject_signal_gate``, the ders'\nmeasured tau as ``actual``)."},"AnalysisAtlasJudgementRead":{"properties":{"verdict":{"type":"string","title":"Verdict","description":"``weak`` | ``strong`` | ``expected``; ``insufficient`` on the gated shape."},"label":{"type":"string","title":"Label","description":"Turkish display text of the verdict."},"n":{"type":"integer","title":"N"},"observed":{"type":"number","title":"Observed"},"expected":{"type":"number","title":"Expected"},"gap":{"type":"number","title":"Gap"},"se":{"type":"number","title":"Se"}},"additionalProperties":true,"type":"object","required":["verdict","label","n","observed","expected","gap","se"],"title":"AnalysisAtlasJudgementRead","description":"A verdict in the 7.7 shape: ``observed`` is the student's correct rate on the cell's ``n`` questions, ``expected``\nthe tercile's mean rate on them, ``gap`` their difference and ``se`` its standard error."},"AnalysisAtlasSkillRead":{"properties":{"skill_id":{"type":"string","title":"Skill Id"},"name":{"type":"string","title":"Name"},"judgement":{"anyOf":[{"$ref":"#/components/schemas/AnalysisAtlasJudgementGatedRead"},{"$ref":"#/components/schemas/AnalysisAtlasJudgementRead"}],"title":"Judgement"},"counts":{"$ref":"#/components/schemas/AnalysisAtlasCountsRead"},"measured_in":{"items":{"$ref":"#/components/schemas/AnalysisAtlasSkillSubjectRead"},"type":"array","title":"Measured In"}},"additionalProperties":true,"type":"object","required":["skill_id","name","judgement","counts","measured_in"],"title":"AnalysisAtlasSkillRead","description":"One transferable skill across dersler: the verdict (from ``gates.min_cell`` questions), the counts and where it\nwas measured; the list is ordered by ``judgement.n``, largest first."},"AnalysisAtlasSkillSubjectRead":{"properties":{"subject":{"type":"string","title":"Subject"},"n":{"type":"integer","title":"N"}},"additionalProperties":true,"type":"object","required":["subject","n"],"title":"AnalysisAtlasSkillSubjectRead","description":"A ders a skill was measured in, with its questions."},"AnalysisAtlasSourceUnitRead":{"properties":{"unit_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"}},"additionalProperties":true,"type":"object","required":["unit_id","unit_name"],"title":"AnalysisAtlasSourceUnitRead","description":"One of the institution's units behind a kova, as its questions' ``source_unit`` (4.2) carried it."},"AnalysisAtlasStudyItemLegacyRead":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id"},"subject":{"type":"string","title":"Subject"},"name":{"type":"string","title":"Name"},"gap":{"type":"number","title":"Gap"},"n":{"type":"integer","title":"N"},"prerequisite_depth":{"type":"integer","title":"Prerequisite Depth"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":true,"type":"object","required":["bucket_id","subject","name","gap","n","prerequisite_depth","reason"],"title":"AnalysisAtlasStudyItemLegacyRead","description":"A study-order item of a run before ``2026.10-a``: a depth from the bounded relaxation and no\n``prerequisite_depth_reason`` key, served as stored."},"AnalysisAtlasStudyItemRead":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id"},"subject":{"type":"string","title":"Subject"},"name":{"type":"string","title":"Name"},"gap":{"type":"number","title":"Gap"},"n":{"type":"integer","title":"N"},"prerequisite_depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prerequisite Depth"},"prerequisite_depth_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prerequisite Depth Reason","description":"``prerequisite_cycle`` beside a ``null`` depth."},"reason":{"type":"string","title":"Reason"}},"additionalProperties":true,"type":"object","required":["bucket_id","subject","name","gap","n","prerequisite_depth","prerequisite_depth_reason","reason"],"title":"AnalysisAtlasStudyItemRead","description":"A weak kova in the study order (prerequisite depth first, then gap) with the Turkish reason that names the state\nof its prerequisite. A kova on a cycle of the exam's prerequisite graph, or downstream of one, has no depth and\nsorts after the kovalar with one, by gap. The shape of a run of ``2026.10-a`` or later."},"AnalysisAtlasStudyOrderRead":{"properties":{"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/AnalysisAtlasStudyItemRead"},{"$ref":"#/components/schemas/AnalysisAtlasStudyItemLegacyRead"}]},"type":"array","title":"Items"},"locked":{"$ref":"#/components/schemas/AnalysisLockedFeatureRead"}},"additionalProperties":true,"type":"object","required":["items","locked"],"title":"AnalysisAtlasStudyOrderRead","description":"Up to five weak kovalar to study first, and the locked personal learning path."},"AnalysisBandRead":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"lo":{"type":"number","title":"Lo"},"hi":{"type":"number","title":"Hi"}},"additionalProperties":true,"type":"object","required":["key","label","lo","hi"],"title":"AnalysisBandRead","description":"A position band (8.1 ``bands[]``): key, Turkish label, the percentile range ``lo`` to ``hi``."},"AnalysisCampusCohortRead":{"properties":{"n":{"type":"integer","title":"N","description":"The campus's students in this cohort."},"n_by_subject":{"additionalProperties":{"type":"integer"},"type":"object","title":"N By Subject","description":"The campus's students scored on each ders."},"mean_net":{"anyOf":[{"type":"number"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Mean Net","description":"From 20 students of the group."},"mean_net_by_subject":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"number"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}]},"type":"object"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Mean Net By Subject","description":"A ders mean from 20 students scored on it."},"ecdf":{"anyOf":[{"$ref":"#/components/schemas/AnalysisCampusEcdfRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Ecdf","description":"From 50 students of the group."},"tercile_n":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Tercile N","description":"The group's students in each of the cohort's own terciles (never terciles cut on the campus); from 50."}},"additionalProperties":true,"type":"object","required":["n"],"title":"AnalysisCampusCohortRead","description":"One campus inside one cohort (8.1 ``campuses[<campus_id>].cohorts[<cohort>]``, WP-B): ``n`` always, the means from\n20 students of the group, the distribution and tercile sizes from 50; below its gate each is a gated null. No\ntercile-split rate is ever served per campus."},"AnalysisCampusEcdfRead":{"properties":{"total":{"items":{"type":"number"},"type":"array","title":"Total"},"by_subject":{"additionalProperties":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"$ref":"#/components/schemas/GatedNullRead"}]},"type":"object","title":"By Subject"}},"additionalProperties":true,"type":"object","required":["total"],"title":"AnalysisCampusEcdfRead","description":"A campus group's distribution (8.1 ``campuses``): the total grid, and per ders a grid or, below 50 students of\nthe group scored on the ders, a gated null."},"AnalysisCampusRead":{"properties":{"n":{"type":"integer","title":"N","description":"Analysed sittings of the campus (an AYT sitting without an alan included)."},"cohorts":{"additionalProperties":{"$ref":"#/components/schemas/AnalysisCampusCohortRead"},"type":"object","title":"Cohorts","description":"Keyed like the top-level ``cohorts`` (``all``, or each alan on an AYT)."}},"additionalProperties":true,"type":"object","required":["n"],"title":"AnalysisCampusRead","description":"One campus of the deneme (8.1 ``campuses``): its analysed sittings and one entry per cohort it has sittings in."},"AnalysisCohortEntryRead":{"properties":{"n":{"type":"integer","title":"N","description":"The cohort's size."},"tercile_norms":{"type":"boolean","title":"Tercile Norms","description":"Whether the cohort reached the 50-student tercile gate."},"cohort_statistics":{"type":"boolean","title":"Cohort Statistics","description":"Whether the cohort reached the 20-student statistics gate."},"tercile_n":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Tercile N","description":"Its three tercile sizes; below 50 students a gated null naming ``min_cohort_norms`` (``null`` on a run before ``2026.10-a``)."},"ecdf":{"additionalProperties":true,"type":"object","title":"Ecdf","description":"The cohort's own ``ecdf`` (``total``, ``by_subject``) or a gated null."},"cohort":{"additionalProperties":true,"type":"object","title":"Cohort","description":"The cohort's own ``cohort`` block or a gated null."}},"additionalProperties":true,"type":"object","required":["n","tercile_norms","cohort_statistics"],"title":"AnalysisCohortEntryRead","description":"One cohort of the deneme (8.1 ``cohorts``): the whole deneme under ``all``, or one alan of an AYT under its\n``field_of_study`` value, with its own size, tercile sizes, distribution and cohort block."},"AnalysisCohortRankRead":{"properties":{"rank":{"type":"integer","title":"Rank"},"count":{"type":"integer","title":"Count"},"basis":{"type":"string","title":"Basis","description":"``total_net``: Intelligence's own ``result.total.net``, never the school's net."}},"additionalProperties":true,"type":"object","required":["rank","count","basis"],"title":"AnalysisCohortRankRead","description":"Intelligence's own competition rank (1, 2, 2, 4) on its total net in a group, with the group's count; no gate (a\nrank is a count, not an estimate). Shown as \"X/N\" beside the official ranks, never merged with them (7.7)."},"AnalysisCohortRateRead":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why the rate is withheld, as on the question's row (``insufficient_n`` below ``min_reliable_n``); absent beside a value."}},"additionalProperties":true,"type":"object","title":"AnalysisCohortRateRead","description":"A rate of 8.1 ``questions[].cohorts``: ``{value, n}``, or below its gate ``{value: null, n, gate, reason}`` (the\nsource writes ``reason``; not in its typed models)."},"AnalysisCohortRead":{"properties":{"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net"},"mean_net_by_subject":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"object","title":"Mean Net By Subject","description":"A ders over the students scored on it."},"median_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Net","description":"The exact median of the total net, of the shape of ``mean_net`` and under its gate; an even count takes the mean of the two middle values. Since ``2026.10-h``; ``null`` on a run before it."},"median_net_by_subject":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"object","title":"Median Net By Subject","description":"The same per ders, a ders over the students scored on it. Since ``2026.10-h``; ``{}`` on a run before it."},"blank_rate_by_tercile":{"anyOf":[{"additionalProperties":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},"type":"object"},{"$ref":"#/components/schemas/GatedNullRead"}],"title":"Blank Rate By Tercile","description":"Per ders, three values."},"blank_rate_n_by_tercile":{"anyOf":[{"additionalProperties":{"items":{"type":"integer"},"type":"array"},"type":"object"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Blank Rate N By Tercile","description":"Per ders, the students behind each tercile's blank rate (those with at least one scored question of the ders); 0 beside a null rate. Since ``2026.10-a``."},"blank_rate_by_tercile_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blank Rate By Tercile Reason","description":"``not_scored`` when a tercile's blank rate is null. Since ``2026.10-b``."},"blank_by_tercile":{"anyOf":[{"additionalProperties":{"items":{"type":"integer"},"type":"array"},"type":"object"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Blank By Tercile","description":"Per ders and tercile, the blanks summed over the tercile's students: the blank rate's exact numerator. Since ``2026.10-b``."},"n_questions_by_tercile":{"anyOf":[{"additionalProperties":{"items":{"type":"integer"},"type":"array"},"type":"object"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"N Questions By Tercile","description":"Per ders and tercile, the scored questions summed over the tercile's students: the blank rate's exact denominator. Since ``2026.10-b``."},"trap_rate_by_tercile":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Trap Rate By Tercile","description":"Rate of falling for common wrong answers per tercile."},"trap_rate_n_by_tercile":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Trap Rate N By Tercile","description":"The students behind each tercile's trap rate. Since ``2026.10-a``."},"trap_rate_by_tercile_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trap Rate By Tercile Reason","description":"``none_qualified`` when a tercile's trap rate is null. Since ``2026.10-b``."}},"additionalProperties":true,"type":"object","title":"AnalysisCohortRead","description":"Cohort means, medians and tercile rates (8.1 ``cohort``); ``null`` below the cohort gates. Without terciles (from\n20 and below 50 students) each per-tercile block is one gated null naming ``min_cohort_norms`` (since\n``2026.10-a``; before it ``{}`` for the blank rates and ``null`` for the trap rates). The counts behind the rates\nand the two ``*_reason`` keys are ``null`` on a run before the pipeline version that introduced them."},"AnalysisEcdfRead":{"properties":{"total":{"items":{"type":"number"},"type":"array","title":"Total"},"by_subject":{"additionalProperties":{"items":{"type":"number"},"type":"array"},"type":"object","title":"By Subject"}},"additionalProperties":true,"type":"object","required":["total"],"title":"AnalysisEcdfRead","description":"201-point cohort net distribution, total and per ders (8.1 ``ecdf``)."},"AnalysisExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id","description":"Intelligence's exam id: the same id as ``InstitutionExamRead.id``."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"administered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Administered At","description":"ISO date of the sitting, as defined."},"exam_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Scope","description":"``TYT`` | ``AYT`` | ``TARAMA`` | ``none``."},"term_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term Id"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level","description":"``null`` when the definition carried no grade."},"cohort_size":{"type":"integer","title":"Cohort Size","description":"Students in the analysed cohort."},"question_count":{"type":"integer","title":"Question Count"},"scored_question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scored Question Count","description":"Questions a student on the default block is scored on (120 on a TYT)."},"cancelled_question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cancelled Question Count"},"label_coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Label Coverage","description":"Share of questions with labels, 0 to 1."},"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version"}},"additionalProperties":true,"type":"object","required":["exam_id","cohort_size","question_count"],"title":"AnalysisExamRead","description":"The exam of an analysis (8.1 ``exam``). ``exam_scope``, ``term_id`` and ``grade_level`` are the definition's\nown and are read from the latest definition at request time (a metadata-only resend shows on the next read)."},"AnalysisGateRead":{"properties":{"name":{"type":"string","title":"Name","description":"Gate name (``min_cohort_norms``, ``min_peer_n``, ``subject_signal_gate`` ...); the machine code is the contract."},"required":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Required","description":"The threshold the gate requires."},"actual":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Actual","description":"What was measured."}},"additionalProperties":true,"type":"object","required":["name"],"title":"AnalysisGateRead","description":"Why a value is ``null``: the gate's name, what it requires and what was present."},"AnalysisLockedFeatureRead":{"properties":{"title":{"type":"string","title":"Title"},"what":{"type":"string","title":"What"},"when":{"type":"string","title":"When"}},"additionalProperties":true,"type":"object","required":["title","what","when"],"title":"AnalysisLockedFeatureRead","description":"A feature that needs several denemeler (8.3 ``locked[]``, 8.4 ``study_order.locked``): what it will show and when\nit unlocks, Turkish display text."},"AnalysisOfficialRankRead":{"properties":{"rank":{"type":"integer","title":"Rank"},"count":{"type":"integer","title":"Count"}},"additionalProperties":true,"type":"object","required":["rank","count"],"title":"AnalysisOfficialRankRead","description":"An official rank and its count, as the school's results upload sent them."},"AnalysisOfficialRanksRead":{"properties":{"overall":{"$ref":"#/components/schemas/AnalysisOfficialRankRead"},"campus":{"anyOf":[{"$ref":"#/components/schemas/AnalysisOfficialRankRead"},{"type":"null"}]},"section":{"anyOf":[{"$ref":"#/components/schemas/AnalysisOfficialRankRead"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["overall"],"title":"AnalysisOfficialRanksRead","description":"8.2 ``ranks``: the school's official ranks exactly as the results upload sent them; never filled or changed by\nIntelligence, a missing one stays missing (show \"–\")."},"AnalysisOpportunitiesRead":{"properties":{"expected_missed":{"$ref":"#/components/schemas/AnalysisOpportunityRead","description":"Peer rate at least 75%, not correct."},"reachable_blanks":{"$ref":"#/components/schemas/AnalysisOpportunityRead","description":"Blank, peer rate at least 50%."},"trap_wrongs":{"$ref":"#/components/schemas/AnalysisOpportunityRead","description":"The common wrong answer chosen."}},"additionalProperties":true,"type":"object","required":["expected_missed","reachable_blanks","trap_wrongs"],"title":"AnalysisOpportunitiesRead","description":"8.2 ``opportunities``: where net was left in this deneme, a question in one group only and never one without a\npeer rate (``min_peer_rate_n`` 10)."},"AnalysisOpportunityRead":{"properties":{"count":{"type":"integer","title":"Count"},"net":{"type":"number","title":"Net","description":"A blank turned correct adds 1, a wrong 1.25; rounded to 2."},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids"}},"additionalProperties":true,"type":"object","required":["count","net","question_ids"],"title":"AnalysisOpportunityRead","description":"One opportunity group of the deneme: its questions and the net they would have added."},"AnalysisOutsideAlanRead":{"properties":{"count":{"type":"integer","title":"Count","description":"The questions outside the alan."},"sections":{"items":{"type":"string"},"type":"array","title":"Sections","description":"The sections wholly outside the alan."},"tests":{"items":{"type":"string"},"type":"array","title":"Tests","description":"The alan tests outside the student's alan."},"answered":{"type":"integer","title":"Answered","description":"The marks the student put on those questions anyway."},"n":{"type":"integer","title":"N","description":"The alan's sitters."}},"additionalProperties":true,"type":"object","required":["count","sections","tests","answered","n"],"title":"AnalysisOutsideAlanRead","description":"``result.outside_alan`` of an AYT sitting in an alan cohort: the questions of the other alanlar's tests, outside\nthe student's exam, counted so nothing disappears silently; a mark there is not part of the net."},"AnalysisPeerTransitionCiRead":{"properties":{"lo":{"type":"number","title":"Lo"},"hi":{"type":"number","title":"Hi"},"halfwidth":{"type":"number","title":"Halfwidth"},"basis":{"type":"string","title":"Basis","description":"``bootstrap_cell_<draws>_p05_p95``."}},"additionalProperties":true,"type":"object","required":["lo","hi","halfwidth","basis"],"title":"AnalysisPeerTransitionCiRead","description":"The 90% bootstrap interval of the peers' median net change."},"AnalysisPeerTransitionRead":{"properties":{"previous_exam_id":{"type":"string","title":"Previous Exam Id"},"current_exam_id":{"type":"string","title":"Current Exam Id"},"previous_tercile":{"type":"integer","title":"Previous Tercile","description":"0 lower, 1 middle, 2 upper."},"previous_median_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Previous Median Net"},"current_median_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Median Net"},"delta_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta Net"},"delta_net_ci90":{"anyOf":[{"$ref":"#/components/schemas/AnalysisPeerTransitionCiRead"},{"type":"null"}]},"n":{"type":"integer","title":"N","description":"The matched peers."},"reliable":{"type":"boolean","title":"Reliable"},"gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}]},"student":{"$ref":"#/components/schemas/AnalysisPeerTransitionStudentRead"},"method":{"type":"string","title":"Method","description":"Method text."}},"additionalProperties":true,"type":"object","required":["previous_exam_id","current_exam_id","previous_tercile","previous_median_net","current_median_net","delta_net","delta_net_ci90","n","reliable","gate","student","method"],"title":"AnalysisPeerTransitionRead","description":"8.2 ``peer_transition`` (Benzer seviyedekiler): the median net of the students of the same previous tercile, in\nthe previous and in this deneme, beside the student's own move. Below a gate (``min_peer_n`` 30 matched peers, or a\n90% interval wider than ``delta_net_ci90_halfwidth_max`` 2.5 net) the medians, ``delta_net`` and the interval are\n``null`` with ``gate``. Never a progress line (decision 48)."},"AnalysisPeerTransitionStudentRead":{"properties":{"previous_net":{"type":"number","title":"Previous Net"},"current_net":{"type":"number","title":"Current Net"}},"additionalProperties":true,"type":"object","required":["previous_net","current_net"],"title":"AnalysisPeerTransitionStudentRead","description":"The student's own total net in the two denemeler."},"AnalysisPositionBandRead":{"properties":{"key":{"type":"string","title":"Key","description":"``alt25`` | ``p2550`` | ``p5075`` | ``p7590`` | ``ust10``."},"label":{"type":"string","title":"Label","description":"Turkish display text."}},"additionalProperties":true,"type":"object","required":["key","label"],"title":"AnalysisPositionBandRead","description":"The band of a position's midpoint (7.7): its machine key and Turkish label."},"AnalysisPositionGatedRead":{"properties":{"total":{"type":"null","title":"Total","description":"Always ``null``."},"by_subject":{"additionalProperties":{"$ref":"#/components/schemas/AnalysisPositionRangeRead"},"type":"object","title":"By Subject","description":"Always ``{}``."},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":true,"type":"object","required":["total","by_subject","gate","reason"],"title":"AnalysisPositionGatedRead","description":"A withheld position: below ``min_cohort_norms`` students of the group (``insufficient_n``), or for a sitting\noutside every cohort (``field_of_study_required`` / ``field_of_study_reserved``)."},"AnalysisPositionRangeRead":{"properties":{"lo":{"type":"number","title":"Lo"},"mid":{"type":"number","title":"Mid"},"hi":{"type":"number","title":"Hi"},"band":{"$ref":"#/components/schemas/AnalysisPositionBandRead"},"n":{"type":"integer","title":"N","description":"The students of the group the range is read in."},"basis":{"type":"string","title":"Basis","description":"``net_pm_1_25``: the range spans one question's net either side."}},"additionalProperties":true,"type":"object","required":["lo","mid","hi","band","n","basis"],"title":"AnalysisPositionRangeRead","description":"A position as a range read as a top share (7.7): ``lo`` the better end, ``hi`` the worse, ``mid`` the midpoint,\nnever a score shown alone. Show ``lo`` to ``hi`` with ``n``."},"AnalysisPositionRead":{"properties":{"total":{"$ref":"#/components/schemas/AnalysisPositionRangeRead"},"by_subject":{"additionalProperties":{"$ref":"#/components/schemas/AnalysisPositionRangeRead"},"type":"object","title":"By Subject","description":"Per ders code; a ders without a grid is left out, and in ``campus.position`` one with fewer than 50 scored students of the group."}},"additionalProperties":true,"type":"object","required":["total","by_subject"],"title":"AnalysisPositionRead","description":"8.2 ``position`` (and ``campus.position``) from ``min_cohort_norms`` (50) students of the group: the total range\nand one per ders."},"AnalysisPotentialNetRead":{"properties":{"value":{"type":"number","title":"Value","description":"``expected_missed`` + ``reachable_blanks`` + ``trap_wrongs``, rounded to 2."},"expected_missed":{"type":"number","title":"Expected Missed","description":"Net of the questions most of the tercile got right and the student did not."},"reachable_blanks":{"type":"number","title":"Reachable Blanks","description":"Net of the blanks at least half of the tercile got right."},"trap_wrongs":{"type":"number","title":"Trap Wrongs","description":"Net of the wrongs on the common wrong answer."},"caveat":{"type":"string","title":"Caveat","description":"Intelligence's mandatory sentence under the number, shown as served: Turkish since owner decision 112 (2026-10-16), English on a run before it."}},"additionalProperties":true,"type":"object","required":["value","expected_missed","reachable_blanks","trap_wrongs","caveat"],"title":"AnalysisPotentialNetRead","description":"8.2 ``rank_impact.potential_net``: the net this deneme left in its three opportunity groups (each a question in\none group only), with Intelligence's mandatory caveat. Not a prediction of the next exam; never added to a net."},"AnalysisQuestionCohortRead":{"properties":{"n":{"type":"integer","title":"N","description":"The question's takers within the alan."},"tercile_correct_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Tercile Correct Rate"},"tercile_correct_rate_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tercile Correct Rate Reason","description":"``no_taker`` beside a null rate of a tercile with no taker of the question (since ``2026.10-b``)."},"tercile_n":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Tercile N"},"correct_rate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisCohortRateRead"},{"type":"null"}],"description":"The correct rate on the alan's sitters."},"blank_rate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisCohortRateRead"},{"type":"null"}],"description":"The blank rate on the alan's sitters."},"common_wrong":{"anyOf":[{"$ref":"#/components/schemas/CommonWrongRead"},{"type":"null"}],"description":"The most chosen wrong answer among the alan's sitters."},"common_wrong_gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}],"description":"The gate that withheld ``common_wrong``, as on the question's row."},"common_wrong_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Common Wrong Reason","description":"Why ``common_wrong`` is ``null`` where no threshold applies, as on the question's row."}},"additionalProperties":true,"type":"object","required":["n"],"title":"AnalysisQuestionCohortRead","description":"A question's facts within one alan of an AYT (8.1 ``questions[].cohorts``): the question's takers of the alan\nand the alan's own tercile rates and sizes (below 50 sitters of the alan each a gated null naming\n``min_cohort_norms`` since ``2026.10-a``; ``null`` on a run before it). Since ``2026.10-h`` (decision 161, N10) also\nthe question's own rates and common wrong answer on the alan's sitters, in the shapes and gates of the whole\ndeneme's row; a run before it has none of those five keys (absent, not ``null``)."},"AnalysisQuestionRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"subject":{"type":"string","title":"Subject","description":"Ders code (``turkce``, ``matematik``, ``geometri`` ...)."},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Name"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number","description":"Number inside the booklet."},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position","description":"Position in the exam."},"correct_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correct Answer","description":"``A`` to ``E``; ``null`` on a cancelled question."},"cancelled":{"type":"boolean","title":"Cancelled","default":false},"cancel_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Policy","description":"``all_correct`` | ``excluded`` on a cancelled question, ``null`` otherwise (since ``2026.10-d``)."},"accepted_answers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Accepted Answers","description":"A double key's accepted letters, the key among them (``B`` and ``C``); ``null`` otherwise (since ``2026.10-d``)."},"scoring_block":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block","description":"``core`` | ``din`` | ``din-alternative``."},"correct_rate":{"anyOf":[{"$ref":"#/components/schemas/GatedValueRead"},{"type":"null"}]},"blank_rate":{"anyOf":[{"$ref":"#/components/schemas/GatedValueRead"},{"type":"null"}]},"tercile_correct_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Tercile Correct Rate","description":"Three values, lower to upper tercile; below 50 students a gated null naming ``min_cohort_norms`` (``null`` on a run before ``2026.10-a``)."},"tercile_correct_rate_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tercile Correct Rate Reason","description":"``no_taker`` beside a null rate of a tercile with no taker of the question."},"tercile_n":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Tercile N"},"common_wrong":{"anyOf":[{"$ref":"#/components/schemas/CommonWrongRead"},{"type":"null"}]},"common_wrong_gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}],"description":"``min_wrong_ship``, ``trap_share_min``, or ``min_cohort_norms`` without terciles."},"common_wrong_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Common Wrong Reason","description":"``cancelled`` | ``key_repaired`` (the key was repaired in the current version) beside a ``null`` ``common_wrong``."},"difficulty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Difficulty","description":"Empirical: one minus the correct rate, 0 easy to 1 hard."},"difficulty_gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}],"description":"``min_reliable_n``."},"difficulty_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Difficulty Reason","description":"``cancelled`` beside a ``null`` difficulty."},"key_agreement":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Key Agreement","description":"Share of the top 15 percent whose pick is the key; low = cancellation candidate."},"key_agreement_gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}],"description":"``key_agreement_min_n``."},"key_agreement_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Agreement Reason","description":"``cancelled`` | ``no_top_pick``."},"key_agreement_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Key Agreement N","description":"The top cohort's A to E picks behind ``key_agreement``: a count, 0 and up, on every row since pipeline ``2026.10-f`` (``null`` on a run before it)."},"top_modal_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top Modal Answer","description":"Their most common pick (a tie goes to the first letter); ``null`` where ``key_agreement`` is null."},"key_disputed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Key Disputed","description":"That pick is neither the key nor an accepted letter: a cancellation candidate for staff, never a verdict (decision 118)."},"rasch_b":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rasch B","description":"Same-exam Rasch difficulty of the core block; ``null`` for the alternative blocks and below 50 students."},"rasch_b_gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}],"description":"``min_cohort_norms`` on the fit's n."},"rasch_b_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rasch B Reason","description":"``alternative_block`` | ``cancelled`` | ``too_few_questions``."},"stats_reliable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stats Reliable"},"denominator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Denominator","description":"``section`` | ``scoring_block`` | ``booklet``: who the rates are computed over."},"elective":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Elective"},"source_unit":{"anyOf":[{"$ref":"#/components/schemas/SourceUnitRead"},{"type":"null"}]},"bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Id","description":"Kova id (labeling taxonomy)."},"bucket_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Name"},"question_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Type Id"},"question_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Type Name"},"skill_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Skill Ids"},"common_wrong_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Common Wrong Type"},"label_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label Status","description":"``labeled`` | ``pending`` | ..."},"cohorts":{"additionalProperties":{"$ref":"#/components/schemas/AnalysisQuestionCohortRead"},"type":"object","title":"Cohorts","description":"Per alan on an AYT (the keys of the top-level ``cohorts``); ``{}`` on a TYT."}},"additionalProperties":true,"type":"object","required":["question_id","subject"],"title":"AnalysisQuestionRead","description":"One question of the exam-level object (8.1 ``questions[]``). Rates are gated ``{value, n}`` objects;\nlabel fields are ``null`` until the labels exist (``label_status``). ``cohorts`` has one entry per alan on an\nAYT and is ``{}`` otherwise. Since ``2026.10-b`` every null statistic of the row carries why beside it: the\n``*_gate`` that withheld it, or a ``*_reason`` where no threshold applies (each ``null`` beside a value and on\na run before it). Since ``2026.10-d`` a cancelled question has no item statistic: its rates are ``{value: null,\nn, gate: null, reason: \"cancelled\"}`` and its ``*_reason`` keys say ``cancelled``."},"AnalysisRankImpactRead":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/AnalysisRankStepRead"},"type":"array","title":"Steps","description":"The rank at +1, +5 and +10 net."},"potential_net":{"anyOf":[{"$ref":"#/components/schemas/AnalysisPotentialNetRead"},{"$ref":"#/components/schemas/GatedNullRead"}],"title":"Potential Net","description":"The potential net, or ``{value: null, gate: {name: min_cohort_norms, required, actual}, reason: insufficient_n}``."}},"additionalProperties":true,"type":"object","required":["steps","potential_net"],"title":"AnalysisRankImpactRead","description":"8.2 ``rank_impact`` of a sitting in a cohort: the rank steps, and the potential net or, below\n``min_cohort_norms`` (50) students, its gated null (the steps stay: they need no tercile)."},"AnalysisRankStepRead":{"properties":{"delta_net":{"type":"integer","title":"Delta Net","description":"1, 5 or 10."},"net":{"type":"number","title":"Net","description":"The student's total net plus ``delta_net`` (Intelligence's count), rounded to 2."},"rank":{"type":"integer","title":"Rank","description":"Competition rank at that net (1 = top): the students above it, plus one."},"exact":{"type":"boolean","title":"Exact","description":"True when a student of the cohort holds exactly that net."},"lo":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lo","description":"Absent on an exact step: the best rank of the bracket."},"hi":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hi","description":"Absent on an exact step: the worst rank of the bracket."}},"additionalProperties":true,"type":"object","required":["delta_net","net","rank","exact"],"title":"AnalysisRankStepRead","description":"One of 8.2 ``rank_impact.steps[]``: the rank this deneme would have given at ``delta_net`` more net, in the whole\ncohort, never extrapolated. ``exact`` when a student holds that net; else ``rank`` sits in a ``lo`` to ``hi``\nbracket (the ranks of the nearest nets above and below), and the two keys are absent on an exact step."},"AnalysisResultCountsRead":{"properties":{"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"net":{"type":"number","title":"Net","description":"Correct minus a quarter of the wrongs, rounded to 2."}},"additionalProperties":true,"type":"object","required":["correct","wrong","blank","net"],"title":"AnalysisResultCountsRead","description":"``result.total``: the correct, wrong and blank answers and the net on Intelligence's own count."},"AnalysisResultRead":{"properties":{"total":{"$ref":"#/components/schemas/AnalysisResultCountsRead"},"by_subject":{"additionalProperties":{"$ref":"#/components/schemas/AnalysisResultSubjectRead"},"type":"object","title":"By Subject","description":"Per ders code, the dersler the student is scored on."},"official_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Official Net","description":"The school's official net as the results upload sent it; absent when it sent none."},"delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta","description":"``total.net`` minus ``official_net``, rounded to 2; absent with it."},"outside_alan":{"anyOf":[{"$ref":"#/components/schemas/AnalysisOutsideAlanRead"},{"type":"null"}],"description":"An AYT sitting in an alan cohort only."}},"additionalProperties":true,"type":"object","required":["total","by_subject"],"title":"AnalysisResultRead","description":"8.2 ``result``: correct, wrong, blank and net on Intelligence's own count, in total and per ders; the school's\nofficial net beside it and their difference."},"AnalysisResultSubjectRead":{"properties":{"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"net":{"type":"number","title":"Net","description":"Correct minus a quarter of the wrongs, rounded to 2."},"n_questions":{"type":"integer","title":"N Questions","description":"The ders's questions the student is scored on."}},"additionalProperties":true,"type":"object","required":["correct","wrong","blank","net","n_questions"],"title":"AnalysisResultSubjectRead","description":"One ders of ``result.by_subject``, over the questions of the ders the student is scored on."},"AnalysisSectionRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"start":{"type":"integer","title":"Start"},"end":{"type":"integer","title":"End"}},"additionalProperties":true,"type":"object","required":["code","start","end"],"title":"AnalysisSectionRead","description":"A section (ders) of the exam and its question range (8.1 ``sections[]``)."},"AnalysisStratejiBandGatedRead":{"properties":{"key":{"type":"string","title":"Key","description":"``very_easy`` | ``easy`` | ``medium`` | ``hard``."},"n":{"type":"integer","title":"N"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"attempted":{"type":"integer","title":"Attempted"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"peer_expected":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Expected"},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"},"judged":{"type":"boolean","title":"Judged"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["key","n","correct","wrong","blank","attempted","accuracy","peer_expected","gap","judged","gate"],"title":"AnalysisStratejiBandGatedRead","description":"A band below ``gates.min_band_attempted`` attempts (``judged: false``, ``gap: null``) and its gate."},"AnalysisStratejiBandRead":{"properties":{"key":{"type":"string","title":"Key","description":"``very_easy`` | ``easy`` | ``medium`` | ``hard``."},"n":{"type":"integer","title":"N"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"attempted":{"type":"integer","title":"Attempted"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"peer_expected":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Expected"},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"},"judged":{"type":"boolean","title":"Judged"}},"additionalProperties":true,"type":"object","required":["key","n","correct","wrong","blank","attempted","accuracy","peer_expected","gap","judged"],"title":"AnalysisStratejiBandRead","description":"One difficulty band on the exam's Rasch b with a verdict: the student's labeled questions in it, the attempts, and\nthe accuracy against the tercile's expectation (``gap``)."},"AnalysisStratejiBlankPosition10eRead":{"properties":{"by_section":{"items":{"$ref":"#/components/schemas/AnalysisStratejiSectionBlanksRead"},"type":"array","title":"By Section"},"early":{"type":"integer","title":"Early"},"middle":{"type":"integer","title":"Middle"},"late":{"type":"integer","title":"Late"},"late_heavy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Late Heavy"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"},"late_pile":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Late Pile","description":"Late blanks above early plus middle."},"late_control":{"$ref":"#/components/schemas/AnalysisStratejiLateControlRead"},"late_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Late Reason","description":"Why ``late_heavy`` is ``null`` where the count rule judged (``peer_blank_rate_missing``)."},"runs":{"items":{"$ref":"#/components/schemas/AnalysisStratejiRunEntryRead"},"type":"array","title":"Runs"},"run":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiRunRead"},{"type":"null"}]},"run_gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}],"description":"``position_blank_run_min`` with the longest run, or ``position_tail_p`` with the best worst tail."},"run_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Reason","description":"``peer_blank_rate_missing``."}},"additionalProperties":true,"type":"object","required":["by_section","early","middle","late","late_heavy","gate","late_pile","late_control","late_reason","runs","run","run_gate","run_reason"],"title":"AnalysisStratejiBlankPosition10eRead","description":"The position block since ``2026.10-e`` (owner decisions AV18 and AV19): ``late_pile`` is the count rule alone,\n``late_heavy`` that pile beyond ``late_control``'s control; ``runs`` per opened section and ``run`` the one that\nspeaks, or ``null`` with ``run_gate`` or ``run_reason``."},"AnalysisStratejiBlankPositionRead":{"properties":{"by_section":{"items":{"$ref":"#/components/schemas/AnalysisStratejiSectionBlanksRead"},"type":"array","title":"By Section"},"early":{"type":"integer","title":"Early"},"middle":{"type":"integer","title":"Middle"},"late":{"type":"integer","title":"Late"},"late_heavy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Late Heavy"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["by_section","early","middle","late","late_heavy","gate"],"title":"AnalysisStratejiBlankPositionRead","description":"Where the blanks sit inside the sections; ``late_heavy`` is ``null`` below ``gates.min_blanks_for_position``\nblanks. The shape of a run before ``2026.10-e``."},"AnalysisStratejiBlanksBaseRead":{"properties":{"total":{"type":"integer","title":"Total"},"reachable":{"$ref":"#/components/schemas/AnalysisStratejiReachableRead"},"hard":{"$ref":"#/components/schemas/AnalysisStratejiCountRead"},"mid":{"$ref":"#/components/schemas/AnalysisStratejiCountRead"},"selectivity":{"$ref":"#/components/schemas/AnalysisStratejiSelectivityRead"},"position":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiBlankPosition10eRead"},{"$ref":"#/components/schemas/AnalysisStratejiBlankPositionRead"}],"title":"Position"}},"additionalProperties":true,"type":"object","required":["total","reachable","hard","mid","selectivity","position"],"title":"AnalysisStratejiBlanksBaseRead","description":"The blank-leaving breakdown as every run carries it: the total, the reachable, hard (peer rate below\n``gates.hard_peer_rate``, 30%) and mid blanks, the selectivity and the position. A run computed before 2026-09-19\nserves exactly this shape."},"AnalysisStratejiBlanksEvidenceRead":{"properties":{"blank_count":{"type":"integer","title":"Blank Count"},"reachable_count":{"type":"integer","title":"Reachable Count"},"hard_count":{"type":"integer","title":"Hard Count"},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids"},"blanked_peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Blanked Peer Rate"},"wrong_peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wrong Peer Rate"}},"additionalProperties":true,"type":"object","required":["blank_count","reachable_count","hard_count","question_ids","blanked_peer_rate","wrong_peer_rate"],"title":"AnalysisStratejiBlanksEvidenceRead","description":"The evidence of ``blanks-selective-reachable``, ``blanks-selective``, ``blanks-reachable`` and ``blanks-plain``."},"AnalysisStratejiBlanksNoPeerRead":{"properties":{"total":{"type":"integer","title":"Total"},"reachable":{"$ref":"#/components/schemas/AnalysisStratejiReachableRead"},"hard":{"$ref":"#/components/schemas/AnalysisStratejiCountRead"},"mid":{"$ref":"#/components/schemas/AnalysisStratejiCountRead"},"selectivity":{"$ref":"#/components/schemas/AnalysisStratejiSelectivityRead"},"position":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiBlankPosition10eRead"},{"$ref":"#/components/schemas/AnalysisStratejiBlankPositionRead"}],"title":"Position"},"recoverable_upper_bound":{"$ref":"#/components/schemas/AnalysisStratejiRecoverableRead"},"no_peer_rate":{"$ref":"#/components/schemas/AnalysisStratejiNoPeerRateRead"}},"additionalProperties":true,"type":"object","required":["total","reachable","hard","mid","selectivity","position","recoverable_upper_bound","no_peer_rate"],"title":"AnalysisStratejiBlanksNoPeerRead","description":"The breakdown of a sitting that left a question without a peer rate blank (since ``2026.09-f``): the source\nwrites ``no_peer_rate`` in that case only (the service's ``_count_apart``; not in its typed models)."},"AnalysisStratejiBlanksRead":{"properties":{"total":{"type":"integer","title":"Total"},"reachable":{"$ref":"#/components/schemas/AnalysisStratejiReachableRead"},"hard":{"$ref":"#/components/schemas/AnalysisStratejiCountRead"},"mid":{"$ref":"#/components/schemas/AnalysisStratejiCountRead"},"selectivity":{"$ref":"#/components/schemas/AnalysisStratejiSelectivityRead"},"position":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiBlankPosition10eRead"},{"$ref":"#/components/schemas/AnalysisStratejiBlankPositionRead"}],"title":"Position"},"recoverable_upper_bound":{"$ref":"#/components/schemas/AnalysisStratejiRecoverableRead"}},"additionalProperties":true,"type":"object","required":["total","reachable","hard","mid","selectivity","position","recoverable_upper_bound"],"title":"AnalysisStratejiBlanksRead","description":"The blank-leaving breakdown since 2026-09-19: the base shape and ``recoverable_upper_bound``."},"AnalysisStratejiCommonWrong10aRead":{"properties":{"n_wrong_labeled":{"type":"integer","title":"N Wrong Labeled"},"trap_hits":{"type":"integer","title":"Trap Hits"},"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"peer_n":{"type":"integer","title":"Peer N"},"above_peer":{"type":"boolean","title":"Above Peer"},"by_style":{"items":{"$ref":"#/components/schemas/AnalysisStratejiStyleRead"},"type":"array","title":"By Style"},"examples":{"items":{"$ref":"#/components/schemas/AnalysisStratejiTrapExampleRead"},"type":"array","title":"Examples"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["n_wrong_labeled","trap_hits","rate","peer_rate","peer_n","above_peer","by_style","examples","gate"],"title":"AnalysisStratejiCommonWrong10aRead","description":"``common_wrong`` of a run of ``2026.10-a``: ``peer_n`` and no ``peer_rate_reason``, served as stored (a key a\nrun computed before it existed is absent, never ``null``)."},"AnalysisStratejiCommonWrongLegacyRead":{"properties":{"n_wrong_labeled":{"type":"integer","title":"N Wrong Labeled"},"trap_hits":{"type":"integer","title":"Trap Hits"},"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"above_peer":{"type":"boolean","title":"Above Peer"},"by_style":{"items":{"$ref":"#/components/schemas/AnalysisStratejiStyleRead"},"type":"array","title":"By Style"},"examples":{"items":{"$ref":"#/components/schemas/AnalysisStratejiTrapExampleRead"},"type":"array","title":"Examples"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["n_wrong_labeled","trap_hits","rate","peer_rate","above_peer","by_style","examples","gate"],"title":"AnalysisStratejiCommonWrongLegacyRead","description":"``common_wrong`` of a run before ``2026.10-a``: the same block without ``peer_n``, served as stored."},"AnalysisStratejiCommonWrongRead":{"properties":{"n_wrong_labeled":{"type":"integer","title":"N Wrong Labeled"},"trap_hits":{"type":"integer","title":"Trap Hits"},"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"peer_n":{"type":"integer","title":"Peer N","description":"The students behind ``peer_rate``; 0 where no student of the tercile qualified and the rate is ``null``."},"peer_rate_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Peer Rate Reason","description":"``none_qualified`` beside a ``null`` ``peer_rate``; ``null`` beside a rate."},"above_peer":{"type":"boolean","title":"Above Peer"},"by_style":{"items":{"$ref":"#/components/schemas/AnalysisStratejiStyleRead"},"type":"array","title":"By Style"},"examples":{"items":{"$ref":"#/components/schemas/AnalysisStratejiTrapExampleRead"},"type":"array","title":"Examples"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["n_wrong_labeled","trap_hits","rate","peer_rate","peer_n","peer_rate_reason","above_peer","by_style","examples","gate"],"title":"AnalysisStratejiCommonWrongRead","description":"Falling for common wrong answers against the tercile: the student's rate over the labeled wrongs (``null`` below\n``gates.min_labeled_wrongs``), the tercile's rate with the students behind it, whether the student is above it, the\nstyles with the most hits first, up to three examples. The shape of a run of ``2026.10-b`` or later."},"AnalysisStratejiCountRead":{"properties":{"count":{"type":"integer","title":"Count"}},"additionalProperties":true,"type":"object","required":["count"],"title":"AnalysisStratejiCountRead","description":"A number of blanks (``blanks.hard``, ``blanks.mid``)."},"AnalysisStratejiDifficultyBandsRead":{"properties":{"bands":{"items":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiBandGatedRead"},{"$ref":"#/components/schemas/AnalysisStratejiBandRead"}]},"type":"array","title":"Bands"},"basis":{"type":"string","title":"Basis"},"caveat":{"type":"string","title":"Caveat"}},"additionalProperties":true,"type":"object","required":["bands","basis","caveat"],"title":"AnalysisStratejiDifficultyBandsRead","description":"The four bands, the ``basis`` of the difficulty (``rasch_b_same_exam``) and its circularity caveat, Turkish since\npipeline ``2026.10-h`` (contract 0.16; English on a run before it)."},"AnalysisStratejiDistractorEvidence10aRead":{"properties":{"trap_hits":{"type":"integer","title":"Trap Hits"},"n_wrong_labeled":{"type":"integer","title":"N Wrong Labeled"},"rate":{"type":"number","title":"Rate"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"peer_n":{"type":"integer","title":"Peer N"},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids"}},"additionalProperties":true,"type":"object","required":["trap_hits","n_wrong_labeled","rate","peer_rate","peer_n","question_ids"],"title":"AnalysisStratejiDistractorEvidence10aRead","description":"The distractor evidence of a run of ``2026.10-a``: ``peer_n`` and no ``peer_rate_reason``, served as stored."},"AnalysisStratejiDistractorEvidenceLegacyRead":{"properties":{"trap_hits":{"type":"integer","title":"Trap Hits"},"n_wrong_labeled":{"type":"integer","title":"N Wrong Labeled"},"rate":{"type":"number","title":"Rate"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids"}},"additionalProperties":true,"type":"object","required":["trap_hits","n_wrong_labeled","rate","peer_rate","question_ids"],"title":"AnalysisStratejiDistractorEvidenceLegacyRead","description":"The distractor evidence of a run before ``2026.10-a``: the same without ``peer_n``, served as stored."},"AnalysisStratejiDistractorEvidenceRead":{"properties":{"trap_hits":{"type":"integer","title":"Trap Hits"},"n_wrong_labeled":{"type":"integer","title":"N Wrong Labeled"},"rate":{"type":"number","title":"Rate"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"peer_n":{"type":"integer","title":"Peer N","description":"The count ``common_wrong.peer_n`` carries; 0 beside a ``null`` rate."},"peer_rate_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Peer Rate Reason","description":"``none_qualified`` beside a ``null`` ``peer_rate``."},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids"}},"additionalProperties":true,"type":"object","required":["trap_hits","n_wrong_labeled","rate","peer_rate","peer_n","peer_rate_reason","question_ids"],"title":"AnalysisStratejiDistractorEvidenceRead","description":"The evidence of ``distractor-above`` and ``distractor-common``: the student's trap hits and rate, the tercile's\nrate with the students behind it and why a rate is ``null``, the examples. The shape of a run of ``2026.10-b`` or\nlater."},"AnalysisStratejiGates10eRead":{"properties":{"reachable_peer_rate":{"type":"number","title":"Reachable Peer Rate"},"hard_peer_rate":{"type":"number","title":"Hard Peer Rate"},"min_blanks":{"type":"integer","title":"Min Blanks"},"selectivity_diff":{"type":"number","title":"Selectivity Diff"},"min_blanks_for_position":{"type":"integer","title":"Min Blanks For Position"},"min_labeled_wrongs":{"type":"integer","title":"Min Labeled Wrongs"},"trap_above_peer":{"type":"number","title":"Trap Above Peer"},"min_subject_n":{"type":"integer","title":"Min Subject N"},"notable_blank_gap":{"type":"number","title":"Notable Blank Gap"},"risky_accuracy":{"type":"number","title":"Risky Accuracy"},"risky_min_wrong":{"type":"integer","title":"Risky Min Wrong"},"timid_accuracy":{"type":"number","title":"Timid Accuracy"},"min_band_attempted":{"type":"integer","title":"Min Band Attempted"},"min_long_short":{"type":"integer","title":"Min Long Short"},"min_attempted_recoverable":{"type":"integer","title":"Min Attempted Recoverable"},"trap_share_min":{"type":"number","title":"Trap Share Min"},"min_wrong_ship":{"type":"integer","title":"Min Wrong Ship"},"position_blank_run_min":{"type":"integer","title":"Position Blank Run Min"},"position_tail_p":{"type":"number","title":"Position Tail P"},"position_konu_min_questions":{"type":"integer","title":"Position Konu Min Questions"},"position_late_excess_min":{"type":"number","title":"Position Late Excess Min"}},"additionalProperties":true,"type":"object","required":["reachable_peer_rate","hard_peer_rate","min_blanks","selectivity_diff","min_blanks_for_position","min_labeled_wrongs","trap_above_peer","min_subject_n","notable_blank_gap","risky_accuracy","risky_min_wrong","timid_accuracy","min_band_attempted","min_long_short","min_attempted_recoverable","trap_share_min","min_wrong_ship","position_blank_run_min","position_tail_p","position_konu_min_questions","position_late_excess_min"],"title":"AnalysisStratejiGates10eRead","description":"The thresholds since ``2026.10-e``: the four position gates of ``alfabemy_core.gates`` (owner decisions AV18 and\nAV19) beside the others."},"AnalysisStratejiGates10hRead":{"properties":{"reachable_peer_rate":{"type":"number","title":"Reachable Peer Rate"},"hard_peer_rate":{"type":"number","title":"Hard Peer Rate"},"min_blanks":{"type":"integer","title":"Min Blanks"},"selectivity_diff":{"type":"number","title":"Selectivity Diff"},"min_blanks_for_position":{"type":"integer","title":"Min Blanks For Position"},"min_labeled_wrongs":{"type":"integer","title":"Min Labeled Wrongs"},"trap_above_peer":{"type":"number","title":"Trap Above Peer"},"min_subject_n":{"type":"integer","title":"Min Subject N"},"notable_blank_gap":{"type":"number","title":"Notable Blank Gap"},"risky_accuracy":{"type":"number","title":"Risky Accuracy"},"risky_min_wrong":{"type":"integer","title":"Risky Min Wrong"},"timid_accuracy":{"type":"number","title":"Timid Accuracy"},"min_band_attempted":{"type":"integer","title":"Min Band Attempted"},"min_long_short":{"type":"integer","title":"Min Long Short"},"min_attempted_recoverable":{"type":"integer","title":"Min Attempted Recoverable"},"trap_share_min":{"type":"number","title":"Trap Share Min"},"min_wrong_ship":{"type":"integer","title":"Min Wrong Ship"},"position_blank_run_min":{"type":"integer","title":"Position Blank Run Min"},"position_tail_p":{"type":"number","title":"Position Tail P"},"position_konu_min_questions":{"type":"integer","title":"Position Konu Min Questions"},"position_late_excess_min":{"type":"number","title":"Position Late Excess Min"},"distractor_majority_share":{"type":"number","title":"Distractor Majority Share"}},"additionalProperties":true,"type":"object","required":["reachable_peer_rate","hard_peer_rate","min_blanks","selectivity_diff","min_blanks_for_position","min_labeled_wrongs","trap_above_peer","min_subject_n","notable_blank_gap","risky_accuracy","risky_min_wrong","timid_accuracy","min_band_attempted","min_long_short","min_attempted_recoverable","trap_share_min","min_wrong_ship","position_blank_run_min","position_tail_p","position_konu_min_questions","position_late_excess_min","distractor_majority_share"],"title":"AnalysisStratejiGates10hRead","description":"The thresholds since ``2026.10-h`` (owner decision 159): the share of the labeled wrong answers the distractor\nstrategy needs beside the others (the source writes the key; not in its typed models)."},"AnalysisStratejiGatesRead":{"properties":{"reachable_peer_rate":{"type":"number","title":"Reachable Peer Rate"},"hard_peer_rate":{"type":"number","title":"Hard Peer Rate"},"min_blanks":{"type":"integer","title":"Min Blanks"},"selectivity_diff":{"type":"number","title":"Selectivity Diff"},"min_blanks_for_position":{"type":"integer","title":"Min Blanks For Position"},"min_labeled_wrongs":{"type":"integer","title":"Min Labeled Wrongs"},"trap_above_peer":{"type":"number","title":"Trap Above Peer"},"min_subject_n":{"type":"integer","title":"Min Subject N"},"notable_blank_gap":{"type":"number","title":"Notable Blank Gap"},"risky_accuracy":{"type":"number","title":"Risky Accuracy"},"risky_min_wrong":{"type":"integer","title":"Risky Min Wrong"},"timid_accuracy":{"type":"number","title":"Timid Accuracy"},"min_band_attempted":{"type":"integer","title":"Min Band Attempted"},"min_long_short":{"type":"integer","title":"Min Long Short"},"min_attempted_recoverable":{"type":"integer","title":"Min Attempted Recoverable"},"trap_share_min":{"type":"number","title":"Trap Share Min"},"min_wrong_ship":{"type":"integer","title":"Min Wrong Ship"}},"additionalProperties":true,"type":"object","required":["reachable_peer_rate","hard_peer_rate","min_blanks","selectivity_diff","min_blanks_for_position","min_labeled_wrongs","trap_above_peer","min_subject_n","notable_blank_gap","risky_accuracy","risky_min_wrong","timid_accuracy","min_band_attempted","min_long_short","min_attempted_recoverable","trap_share_min","min_wrong_ship"],"title":"AnalysisStratejiGatesRead","description":"Every threshold of Sınav Stratejisi (``alfabemy_core.strateji.StratejiGates``) and the two core gates it reads."},"AnalysisStratejiInsufficientRead":{"properties":{"title":{"type":"string","title":"Title"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":true,"type":"object","required":["title","reason"],"title":"AnalysisStratejiInsufficientRead","description":"A signal that could not be measured, with the real reason (Turkish display text)."},"AnalysisStratejiLateControlRead":{"properties":{"blanks":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Blanks","description":"The expected late blanks."},"positions":{"type":"integer","title":"Positions","description":"The pooled last-third positions."},"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate","description":"The expected blank rate over them."},"observed_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Observed Rate"},"excess":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Excess","description":"Observed minus expected rate."},"gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}],"description":"``position_late_excess_min`` with the excess as ``actual``."}},"additionalProperties":true,"type":"object","required":["blanks","positions","rate","observed_rate","excess","gate"],"title":"AnalysisStratejiLateControlRead","description":"``blanks.position.late_control`` (``2026.10-e``, owner decision AV18): what the questions' blank rates in the\nstudent's tercile predict for the last third of the sections, against what the student left there. Every value but\n``positions`` and ``observed_rate`` is ``null`` without item rates (``late_reason`` ``peer_blank_rate_missing``)."},"AnalysisStratejiLockedRead":{"properties":{"title":{"type":"string","title":"Title"},"what":{"type":"string","title":"What"},"when":{"type":"string","title":"When"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key","description":"The code of 8.7 ``locks[]``: ``blank_habit`` | ``rank_estimate``."},"unlocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unlocked","description":"``false``: no rule opens either today."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"8.7's Turkish note."}},"additionalProperties":true,"type":"object","required":["title","what","when"],"title":"AnalysisStratejiLockedRead","description":"An 8.3 ``locked[]`` entry. Since pipeline ``2026.10-h`` (contract 0.16) it also carries the three keys below and\nits ``when`` names no count; a run before it has none of them."},"AnalysisStratejiLongShortRead":{"properties":{"long":{"$ref":"#/components/schemas/AnalysisStratejiTextCountRead"},"short":{"$ref":"#/components/schemas/AnalysisStratejiTextCountRead"},"long_blank_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Long Blank Rate"},"short_blank_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Short Blank Rate"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["long","short","long_blank_rate","short_blank_rate","gate"],"title":"AnalysisStratejiLongShortRead","description":"Long against short Türkçe texts; both rates are ``null`` below ``gates.min_long_short`` questions of each."},"AnalysisStratejiMarkingEvidenceRead":{"properties":{"subjects":{"items":{"type":"string"},"type":"array","title":"Subjects"},"marking":{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiMarkingGatedRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingLegacyGatedRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingLegacyRead"}]},"type":"object","title":"Marking"}},"additionalProperties":true,"type":"object","required":["subjects","marking"],"title":"AnalysisStratejiMarkingEvidenceRead","description":"The evidence of ``marking-risky``, ``marking-timid`` and ``marking-both``: the featured dersler and their\n``marking`` rows."},"AnalysisStratejiMarkingGatedRead":{"properties":{"subject_name":{"type":"string","title":"Subject Name"},"n":{"type":"integer","title":"N"},"blank":{"type":"integer","title":"Blank"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank_rate":{"type":"number","title":"Blank Rate"},"peer_blank_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Blank Rate","description":"The tercile's blank rate on the ders; ``null`` without one. Since ``2026.10-d`` over the student's own scored questions (a cancelled question left out), so beside an ``all_correct`` question it differs from 8.1 ``cohort.blank_rate_by_tercile``."},"peer_blank_rate_n":{"type":"integer","title":"Peer Blank Rate N","description":"The students of the student's tercile behind ``peer_blank_rate``; 0 beside a ``null`` rate."},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"},"tendency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tendency","description":"``more_attempts`` | ``more_blanks`` | ``as_expected``; ``null`` without a peer blank rate."},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy","description":"Correct share of the answered questions."},"accuracy_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accuracy Reason","description":"``nothing_attempted`` beside a ``null`` accuracy; ``null`` beside a value."},"verdict":{"type":"string","title":"Verdict","description":"``risky`` | ``timid`` | ``balanced``; ``insufficient`` on the gated shape."},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["subject_name","n","blank","correct","wrong","blank_rate","peer_blank_rate","peer_blank_rate_n","gap","tendency","accuracy","accuracy_reason","verdict","gate"],"title":"AnalysisStratejiMarkingGatedRead","description":"A ders without a verdict (``verdict: insufficient``): the same row and its gate: ``min_subject_n`` below that many\nquestions; since pipeline ``2026.10-h`` (contract 0.16) else ``nothing_attempted`` (``required`` 1, ``actual`` 0)\nwhere the student left every question of the ders blank, a ders that read ``balanced`` before, else\n``peer_blank_rate_missing`` (``required`` 1, ``actual`` the students behind the rate) where the tercile has no blank\nrate (before, ``min_subject_n`` with the question count)."},"AnalysisStratejiMarkingLegacyGatedRead":{"properties":{"subject_name":{"type":"string","title":"Subject Name"},"n":{"type":"integer","title":"N"},"blank":{"type":"integer","title":"Blank"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank_rate":{"type":"number","title":"Blank Rate"},"peer_blank_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Blank Rate"},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"},"tendency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tendency"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"verdict":{"type":"string","title":"Verdict"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["subject_name","n","blank","correct","wrong","blank_rate","peer_blank_rate","gap","tendency","accuracy","verdict","gate"],"title":"AnalysisStratejiMarkingLegacyGatedRead","description":"A marking row without a verdict of a run before ``2026.10-b``, with its gate."},"AnalysisStratejiMarkingLegacyRead":{"properties":{"subject_name":{"type":"string","title":"Subject Name"},"n":{"type":"integer","title":"N"},"blank":{"type":"integer","title":"Blank"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank_rate":{"type":"number","title":"Blank Rate"},"peer_blank_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Blank Rate"},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"},"tendency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tendency"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"verdict":{"type":"string","title":"Verdict"}},"additionalProperties":true,"type":"object","required":["subject_name","n","blank","correct","wrong","blank_rate","peer_blank_rate","gap","tendency","accuracy","verdict"],"title":"AnalysisStratejiMarkingLegacyRead","description":"A marking row of a run before ``2026.10-b``: without ``peer_blank_rate_n`` and ``accuracy_reason``, served as\nstored."},"AnalysisStratejiMarkingRead":{"properties":{"subject_name":{"type":"string","title":"Subject Name"},"n":{"type":"integer","title":"N"},"blank":{"type":"integer","title":"Blank"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank_rate":{"type":"number","title":"Blank Rate"},"peer_blank_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Blank Rate","description":"The tercile's blank rate on the ders; ``null`` without one. Since ``2026.10-d`` over the student's own scored questions (a cancelled question left out), so beside an ``all_correct`` question it differs from 8.1 ``cohort.blank_rate_by_tercile``."},"peer_blank_rate_n":{"type":"integer","title":"Peer Blank Rate N","description":"The students of the student's tercile behind ``peer_blank_rate``; 0 beside a ``null`` rate."},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"},"tendency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tendency","description":"``more_attempts`` | ``more_blanks`` | ``as_expected``; ``null`` without a peer blank rate."},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy","description":"Correct share of the answered questions."},"accuracy_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accuracy Reason","description":"``nothing_attempted`` beside a ``null`` accuracy; ``null`` beside a value."},"verdict":{"type":"string","title":"Verdict","description":"``risky`` | ``timid`` | ``balanced``; ``insufficient`` on the gated shape."}},"additionalProperties":true,"type":"object","required":["subject_name","n","blank","correct","wrong","blank_rate","peer_blank_rate","peer_blank_rate_n","gap","tendency","accuracy","accuracy_reason","verdict"],"title":"AnalysisStratejiMarkingRead","description":"The marking of one ders with a verdict: the counts, the blank rate against the tercile's with the students behind\nit, the tendency and the accuracy on the answered questions. The shape of a run of ``2026.10-b`` or later."},"AnalysisStratejiNoPeerRateRead":{"properties":{"count":{"type":"integer","title":"Count"},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["count","question_ids","gate"],"title":"AnalysisStratejiNoPeerRateRead","description":"``blanks.no_peer_rate``: the blanks of questions without a peer rate (fewer than ``min_peer_rate_n`` peers took\nthem), counted apart, never in ``reachable``, ``hard`` or ``mid``, with that gate (``required`` only)."},"AnalysisStratejiReachableRead":{"properties":{"count":{"type":"integer","title":"Count"},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids"}},"additionalProperties":true,"type":"object","required":["count","question_ids"],"title":"AnalysisStratejiReachableRead","description":"The reachable blanks: peer rate at least ``gates.reachable_peer_rate`` (50%), the highest peer rate first."},"AnalysisStratejiRecoverableRead":{"properties":{"value":{"type":"number","title":"Value"},"by_subject":{"additionalProperties":{"type":"number"},"type":"object","title":"By Subject"},"caveat":{"type":"string","title":"Caveat","description":"Turkish display text."}},"additionalProperties":true,"type":"object","required":["value","by_subject","caveat"],"title":"AnalysisStratejiRecoverableRead","description":"``blanks.recoverable_upper_bound``: the blanks marked at the student's own accuracy on the answered questions,\n``max(0, 1.25 × accuracy − 0.25) × blanks``, per ders (only where at least ``min_attempted_recoverable`` questions\nwere answered) and in total, with its caveat. An optimistic bound, never a strategy's evidence, never added to\n``potential_net`` (8.2)."},"AnalysisStratejiRunEntryRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"positions":{"type":"integer","title":"Positions"},"longest":{"type":"integer","title":"Longest"},"start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start","description":"Ordinal of the run's first position among the section's positions."},"end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"},"reaches_end":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reaches End"},"p":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"P","description":"The tails under ``permutation``, ``difficulty`` and ``konu``."},"beyond_chance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Beyond Chance","description":"Every tail at most ``position_tail_p``."},"gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["code","name","positions","longest","start","end","reaches_end","p","beyond_chance","gate"],"title":"AnalysisStratejiRunEntryRead","description":"One section of ``blanks.position.runs[]`` (``2026.10-e``, owner decision AV19): the longest run of consecutive\nblanks among the student's scored positions (a ders left wholly blank breaks a run), and from\n``position_blank_run_min`` its tails under three nulls. ``p`` and ``beyond_chance`` are ``null`` below the floor or\nwithout item rates; ``gate`` says which (``position_blank_run_min`` | ``position_tail_p``), ``null`` without item\nrates."},"AnalysisStratejiRunEvidenceRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"positions":{"type":"integer","title":"Positions"},"longest":{"type":"integer","title":"Longest"},"start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start","description":"Ordinal of the run's first position among the section's positions."},"end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"},"reaches_end":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reaches End"},"p":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"P","description":"The tails under ``permutation``, ``difficulty`` and ``konu``."},"beyond_chance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Beyond Chance","description":"Every tail at most ``position_tail_p``."},"gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["code","name","positions","longest","start","end","reaches_end","p","beyond_chance","gate"],"title":"AnalysisStratejiRunEvidenceRead","description":"The evidence of ``blanks-run`` (``2026.10-e``, owner decision AV19): the run that speaks, as\n``blanks.position.run`` carries it."},"AnalysisStratejiRunRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"positions":{"type":"integer","title":"Positions"},"longest":{"type":"integer","title":"Longest"},"start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start","description":"Ordinal of the run's first position among the section's positions."},"end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End"},"reaches_end":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reaches End"},"p":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"P","description":"The tails under ``permutation``, ``difficulty`` and ``konu``."},"beyond_chance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Beyond Chance","description":"Every tail at most ``position_tail_p``."},"gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["code","name","positions","longest","start","end","reaches_end","p","beyond_chance","gate"],"title":"AnalysisStratejiRunRead","description":"The run that speaks (``blanks.position.run``): the entry whose tails passed, its ``gate`` ``position_tail_p``\nwith the worst tail."},"AnalysisStratejiSectionBlanksRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"thirds":{"items":{"type":"integer"},"type":"array","title":"Thirds"},"total":{"type":"integer","title":"Total"}},"additionalProperties":true,"type":"object","required":["code","name","thirds","total"],"title":"AnalysisStratejiSectionBlanksRead","description":"The blanks of one section by thirds of its length (early, middle, late); a section without a blank is not\nlisted."},"AnalysisStratejiSectionEvidence10eRead":{"properties":{"by_section":{"items":{"$ref":"#/components/schemas/AnalysisStratejiSectionBlanksRead"},"type":"array","title":"By Section"},"late_control":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiLateControlRead"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["by_section","late_control"],"title":"AnalysisStratejiSectionEvidence10eRead","description":"The evidence of ``section-late`` and ``section-spread`` since ``2026.10-e`` (owner decision AV18): the sections'\nthirds and the last third's expectation (``null`` on a spread evidence built without one)."},"AnalysisStratejiSectionEvidenceRead":{"properties":{"by_section":{"items":{"$ref":"#/components/schemas/AnalysisStratejiSectionBlanksRead"},"type":"array","title":"By Section"}},"additionalProperties":true,"type":"object","required":["by_section"],"title":"AnalysisStratejiSectionEvidenceRead","description":"The evidence of ``section-late`` and ``section-spread`` of a run before ``2026.10-e``."},"AnalysisStratejiSelectivityRead":{"properties":{"blanked_peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Blanked Peer Rate","description":"Mean peer rate of the blanked questions."},"wrong_peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wrong Peer Rate","description":"Mean peer rate of the wrongly answered questions."},"selective":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selective"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"}},"additionalProperties":true,"type":"object","required":["blanked_peer_rate","wrong_peer_rate","selective","gate"],"title":"AnalysisStratejiSelectivityRead","description":"Whether the blanks were harder for the level than the wrongs: the two mean peer rates (``null`` without a question\non that side) and ``selective`` (``null`` below ``gates.min_blanks`` blanks)."},"AnalysisStratejiStrategyRead":{"properties":{"variant":{"type":"string","title":"Variant","description":"Machine code: ``distractor-above``, ``distractor-common``, ``blanks-selective-reachable``, ``blanks-selective``, ``blanks-reachable``, ``blanks-plain``, ``section-late``, ``section-spread``, ``blanks-run`` (since ``2026.10-e``), ``marking-risky``, ``marking-timid``, ``marking-both``."},"title":{"type":"string","title":"Title","description":"Turkish display text."},"action":{"type":"string","title":"Action","description":"What to do next time; Turkish display text."},"reason":{"type":"string","title":"Reason","description":"One measured sentence; Turkish display text."},"evidence":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiDistractorEvidenceRead"},{"$ref":"#/components/schemas/AnalysisStratejiDistractorEvidence10aRead"},{"$ref":"#/components/schemas/AnalysisStratejiDistractorEvidenceLegacyRead"},{"$ref":"#/components/schemas/AnalysisStratejiBlanksEvidenceRead"},{"$ref":"#/components/schemas/AnalysisStratejiRunEvidenceRead"},{"$ref":"#/components/schemas/AnalysisStratejiSectionEvidence10eRead"},{"$ref":"#/components/schemas/AnalysisStratejiSectionEvidenceRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingEvidenceRead"}],"title":"Evidence"},"priority":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Priority"}},"additionalProperties":true,"type":"object","required":["variant","title","action","reason","evidence","priority"],"title":"AnalysisStratejiStrategyRead","description":"One strategy; ``evidence`` has the shape of the ``variant``'s family. The list is ordered by ``priority``, highest\nfirst."},"AnalysisStratejiStyleRead":{"properties":{"style":{"type":"string","title":"Style"},"n_wrong":{"type":"integer","title":"N Wrong"},"hits":{"type":"integer","title":"Hits"},"advice":{"type":"string","title":"Advice"}},"additionalProperties":true,"type":"object","required":["style","n_wrong","hits","advice"],"title":"AnalysisStratejiStyleRead","description":"The labeled wrongs of one distractor style, the trap hits among them, and the advice (Turkish display text)."},"AnalysisStratejiTextCountRead":{"properties":{"n":{"type":"integer","title":"N"},"blank":{"type":"integer","title":"Blank"}},"additionalProperties":true,"type":"object","required":["n","blank"],"title":"AnalysisStratejiTextCountRead","description":"The Türkçe questions of one text length and the blanks among them."},"AnalysisStratejiTrapExampleRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"letter":{"type":"string","title":"Letter"},"share":{"type":"number","title":"Share"},"trap_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trap Id"}},"additionalProperties":true,"type":"object","required":["question_id","letter","share","trap_id"],"title":"AnalysisStratejiTrapExampleRead","description":"A trap hit: the question, the common wrong letter the student chose, its share of the question's wrong answers,\nand the question's first trap id."},"AnalysisStudentCampusRead":{"properties":{"campus_id":{"type":"string","title":"Campus Id","description":"The roster's campus code of the sitting."},"cohort":{"type":"string","title":"Cohort","description":"``all``, or the alan on an AYT."},"n":{"type":"integer","title":"N","description":"The group's students."},"rank":{"$ref":"#/components/schemas/AnalysisCohortRankRead"},"position":{"anyOf":[{"$ref":"#/components/schemas/AnalysisPositionRead"},{"$ref":"#/components/schemas/AnalysisPositionGatedRead"}],"title":"Position"}},"additionalProperties":true,"type":"object","required":["campus_id","cohort","n","rank","position"],"title":"AnalysisStudentCampusRead","description":"8.2 ``campus`` (WP-B, 2026-09-28): the student's campus within the student's cohort, its size, the rank in it and\nthe position in its distribution (a range only from 50 students of the group)."},"AnalyticsJobRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"analysis_run_id":{"type":"string","title":"Analysis Run Id","description":"Intelligence's analysis run the job materialises."},"kind":{"type":"string","title":"Kind","description":"``materialize``."},"state":{"type":"string","title":"State","description":"``queued`` | ``running`` | ``done`` | ``failed``."},"attempts":{"type":"integer","title":"Attempts","description":"Runs so far; a failed job is retried by the sweep until INTELLIGENCE__ANALYTICS_JOB_MAX_ATTEMPTS."},"last_error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Error","description":"Codes and counts of the last failure or skip (``superseded``, ``results_not_recorded``, an Intelligence error code...)."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["id","analysis_run_id","kind","state","attempts","created_at"],"title":"AnalyticsJobRead","description":"The materialisation job of the exam's current analysis run (``null`` when none was queued)."},"AnalyticsMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the (latest) run the response reads."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every exam the response reads."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload (a roster change changes the response)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (ISO 8601 with offset); a cached body keeps its time."},"visibility":{"type":"string","title":"Visibility","description":"`all` (institution admin), `campuses` (campus manager, D9 extension) or `sections` (teacher: every aggregate is over their sections only).","default":"all"}},"type":"object","title":"AnalyticsMeta","description":"D13: the freshness of an analytics response. Clients cache by ``(endpoint, params, analysis_run_ids,\nroster_upload_id)``; the server answers ``ETag`` / ``If-None-Match`` on every GET."},"AnalyticsRunCountsRead":{"properties":{"questions":{"type":"integer","title":"Questions","default":0},"students":{"type":"integer","title":"Students","default":0},"answers":{"type":"integer","title":"Answers","default":0}},"type":"object","title":"AnalyticsRunCountsRead"},"AnalyticsRunRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"analysis_run_id":{"type":"string","title":"Analysis Run Id"},"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version"},"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version"},"state":{"type":"string","title":"State","description":"``fetching`` while the job writes, ``ready`` when the panel may read it, ``failed``."},"student_count":{"type":"integer","title":"Student Count"},"fetched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fetched At"},"labels_pending":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Labels Pending","description":"Intelligence's gates.labels_pending of the run: a partial run is re-materialised when the exam turns completed."},"counts":{"$ref":"#/components/schemas/AnalyticsRunCountsRead","description":"Rows per table."},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error","description":"``missing_entries`` (roster entry ids Intelligence had no analysis for), ``labels_unavailable``...: ids and codes only."}},"type":"object","required":["id","analysis_run_id","state","student_count"],"title":"AnalyticsRunRead","description":"The materialised run of the exam's current analysis run (``null`` until one was written)."},"AnalyticsRunStatusRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"analysis_run_id":{"type":"string","title":"Analysis Run Id"},"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version"},"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version"},"state":{"type":"string","title":"State","description":"``fetching`` while the job writes, ``ready`` when the panel may read it, ``failed``."},"student_count":{"type":"integer","title":"Student Count"},"fetched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fetched At"},"labels_pending":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Labels Pending","description":"Intelligence's gates.labels_pending of the run: a partial run is re-materialised when the exam turns completed."},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error","description":"``missing_entries`` (roster entry ids Intelligence had no analysis for), ``labels_unavailable``...: ids and codes only."}},"type":"object","required":["id","analysis_run_id","state","student_count"],"title":"AnalyticsRunStatusRead","description":"The run as the batch read serves it: ``AnalyticsRunRead`` without ``counts`` (three row counts per exam, the\nbatch read's one expensive part, which no screen reads)."},"AnswerFlagsRead":{"properties":{"expected_miss":{"type":"boolean","title":"Expected Miss"},"hard_correct":{"type":"boolean","title":"Hard Correct"},"trap_hit":{"type":"boolean","title":"Trap Hit"},"reachable_blank":{"type":"boolean","title":"Reachable Blank"}},"type":"object","required":["expected_miss","hard_correct","trap_hit","reachable_blank"],"title":"AnswerFlagsRead"},"AnswerLessonRequestRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"lesson_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Id"},"decision":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},"approval_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Comment"}},"type":"object","required":["lesson_request_id","course_id","decision"],"title":"AnswerLessonRequestRead"},"AnswerLessonRequestRequest":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"decision":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus","description":"Only APPROVED or REJECTED is allowed."},"approval_comment":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Approval Comment"}},"type":"object","required":["lesson_request_id","decision"],"title":"AnswerLessonRequestRequest"},"AppError":{"properties":{"input_index":{"type":"integer","title":"Input Index","description":"For bulk ops; -1 if not tied to a specific input item."},"error_code":{"type":"string","title":"Error Code","description":"BaseErrorCode or a module-specific error code string."},"detail":{"type":"string","title":"Detail","default":""},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id","description":"Related parent ID if applicable."}},"type":"object","required":["input_index","error_code"],"title":"AppError"},"AppSwitchRequest":{"properties":{"next":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Next","description":"A path inside the target application, e.g. /exams/42"}},"type":"object","title":"AppSwitchRequest"},"AppSwitchResponse":{"properties":{"redirect_url":{"type":"string","title":"Redirect Url"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["redirect_url","expires_in"],"title":"AppSwitchResponse"},"AreaRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"order":{"type":"integer","title":"Order"}},"type":"object","required":["id","name","order"],"title":"AreaRead","description":"Grouping on the topic atlas map: `dil`, `sayisal`, `sosyal`, `fen`."},"AsyncVideoStatus":{"type":"string","enum":["UPLOADING","PROCESSING","READY","ERROR"],"title":"AsyncVideoStatus","description":"Lifecycle of a Cloudflare Stream backed video asset."},"AtlasAreaRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"order":{"type":"integer","title":"Order"}},"type":"object","required":["id","name","order"],"title":"AtlasAreaRead"},"AtlasBucketRead":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id","description":"Topic id ``<subject>/<bucket_id>`` (the same id in S2, S6 and S0)."},"name":{"type":"string","title":"Name"},"subject":{"type":"string","title":"Subject"},"node":{"$ref":"#/components/schemas/AtlasNodeRead"},"depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Depth"},"prerequisite_bucket_ids":{"items":{"type":"string"},"type":"array","title":"Prerequisite Bucket Ids"},"prerequisite_edges":{"items":{"$ref":"#/components/schemas/AtlasPrerequisiteEdgeRead"},"type":"array","title":"Prerequisite Edges","description":"Same subject first, then any (``cross_subject``)."},"missing_prerequisite_units":{"items":{"$ref":"#/components/schemas/AtlasUnitRead"},"type":"array","title":"Missing Prerequisite Units","description":"Prerequisite units with no topic, with names."},"dependent_bucket_ids":{"items":{"type":"string"},"type":"array","title":"Dependent Bucket Ids","description":"The topics whose prerequisites include this one (one rule for inspector and map)."},"learning_path":{"$ref":"#/components/schemas/AtlasLearningPathRead"}},"type":"object","required":["bucket_id","name","subject","node","prerequisite_bucket_ids","prerequisite_edges","missing_prerequisite_units","dependent_bucket_ids","learning_path"],"title":"AtlasBucketRead"},"AtlasCoverageRead":{"properties":{"unit_count":{"type":"integer","title":"Unit Count"},"bucket_count":{"type":"integer","title":"Bucket Count"},"judged_bucket_count":{"type":"integer","title":"Judged Bucket Count"},"skill_count":{"type":"integer","title":"Skill Count"},"judged_skill_count":{"type":"integer","title":"Judged Skill Count"},"prerequisite_subjects":{"items":{"type":"string"},"type":"array","title":"Prerequisite Subjects"}},"type":"object","required":["unit_count","bucket_count","judged_bucket_count","skill_count","judged_skill_count","prerequisite_subjects"],"title":"AtlasCoverageRead"},"AtlasEvidenceExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"short_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Label"},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On"},"tercile":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tercile"},"norm_sample":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Norm Sample"}},"type":"object","required":["exam_id","exam_name"],"title":"AtlasEvidenceExamRead"},"AtlasEvidenceRead":{"properties":{"exam_count":{"type":"integer","title":"Exam Count"},"item_count":{"type":"integer","title":"Item Count"},"chronology":{"type":"string","title":"Chronology"},"exams":{"items":{"$ref":"#/components/schemas/AtlasEvidenceExamRead"},"type":"array","title":"Exams","description":"Sittings in scope, chronological (5.6)."}},"type":"object","required":["exam_count","item_count","chronology","exams"],"title":"AtlasEvidenceRead"},"AtlasGatesRead":{"properties":{"min_bucket_n":{"type":"integer","title":"Min Bucket N"},"min_cell":{"type":"integer","title":"Min Cell"},"gap_target_max":{"type":"number","title":"Gap Target Max"},"subject_signal_closed":{"items":{"type":"string"},"type":"array","title":"Subject Signal Closed","description":"The dersler Intelligence's per-ders signal gate closes, read from the installed core (``alfabemy_core.gates.subject_signal_closed``: coğrafya, tarih, felsefe; D29, replacing D8's empty list): their kova and ders nodes carry ``gate`` and no verdict, their answers leave the skills, none of their topics enters ``study_order``."}},"type":"object","required":["min_bucket_n","min_cell","gap_target_max"],"title":"AtlasGatesRead"},"AtlasGraphEdgeRead":{"properties":{"from":{"type":"string","title":"From"},"to":{"type":"string","title":"To"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"}},"type":"object","required":["from","to"],"title":"AtlasGraphEdgeRead"},"AtlasGraphNodeRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Id","description":"Null when no topic has that name."},"question_count":{"type":"integer","title":"Question Count"},"depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Depth"}},"type":"object","required":["id","name","question_count"],"title":"AtlasGraphNodeRead"},"AtlasGraphRead":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/AtlasGraphNodeRead"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/AtlasGraphEdgeRead"},"type":"array","title":"Edges"}},"type":"object","required":["nodes","edges"],"title":"AtlasGraphRead"},"AtlasItemFlagsRead":{"properties":{"expected_miss":{"type":"boolean","title":"Expected Miss"},"hard_correct":{"type":"boolean","title":"Hard Correct"},"trap_hit":{"type":"boolean","title":"Trap Hit"}},"type":"object","required":["expected_miss","hard_correct","trap_hit"],"title":"AtlasItemFlagsRead"},"AtlasItemRead":{"properties":{"id":{"type":"string","title":"Id","description":"The backend question id (it embeds the exam id)."},"exam_id":{"type":"string","title":"Exam Id"},"question_id":{"type":"string","title":"Question Id"},"booklet_index":{"type":"integer","title":"Booklet Index"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"subject":{"type":"string","title":"Subject"},"bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Id"},"skill_ids":{"items":{"type":"string"},"type":"array","title":"Skill Ids"},"status":{"type":"string","enum":["correct","wrong","blank"],"title":"Status"},"given":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given"},"correct_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correct Answer"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"peer_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Peer N"},"rasch_b":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rasch B"},"flags":{"$ref":"#/components/schemas/AtlasItemFlagsRead"}},"type":"object","required":["id","exam_id","question_id","booklet_index","subject","skill_ids","status","flags"],"title":"AtlasItemRead"},"AtlasLearningPathRead":{"properties":{"kind":{"type":"string","enum":["strengthen","check","strong-basis","own","no-links"],"title":"Kind"},"action_bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Bucket Id"},"prerequisites":{"items":{"$ref":"#/components/schemas/AtlasPathStepRead"},"type":"array","title":"Prerequisites","description":"By rank, then gap (a topic of a closed ders by rank alone)."},"dependents":{"items":{"$ref":"#/components/schemas/AtlasPathStepRead"},"type":"array","title":"Dependents","description":"By rank."}},"type":"object","required":["kind","prerequisites","dependents"],"title":"AtlasLearningPathRead"},"AtlasNodeGateRead":{"properties":{"name":{"type":"string","title":"Name","description":"``subject_signal_gate``: the per-ders signal gate of a closed ders (``gates.subject_signal_closed``)."},"required":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Required","description":"The rank agreement (tau) a ders needs for kova verdicts: ``alfabemy_core.gates.subject_signal_min_tau``."},"actual":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Actual","description":"The ders' measured tau (``alfabemy_core.gates.Gates.signal_tau``); null where none was measured."}},"type":"object","required":["name"],"title":"AtlasNodeGateRead","description":"Why a node has no verdict whatever its n: the gate of Intelligence's 8.4 judgement under the same keys."},"AtlasNodeRead":{"properties":{"state":{"type":"string","enum":["weak","expected","strong","insufficient"],"title":"State"},"strength":{"type":"string","enum":["none","low","solid","corroborated"],"title":"Strength"},"strength_reason":{"type":"string","enum":["insufficient","contradiction","fragile","blank_driven","corroborated","solid"],"title":"Strength Reason"},"min_n":{"type":"integer","title":"Min N"},"perf":{"$ref":"#/components/schemas/AtlasPerfRead","description":"Coverage pool (blanks included)."},"answered":{"anyOf":[{"$ref":"#/components/schemas/AtlasPerfRead"},{"type":"null"}],"description":"Answered-only pool (the comparison when ``basis = answered``)."},"basis":{"type":"string","enum":["coverage","answered"],"title":"Basis"},"blank_driven":{"type":"boolean","title":"Blank Driven"},"blank_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Blank Share"},"fragile":{"type":"boolean","title":"Fragile"},"contradiction":{"type":"boolean","title":"Contradiction"},"within_uncertainty":{"type":"boolean","title":"Within Uncertainty","description":"``abs(gap) <= se``."},"missing_for_verdict":{"type":"integer","title":"Missing For Verdict","description":"``max(0, min_n - n)``, n = the answered count when blank-driven; on a closed ders (``gate``) no number of answers gives a verdict."},"exam_count":{"type":"integer","title":"Exam Count"},"provenance":{"items":{"$ref":"#/components/schemas/AtlasProvenanceRead"},"type":"array","title":"Provenance","description":"Per exam, the same engine on that exam's items only (empty on S8)."},"item_ids":{"items":{"type":"string"},"type":"array","title":"Item Ids","description":"Every item of the node, in ``items[]`` order."},"preview_ids":{"items":{"type":"string"},"type":"array","title":"Preview Ids","description":"Up to 6, tiered (8.3)."},"gate":{"anyOf":[{"$ref":"#/components/schemas/AtlasNodeGateRead"},{"type":"null"}],"description":"The per-ders signal gate of a closed ders (D29, from the installed core, as Intelligence's 8.4 judgement names it): ``{name: subject_signal_gate, required, actual}``; the node is ``insufficient`` whatever its n. Null on every other node (below ``min_n`` a node stays ``insufficient`` with ``min_n`` and ``missing_for_verdict``)."},"reason":{"anyOf":[{"type":"string","const":"subject_signal_gate"},{"type":"null"}],"title":"Reason","description":"``subject_signal_gate`` beside ``gate``; null without one."}},"type":"object","required":["state","strength","strength_reason","min_n","perf","basis","blank_driven","fragile","contradiction","within_uncertainty","missing_for_verdict","exam_count","provenance","item_ids","preview_ids"],"title":"AtlasNodeRead","description":"``<Node>`` (8.2, 8.3). A node of a closed ders (D29: the dersler of ``gates.subject_signal_closed``) has no\nverdict whatever its n: ``state`` ``insufficient``, ``strength`` ``none``, ``gate`` and ``reason`` say why, the\ncounts and rates stay, no per-exam verdict, never fragile, blank-driven or contradictory."},"AtlasPathStepRead":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id"},"state":{"type":"string","title":"State"},"concern":{"type":"boolean","title":"Concern","description":"Insufficient with a wrong or blank answer, or observed below expected (8.5); never on a topic of a closed ders (D29)."},"rank":{"type":"integer","title":"Rank"}},"type":"object","required":["bucket_id","state","concern","rank"],"title":"AtlasPathStepRead"},"AtlasPerfRead":{"properties":{"n":{"type":"integer","title":"N"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"answered":{"type":"integer","title":"Answered"},"observed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Observed"},"expected":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expected"},"se":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Se"},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"}},"type":"object","required":["n","correct","wrong","blank","answered"],"title":"AtlasPerfRead"},"AtlasPrerequisiteEdgeRead":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id"},"cross_subject":{"type":"boolean","title":"Cross Subject"}},"type":"object","required":["bucket_id","cross_subject"],"title":"AtlasPrerequisiteEdgeRead"},"AtlasProvenanceRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"question_count":{"type":"integer","title":"Question Count"},"answered_count":{"type":"integer","title":"Answered Count"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"observed_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Observed Rate"},"expected_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expected Rate"},"local_state":{"type":"string","title":"Local State","description":"That exam's verdict alone; always ``insufficient`` on a node of a closed ders (``gate``, D29)."}},"type":"object","required":["exam_id","question_count","answered_count","correct","wrong","blank","local_state"],"title":"AtlasProvenanceRead"},"AtlasRelatedTopicRead":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id"},"item_count":{"type":"integer","title":"Item Count"}},"type":"object","required":["bucket_id","item_count"],"title":"AtlasRelatedTopicRead"},"AtlasSkillRead":{"properties":{"skill_id":{"type":"string","title":"Skill Id"},"name":{"type":"string","title":"Name"},"node":{"$ref":"#/components/schemas/AtlasNodeRead"},"by_subject":{"items":{"$ref":"#/components/schemas/AtlasSubjectCountRead"},"type":"array","title":"By Subject","description":"Per ders, in subject order; never a closed ders (D29: its answers leave the skills)."},"topic_ids":{"items":{"type":"string"},"type":"array","title":"Topic Ids"},"related_topics":{"items":{"$ref":"#/components/schemas/AtlasRelatedTopicRead"},"type":"array","title":"Related Topics","description":"Top 6 topics by the skill's item count, ties by topic id."},"where":{"$ref":"#/components/schemas/AtlasSkillWhereRead"}},"type":"object","required":["skill_id","name","node","by_subject","topic_ids","related_topics","where"],"title":"AtlasSkillRead"},"AtlasSkillSpotRead":{"properties":{"subject":{"type":"string","title":"Subject"},"bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Id","description":"Null for unlabeled items."},"total":{"type":"integer","title":"Total"},"missed":{"type":"integer","title":"Missed"},"correct":{"type":"integer","title":"Correct"}},"type":"object","required":["subject","total","missed","correct"],"title":"AtlasSkillSpotRead"},"AtlasSkillWhereRead":{"properties":{"kind":{"type":"string","enum":["trouble","strength","measured"],"title":"Kind"},"spots":{"items":{"$ref":"#/components/schemas/AtlasSkillSpotRead"},"type":"array","title":"Spots"}},"type":"object","required":["kind","spots"],"title":"AtlasSkillWhereRead"},"AtlasStudyOrderRead":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AtlasStudyStepRead"},"type":"array","title":"Items","description":"Weak topics by depth (null = 0), then gap, first 5; a topic of a closed ders is never weak, so never here (D29)."},"locked":{"type":"boolean","title":"Locked","description":"No weak topic."}},"type":"object","required":["items","locked"],"title":"AtlasStudyOrderRead"},"AtlasStudyStepRead":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id"},"depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Depth"},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"}},"type":"object","required":["bucket_id"],"title":"AtlasStudyStepRead"},"AtlasSubjectCountRead":{"properties":{"subject":{"type":"string","title":"Subject"},"correct":{"type":"integer","title":"Correct"},"n":{"type":"integer","title":"N"}},"type":"object","required":["subject","correct","n"],"title":"AtlasSubjectCountRead"},"AtlasSubjectRead":{"properties":{"subject":{"type":"string","title":"Subject"},"name":{"type":"string","title":"Name"},"area":{"$ref":"#/components/schemas/AtlasAreaRead"},"labeled":{"type":"boolean","title":"Labeled","description":"Labeled in any exam."},"node":{"$ref":"#/components/schemas/AtlasNodeRead"},"bucket_ids":{"items":{"type":"string"},"type":"array","title":"Bucket Ids","description":"By the booklet index of each topic's first chronological item."},"judged_bucket_count":{"type":"integer","title":"Judged Bucket Count"},"graph":{"anyOf":[{"$ref":"#/components/schemas/AtlasGraphRead"},{"type":"null"}],"description":"Merged prerequisite graph (union, first weight wins); null when the subject has none."}},"type":"object","required":["subject","name","area","labeled","node","bucket_ids","judged_bucket_count"],"title":"AtlasSubjectRead"},"AtlasUnitRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"AtlasUnitRead"},"AtlasViewerRead":{"properties":{"source":{"type":"string","const":"join","title":"Source","description":"The client joins S2 ``answers`` and S6 ``questions`` of each listed exam.","default":"join"},"exams":{"items":{"type":"string"},"type":"array","title":"Exams"}},"type":"object","required":["exams"],"title":"AtlasViewerRead"},"AttachLessonRequestDocumentItem":{"properties":{"teacher_document_id":{"type":"string","format":"uuid","title":"Teacher Document Id"},"document_type":{"anyOf":[{"$ref":"#/components/schemas/CourseDocumentType"},{"type":"null"}],"description":"DEPRECATED and ignored: the attachment type is derived from the library document's document_kind."},"document_name":{"type":"string","title":"Document Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"visible_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Visible From"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"}},"additionalProperties":false,"type":"object","required":["teacher_document_id","document_name"],"title":"AttachLessonRequestDocumentItem","description":"One teacher-library file attachment definition for a lesson request."},"AttachLessonRequestDocumentRequest":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"teacher_document_id":{"type":"string","format":"uuid","title":"Teacher Document Id"},"document_type":{"anyOf":[{"$ref":"#/components/schemas/CourseDocumentType"},{"type":"null"}],"description":"DEPRECATED and ignored: the attachment type is derived from the library document's document_kind."},"document_name":{"type":"string","title":"Document Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"visible_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Visible From"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"}},"additionalProperties":false,"type":"object","required":["lesson_request_id","teacher_document_id","document_name"],"title":"AttachLessonRequestDocumentRequest","description":"Teacher attaches an EXISTING teacher library file to ONE lesson request.\n\nFlow:\n  1) Teacher uploads file -> creates CourseDocumentOfTeacher (teacher_document_id).\n  2) Teacher selects that file + a lesson request -> attaches it as a\n     LessonRequestDocument row.\n\nNotes:\n  - This request does NOT include file upload.\n  - File metadata (mime_type, file_size_bytes) lives on CourseDocumentOfTeacher.\n  - LessonRequestDocument stores semantic fields + teacher_document_id FK.\n  - The attachment type is NOT chosen here: it mirrors the library\n    document's document_kind (HOMEWORK or NOTES)."},"AttachLessonRequestDocumentsBatchRequest":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"attachments":{"items":{"$ref":"#/components/schemas/AttachLessonRequestDocumentItem"},"type":"array","maxItems":50,"minItems":1,"title":"Attachments","description":"1..50 attachment definitions; order preserved in response."}},"additionalProperties":false,"type":"object","required":["lesson_request_id","attachments"],"title":"AttachLessonRequestDocumentsBatchRequest","description":"Attach multiple teacher-library documents to ONE lesson request (atomic)."},"AttachSubunitsToLessonRequest":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"subunit_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"Subunit Ids"}},"additionalProperties":false,"type":"object","required":["lesson_request_id","subunit_ids"],"title":"AttachSubunitsToLessonRequest","description":"Bulk attach a set of subunits to a lesson request."},"AttachedBundleTemplateBasicRead":{"properties":{"bundle_id":{"type":"string","format":"uuid","title":"Bundle Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["bundle_id"],"title":"AttachedBundleTemplateBasicRead","description":"Minimal card of a bundle template whose component list holds the document."},"AttachedCourseBasicRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"course_name":{"type":"string","title":"Course Name"},"student_full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Full Name"}},"type":"object","required":["course_id","course_name"],"title":"AttachedCourseBasicRead","description":"Minimal card of a course a library document is attached to (via lesson requests)."},"AttachedMarketplaceBundleBasicRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["marketplace_bundle_id"],"title":"AttachedMarketplaceBundleBasicRead","description":"Minimal card of a live marketplace bundle carrying the document snapshot."},"AttendanceBlockRead":{"properties":{"attendance_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Attendance Rate Percent"},"total_lessons_done":{"type":"integer","title":"Total Lessons Done","default":0},"missed_count":{"type":"integer","title":"Missed Count","default":0},"student_cancel_count":{"type":"integer","title":"Student Cancel Count","default":0}},"additionalProperties":false,"type":"object","title":"AttendanceBlockRead","description":"One time window of the combined (tutoring + bundle) attendance rate.\n\nDenominators are deliberately asymmetric per source:\n  - tutoring: COMPLETED lesson requests that materialised a lesson row,\n  - bundle:   past lectures whose host actually opened the session.\nA lecture the teacher never opened is nobody's miss, so it is excluded."},"AttendanceStatus":{"type":"string","enum":["NOT_JOINED","JOINED"],"title":"AttendanceStatus"},"AttentionCompositionRead":{"properties":{"top_tier":{"type":"integer","title":"Top Tier"},"underpotential":{"type":"integer","title":"Underpotential"}},"type":"object","required":["top_tier","underpotential"],"title":"AttentionCompositionRead"},"AttentionEntryRead":{"properties":{"signal":{"type":"string","title":"Signal","description":"`below_expected` | `blank_outlier` | `transition_below_cell` | `person_fit`."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"Ders id (P0 `subjects`); null for `transition_below_cell`, which is on the total net."},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"The signal's figure: `below_expected` the run's length in sittings, `blank_outlier` the student's blank rate in the ders, `transition_below_cell` the leave-one-out robust z of the paired delta, `person_fit` the fit index. Null when the entry is withheld (`gate`)."},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N","description":"What the figure rests on: served verdicts, questions of the ders, members of the cell, parametrized items."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"The core's gate when the entry is withheld with its counts kept, numbers only: `blank_outlier` `tercile_missing` (the sitting has no tercile, an AYT sitting in no alan), `peer_blank_rate_missing`, `min_cohort_norms` (the cohort, or on an AYT the alan, has no terciles), `min_cohort_stats` (it is under 20); null when served."},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence","description":"The core's evidence block as served: `below_expected` `{exam_scope, sittings[{exam_id, administered_on, lo, hi, observed_net, n_items}]}`; `blank_outlier` `{blank, n_questions, tercile, peer_blank_rate, peer_blank_rate_n, gap, tail_p, whole_subject}` (`peer_blank_rate` the tercile's exact rate, its blanks over its questions in the ders, unrounded: round it for display; on an AYT the tercile is the alan's); `transition_below_cell` the cell and the delta; `person_fit` `{n_blank}`."},"audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience","description":"`staff` on a `person_fit` entry: never shown to a student; null otherwise."},"entry_id":{"type":"string","format":"uuid","title":"Entry Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"full_name":{"type":"string","title":"Full Name"},"campus_id":{"type":"string","title":"Campus Id"},"campus_name":{"type":"string","title":"Campus Name"},"section_id":{"type":"string","title":"Section Id"},"section_name":{"type":"string","title":"Section Name"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade","description":"P0 `grades` code of the sitting (`9`..`12` | `mezun`), the same source as P6 `student.grade`; null when unknown."}},"type":"object","required":["signal","entry_id","student_id","exam_id","full_name","campus_id","campus_name","section_id","section_name"],"title":"AttentionEntryRead","description":"6.10 since Intelligence decision 31 (panel request A4, 2026-10-18): one unranked entry of ``alfabemy_core.attention``\non one student of the exam, one signal in one ders (``subject`` null for the net-level signal), computed once per\nmaterialised run and stored. ``value``, ``n``, ``gate`` and ``evidence`` are the core's, as the Intelligence\ncontract documents them per signal; the identity fields are the P1 item's."},"AttentionItemRead":{"properties":{"kind":{"type":"string","title":"Kind","description":"`top_tier` | `underpotential`."},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"`rank_if_potential` for top tier, `percentile_gap` for under-potential."},"entry_id":{"type":"string","format":"uuid","title":"Entry Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"full_name":{"type":"string","title":"Full Name"},"campus_id":{"type":"string","title":"Campus Id"},"campus_name":{"type":"string","title":"Campus Name"},"section_id":{"type":"string","title":"Section Id"},"section_name":{"type":"string","title":"Section Name"},"actual_net":{"type":"number","title":"Actual Net"},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank"},"rank_if_potential":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank If Potential"},"opportunity_net":{"type":"number","title":"Opportunity Net"},"opportunity_count":{"type":"integer","title":"Opportunity Count"},"percentile_gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percentile Gap","description":"`potential_percentile.mid - actual_percentile.mid`; the client rounds it."},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade","description":"P0 `grades` code of the sitting (`9`..`12` | `mezun`), the same source as P6 `student.grade`; null when unknown."}},"type":"object","required":["kind","entry_id","student_id","exam_id","full_name","campus_id","campus_name","section_id","section_name","actual_net","opportunity_net","opportunity_count"],"title":"AttentionItemRead","description":"Deprecated (Intelligence decision 31, panel request A4, 2026-10-18): an item of the ranked 3 + 2 list. The lists\nare served empty one release and removed in release 6; ``AttentionEntryRead`` replaces it."},"AttentionRead":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/AttentionEntryRead"},"type":"array","title":"Entries","description":"The first `limit` scoped entries (after the `signal` filter), in `(signal, student_id, subject)` order; a student the caller may not see is never listed (D9)."},"signals":{"items":{"$ref":"#/components/schemas/AttentionSignalRead"},"type":"array","title":"Signals","description":"Every signal, in the fixed order `below_expected`, `blank_outlier`, `transition_below_cell`, `person_fit`."},"n_checked":{"type":"integer","title":"N Checked","description":"Scoped students of the run (what the entries were looked for over).","default":0},"n_entries_total":{"type":"integer","title":"N Entries Total","description":"Scoped entries matching the `signal` filter, before `limit` ('N more').","default":0},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the run's entries were computed; null while the post-step has not run yet (every signal `attention_not_computed`)."},"excluded_non_operational":{"type":"integer","title":"Excluded Non Operational","description":"Scoped students minus operational students."},"featured":{"items":{"$ref":"#/components/schemas/AttentionItemRead"},"type":"array","title":"Featured","description":"Deprecated (decision 31, A4): always empty; removed in release 6.","deprecated":true},"composition":{"$ref":"#/components/schemas/AttentionCompositionRead","description":"Deprecated (decision 31, A4): always zero.","deprecated":true},"top_tier_pool":{"anyOf":[{"items":{"$ref":"#/components/schemas/AttentionItemRead"},"type":"array"},{"type":"null"}],"title":"Top Tier Pool","description":"Deprecated (decision 31, A4): empty with `full=true`, else null.","deprecated":true},"underpotential_pool":{"anyOf":[{"items":{"$ref":"#/components/schemas/AttentionItemRead"},"type":"array"},{"type":"null"}],"title":"Underpotential Pool","description":"Deprecated (decision 31, A4): empty with `full=true`, else null.","deprecated":true},"top_tier_total":{"type":"integer","title":"Top Tier Total","description":"Deprecated (decision 31, A4): always 0.","default":0,"deprecated":true},"underpotential_total":{"type":"integer","title":"Underpotential Total","description":"Deprecated (decision 31, A4): always 0.","default":0,"deprecated":true},"rank_one_candidates":{"type":"integer","title":"Rank One Candidates","description":"Deprecated (decision 31, A4): always 0.","default":0,"deprecated":true}},"type":"object","required":["excluded_non_operational"],"title":"AttentionRead","description":"6.10 since Intelligence decision 31 (panel request A4, 2026-10-18): the four unranked signals' entries on the\nscoped students of the run, in the core's `(signal, student_id, subject)` order, the first `limit`; `signals[]` for\nevery signal. The ranked 3 + 2 fields of the first design stay one release, empty and deprecated."},"AttentionSignalRead":{"properties":{"signal":{"type":"string","title":"Signal","description":"`below_expected` | `blank_outlier` | `transition_below_cell` | `person_fit`."},"state":{"type":"string","title":"State","description":"`served` (computed on this run; `count` may be 0: nobody) | `gated` (an input was missing or Intelligence judged nothing: `gate` names it, `reason` says why; `attention_not_computed` while the run's post-step has not run yet). A gate that clears by itself is computed again by the sweep (a failed read or `not_scored` after 10 minutes, `previous_run_not_materialised` once another exam is materialised, `expectation_calibration` and `person_fit_min_items` after the profile refresh age, 6 hours by default)."},"count":{"type":"integer","title":"Count","description":"The signal's entries in this scope and visibility, before `limit` and the `signal` filter."},"n_entries":{"type":"integer","title":"N Entries","description":"The signal's entries over the whole run."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"The input gate of a `gated` signal, numbers only: `expectation_unavailable` (an 8.10 read or its write failed), `not_scored` (Intelligence's scoring job has not run for the exam), `expectation_calibration` (`below_expected`: no ders of the exam is calibrated, or no sitting of the series has a served verdict; `required` the sittings a calibration needs and `actual` the most a ders has while that count is short, else 1 / 0: a ders is calibrated but no sitting has a served verdict, or its coverage is out of band), `cohort_by_field_of_study` (`blank_outlier` on an AYT run materialised before the per-alan blocks were stored), `served_objects_missing`, `previous_run_not_materialised`, `peer_cell_mismatch`, `person_fit_unavailable`, `person_fit_min_items` (Intelligence checked no sitting: no item bank, or under 20 parametrized items), `attention_not_computed`; null when served."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"The gate's reason: `input_missing`, `not_scored`, `no_sitting_checked`, for `expectation_calibration` the series' most common block gate (`bank_missing` without an item bank), or the Intelligence error code that stopped the read."}},"type":"object","required":["signal","state","count","n_entries"],"title":"AttentionSignalRead","description":"One of the four signals' state on the run: a signal with no entry is told apart from one that could not run."},"AuthorizeRequest":{"properties":{"assertion":{"type":"string","maxLength":8192,"minLength":1,"title":"Assertion","description":"The partner's RS256 JWT"}},"type":"object","required":["assertion"],"title":"AuthorizeRequest"},"AuthorizeResponse":{"properties":{"code":{"type":"string","title":"Code"},"expires_in":{"type":"integer","title":"Expires In"},"redirect_url":{"type":"string","title":"Redirect Url"}},"type":"object","required":["code","expires_in","redirect_url"],"title":"AuthorizeResponse"},"AvailabilityCellRead":{"properties":{"weekday":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Weekday","description":"Application weekday (1=Monday … 7=Sunday) per TutoringTeacherTimeSlot.weekday convention."},"hour_bucket":{"type":"integer","maximum":22.0,"minimum":0.0,"title":"Hour Bucket"},"teacher_count":{"type":"integer","minimum":0.0,"title":"Teacher Count"}},"additionalProperties":false,"type":"object","required":["weekday","hour_bucket","teacher_count"],"title":"AvailabilityCellRead","description":"Teacher-count snapshot at a (weekday, 2-hour bucket) slot."},"AvailabilityRead":{"properties":{"cells":{"items":{"$ref":"#/components/schemas/AvailabilityCellRead"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","title":"AvailabilityRead"},"AvailabilitySlotWrite":{"properties":{"week_day":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Week Day"},"starting_time":{"type":"string","format":"time","title":"Starting Time"}},"additionalProperties":false,"type":"object","required":["week_day","starting_time"],"title":"AvailabilitySlotWrite"},"AynaAnchorRead":{"properties":{"loaded":{"type":"boolean","title":"Loaded"},"cohort_term_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cohort Term Id"},"yks_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Yks Year"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"validation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation"}},"type":"object","required":["loaded"],"title":"AynaAnchorRead"},"AynaBandRead":{"properties":{"top_lo":{"type":"number","title":"Top Lo"},"top_mid":{"type":"number","title":"Top Mid"},"top_hi":{"type":"number","title":"Top Hi"},"band_key":{"type":"string","title":"Band Key"},"population":{"type":"integer","title":"Population","description":"People with at least k sittings."}},"type":"object","required":["top_lo","top_mid","top_hi","band_key","population"],"title":"AynaBandRead"},"AynaConfidenceRead":{"properties":{"observed_range":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Observed Range"},"last_shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last Shift"},"stability":{"anyOf":[{"type":"string","enum":["stable","moving","volatile"]},{"type":"null"}],"title":"Stability"},"pooled_noise_z":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pooled Noise Z"}},"type":"object","title":"AynaConfidenceRead"},"AynaGatesRead":{"properties":{"unlock_at":{"type":"integer","title":"Unlock At"},"min_for_band":{"type":"integer","title":"Min For Band"},"state_cutoffs":{"$ref":"#/components/schemas/AynaStateCutoffsRead"},"stability_cutoffs":{"items":{"type":"number"},"type":"array","title":"Stability Cutoffs"},"net_sensitivity":{"type":"number","title":"Net Sensitivity"},"default_pooled_sd":{"type":"number","title":"Default Pooled Sd"},"shift_display_min":{"type":"number","title":"Shift Display Min"},"cohort_gate":{"type":"integer","title":"Cohort Gate"}},"type":"object","required":["unlock_at","min_for_band","state_cutoffs","stability_cutoffs","net_sensitivity","default_pooled_sd","shift_display_min","cohort_gate"],"title":"AynaGatesRead"},"AynaHistoryStepRead":{"properties":{"k":{"type":"integer","title":"K"},"band":{"$ref":"#/components/schemas/AynaBandRead"},"shift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shift","description":"``top_mid(k) - top_mid(k-1)``."},"display":{"type":"string","enum":["haze","band"],"title":"Display","description":"``haze`` for k = 1 (never shown as a number)."}},"type":"object","required":["k","band","display"],"title":"AynaHistoryStepRead"},"AynaObservationRead":{"properties":{"k":{"type":"integer","title":"K"},"exam_id":{"type":"string","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"short_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Label"},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On"},"net":{"type":"number","title":"Net","description":"Official total net."},"max_net":{"type":"integer","title":"Max Net"},"cohort_size":{"type":"integer","title":"Cohort Size"},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank"},"top_share":{"type":"number","title":"Top Share","description":"``100 - pct(net)``."},"top_lo":{"type":"number","title":"Top Lo","description":"``100 - pct(net + net_sensitivity)``."},"top_hi":{"type":"number","title":"Top Hi","description":"``100 - pct(net - net_sensitivity)``."},"z":{"type":"number","title":"Z","description":"On the population mean and SD of the exam's 201-point grid."}},"type":"object","required":["k","exam_id","exam_name","net","max_net","cohort_size","top_share","top_lo","top_hi","z"],"title":"AynaObservationRead"},"AynaStateCutoffsRead":{"properties":{"early":{"type":"integer","title":"Early"},"preview":{"type":"integer","title":"Preview"}},"type":"object","required":["early","preview"],"title":"AynaStateCutoffsRead"},"AynaTodayRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"top_share":{"type":"number","title":"Top Share"},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank"},"cohort_size":{"type":"integer","title":"Cohort Size"}},"type":"object","required":["exam_id","top_share","cohort_size"],"title":"AynaTodayRead"},"BenchmarkChildRead":{"properties":{"level":{"type":"string","title":"Level","description":"`campus` | `section`."},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"n":{"type":"integer","title":"N"},"diff_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diff Net","description":"Child subject mean minus the reference mean; null below `min_cohort_stats` children or a gated row."},"diff_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diff Share","description":"`diff_net / question_count`."},"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net","description":"`reference_mean_net + diff_net`."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why the child's figures are null (`min_cohort_stats` on `n`); null when served or when only the row is gated."}},"type":"object","required":["level","id","name","n"],"title":"BenchmarkChildRead"},"BenchmarkRead":{"properties":{"kind":{"type":"string","title":"Kind","description":"`none` at institution scope, else `parent_scope`."},"reference_level":{"type":"string","title":"Reference Level"},"reference_name":{"type":"string","title":"Reference Name"},"reference_n":{"type":"integer","title":"Reference N"},"scope_n":{"type":"integer","title":"Scope N"},"child_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Child Level"},"external":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"External","description":"Reserved for a documented external benchmark; never produced (5.9 rule 2)."},"rows":{"items":{"$ref":"#/components/schemas/BenchmarkRowRead"},"type":"array","title":"Rows"},"behind":{"items":{"type":"string"},"type":"array","title":"Behind","description":"First 3 subjects below 0."},"ahead":{"items":{"type":"string"},"type":"array","title":"Ahead","description":"First 2 subjects above 0, counted from the end."}},"type":"object","required":["kind","reference_level","reference_name","reference_n","scope_n"],"title":"BenchmarkRead"},"BenchmarkRowRead":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"subject_name":{"type":"string","title":"Subject Name"},"question_count":{"type":"integer","title":"Question Count"},"scope_mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scope Mean Net","description":"Unscored students counted as 0 (6.8); null below `min_cohort_stats` scoped or reference students (`gate`)."},"reference_mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reference Mean Net"},"diff_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diff Net"},"diff_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diff Share"},"child_spread":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Child Spread","description":"max - min child `diff_share` over the served children."},"children":{"anyOf":[{"items":{"$ref":"#/components/schemas/BenchmarkChildRead"},"type":"array"},{"type":"null"}],"title":"Children","description":"Operational children; null when `child_level` is null (section scope)."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why the row's means and differences are null; gated rows sort after the served ones, by name."}},"type":"object","required":["subject_id","subject_name","question_count"],"title":"BenchmarkRowRead"},"BestSubjectItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"best-subject","title":"Id"},"params":{"$ref":"#/components/schemas/BestSubjectParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"BestSubjectItemRead"},"BestSubjectParamsRead":{"properties":{"subject":{"type":"string","title":"Subject"},"net":{"type":"number","title":"Net","description":"Derived subject net."},"cohort_mean":{"type":"number","title":"Cohort Mean"},"delta":{"type":"number","title":"Delta","description":"``net - cohort_mean`` (> karne_subject_delta)."}},"type":"object","required":["subject","net","cohort_mean","delta"],"title":"BestSubjectParamsRead"},"BlankItemRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"question_id":{"type":"string","title":"Question Id"},"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"number":{"type":"integer","title":"Number"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"peer_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Peer N"}},"type":"object","required":["exam_id","question_id","subject","subject_name","number"],"title":"BlankItemRead"},"BlankPeerRateRowRead":{"properties":{"kind":{"type":"string","const":"blank_peer_rate","title":"Kind"},"exam_id":{"type":"string","title":"Exam Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"Mean tercile peer rate of the caller's blanks."},"n":{"type":"integer","title":"N"}},"type":"object","required":["kind","exam_id","n"],"title":"BlankPeerRateRowRead"},"BlanksCardRead":{"properties":{"variant":{"type":"string","title":"Variant","description":"7.2-7.4 variant code."},"provenance":{"items":{"type":"string"},"type":"array","title":"Provenance","description":"Supporting exams (distractor, blanks) or the exams of the eligible marking subjects' supported observations."},"deep_dive_exam_id":{"type":"string","title":"Deep Dive Exam Id","description":"7.1: the modal's detail block reads ``per_exam`` of this exam (the first of ``provenance``)."},"family":{"type":"string","const":"blanks","title":"Family"},"params":{"$ref":"#/components/schemas/BlanksParamsRead"},"chips":{"items":{"oneOf":[{"$ref":"#/components/schemas/TopStyleChipRead"},{"$ref":"#/components/schemas/LateHeavyChipRead"},{"$ref":"#/components/schemas/WeakestBandChipRead"}],"discriminator":{"propertyName":"code","mapping":{"late_heavy":"#/components/schemas/LateHeavyChipRead","top_style":"#/components/schemas/TopStyleChipRead","weakest_band":"#/components/schemas/WeakestBandChipRead"}}},"type":"array","title":"Chips"},"evidence":{"$ref":"#/components/schemas/BlanksEvidenceRead"}},"type":"object","required":["variant","provenance","deep_dive_exam_id","family","params","chips","evidence"],"title":"BlanksCardRead"},"BlanksEvidenceRead":{"properties":{"rows":{"items":{"oneOf":[{"$ref":"#/components/schemas/BlankPeerRateRowRead"},{"$ref":"#/components/schemas/WrongPeerRateRowRead"},{"$ref":"#/components/schemas/WeakestBandRowRead"}],"discriminator":{"propertyName":"kind","mapping":{"blank_peer_rate":"#/components/schemas/BlankPeerRateRowRead","weakest_band":"#/components/schemas/WeakestBandRowRead","wrong_peer_rate":"#/components/schemas/WrongPeerRateRowRead"}}},"type":"array","title":"Rows","description":"Per supporting exam the blank and wrong peer rates, plus the weakest-band row (7.5)."},"bands":{"anyOf":[{"items":{"$ref":"#/components/schemas/ReachBandCountRead"},"type":"array"},{"type":"null"}],"title":"Bands","description":"Pooled reach counts."},"items":{"items":{"$ref":"#/components/schemas/BlankItemRead"},"type":"array","title":"Items","description":"Every pooled reachable blank, exam order then booklet order."},"caveat":{"anyOf":[{"$ref":"#/components/schemas/RecoverableCaveatRead"},{"type":"null"}],"description":"When the per-exam recoverable nets sum to at least caveat_min_net."}},"type":"object","required":["rows","items"],"title":"BlanksEvidenceRead"},"BlanksItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"blanks","title":"Id"},"params":{"$ref":"#/components/schemas/KarneBlanksParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"BlanksItemRead"},"BlanksParamsRead":{"properties":{"blanks_count":{"type":"integer","title":"Blanks Count"},"counts":{"$ref":"#/components/schemas/BlanksReachCountsRead"},"supporting_exam_count":{"type":"integer","title":"Supporting Exam Count"}},"type":"object","required":["blanks_count","counts","supporting_exam_count"],"title":"BlanksParamsRead"},"BlanksReachCountsRead":{"properties":{"hard":{"type":"integer","title":"Hard","description":"Peer rate < hard_blank_max."},"mid":{"type":"integer","title":"Mid"},"reachable":{"type":"integer","title":"Reachable","description":"Peer rate >= reachable_blank_min."}},"type":"object","required":["hard","mid","reachable"],"title":"BlanksReachCountsRead"},"BlanksResultRead":{"properties":{"status":{"type":"string","enum":["SUPPORTED","NO_SIGNAL","INSUFFICIENT_EVIDENCE"],"title":"Status"},"count":{"type":"integer","title":"Count"},"reach":{"$ref":"#/components/schemas/BlanksReachCountsRead"},"unrated":{"type":"integer","title":"Unrated","description":"Blanks without a peer rate (counted, never hard, mid or reachable)."},"mean_peer_blank":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Peer Blank"},"mean_peer_wrong":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Peer Wrong"},"selective":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selective"},"section_signal":{"anyOf":[{"$ref":"#/components/schemas/SectionSignalRead"},{"type":"null"}],"description":"From min_blanks_section blanks on."},"sections":{"items":{"$ref":"#/components/schemas/SectionThirdsRead"},"type":"array","title":"Sections","description":"Only sections with blanks."},"recoverable_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recoverable Net"}},"type":"object","required":["status","count","reach","unrated","sections"],"title":"BlanksResultRead"},"BlockRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"start":{"type":"string","format":"time","title":"Start"},"end":{"type":"string","format":"time","title":"End"},"source":{"$ref":"#/components/schemas/BlockSourceRead"}},"type":"object","required":["id","start","end","source"],"title":"BlockRead"},"BlockSourceDTO":{"properties":{"kind":{"type":"string","title":"Kind"},"object_id":{"type":"string","format":"uuid","title":"Object Id"}},"type":"object","required":["kind","object_id"],"title":"BlockSourceDTO"},"BlockSourceRead":{"properties":{"kind":{"type":"string","title":"Kind"},"object_id":{"type":"string","format":"uuid","title":"Object Id"}},"type":"object","required":["kind","object_id"],"title":"BlockSourceRead"},"BlockSpec":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"options":{"additionalProperties":{"$ref":"#/components/schemas/OptionSpec"},"type":"object","title":"Options"}},"type":"object","required":["title","description","options"],"title":"BlockSpec"},"Body_admin_onboard_institution":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"The roster (CSV/XLSX): ogrenci_no, ad_soyad, sinif, sube [, alan, kampus]"},"slug":{"type":"string","maxLength":64,"title":"Slug","description":"Immutable; lowercase ASCII, the Intelligence tenant slug"},"name":{"type":"string","maxLength":200,"title":"Name"},"term":{"type":"string","maxLength":16,"title":"Term","description":"School year, e.g. 2026-2027"},"meb_code":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Meb Code","description":"The school's MEB code (6 digits) = the students' login code; omitted = an 8-digit code is generated"},"province_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Province Id","description":"Where the institution is (GET /public/provinces)"},"district_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"District Id","description":"Its district (GET /course_profile/student/school_selection/districts); alone it sets the province too"}},"type":"object","required":["file","slug","name","term"],"title":"Body_admin_onboard_institution"},"Body_admin_put_institution_site_logo":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"PNG, JPEG or WebP, at most 2 MB; a picture that is not square is centred on a transparent square"}},"type":"object","required":["file"],"title":"Body_admin_put_institution_site_logo"},"Body_change_course_banner_api_course_course_banner_patch":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_change_course_banner_api_course_course_banner_patch"},"Body_import_atolyem_campuses_api_auth_school_launch_admin_atolyem_campuses_import_post":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"Columns: campus_id, campus_name (required); section_id, section_name, term_id (Turkish headers accepted)"}},"type":"object","required":["file"],"title":"Body_import_atolyem_campuses_api_auth_school_launch_admin_atolyem_campuses_import_post"},"Body_import_atolyem_staff_api_auth_school_launch_admin_atolyem_staff_import_post":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"Columns: sub, role (required: admin | campus_manager); campus_ids (';'-joined, campus managers), reason, term_id, user_id"}},"type":"object","required":["file"],"title":"Body_import_atolyem_staff_api_auth_school_launch_admin_atolyem_staff_import_post"},"Body_import_atolyem_students_api_auth_school_launch_admin_atolyem_students_import_post":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"Columns: sub, student_id, given_name, family_name (required); grade_level, section_id, campus_id, organization_id, term_id"}},"type":"object","required":["file"],"title":"Body_import_atolyem_students_api_auth_school_launch_admin_atolyem_students_import_post"},"Body_insert_teacher_document_api_course_course_documents_teacher_upload_post":{"properties":{"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id","description":"Curriculum subbranch label (required)."},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id","description":"Curriculum unit label (optional; must belong to subbranch_id)."},"document_kind":{"$ref":"#/components/schemas/TeacherDocumentKind","description":"HOMEWORK or NOTES. Chosen once here and never changed afterwards.","default":"NOTES"},"question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Question Count","description":"Required for HOMEWORK: number of questions (>= 1)."},"answers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answers","description":"Required for HOMEWORK: answer key, one A-E character per question."},"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["subbranch_id","file"],"title":"Body_insert_teacher_document_api_course_course_documents_teacher_upload_post"},"Body_insert_teacher_documents_batch_api_course_course_documents_teacher_upload_batch_post":{"properties":{"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id","description":"Curriculum subbranch label (required; shared by all files)."},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id","description":"Curriculum unit label (optional; shared by all files)."},"document_kind":{"$ref":"#/components/schemas/TeacherDocumentKind","description":"NOTES only: an answer key is per document, so homework uses the single-file upload.","default":"NOTES"},"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files","description":"One or more files (repeatable multipart field 'files')."}},"type":"object","required":["subbranch_id","files"],"title":"Body_insert_teacher_documents_batch_api_course_course_documents_teacher_upload_batch_post"},"Body_mark_payout_request_paid_api_admin_payouts__payout_request_id__mark_paid_post":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"Dekont / gider pusulası (PDF, JPEG or PNG)"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"type":"object","required":["file"],"title":"Body_mark_payout_request_paid_api_admin_payouts__payout_request_id__mark_paid_post"},"Body_post_mufredat_branch_audit_api_curriculum_sync_mufredat_branch_audit_post":{"properties":{"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File","description":"Optional .xlsx; if omitted, uses bundled/env path."}},"type":"object","title":"Body_post_mufredat_branch_audit_api_curriculum_sync_mufredat_branch_audit_post"},"Body_post_sync_mufredat_api_curriculum_sync_mufredat_post":{"properties":{"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File","description":"Optional .xlsx; if omitted, uses bundled/env path."}},"type":"object","title":"Body_post_sync_mufredat_api_curriculum_sync_mufredat_post"},"Body_put_exam_document":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_put_exam_document"},"Body_set_profile_picture_api_course_profile_profile_picture_patch":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_set_profile_picture_api_course_profile_profile_picture_patch"},"Body_sync_colleges_xlsx_api_course_profile_colleges_sync_post":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"colleges.xlsx with columns university_clean | program_count | programs"}},"type":"object","required":["file"],"title":"Body_sync_colleges_xlsx_api_course_profile_colleges_sync_post"},"Body_update_course_document_canvas_api_course_course_documents_canvas_patch":{"properties":{"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File","description":"JSON file payload for canvas (optional when only visibility changes)"}},"type":"object","title":"Body_update_course_document_canvas_api_course_course_documents_canvas_patch"},"Body_update_teacher_document_file_api_course_course_documents_teacher_file_patch":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"New file to upload"}},"type":"object","required":["file"],"title":"Body_update_teacher_document_file_api_course_course_documents_teacher_file_patch"},"Body_upload_custom_thumbnail_api_asynchronous_videos_teacher_videos_thumbnail_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_custom_thumbnail_api_asynchronous_videos_teacher_videos_thumbnail_post"},"Body_upload_roster":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_roster"},"Body_upload_teacher_quiz_api_course_course_quizes_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_teacher_quiz_api_course_course_quizes_upload_post"},"Body_upload_wallpaper_api_bundles__bundle_id__wallpaper_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_wallpaper_api_bundles__bundle_id__wallpaper_post"},"BookletSpecRead":{"properties":{"order":{"type":"integer","title":"Order"},"subject":{"type":"string","title":"Subject"},"subject_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Slug"},"name":{"type":"string","title":"Name"},"question_count":{"type":"integer","title":"Question Count"},"answer_key":{"type":"string","title":"Answer Key"},"scoring_block":{"type":"string","title":"Scoring Block"},"cancelled_numbers":{"items":{"type":"integer"},"type":"array","title":"Cancelled Numbers"},"dat_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dat Start"}},"type":"object","required":["order","subject","name","question_count","answer_key","scoring_block"],"title":"BookletSpecRead"},"Branch":{"type":"string","enum":["MATEMATIK","FIZIK","KIMYA","BIYOLOJI","TARIH","COGRAFYA","TURK_DILI_VE_EDEBIYATI","DIN_KULTURU_VE_AHLAK_BILGISI","TURKCE","FELSEFE","GEOMETRI","PSIKOLOJI","SOSYOLOJI","MANTIK","INGILIZCE","ALMANCA","FRANSIZCA","ARAPCA","RUSCA"],"title":"Branch"},"BranchAuditResponse":{"properties":{"xlsx_path":{"type":"string","title":"Xlsx Path"},"distinct_branch_enums":{"items":{"type":"string"},"type":"array","title":"Distinct Branch Enums"},"known_branch_enums":{"items":{"type":"string"},"type":"array","title":"Known Branch Enums","description":"Values that match a Branch enum member name."},"unknown_branch_enums":{"items":{"type":"string"},"type":"array","title":"Unknown Branch Enums","description":"Values missing from Branch; add to Python enum + Postgres branch_enum before sync."}},"type":"object","required":["xlsx_path","distinct_branch_enums","known_branch_enums","unknown_branch_enums"],"title":"BranchAuditResponse","description":"Result of ``GET /curriculum/sync/mufredat/branch-audit``."},"BranchReturn":{"type":"string","enum":["MATEMATIK","FIZIK","KIMYA","BIYOLOJI","TARIH","COGRAFYA","TURK_DILI_VE_EDEBIYATI","DIN_KULTURU_VE_AHLAK_BILGISI"],"title":"BranchReturn"},"BucketNode":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"slug":{"type":"string","title":"Slug"},"name_tr":{"type":"string","title":"Name Tr"},"exam_scope":{"$ref":"#/components/schemas/QbExamScope"},"question_count":{"type":"integer","title":"Question Count"},"types":{"items":{"$ref":"#/components/schemas/TypeNode"},"type":"array","title":"Types"}},"type":"object","required":["id","code","slug","name_tr","exam_scope","question_count","types"],"title":"BucketNode"},"BulkAvailabilityUpdateRequest":{"properties":{"add":{"items":{"$ref":"#/components/schemas/AvailabilitySlotWrite"},"type":"array","title":"Add"},"remove":{"items":{"$ref":"#/components/schemas/AvailabilitySlotWrite"},"type":"array","title":"Remove"}},"additionalProperties":false,"type":"object","title":"BulkAvailabilityUpdateRequest","description":"Atomic bulk update of availability slots.\n- add: list of slots to add\n- remove: list of slots to remove\n\nService will apply operations sequentially and commit only if all succeed."},"BundleAnalyticsSummaryRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"roster_truncated":{"type":"boolean","title":"Roster Truncated","default":false},"summary":{"$ref":"#/components/schemas/BundleSummaryBlockRead"},"students":{"items":{"$ref":"#/components/schemas/BundleStudentAnalyticsRowRead"},"type":"array","title":"Students","default":[]},"homeworks":{"items":{"$ref":"#/components/schemas/BundleHomeworkAnalyticsRowRead"},"type":"array","title":"Homeworks","default":[]}},"additionalProperties":false,"type":"object","required":["marketplace_bundle_id","summary"],"title":"BundleAnalyticsSummaryRead"},"BundleAttendanceRowRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"attendance_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Attendance Rate Percent"},"total_lessons_done":{"type":"integer","title":"Total Lessons Done","default":0},"missed_count":{"type":"integer","title":"Missed Count","default":0},"student_cancel_count":{"type":"integer","title":"Student Cancel Count","default":0},"teacher_cancel_count":{"type":"integer","title":"Teacher Cancel Count","default":0}},"additionalProperties":false,"type":"object","required":["marketplace_bundle_id","teacher_id"],"title":"BundleAttendanceRowRead","description":"``teacher_cancel_count`` = past lectures whose session was never opened\n(the bundle analogue of a teacher-cancelled lesson). ``student_cancel_count``\nis always 0 — bundle enrollment has no per-lecture student cancellation."},"BundleCardRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name"},"teacher_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Avatar Url"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name"},"done_component_count":{"type":"integer","title":"Done Component Count","default":0},"total_component_count":{"type":"integer","title":"Total Component Count","default":0},"progress_percent":{"type":"number","title":"Progress Percent","default":0.0},"pending_items_before_next_lecture":{"type":"integer","title":"Pending Items Before Next Lecture","default":0},"next_live_lecture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Live Lecture At"}},"type":"object","required":["marketplace_bundle_id","teacher_id"],"title":"BundleCardRead","description":"One enrolled-bundle card, ordered by ``enrolled_at`` DESC. Progression\ncounts EVERY component (live lectures included, same as my_enrollments)."},"BundleComponentItem":{"properties":{"component_type":{"anyOf":[{"$ref":"#/components/schemas/BundleComponentType"},{"type":"null"}]},"teacher_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Document Id"},"teacher_profile_video_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Profile Video Id"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"slot_title":{"anyOf":[{"type":"string","maxLength":125},{"type":"null"}],"title":"Slot Title"},"slot_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Slot Description"}},"type":"object","title":"BundleComponentItem","description":"For document components ``component_type`` is optional: the stored type is\nderived from the library document's ``document_kind`` (HOMEWORK vs NOTES).\nSending a type that contradicts the kind is rejected with\nCOMPONENT_TYPE_KIND_MISMATCH rather than silently corrected."},"BundleComponentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"sort_order":{"type":"integer","title":"Sort Order"},"component_type":{"$ref":"#/components/schemas/BundleComponentType"},"is_stale":{"type":"boolean","title":"Is Stale","default":false},"stale_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stale Reason"},"teacher_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Document Id"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Question Count"},"teacher_profile_video_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Profile Video Id"},"video_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Title"},"video_status":{"anyOf":[{"$ref":"#/components/schemas/AsyncVideoStatus"},{"type":"null"}]},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"slot_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Title"},"slot_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Description"}},"type":"object","required":["id","sort_order","component_type"],"title":"BundleComponentRead","description":"A hydrated component slot. Type-specific fields are populated per kind."},"BundleComponentType":{"type":"string","enum":["TEACHER_DOCUMENT","TEACHER_PROFILE_VIDEO","LIVE_LECTURE_SLOT","HOMEWORK"],"title":"BundleComponentType","description":"Discriminator for a bundle component's referenced asset.\n\nEach value corresponds to exactly one nullable FK column on\n``bundle_components`` (see models.py). New component kinds (e.g. a future\n``PLANNED_LIVE_LECTURE``) are added by extending this enum, adding a matching\nnullable FK column, and widening the type/ref CHECK constraint."},"BundleHomeworkAnalyticsDetailRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"component_id":{"type":"string","format":"uuid","title":"Component Id"},"title":{"type":"string","title":"Title"},"question_count":{"type":"integer","title":"Question Count","default":0},"submitted_count":{"type":"integer","title":"Submitted Count","default":0},"not_submitted_count":{"type":"integer","title":"Not Submitted Count","default":0},"average_score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Score Percent"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"},"per_question":{"items":{"$ref":"#/components/schemas/QuestionCorrectnessRead"},"type":"array","title":"Per Question","default":[]},"ranking":{"items":{"$ref":"#/components/schemas/HomeworkRankingRowRead"},"type":"array","title":"Ranking","default":[]}},"additionalProperties":false,"type":"object","required":["marketplace_bundle_id","component_id","title"],"title":"BundleHomeworkAnalyticsDetailRead"},"BundleHomeworkAnalyticsRowRead":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"title":{"type":"string","title":"Title"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"question_count":{"type":"integer","title":"Question Count","default":0},"submitted_count":{"type":"integer","title":"Submitted Count","default":0},"average_score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Score Percent"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"}},"additionalProperties":false,"type":"object","required":["component_id","title"],"title":"BundleHomeworkAnalyticsRowRead"},"BundleHomeworkDisciplineRowRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"total_assigned":{"type":"integer","title":"Total Assigned","default":0},"on_time_count":{"type":"integer","title":"On Time Count","default":0},"on_time_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"On Time Rate Percent"}},"additionalProperties":false,"type":"object","required":["marketplace_bundle_id"],"title":"BundleHomeworkDisciplineRowRead"},"BundleHomeworkRankRowRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"my_average_score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"My Average Score Percent"},"my_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"My Rank"},"ranked_participant_count":{"type":"integer","title":"Ranked Participant Count","default":0},"enrolled_count":{"type":"integer","title":"Enrolled Count","default":0},"percentile":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percentile"}},"additionalProperties":false,"type":"object","required":["marketplace_bundle_id"],"title":"BundleHomeworkRankRowRead","description":"Score = mean ``score_percent`` over the student's SUBMITTED homeworks only.\nStudents with zero submissions are not ranked (``my_rank`` is null) and do\nnot enter ``ranked_participant_count``."},"BundleListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"min_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Students"},"max_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Students"},"price_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Try"},"scope_items":{"items":{"type":"string"},"type":"array","title":"Scope Items","default":[]},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"},"component_count":{"type":"integer","title":"Component Count","default":0},"publish_count":{"type":"integer","title":"Publish Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","teacher_id","created_at","updated_at"],"title":"BundleListItem","description":"List view: metadata plus a component count (no hydrated component payload)."},"BundlePurchaseAttemptRead":{"properties":{"intent_id":{"type":"string","format":"uuid","title":"Intent Id"},"status":{"type":"string","title":"Status"},"amount_try":{"type":"string","title":"Amount Try"},"merchant_oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Oid"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["intent_id","status","amount_try","created_at"],"title":"BundlePurchaseAttemptRead","description":"One PayTR payment attempt (intent) of a bundle purchase."},"BundlePurchasePaytrRead":{"properties":{"token":{"type":"string","title":"Token"},"iframe_url":{"type":"string","title":"Iframe Url"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"test_mode":{"type":"boolean","title":"Test Mode","default":false}},"type":"object","required":["token","iframe_url"],"title":"BundlePurchasePaytrRead"},"BundlePurchaseRead":{"properties":{"purchase_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Purchase Id"},"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"price":{"type":"string","title":"Price"},"payment_statu":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Statu"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refund_needed":{"type":"boolean","title":"Refund Needed","default":false},"refund_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Refund Id"},"is_enrolled":{"type":"boolean","title":"Is Enrolled","default":false},"attempts":{"items":{"$ref":"#/components/schemas/BundlePurchaseAttemptRead"},"type":"array","title":"Attempts","default":[]},"paytr":{"anyOf":[{"$ref":"#/components/schemas/BundlePurchasePaytrRead"},{"type":"null"}]},"not_payable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Not Payable Reason"}},"type":"object","required":["marketplace_bundle_id","price"],"title":"BundlePurchaseRead","description":"One-call payment-page payload: purchase state + attempt history + (when\npayable) a fresh PayTR iframe token. The frontend polls this endpoint\nuntil ``payment_statu == \"PAID\"`` and ``is_enrolled`` is true."},"BundleRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"min_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Students"},"max_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Students"},"price_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Try"},"scope_items":{"items":{"type":"string"},"type":"array","title":"Scope Items","default":[]},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"},"has_stale_components":{"type":"boolean","title":"Has Stale Components","default":false},"components":{"items":{"$ref":"#/components/schemas/BundleComponentRead"},"type":"array","title":"Components","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","tenant_id","teacher_id","created_at","updated_at"],"title":"BundleRead"},"BundleStudentAnalyticsDetailRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"class_level":{"anyOf":[{"$ref":"#/components/schemas/ClassLevel"},{"type":"null"}]},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"totals":{"$ref":"#/components/schemas/BundleStudentTotalsRead"},"homeworks":{"items":{"$ref":"#/components/schemas/BundleStudentHomeworkRowRead"},"type":"array","title":"Homeworks","default":[]},"lectures":{"items":{"$ref":"#/components/schemas/BundleStudentLectureRowRead"},"type":"array","title":"Lectures","default":[]}},"additionalProperties":false,"type":"object","required":["marketplace_bundle_id","student_id","totals"],"title":"BundleStudentAnalyticsDetailRead"},"BundleStudentAnalyticsRowRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"class_level":{"anyOf":[{"$ref":"#/components/schemas/ClassLevel"},{"type":"null"}]},"on_time_submission_count":{"type":"integer","title":"On Time Submission Count","default":0},"submitted_count":{"type":"integer","title":"Submitted Count","default":0},"average_score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Score Percent"},"average_rank_percentile":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Rank Percentile"},"total_missed_lectures":{"type":"integer","title":"Total Missed Lectures","default":0}},"additionalProperties":false,"type":"object","required":["student_id"],"title":"BundleStudentAnalyticsRowRead"},"BundleStudentHomeworkRowRead":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"title":{"type":"string","title":"Title"},"question_count":{"type":"integer","title":"Question Count","default":0},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"},"is_submitted":{"type":"boolean","title":"Is Submitted","default":false},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"on_time":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On Time"},"correct_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Correct Count"},"wrong_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wrong Count"},"blank_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blank Count"},"score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Percent"},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank"},"ranked_count":{"type":"integer","title":"Ranked Count","default":0}},"additionalProperties":false,"type":"object","required":["component_id","title"],"title":"BundleStudentHomeworkRowRead"},"BundleStudentLectureRowRead":{"properties":{"planned_live_lecture_id":{"type":"string","format":"uuid","title":"Planned Live Lecture Id"},"slot_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Title"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"status":{"$ref":"#/components/schemas/PlannedLiveLectureStatus","default":"SCHEDULED"},"held":{"type":"boolean","title":"Held","default":false},"attended":{"type":"boolean","title":"Attended","default":false},"total_attended_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Attended Seconds"}},"additionalProperties":false,"type":"object","required":["planned_live_lecture_id","starts_at"],"title":"BundleStudentLectureRowRead"},"BundleStudentTotalsRead":{"properties":{"total_homeworks":{"type":"integer","title":"Total Homeworks","default":0},"submitted_count":{"type":"integer","title":"Submitted Count","default":0},"on_time_count":{"type":"integer","title":"On Time Count","default":0},"average_score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Score Percent"},"total_lectures_held":{"type":"integer","title":"Total Lectures Held","default":0},"attended_count":{"type":"integer","title":"Attended Count","default":0},"missed_count":{"type":"integer","title":"Missed Count","default":0},"video_total":{"type":"integer","title":"Video Total","default":0},"video_watched_count":{"type":"integer","title":"Video Watched Count","default":0}},"additionalProperties":false,"type":"object","title":"BundleStudentTotalsRead"},"BundleSummaryBlockRead":{"properties":{"total_students":{"type":"integer","title":"Total Students","default":0},"homework_completion_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Homework Completion Rate Percent"},"average_score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Score Percent"},"average_lecture_miss_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Lecture Miss Rate Percent"},"gross_revenue_try":{"type":"string","title":"Gross Revenue Try","default":"0"}},"additionalProperties":false,"type":"object","title":"BundleSummaryBlockRead"},"BundleVideoPlaybackRead":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"teacher_profile_video_id":{"type":"string","format":"uuid","title":"Teacher Profile Video Id"},"video_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Status"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"iframe_url":{"type":"string","title":"Iframe Url"},"hls_url":{"type":"string","title":"Hls Url"},"dash_url":{"type":"string","title":"Dash Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"last_position_seconds":{"type":"integer","title":"Last Position Seconds","default":0},"total_watched_seconds":{"type":"integer","title":"Total Watched Seconds","default":0},"watch_completed":{"type":"boolean","title":"Watch Completed","default":false}},"type":"object","required":["component_id","teacher_profile_video_id","iframe_url","hls_url","dash_url"],"title":"BundleVideoPlaybackRead","description":"Playback URLs of a video component for an enrolled student.\n\nUnlike the public /videos/{id}/playback, this serves soft-deleted assets\ntoo (``video_status=\"DELETED\"``): enrolled access is indefinite, and the\nCloudflare asset is preserved while any bundle references the video."},"CampusImportReport":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run"},"file_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Kind"},"rows_read":{"type":"integer","title":"Rows Read","default":0},"rows_valid":{"type":"integer","title":"Rows Valid","default":0},"default_term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Term","description":"Where a section without term_id that has no row yet is created."},"issues":{"items":{"$ref":"#/components/schemas/ImportIssueRead"},"type":"array","title":"Issues","description":"The first 200; a real run needs none."},"issues_total":{"type":"integer","title":"Issues Total","default":0},"campuses":{"$ref":"#/components/schemas/EntityCountsRead"},"sections":{"$ref":"#/components/schemas/EntityCountsRead"},"skipped":{"items":{"$ref":"#/components/schemas/ImportRowRead"},"type":"array","title":"Skipped","description":"SECTION_UNDER_OTHER_CAMPUS: the term has this section under another campus; not created."},"changes":{"items":{"$ref":"#/components/schemas/EntityNameChangeRead"},"type":"array","title":"Changes","description":"Old and new names, the first 500."},"changes_total":{"type":"integer","title":"Changes Total","default":0}},"type":"object","required":["dry_run"],"title":"CampusImportReport"},"CampusListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CampusRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/EntityListMeta"}},"type":"object","required":["code","message"],"title":"CampusListResult"},"CampusManagerMembershipCreate":{"properties":{"phone_number":{"type":"string","maxLength":40,"minLength":1,"title":"Phone Number","description":"The manager's Alfabemy phone (a staff account, like a teacher's); any formatting"},"campus_codes":{"items":{"type":"string"},"type":"array","maxItems":64,"title":"Campus Codes","description":"Campuses the manager may read, e.g. ['MERKEZ', 'K2']"}},"additionalProperties":false,"type":"object","required":["phone_number"],"title":"CampusManagerMembershipCreate","description":"The panel's \"müdür\": reads every student of the given campuses (the roster's ``kampus`` codes)."},"CampusMatrixRead":{"properties":{"subjects":{"items":{"$ref":"#/components/schemas/MatrixSubjectRead"},"type":"array","title":"Subjects"},"reference_name":{"type":"string","title":"Reference Name"},"reference_n":{"type":"integer","title":"Reference N"},"institution_operational_mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Institution Operational Mean Net","description":"Null below `min_cohort_stats` operational students (`gate`)."},"rows":{"items":{"$ref":"#/components/schemas/MatrixRowRead"},"type":"array","title":"Rows"},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `institution_operational_mean_net` is null; null when served."}},"type":"object","required":["reference_name","reference_n"],"title":"CampusMatrixRead","description":"6.9 (institution scope only): rows are operational campuses by `n_operational` desc, then name."},"CampusPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"is_operational":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Operational"}},"additionalProperties":false,"type":"object","title":"CampusPatch","description":"At least one field (an empty body is 422 ``INVALID_PARAMETER``). A rename also re-derives the short names of\nthe campus's sections that still carry the derived one, and the slugs."},"CampusRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The entity's own id: the path parameter of PATCH .../campuses/{campus_id}."},"code":{"type":"string","title":"Code","description":"The roster campus code: the campus_id of every analytics payload (D10)."},"name":{"type":"string","title":"Name","description":"Display name; starts as the code, the admin renames it."},"slug":{"type":"string","title":"Slug","description":"Handoff 5.8 slug of the name, unique in the institution."},"is_operational":{"type":"boolean","title":"Is Operational","description":"False keeps the campus in lists and search but out of attention, success ranking and benchmark children (institution doc 6.3)."},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order","description":"Reserved for an explicit order; null = Turkish collation of the name (D16)."},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","code","name","slug","is_operational","updated_at"],"title":"CampusRead","description":"A campus of the institution (D10)."},"CampusSuggestionCountRead":{"properties":{"campus_id":{"type":"string","title":"Campus Id","description":"The campus roster code (D10), as `scope=campus:{campus_id}` takes it."},"campus_name":{"type":"string","title":"Campus Name"},"groups":{"type":"integer","title":"Groups","description":"The groups the campus's own list holds (`groups[]` of `scope=campus:{campus_id}`)."},"students":{"type":"integer","title":"Students","description":"Distinct students in those groups (a student in two groups counts once)."}},"type":"object","required":["campus_id","campus_name","groups","students"],"title":"CampusSuggestionCountRead","description":"D46: one campus's own list as a campus scope would serve it, counted at the institution root."},"CancelCompletedSubunitRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"subunit_id":{"type":"string","format":"uuid","title":"Subunit Id"}},"type":"object","required":["course_id","subunit_id"],"title":"CancelCompletedSubunitRequest"},"CancelLessonRequestByStudentRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"lesson_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Id"},"decision":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"}},"type":"object","required":["lesson_request_id","course_id","decision"],"title":"CancelLessonRequestByStudentRead"},"CancelLessonRequestByStudentRequest":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"}},"type":"object","required":["lesson_request_id"],"title":"CancelLessonRequestByStudentRequest"},"CancelLessonRequestByTeacherRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"lesson_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Id"},"decision":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["lesson_request_id","course_id","decision"],"title":"CancelLessonRequestByTeacherRead"},"CancelLessonRequestByTeacherRequest":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"reason":{"$ref":"#/components/schemas/TeacherCancelReason"}},"type":"object","required":["lesson_request_id","reason"],"title":"CancelLessonRequestByTeacherRequest"},"CancellationSplitRead":{"properties":{"student_cancel_count":{"type":"integer","minimum":0.0,"title":"Student Cancel Count","default":0},"teacher_cancel_count":{"type":"integer","minimum":0.0,"title":"Teacher Cancel Count","default":0}},"additionalProperties":false,"type":"object","title":"CancellationSplitRead"},"CandidateTargetRead":{"properties":{"state":{"type":"string","enum":["weak","expected","strong","insufficient"],"title":"State","description":"The candidate's verdict on the group's topic or skill."},"strength":{"type":"string","enum":["none","low","solid","corroborated"],"title":"Strength","description":"Its strength."},"n":{"type":"integer","title":"N","description":"Its item count."}},"type":"object","required":["state","strength","n"],"title":"CandidateTargetRead"},"CanvasRole":{"type":"string","enum":["TEACHER","STUDENT"],"title":"CanvasRole","description":"Which party of the lesson request a canvas row belongs to. Derived from\n``TutoringLessonRequest.teacher_id / student_id`` at read time (never from\n``User.user_type``), so the client can pick the teacher's layer without\ncomparing user ids."},"CanvasVisibility":{"type":"string","enum":["PRIVATE","SHARED_WITH_STUDENTS"],"title":"CanvasVisibility","description":"Who may read a canvas besides its owner. Sharing is ONE-WAY, teacher to\nstudent: only the teacher of the document's lesson request may set\nSHARED_WITH_STUDENTS, and a student's own row is always PRIVATE.\n\nStored as VARCHAR + CHECK (same rationale as TeacherDocumentKind)."},"CatalogSearchItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["p","r"],"title":"Type"}},"type":"object","required":["id","name","type"],"title":"CatalogSearchItem"},"CategoryChannelPreferenceRead":{"properties":{"category":{"type":"string","title":"Category"},"allowed_channels":{"items":{"type":"string"},"type":"array","title":"Allowed Channels"},"enabled_channels":{"items":{"type":"string"},"type":"array","title":"Enabled Channels"},"locked":{"type":"boolean","title":"Locked","default":false}},"type":"object","required":["category","allowed_channels","enabled_channels"],"title":"CategoryChannelPreferenceRead"},"ChangeRequest":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"phone_number":{"type":"string","title":"Phone Number"},"user_type":{"$ref":"#/components/schemas/UserType"},"purpose":{"type":"string","enum":["password","email"],"title":"Purpose"}},"type":"object","required":["phone_number","user_type","purpose"],"title":"ChangeRequest"},"ChangeVerify":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"phone_number":{"type":"string","title":"Phone Number"},"user_type":{"$ref":"#/components/schemas/UserType"},"login_token":{"type":"string","title":"Login Token"},"purpose":{"type":"string","enum":["password","email"],"title":"Purpose"}},"type":"object","required":["phone_number","user_type","login_token","purpose"],"title":"ChangeVerify"},"ChatConversationPageRead":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChatConversationRead"},"type":"array","title":"Items","default":[]},"total":{"type":"integer","title":"Total","default":0}},"type":"object","title":"ChatConversationPageRead","description":"Page wrapper (items + total). Pagination metadata also goes in ChatResult.meta."},"ChatConversationRead":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"peer":{"$ref":"#/components/schemas/ChatPeerRead"},"last_message":{"anyOf":[{"$ref":"#/components/schemas/ChatMessageRead"},{"type":"null"}]},"my_last_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"My Last Read At"},"peer_last_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Peer Last Read At"},"unseen_count":{"type":"integer","title":"Unseen Count","default":0}},"type":"object","required":["conversation_id","peer"],"title":"ChatConversationRead","description":"One row in conversation list (also returned by conversations/open)."},"ChatGetLastMessagesRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":50}},"additionalProperties":false,"type":"object","required":["conversation_id"],"title":"ChatGetLastMessagesRequest","description":"Load last N messages from a conversation."},"ChatGetMessagesAfterRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"after_created_at":{"type":"string","format":"date-time","title":"After Created At"},"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":200}},"additionalProperties":false,"type":"object","required":["conversation_id","after_created_at"],"title":"ChatGetMessagesAfterRequest","description":"Load messages after a timestamp (client-provided).\nService converts timestamp via TR timezone normalization."},"ChatListConversationsQuery":{"properties":{"page":{"type":"integer","minimum":0.0,"title":"Page","default":0},"page_size":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Page Size","default":50}},"additionalProperties":false,"type":"object","title":"ChatListConversationsQuery","description":"Conversation list (chat inbox)."},"ChatMarkSeenRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"read_at":{"type":"string","format":"date-time","title":"Read At"}},"additionalProperties":false,"type":"object","required":["conversation_id","read_at"],"title":"ChatMarkSeenRequest","description":"Mark conversation as seen up to a client-provided timestamp.\nService will normalize timestamp to TR then store monotonic watermark."},"ChatMessageRead":{"properties":{"message_id":{"type":"string","format":"uuid","title":"Message Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"body":{"type":"string","title":"Body"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["message_id","conversation_id","body","created_at"],"title":"ChatMessageRead","description":"Read DTO for a single chat message."},"ChatMessagesPageRead":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"peer_user_id":{"type":"string","format":"uuid","title":"Peer User Id"},"items":{"items":{"$ref":"#/components/schemas/ChatMessageRead"},"type":"array","title":"Items","default":[]},"my_read_state":{"anyOf":[{"$ref":"#/components/schemas/ChatReadStateRead"},{"type":"null"}]},"peer_read_state":{"anyOf":[{"$ref":"#/components/schemas/ChatReadStateRead"},{"type":"null"}]}},"type":"object","required":["conversation_id","peer_user_id"],"title":"ChatMessagesPageRead","description":"Messages payload + both read-states so frontend doesn't do extra calls."},"ChatOpenConversationRequest":{"properties":{"peer_user_id":{"type":"string","format":"uuid","title":"Peer User Id"}},"additionalProperties":false,"type":"object","required":["peer_user_id"],"title":"ChatOpenConversationRequest","description":"Open (or fetch existing) a 1:1 conversation with a peer user."},"ChatPeerRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"user_type":{"type":"string","title":"User Type"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["user_id","user_type"],"title":"ChatPeerRead","description":"The other participant of a conversation, with display fields so the inbox\ndoes not need a second profile call."},"ChatReadStateRead":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"last_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Read At"}},"type":"object","required":["conversation_id","user_id"],"title":"ChatReadStateRead","description":"Watermark read state (per user per conversation)."},"ChatSendMessageRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"additionalProperties":false,"type":"object","required":["conversation_id","body"],"title":"ChatSendMessageRequest","description":"Send a chat message into a conversation."},"ChatUnseenCountRead":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"unseen_count":{"type":"integer","title":"Unseen Count"}},"type":"object","required":["conversation_id","unseen_count"],"title":"ChatUnseenCountRead"},"ChatUnseenTotalRead":{"properties":{"unseen_count":{"type":"integer","title":"Unseen Count"}},"type":"object","required":["unseen_count"],"title":"ChatUnseenTotalRead"},"ClassLevel":{"type":"string","enum":["1","2","3","4","5","6","7","8","9","10","11","12","MEZUN"],"title":"ClassLevel"},"ClearContentFlagRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"ClearContentFlagRequest","description":"Admin resolved a content-changed flag; the note goes to the audit log only."},"CollegeRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["ID","name"],"title":"CollegeRead"},"CollegesSyncResponse":{"properties":{"xlsx_path":{"type":"string","title":"Xlsx Path","description":"Resolved path or upload label for the workbook read."},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"rows_read":{"type":"integer","title":"Rows Read","default":0},"rows_skipped_incomplete":{"type":"integer","title":"Rows Skipped Incomplete","default":0},"colleges_parsed":{"type":"integer","title":"Colleges Parsed","default":0},"programs_parsed":{"type":"integer","title":"Programs Parsed","default":0},"colleges_wiped":{"type":"integer","title":"Colleges Wiped","default":0},"programs_wiped":{"type":"integer","title":"Programs Wiped","default":0},"student_target_college_nulled":{"type":"integer","title":"Student Target College Nulled","default":0},"student_target_program_nulled":{"type":"integer","title":"Student Target Program Nulled","default":0},"teacher_graduated_college_nulled":{"type":"integer","title":"Teacher Graduated College Nulled","default":0},"colleges_created":{"type":"integer","title":"Colleges Created","default":0},"programs_created":{"type":"integer","title":"Programs Created","default":0},"duplicate_colleges_in_sheet":{"items":{"type":"string"},"type":"array","title":"Duplicate Colleges In Sheet"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["xlsx_path"],"title":"CollegesSyncResponse","description":"Result of ``POST /colleges/sync``."},"CommonWrongRead":{"properties":{"letter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Letter"},"share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Share"},"n_wrong":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Wrong"}},"additionalProperties":true,"type":"object","title":"CommonWrongRead","description":"The most chosen wrong answer of a question (8.1): letter, share among the wrong picks, count."},"CommunicationConsentRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"email_notifications_enabled":{"type":"boolean","title":"Email Notifications Enabled"},"sms_notifications_enabled":{"type":"boolean","title":"Sms Notifications Enabled"},"email_consent_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Consent Address"},"sms_consent_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Consent Phone"},"email_consented_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Consented At"},"sms_consented_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sms Consented At"},"email_revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Revoked At"},"sms_revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sms Revoked At"},"email_consent_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Consent Source"},"sms_consent_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Consent Source"},"sms_iys_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Iys Status"},"sms_iys_refid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Iys Refid"},"sms_iys_submitid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Iys Submitid"},"sms_iys_result_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Iys Result Status"},"sms_iys_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Iys Error Code"},"sms_iys_error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Iys Error Message"},"sms_iys_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sms Iys Synced At"},"sms_iys_last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sms Iys Last Checked At"},"sms_recipient_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Recipient Type"},"sms_iys_reconcile_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Iys Reconcile Status"},"sms_iys_next_reconcile_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sms Iys Next Reconcile At"},"sms_iys_reconcile_attempt_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms Iys Reconcile Attempt Count"},"sms_iys_transaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Iys Transaction Id"},"sms_iys_query_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Iys Query Status"}},"type":"object","required":["user_id","email_notifications_enabled","sms_notifications_enabled"],"title":"CommunicationConsentRead"},"CommunicationConsentUpdate":{"properties":{"email_notifications_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Notifications Consent"},"sms_notifications_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Notifications Consent"}},"additionalProperties":false,"type":"object","title":"CommunicationConsentUpdate"},"ComponentProgressItem":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"sort_order":{"type":"integer","title":"Sort Order"},"component_type":{"$ref":"#/components/schemas/BundleComponentType"},"is_done":{"type":"boolean","title":"Is Done","default":false},"done_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Done At"},"source":{"anyOf":[{"$ref":"#/components/schemas/MarketplaceProgressSource"},{"type":"null"}]},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"}},"type":"object","required":["component_id","sort_order","component_type"],"title":"ComponentProgressItem"},"CourseAnnouncementCreateRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"title":{"type":"string","maxLength":200,"title":"Title"},"body":{"type":"string","maxLength":4000,"title":"Body"},"is_pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pinned","default":false}},"additionalProperties":false,"type":"object","required":["course_id","title","body"],"title":"CourseAnnouncementCreateRequest","description":"Teacher creates a new announcement for a course.\n\n- teacher identity comes from JWT (service arg), not from this payload\n- tenant_id also comes from context, not from this payload"},"CourseAnnouncementOverviewPageRead":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CourseAnnouncementOverviewRead"},"type":"array","title":"Items","default":[]},"unseen":{"anyOf":[{"$ref":"#/components/schemas/UnseenAnnouncementCountRead"},{"$ref":"#/components/schemas/UnseenAnnouncementTotalRead"}],"title":"Unseen"}},"type":"object","required":["unseen"],"title":"CourseAnnouncementOverviewPageRead","description":"Paginated page of announcement overviews for a course,\nplus unseen-count info so frontend does not need a second call.\n\nNOTE:\n  - Pagination metadata (page, page_size, total) should still live in the\n    CourseResult.meta field, consistent with existing list endpoints."},"CourseAnnouncementOverviewRead":{"properties":{"announcement_id":{"type":"string","format":"uuid","title":"Announcement Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"title":{"type":"string","title":"Title"},"is_pinned":{"type":"boolean","title":"Is Pinned"},"seen":{"type":"boolean","title":"Seen","default":false},"seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seen At"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["announcement_id","course_id","title","is_pinned","created_at","updated_at"],"title":"CourseAnnouncementOverviewRead","description":"Lightweight overview of a course announcement, suitable for list views.\n\nIncludes:\n  - basic metadata\n  - seen/unseen info for the *current* user"},"CourseAnnouncementRead":{"properties":{"announcement_id":{"type":"string","format":"uuid","title":"Announcement Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"is_pinned":{"type":"boolean","title":"Is Pinned"},"seen":{"type":"boolean","title":"Seen","default":false},"seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seen At"},"author":{"anyOf":[{"$ref":"#/components/schemas/ProfileRead"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["announcement_id","course_id","title","body","is_pinned","created_at","updated_at"],"title":"CourseAnnouncementRead","description":"Full read DTO for a single announcement.\n\n- Includes body and pin state\n- Includes per-user seen info\n- Includes the author profile (ProfileRead) instead of just author_id"},"CourseAnnouncementUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Body"},"is_pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pinned"}},"additionalProperties":false,"type":"object","title":"CourseAnnouncementUpdateRequest","description":"Partial update payload for CourseAnnouncement.\nAll fields are optional, but at least one must be provided."},"CourseAttendanceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"lesson_id":{"type":"string","format":"uuid","title":"Lesson Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"left_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Left At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"total_attended_seconds":{"type":"integer","title":"Total Attended Seconds","default":0},"rejoins":{"type":"integer","title":"Rejoins","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","tenant_id","lesson_id","user_id","joined_at","last_seen_at","created_at","updated_at"],"title":"CourseAttendanceRead"},"CourseAttendanceRowRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"course_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Name"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"attendance_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Attendance Rate Percent"},"total_lessons_done":{"type":"integer","title":"Total Lessons Done","default":0},"missed_count":{"type":"integer","title":"Missed Count","default":0},"student_cancel_count":{"type":"integer","title":"Student Cancel Count","default":0},"teacher_cancel_count":{"type":"integer","title":"Teacher Cancel Count","default":0}},"additionalProperties":false,"type":"object","required":["course_id","teacher_id"],"title":"CourseAttendanceRowRead"},"CourseDifficulty":{"type":"string","enum":["BEGINNER","INTERMEDIATE","ADVANCED"],"title":"CourseDifficulty"},"CourseDocumentCanvasRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"canvas_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canvas Link"},"role":{"$ref":"#/components/schemas/CanvasRole"},"visibility":{"$ref":"#/components/schemas/CanvasVisibility","default":"PRIVATE"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","user_id","document_id","role","created_at","updated_at"],"title":"CourseDocumentCanvasRead"},"CourseDocumentGroup":{"type":"string","enum":["HOMEWORK","OTHERS"],"title":"CourseDocumentGroup","description":"Coarse filter for the batch course-documents listing: HOMEWORK returns\nonly ``document_type == HOMEWORK`` rows, OTHERS returns every other\n``document_type`` (SUMMARY, LECTURE_NOTES, READING, SOLUTION, OTHER)."},"CourseDocumentType":{"type":"string","enum":["HOMEWORK","NOTES","SUMMARY","LECTURE_NOTES","READING","SOLUTION","OTHER"],"title":"CourseDocumentType","description":"Attachment-level type. Derived from the library document's\n``document_kind`` on every new attachment, so only HOMEWORK and NOTES are\nwritten from now on; SUMMARY/LECTURE_NOTES/READING/SOLUTION/OTHER survive\non rows created before the kind pivot."},"CourseDraftCreateRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"applicant_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Comment"}},"additionalProperties":false,"type":"object","required":["course_id"],"title":"CourseDraftCreateRequest","description":"Teacher requests a draft review for their own course.\nTeacher identity comes from JWT (service method arg), not from this payload."},"CourseDraftDecisionRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"decision":{"$ref":"#/components/schemas/CourseDraftStatus"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"additionalProperties":false,"type":"object","required":["course_id","decision"],"title":"CourseDraftDecisionRequest","description":"Admin/mod decides a course draft (APPROVED/REJECTED).\nReviewer identity comes from JWT (service method arg), not from this payload."},"CourseDraftRead":{"properties":{"draft_id":{"type":"string","format":"uuid","title":"Draft Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"status":{"$ref":"#/components/schemas/CourseDraftStatus"},"reviewer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewer Id"},"applicant_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Comment"},"reviewer_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Comment"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["draft_id","course_id","status","created_at","updated_at"],"title":"CourseDraftRead","description":"Read DTO for CourseDraft.\nMaps DB column `statu` -> `status` for API clarity."},"CourseDraftStatus":{"type":"string","enum":["PENDING","APPROVED","REJECTED"],"title":"CourseDraftStatus"},"CourseEnrollRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"enroll_statu":{"$ref":"#/components/schemas/EnrollmentStatus"}},"type":"object","required":["course_id","enroll_statu"],"title":"CourseEnrollRequest"},"CourseHomeworkDisciplineRowRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"course_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Name"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"total_assigned":{"type":"integer","title":"Total Assigned","default":0},"on_time_count":{"type":"integer","title":"On Time Count","default":0},"on_time_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"On Time Rate Percent"}},"additionalProperties":false,"type":"object","required":["course_id","teacher_id"],"title":"CourseHomeworkDisciplineRowRead"},"CourseLessonRead":{"properties":{"lesson_id":{"type":"string","format":"uuid","title":"Lesson Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"host_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Host Id"},"host_joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Host Joined At"},"host_left_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Host Left At"},"host_rejoins":{"type":"integer","title":"Host Rejoins","default":0},"host_joined":{"type":"boolean","title":"Host Joined","default":false},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["lesson_id","course_id","host_id","starts_at","ends_at","created_at","updated_at"],"title":"CourseLessonRead","description":"Read DTO for CourseLesson.\nSnake_case API, with id -> lesson_id mapping."},"CourseListFilter":{"properties":{"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"},"statuses":{"items":{"$ref":"#/components/schemas/CourseStatus"},"type":"array","title":"Statuses"},"start_date_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date From"},"start_date_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date To"},"min_capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Capacity"},"max_capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Capacity"},"exclude_full_courses":{"type":"boolean","title":"Exclude Full Courses","default":false},"min_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Price"},"max_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Price"},"min_total_lessons":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Total Lessons"},"max_total_lessons":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Total Lessons"},"difficulties":{"anyOf":[{"items":{"$ref":"#/components/schemas/CourseDifficulty"},"type":"array"},{"type":"null"}],"title":"Difficulties"},"course_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/CourseType"},"type":"array"},{"type":"null"}],"title":"Course Types"},"subbranch_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Subbranch Ids"},"level_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Level Ids"},"branches":{"anyOf":[{"items":{"$ref":"#/components/schemas/Branch"},"type":"array"},{"type":"null"}],"title":"Branches"},"first_teaching_year_from":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Teaching Year From"},"first_teaching_year_to":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Teaching Year To"},"teacher_rating":{"anyOf":[{"$ref":"#/components/schemas/TeacherRatingFilter"},{"type":"null"}]},"weekly_lesson_count_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weekly Lesson Count Min"},"weekly_lesson_count_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weekly Lesson Count Max"},"no_lesson_on_days":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"No Lesson On Days"},"sort_by":{"anyOf":[{"$ref":"#/components/schemas/CourseSortField"},{"type":"null"}]},"sort_direction":{"$ref":"#/components/schemas/SortDirection","default":"ASC"}},"additionalProperties":false,"type":"object","title":"CourseListFilter","description":"Query DTO for course listing / filtering / sorting.\n\nAll None fields mean \"do not filter on this dimension\".\nAll *_min / *_max ranges are inclusive when provided."},"CourseRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"course_name":{"type":"string","title":"Course Name"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"course_level":{"anyOf":[{"$ref":"#/components/schemas/LevelRead"},{"type":"null"}]},"course_subbranch":{"anyOf":[{"$ref":"#/components/schemas/SubbranchRead"},{"type":"null"}]},"course_students":{"type":"integer","title":"Course Students"},"course_capacity":{"type":"integer","title":"Course Capacity"},"course_price":{"type":"string","title":"Course Price"},"course_status":{"$ref":"#/components/schemas/CourseStatus"},"completed_lessons":{"type":"integer","title":"Completed Lessons"},"total_lessons":{"type":"integer","title":"Total Lessons"},"course_difficulty":{"anyOf":[{"$ref":"#/components/schemas/CourseDifficulty"},{"type":"null"}]},"banner_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banner Url"},"banner_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banner Thumb Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"start_date":{"type":"string","format":"date","title":"Start Date"},"teacher_overview":{"anyOf":[{},{"type":"null"}],"title":"Teacher Overview"}},"type":"object","required":["course_id","course_name","teacher_id","course_students","course_capacity","course_price","course_status","completed_lessons","total_lessons","course_difficulty","start_date"],"title":"CourseRead","description":"Read DTO for Course.\nNotes:\n  - Field names follow the requested snake_case keys.\n  - `teacher_overview` is nullable and should be filled by the service layer.\n  - `teacher_id` is always present; if overview is not included, clients can use the id."},"CourseScheduleClearRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id","description":"Course whose weekly schedule will be cleared."}},"additionalProperties":false,"type":"object","required":["course_id"],"title":"CourseScheduleClearRequest","description":"Clear (delete) all schedule rows of a course."},"CourseScheduleInsertionRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id","description":"Target course id"},"day_of_week":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Day Of Week","description":"1..7 (ISO)"},"start_time":{"type":"string","format":"time","title":"Start Time","description":"Start time (inclusive)"},"end_time":{"type":"string","format":"time","title":"End Time","description":"End time (exclusive)"}},"additionalProperties":false,"type":"object","required":["course_id","day_of_week","start_time","end_time"],"title":"CourseScheduleInsertionRequest","description":"Insert a new schedule block for a course (owned by the teacher).\nTimes are parsed as HH:MM or HH:MM:SS."},"CourseScheduleRemovalRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id","description":"Course whose schedule will be modified."},"schedule_id":{"type":"string","format":"uuid","title":"Schedule Id","description":"The CourseSchedule row id to remove."}},"additionalProperties":false,"type":"object","required":["course_id","schedule_id"],"title":"CourseScheduleRemovalRequest","description":"Remove a single CourseSchedule row from a course's weekly schedule."},"CourseScheduleUpdateRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id","description":"Course whose schedule entry will be updated."},"schedule_id":{"type":"string","format":"uuid","title":"Schedule Id","description":"The CourseSchedule row id to update."},"new_day_of_week":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"New Day Of Week","description":"ISO day of week, 1..7."},"new_start_time":{"type":"string","format":"time","title":"New Start Time","description":"New start time (inclusive)."},"new_end_time":{"type":"string","format":"time","title":"New End Time","description":"New end time (exclusive)."}},"additionalProperties":false,"type":"object","required":["course_id","schedule_id","new_day_of_week","new_start_time","new_end_time"],"title":"CourseScheduleUpdateRequest","description":"Update a single CourseSchedule row for a course."},"CourseSortField":{"type":"string","enum":["PRICE","TOTAL_LESSONS","CAPACITY","TEACHER_AVG_SCORE","TEACHER_REVIEW_COUNT"],"title":"CourseSortField"},"CourseStatus":{"type":"string","enum":["DRAFT","PUBLISHED","ONGOING","CANCELLED","COMPLETED","TUTORING_MATCH","TUTORING_ONGOING"],"title":"CourseStatus"},"CourseSyllabusRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"items":{"items":{"$ref":"#/components/schemas/CourseSyllabusReadItem"},"type":"array","title":"Items","default":[]}},"type":"object","required":["course_id"],"title":"CourseSyllabusRead","description":"All syllabus rows for a course."},"CourseSyllabusReadItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"subunit":{"anyOf":[{"$ref":"#/components/schemas/SubunitRead"},{"type":"null"}]},"order_index":{"type":"integer","title":"Order Index"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","course_id","subunit","order_index","created_at","updated_at"],"title":"CourseSyllabusReadItem","description":"A single syllabus row for a course.\n\nThe subunit is serialized as ``SubunitRead`` (no ``outcomes`` tree) to\nkeep the syllabus payload small and avoid a second round-trip for\noutcomes that frontend clients do not need here.\n\n``completed_at`` is the ``lesson_start`` of the earliest\n``TutoringLessonRequest`` that produced a ``course_completed`` row for\nthis subunit. ``None`` when the subunit is not yet completed."},"CourseType":{"type":"string","enum":["QUESTIONS","LECTURE"],"title":"CourseType"},"CourseUpdateRequest":{"properties":{"course_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Name"},"capacity":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Capacity"},"price":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string"},{"type":"integer"}],"ge":0},{"type":"null"}],"title":"Price"},"total_lessons":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Total Lessons"},"difficulty":{"anyOf":[{"$ref":"#/components/schemas/CourseDifficulty"},{"type":"null"}]},"course_type":{"anyOf":[{"$ref":"#/components/schemas/CourseType"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id","description":"FK to curriculum.subbranch (tenant-scoped check)"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"level_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Level Id","description":"FK to curriculum.level (tenant-scoped check)"}},"additionalProperties":false,"type":"object","title":"CourseUpdateRequest","description":"Partial update payload for Course.\nAll fields are optional, but at least one must be provided."},"CreateBundleRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"min_students":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Min Students"},"max_students":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Max Students"},"price_try":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Price Try"},"scope_items":{"anyOf":[{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":6},{"type":"null"}],"title":"Scope Items"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"}},"type":"object","title":"CreateBundleRequest","description":"All template metadata is optional; an empty body creates a blank draft."},"CreateLessonSessionRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["course_id"],"title":"CreateLessonSessionRequest","description":"Teacher creates a lesson session for a course they own."},"CreateTestRequest":{"properties":{"branch":{"$ref":"#/components/schemas/Branch"},"target_count":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Target Count","description":"Soft target; progress display only, never enforced."},"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"}},"type":"object","required":["branch","target_count"],"title":"CreateTestRequest"},"DefaultGatesRead":{"properties":{"trap_share_min":{"type":"number","title":"Trap Share Min"},"min_wrong_for_trap":{"type":"integer","title":"Min Wrong For Trap"},"min_bucket_n":{"type":"integer","title":"Min Bucket N"},"min_cell":{"type":"integer","title":"Min Cell"},"surprise_hi":{"type":"number","title":"Surprise Hi"},"surprise_lo":{"type":"number","title":"Surprise Lo"},"gap_target_max":{"type":"number","title":"Gap Target Max"},"net_sensitivity":{"type":"number","title":"Net Sensitivity"},"min_peer_n":{"type":"integer","title":"Min Peer N"},"full_tier_n":{"type":"integer","title":"Full Tier N"},"reachable_blank_min":{"type":"number","title":"Reachable Blank Min"},"hard_blank_max":{"type":"number","title":"Hard Blank Max"},"recoverable_min_attempted":{"type":"integer","title":"Recoverable Min Attempted"},"rank_steps":{"items":{"type":"integer"},"type":"array","title":"Rank Steps"},"blank_share_signal":{"type":"number","title":"Blank Share Signal"},"ceiling_correct_rate":{"type":"number","title":"Ceiling Correct Rate"},"group_min_size":{"type":"integer","title":"Group Min Size"},"karne_min_subject_questions":{"type":"integer","title":"Karne Min Subject Questions"},"karne_subject_delta":{"type":"number","title":"Karne Subject Delta"},"cohort_gate":{"type":"integer","title":"Cohort Gate"},"min_cohort_stats":{"type":"integer","title":"Min Cohort Stats","description":"Intelligence: a mean needs this many students (20)."},"min_cohort_norms":{"type":"integer","title":"Min Cohort Norms","description":"Intelligence: a distribution, tercile or position needs this many (50)."},"min_peer_rate_n":{"type":"integer","title":"Min Peer Rate N","description":"Intelligence: a peer rate needs this many answers (10)."}},"type":"object","required":["trap_share_min","min_wrong_for_trap","min_bucket_n","min_cell","surprise_hi","surprise_lo","gap_target_max","net_sensitivity","min_peer_n","full_tier_n","reachable_blank_min","hard_blank_max","recoverable_min_attempted","rank_steps","blank_share_signal","ceiling_correct_rate","group_min_size","karne_min_subject_questions","karne_subject_delta","cohort_gate","min_cohort_stats","min_cohort_norms","min_peer_rate_n"],"title":"DefaultGatesRead","description":"Default threshold values (plan section 2); every analytics response still echoes the values it applied."},"DeleteEligibilityRead":{"properties":{"eligible":{"type":"boolean","title":"Eligible"},"blockers":{"items":{"$ref":"#/components/schemas/DeletionBlocker"},"type":"array","title":"Blockers"},"warnings":{"items":{"$ref":"#/components/schemas/DeletionBlocker"},"type":"array","title":"Warnings"},"retained":{"items":{"type":"string"},"type":"array","title":"Retained"}},"type":"object","required":["eligible"],"title":"DeleteEligibilityRead"},"DeletionBlocker":{"properties":{"code":{"$ref":"#/components/schemas/AccountDeletionBlockerCode"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["code"],"title":"DeletionBlocker"},"DeliveryPingRequest":{"properties":{"assertion":{"type":"string","maxLength":8192,"minLength":1,"title":"Assertion","description":"RS256 JWT: iss, aud, iat, exp (lifetime at most SCHOOL_LAUNCH__ASSERTION_MAX_LIFETIME_SECONDS), jti, sub, purpose=delivery.ping, delivery_id, kind (exam_definition | results), exam_id, manifest_uri"}},"additionalProperties":false,"type":"object","required":["assertion"],"title":"DeliveryPingRequest","description":"The partner's ping: one RS256 assertion signed with its school-launch key, ``purpose: \"delivery.ping\"``."},"DeliveryRead":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"kind":{"type":"string","enum":["exam_definition","results"],"title":"Kind"},"exam_id":{"type":"string","title":"Exam Id"},"status":{"type":"string","enum":["received","processing","accepted","ready","rejected","failed"],"title":"Status"},"created":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Created","description":"On a ping: true for a new delivery, false for a delivery id pinged before"},"exam_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Status","description":"The exam's state on our side once the delivery is linked to it (defined, analyzing, completed, partial, failed, rejected)"},"failure":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Failure"},"warnings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Warnings","description":"What was accepted short of complete: images_missing (count, allowed, question_ids) for a definition with fewer questions without an image link than the partner's limit; students_withdrawn (count, student_ids) for a results file that left out students an earlier upload sent, withdrawn from the exam by us; exam_copy_of (exam_ids) for a definition that copies an exam delivered before under another exam_id (same series, day, layout and question images), which takes that exam's place once it is analysed"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["delivery_id","kind","exam_id","status","received_at","updated_at"],"title":"DeliveryRead","description":"One delivery as the partner sees it. ``status``: ``received`` (queued), ``processing``, ``accepted`` (the files\nwere valid and Intelligence took them), ``ready`` (a results delivery whose analysis is readable), ``rejected``\n(final: corrected files come as a new ``delivery_id``) or ``failed`` (retried by us, or by pinging the same\n``delivery_id`` again). ``failure`` says why, in codes, counts, file names, line numbers and your own ids."},"DeltaRead":{"properties":{"current":{"type":"number","title":"Current","description":"Value in the selected window"},"previous":{"type":"number","title":"Previous","description":"Value in the previous window"},"diff_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diff Percent","description":"(current - previous)/previous * 100. None if previous is 0."},"direction":{"type":"string","enum":["up","down","flat"],"title":"Direction","default":"flat"}},"additionalProperties":false,"type":"object","required":["current","previous"],"title":"DeltaRead","description":"Δ vs the immediately preceding equal-length window."},"DeltaStatsRead":{"properties":{"n":{"type":"integer","title":"N"},"prev_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prev Mean"},"curr_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Curr Mean"},"mean_delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Delta"},"prev_median":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prev Median"},"curr_median":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Curr Median"},"median_delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Delta"},"improved":{"type":"integer","title":"Improved","description":"Pairs with `round2(curr - prev) > 1e-9`."},"declined":{"type":"integer","title":"Declined"},"unchanged":{"type":"integer","title":"Unchanged"}},"type":"object","required":["n","improved","declined","unchanged"],"title":"DeltaStatsRead"},"DenemeExamRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"cohort_size":{"type":"integer","title":"Cohort Size"},"scored_question_count":{"type":"integer","title":"Scored Question Count"}},"type":"object","required":["exam_id","exam_name","cohort_size","scored_question_count"],"title":"DenemeExamRead"},"DenemeOzetiServedRead":{"properties":{"version":{"type":"integer","title":"Version"},"opening":{"$ref":"#/components/schemas/OzetOpeningRead"},"slides":{"items":{"$ref":"#/components/schemas/OzetSlideRead"},"type":"array","title":"Slides"},"screens":{"type":"integer","title":"Screens"},"selection":{"additionalProperties":true,"type":"object","title":"Selection"}},"additionalProperties":true,"type":"object","required":["version","opening","slides","screens","selection"],"title":"DenemeOzetiServedRead","description":"Intelligence's deneme özeti of the sitting (contract 8.11, pipeline 2026.11-b; a TYT's, and since 2026.11-g an\nAYT's and a YKS konu tarama's, D50) as it was served: the opening and\nthe screens in their order, final Turkish texts and the data of every visual (the panel renders and draws, it\ncomposes nothing). ``screens`` counts the opening too; ``selection`` lists the prides that held with their scores,\nthe ones shown, and the guidance and info cards. On a deneme outside its scope or below its gate the field holds the\ngated null ``{value: null, gate, reason}`` instead (``GatedNullRead``). Checked by ``served_fit`` like the other\nserved objects, as one piece: an object that does not fit is not served at all."},"DenemeRanksRead":{"properties":{"general":{"anyOf":[{"$ref":"#/components/schemas/RankCountRead"},{"type":"null"}],"description":"Official general rank and the ranking cohort (null only for a results row without one)."},"section":{"$ref":"#/components/schemas/SectionRankRead"}},"type":"object","required":["section"],"title":"DenemeRanksRead"},"DenemeRead":{"properties":{"exam":{"$ref":"#/components/schemas/DenemeExamRead"},"scoring":{"$ref":"#/components/schemas/ScoringRead"},"nets":{"$ref":"#/components/schemas/NetsRead"},"totals":{"$ref":"#/components/schemas/TotalsRead"},"ranks":{"$ref":"#/components/schemas/DenemeRanksRead"},"subjects":{"items":{"$ref":"#/components/schemas/DenemeSubjectRead"},"type":"array","title":"Subjects","description":"Scored subjects, canonical order."},"accessible":{"$ref":"#/components/schemas/AccessibleRead"},"opportunities":{"$ref":"#/components/schemas/OpportunitiesRead"},"questions":{"items":{"$ref":"#/components/schemas/PanelQuestionRead"},"type":"array","title":"Questions"},"queues":{"$ref":"#/components/schemas/QueuesRead"},"served":{"anyOf":[{"$ref":"#/components/schemas/DenemelerServedRead"},{"type":"null"}],"title":"Served","description":"The selected sitting's stored 8.2 object, typed to the last field (`DenemelerServedRead`, 2026-10-27; a block that does not fit is `null`), as `analysis.denemeler.served` serves it on the student's own route (`rank_impact.potential_net`, `opportunities`, ...): the staff card reads it here instead of a second request. Null until the exam is materialised again (migration c4e8b2d6f0a3)."}},"type":"object","required":["exam","scoring","nets","totals","ranks","accessible","opportunities","queues"],"title":"DenemeRead"},"DenemeSubjectRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"derived_net":{"type":"number","title":"Derived Net"},"scored_questions":{"type":"integer","title":"Scored Questions"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"position":{"anyOf":[{"$ref":"#/components/schemas/SubjectPositionRead"},{"type":"null"}],"description":"Deprecated (2026-10-16, Intelligence handoff item 1): the Backend's own position on the official net; read `deneme.served.position.by_subject[<id>]` instead, so one basis remains (7.7). Still filled until the panels switch; gated below the cohort gate / without a subject grid.","deprecated":true},"position_gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Deprecated with `position`: read `deneme.served.position.by_subject[<id>].gate`.","deprecated":true},"statuses":{"items":{"$ref":"#/components/schemas/QuestionStatusRead"},"type":"array","title":"Statuses","description":"Question-number order."}},"type":"object","required":["id","name","derived_net","scored_questions","correct","wrong","blank"],"title":"DenemeSubjectRead"},"DenemelerAccessibleRead":{"properties":{"realized_net":{"type":"number","title":"Realized Net","description":"The derived net."},"reachable_net":{"type":"number","title":"Reachable Net","description":"``realized_net + opportunity_total`` (reachable blanks are not in it, D1)."},"basis":{"type":"string","const":"derived_net","title":"Basis","default":"derived_net"},"includes":{"items":{"type":"string"},"type":"array","title":"Includes"}},"type":"object","required":["realized_net","reachable_net"],"title":"DenemelerAccessibleRead"},"DenemelerAnswerRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"number":{"type":"integer","title":"Number"},"subject":{"type":"string","title":"Subject"},"position":{"type":"integer","title":"Position","description":"0-based booklet index."},"given":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given"},"correct_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correct Answer"},"status":{"type":"string","enum":["correct","wrong","blank"],"title":"Status"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate","description":"Correct rate of the caller's tercile on the question."},"peer_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Peer N","description":"Size of that tercile on the question."},"flags":{"$ref":"#/components/schemas/AnswerFlagsRead"}},"type":"object","required":["question_id","number","subject","position","status","flags"],"title":"DenemelerAnswerRead"},"DenemelerExamHeadRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"short_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Label"},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On"},"exam_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Scope"},"cohort_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort Size","description":"Ranking cohort (the rank table's size)."},"scored_question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scored Question Count","description":"Questions a student is scored on (the booklet minus the unused Din / alternative block; 120 on a TYT)."}},"type":"object","required":["exam_id","exam_name"],"title":"DenemelerExamHeadRead"},"DenemelerGatesRead":{"properties":{"surprise_hi":{"type":"number","title":"Surprise Hi"},"surprise_lo":{"type":"number","title":"Surprise Lo"},"trap_share_min":{"type":"number","title":"Trap Share Min"},"min_wrong_for_trap":{"type":"integer","title":"Min Wrong For Trap"},"net_sensitivity":{"type":"number","title":"Net Sensitivity"},"reachable_blank_min":{"type":"number","title":"Reachable Blank Min"},"hard_blank_max":{"type":"number","title":"Hard Blank Max"},"recoverable_min_attempted":{"type":"integer","title":"Recoverable Min Attempted"},"rank_steps":{"items":{"type":"integer"},"type":"array","title":"Rank Steps"},"karne_min_subject_questions":{"type":"integer","title":"Karne Min Subject Questions"},"karne_subject_delta":{"type":"number","title":"Karne Subject Delta"},"karne_recoverable_min":{"type":"number","title":"Karne Recoverable Min","description":"Recoverable net the karne's blanks items need."},"cohort_gate":{"type":"integer","title":"Cohort Gate","description":"Students a percentile needs."},"min_cohort_stats":{"type":"integer","title":"Min Cohort Stats","description":"Intelligence: a mean needs this many students (20)."},"min_cohort_norms":{"type":"integer","title":"Min Cohort Norms","description":"Intelligence: a distribution, tercile or position needs this many (50)."},"min_peer_rate_n":{"type":"integer","title":"Min Peer Rate N","description":"Intelligence: a peer rate needs this many answers (10)."}},"type":"object","required":["surprise_hi","surprise_lo","trap_share_min","min_wrong_for_trap","net_sensitivity","reachable_blank_min","hard_blank_max","recoverable_min_attempted","rank_steps","karne_min_subject_questions","karne_subject_delta","karne_recoverable_min","cohort_gate","min_cohort_stats","min_cohort_norms","min_peer_rate_n"],"title":"DenemelerGatesRead"},"DenemelerOpportunitiesRead":{"properties":{"expected_missed":{"$ref":"#/components/schemas/OpportunityGroupRead","description":"Labeled, tercile peer rate >= surprise_hi, not correct; ``question_ids`` by peer rate desc, booklet ties."},"trap_hits":{"$ref":"#/components/schemas/TrapHitsRead","description":"Every trap hit (the viewer group); booklet order."},"trap_wrongs_other":{"$ref":"#/components/schemas/OpportunityGroupRead","description":"Trap hits minus expected misses (karne, opportunity chart); booklet order; 1.25 each."},"reachable_blanks":{"$ref":"#/components/schemas/OpportunityGroupRead","description":"Blanks with tercile peer rate >= 0.5 over every scored question (unlabeled included); informational, never in the totals (D1)."},"opportunity_total":{"type":"number","title":"Opportunity Total","description":"``expected_missed.net + trap_wrongs_other.net`` (the simulator's scenario)."},"accessible":{"$ref":"#/components/schemas/DenemelerAccessibleRead"},"recoverable_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recoverable Net","description":"Gated<number> (5.3): the optimistic upper bound over subjects with ``attempted >= 5``."},"recoverable_net_gate":{"anyOf":[{"$ref":"#/components/schemas/ValueGateRead"},{"type":"null"}]},"by_subject":{"items":{"$ref":"#/components/schemas/SubjectOpportunityRead"},"type":"array","title":"By Subject","description":"6.10 order: subjects with items by expected, reachable blank, trap count desc, then booklet order."},"no_signal_subjects":{"items":{"$ref":"#/components/schemas/NoSignalSubjectRead"},"type":"array","title":"No Signal Subjects","description":"The remaining scored subjects, booklet order."},"summary":{"anyOf":[{"$ref":"#/components/schemas/DenemelerOpportunitySummaryRead"},{"type":"null"}],"description":"Null unless at least 2 subjects and 2 kinds are non-zero."}},"type":"object","required":["expected_missed","trap_hits","trap_wrongs_other","reachable_blanks","opportunity_total","accessible","by_subject","no_signal_subjects"],"title":"DenemelerOpportunitiesRead","description":"5.3, 6.7-6.10 and D1: both trap sets under their own names, the accessible bar, the per-subject breakdown."},"DenemelerOpportunityItemRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"number":{"type":"integer","title":"Number"},"kind":{"type":"string","enum":["expected","reachable_blank","trap"],"title":"Kind","description":"The first kind in the precedence expected > reachable_blank > trap (no double counting)."},"status":{"type":"string","enum":["correct","wrong","blank"],"title":"Status"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"peer_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Peer N"},"gain":{"type":"number","title":"Gain","description":"1.00 for a blank, 1.25 for a wrong."},"also":{"items":{"type":"string"},"type":"array","title":"Also","description":"The question's other kinds."}},"type":"object","required":["question_id","number","kind","status","gain"],"title":"DenemelerOpportunityItemRead"},"DenemelerOpportunitySummaryRead":{"properties":{"total":{"type":"integer","title":"Total"},"by_kind":{"items":{"$ref":"#/components/schemas/OpportunityKindCountRead"},"type":"array","title":"By Kind","description":"Non-zero kinds by count desc (kind order ties)."}},"type":"object","required":["total","by_kind"],"title":"DenemelerOpportunitySummaryRead"},"DenemelerOverviewExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"short_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Label","description":"Chart-axis label: the name without the scope word, words to initials, numbers kept ('Deneme Yayınları TYT 01' -> 'DY 01')."},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On"},"official_net":{"type":"number","title":"Official Net","description":"Official total net (the line and the list; D5)."},"max_net":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Net","description":"Scored question count of the exam."},"cohort_mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cohort Mean Net","description":"Full-cohort mean of official nets (the exam analysis cohort mean); null below the cohort gate."},"cohort_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort Size","description":"Ranking cohort (the general rank's denominator)."},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank","description":"Official general rank."},"transition_in":{"anyOf":[{"$ref":"#/components/schemas/OverviewTransitionRead"},{"type":"null"}],"description":"6.3; null for the first exam of the scope or when the chronology is unresolved."},"served":{"anyOf":[{"$ref":"#/components/schemas/DenemelerOverviewServedRead"},{"type":"null"}],"title":"Served","description":"Intelligence's 8.2 ``rank_impact`` of this sitting as stored (``raw_denemeler``), untouched and typed (advice-ui B2(b), 2026-10-26, D36): ``steps[]`` (the rank at +1, +5 and +10 net: ``exact``, or a ``lo`` to ``hi`` bracket where no student holds that net) and ``potential_net`` (``value`` = ``expected_missed`` + ``reachable_blanks`` + ``trap_wrongs``, the net left in THIS deneme, with its mandatory ``caveat``, Turkish since owner decision 112). Below 50 students ``potential_net`` is its gated null and the steps stay; a sitting outside every cohort (an AYT without an alan) has the whole ``rank_impact`` as the gated null. Never added to ``official_net``: the two are different figures. Null when the sitting was materialised before 2026-10-11 (until it is materialised again) or its stored block does not fit the type."},"potential_rank":{"anyOf":[{"$ref":"#/components/schemas/OverviewPotentialRankRead"},{"type":"null"}],"description":"D38 (2026-10-27): where this deneme would have placed the student had they also taken its potential net: the official net plus ``served.rank_impact.potential_net.value``, ranked by the rule of S2's rank steps (5.5) on the run's full-cohort rank table, the basis of ``general_rank``; the list needs neither S2 nor the table for it. Only the rank leaves, never the summed net: an official net plus a served gain stays off every student route (advice-ui rule 5), the rank is the owner's exception. Like the potential net it describes THIS deneme, not the next exam. Null when ``served`` is null, when ``rank_impact`` or its ``potential_net`` is the gated null (below 50 students, an AYT without an alan), or when the run has no rank table."},"ozet":{"anyOf":[{"$ref":"#/components/schemas/OverviewOzetRead"},{"type":"null"}],"description":"D45 (2026-11-20): whether this sitting has a deneme özeti to open (``state``) and how far the student went through it (``view``); the panel's entry reads it here, the story itself is S9."}},"type":"object","required":["exam_id","exam_name","official_net"],"title":"DenemelerOverviewExamRead"},"DenemelerOverviewGatesRead":{"properties":{"min_peer_n":{"type":"integer","title":"Min Peer N","description":"Matched peers a transition needs (D2)."},"delta_net_ci90_halfwidth_max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta Net Ci90 Halfwidth Max","description":"Null: no CI gate is applied (D2)."},"cohort_gate":{"type":"integer","title":"Cohort Gate","description":"Students a cohort mean needs."}},"type":"object","required":["min_peer_n","cohort_gate"],"title":"DenemelerOverviewGatesRead"},"DenemelerOverviewRead":{"properties":{"scope":{"type":"string","enum":["TYT","AYT","TARAMA"],"title":"Scope","description":"The tab; default = scope of the latest analysed TYT / AYT sitting, else TYT. ``TARAMA`` only when asked (``scope=TARAMA``, D35, 2026-10-26): the caller's analysed Taramas under the same rules, never the default."},"scopes_available":{"items":{"$ref":"#/components/schemas/OverviewScopeCountRead"},"type":"array","title":"Scopes Available","description":"TYT and AYT with their analysed sitting counts. Never TARAMA (the deployed panels read these values as TYT | AYT): Taramas are counted in ``tarama_exam_count``."},"tarama_exam_count":{"type":"integer","title":"Tarama Exam Count","description":"Analysed Tarama sittings of the caller (D35, 2026-10-26); ``scope=TARAMA`` lists them, and that scope's ``pending_exams`` the Taramas not analysed yet.","default":0},"series_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series Key","description":"``term|scope|grade`` of the latest exam of the scope (D4); null when unknown or the scope is empty."},"net_basis":{"type":"string","const":"official","title":"Net Basis","description":"Every net of the overview is the official net (6.2).","default":"official"},"chronology":{"$ref":"#/components/schemas/OverviewChronologyRead"},"latest_exam_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Exam Id","description":"Null when ``unresolved`` or the scope has no analysed sitting."},"exams":{"items":{"$ref":"#/components/schemas/DenemelerOverviewExamRead"},"type":"array","title":"Exams","description":"The caller's analysed sittings in the scope, oldest to newest; an empty scope is ``[]``."},"pending_exams":{"items":{"$ref":"#/components/schemas/OverviewPendingExamRead"},"type":"array","title":"Pending Exams","description":"Sittings of the scope not (yet) available to analytics, by date; not plotted."},"gates":{"$ref":"#/components/schemas/DenemelerOverviewGatesRead"}},"type":"object","required":["scope","scopes_available","chronology","exams","gates"],"title":"DenemelerOverviewRead","description":"S1: the Denemeler overview of one scope (tab)."},"DenemelerOverviewResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/DenemelerOverviewRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentAnalyticsMeta"}},"type":"object","required":["code","message"],"title":"DenemelerOverviewResult"},"DenemelerOverviewServedRead":{"properties":{"rank_impact":{"anyOf":[{"$ref":"#/components/schemas/AnalysisRankImpactRead"},{"$ref":"#/components/schemas/GatedNullRead"}],"title":"Rank Impact","description":"The rank steps and the potential net (``AnalysisRankImpactRead``; below 50 students its ``potential_net`` is the gated null), or, for a sitting outside every cohort (an AYT without an alan), the whole block as the gated null (``field_of_study_required`` / ``field_of_study_reserved``)."}},"additionalProperties":true,"type":"object","required":["rank_impact"],"title":"DenemelerOverviewServedRead","description":"S1 ``exams[].served`` (advice-ui B2(b), D36, 2026-10-26): of the sitting's stored Denemeler object (contract\n8.2), the ``rank_impact`` block exactly as stored, typed so the panels read it from their generated client. The\nBackend checks a block against this type before it serves it and leaves the row's ``served`` null when it does not\nfit; the bytes are Intelligence's."},"DenemelerPositionRead":{"properties":{"orientation":{"type":"string","const":"bottom_share","title":"Orientation","default":"bottom_share"},"total":{"anyOf":[{"$ref":"#/components/schemas/PositionTotalRead"},{"type":"null"}],"description":"Gated<object>: 5.4 on the official net; null with ``total_gate`` below the cohort gate or without a distribution."},"total_gate":{"anyOf":[{"$ref":"#/components/schemas/ValueGateRead"},{"type":"null"}]},"by_subject":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/PositionSubjectRead"},"type":"object"},{"type":"null"}],"title":"By Subject","description":"Gated<map>: 5.4 on each derived subject net (subjects with a distribution grid)."},"by_subject_gate":{"anyOf":[{"$ref":"#/components/schemas/ValueGateRead"},{"type":"null"}]}},"type":"object","title":"DenemelerPositionRead","description":"5.4, D7: bottom-share ranges (a +/-1.25 net sensitivity, never a confidence interval); top share = ``100 - x``."},"DenemelerRankCountRead":{"properties":{"rank":{"type":"integer","title":"Rank"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["rank","count"],"title":"DenemelerRankCountRead"},"DenemelerRanksRead":{"properties":{"basis":{"type":"string","const":"official_net","title":"Basis","description":"What every rank here orders: the school's official net of this upload. ``general`` is the results file's own rank when it ranks this cohort in the order of the nets, else the competition rank (1, 2, 2, 4) on the official net; ``campus`` and ``section`` are always that competition rank inside the group. Intelligence's own rank, ``served.cohort_rank`` (basis ``total_net``), sits beside these, each with its own count, never merged with them (contract 7.7).","default":"official_net"},"general":{"anyOf":[{"$ref":"#/components/schemas/DenemelerRankCountRead"},{"type":"null"}]},"campus":{"anyOf":[{"$ref":"#/components/schemas/DenemelerRankCountRead"},{"type":"null"}]},"section":{"anyOf":[{"$ref":"#/components/schemas/DenemelerSectionRankRead"},{"type":"null"}]}},"type":"object","title":"DenemelerRanksRead","description":"Official ranks of the results file; ``campus`` and ``section`` null when not provided (never replaced by ``general``)."},"DenemelerRead":{"properties":{"student":{"$ref":"#/components/schemas/DenemelerStudentRead"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result","description":"Correct, wrong, blank, net per ders and in ``total``; ``official_net`` beside it, ``delta`` if they differ."},"position":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Position","description":"Total and per-ders position ranges (``lo``, ``mid``, ``hi``, ``band``, ``n``, ``basis``); ``null`` with a gate below 50 students."},"ranks":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ranks","description":"The official overall, campus and section ranks with counts, exactly as sent; never filled or changed by Intelligence."},"cohort_rank":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cohort Rank","description":"Intelligence's own competition rank on the total net within the cohort (WP-B): ``rank``, ``count``, ``basis: total_net``; withheld with ``field_of_study_required`` for an AYT sitting outside every cohort; ``null`` on a run from before WP-B."},"campus":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Campus","description":"The campus block (WP-B): ``campus_id``, ``cohort``, ``n``, ``rank {rank, count, basis}``, ``position`` (``total`` only from 50 students of the campus); ``null`` for a one-campus deneme or a run from before WP-B."},"rank_impact":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rank Impact","description":"``steps[]`` (rank at +1, +5, +10 net; ``exact`` or a ``lo``/``hi`` bracket) and ``potential_net`` (``value``, ``expected_missed``, ``reachable_blanks``, ``trap_wrongs``, ``caveat``)."},"opportunities":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Opportunities","description":"``expected_missed``, ``reachable_blanks``, ``trap_wrongs``: each ``{count, net, question_ids[]}``; a question counts in one group only."},"unexpected_correct":{"items":{"type":"string"},"type":"array","title":"Unexpected Correct","description":"Question ids with a peer rate of at most 30% that the student got right."},"peer_transition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Peer Transition","description":"Benzer seviyedekiler: ``previous_exam_id``, ``current_exam_id``, ``previous_tercile``, ``previous_median_net``, ``current_median_net``, ``delta_net``, ``delta_net_ci90``, ``n``, ``reliable``, ``gate``, ``student{previous_net, current_net}``, ``method``; ``null`` on the first sitting of a series or a refused chronology."},"answers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Answers","description":"Per question: given, correct, status, peer rate and ``n``, flags; since ``2026.10-d`` ``cancelled``, ``cancel_policy`` and ``accepted_answers`` (a cancelled question is ``correct`` under ``all_correct`` and ``unanswered`` under ``excluded``, with ``reason`` ``cancelled``; on a double key any accepted letter is ``correct``); since ``2026.10-h`` ``lane``, the answer's one question group on the deneme page: its flag, else ``hard_missed`` or ``solid_correct``, else ``null``, and ``null`` wherever ``peer_rate`` is."},"advice":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Advice","description":"The student advice block Intelligence renders over the stored object at read time (AV10; one evidence chip per ``answers[]`` entry, about its ``question_id``, and the level card of the peer transition's rung): ``{advice_version, items[], withheld[]}`` as ``AdviceBlockRead``, or ``AdviceGatedRead`` while the advice version is not approved (``schemas/served.py``). Not stored: absent on the paged read."}},"additionalProperties":true,"type":"object","required":["student"],"title":"DenemelerRead","description":"Denemeler (8.2): the student's report card for one deneme and its interpretation."},"DenemelerResultRead":{"properties":{"derived_net":{"type":"number","title":"Derived Net","description":"Sum of the scored subject nets (5.2, D5)."},"official_net":{"type":"number","title":"Official Net","description":"The results file's net (D5)."},"net_difference":{"type":"number","title":"Net Difference","description":"``official_net - derived_net``."},"totals":{"$ref":"#/components/schemas/DenemelerTotalsRead"},"by_subject":{"items":{"$ref":"#/components/schemas/DenemelerSubjectResultRead"},"type":"array","title":"By Subject","description":"Scored subjects in booklet order with names; subjects with 0 scored questions omitted."}},"type":"object","required":["derived_net","official_net","net_difference","totals","by_subject"],"title":"DenemelerResultRead"},"DenemelerScoringRead":{"properties":{"block":{"type":"string","enum":["din","din-alternative"],"title":"Block","description":"The block the caller is scored on."},"basis":{"type":"string","enum":["din-answered","alternative-answered","both-answered","none-answered"],"title":"Basis","description":"Why that block (D6 vocabulary)."},"unscored_question_ids":{"items":{"type":"string"},"type":"array","title":"Unscored Question Ids","description":"The questions of the block the caller is not scored on, booklet order."}},"type":"object","required":["block","basis"],"title":"DenemelerScoringRead","description":"5.2, D6: the scored set."},"DenemelerSectionRankRead":{"properties":{"rank":{"type":"integer","title":"Rank"},"count":{"type":"integer","title":"Count"},"name":{"type":"string","title":"Name","description":"The section's display name."}},"type":"object","required":["rank","count","name"],"title":"DenemelerSectionRankRead"},"DenemelerServedRead":{"properties":{"student":{"$ref":"#/components/schemas/DenemelerServedStudentRead"},"result":{"anyOf":[{"$ref":"#/components/schemas/AnalysisResultRead"},{"type":"null"}],"description":"Correct, wrong, blank and net per ders (``by_subject``) and in ``total`` on Intelligence's own count; the school's ``official_net`` beside it with ``delta``; on an AYT alan ``outside_alan``."},"position":{"anyOf":[{"$ref":"#/components/schemas/AnalysisPositionRead"},{"$ref":"#/components/schemas/AnalysisPositionGatedRead"},{"type":"null"}],"title":"Position","description":"Where the student stands in this deneme: ``total`` and ``by_subject[<ders>]``, each a range ``{lo, mid, hi, band: {key, label}, n, basis: net_pm_1_25}`` read as a top share (show ``lo`` to ``hi`` with ``n``; ``mid`` is not a score). Below 50 students (``min_cohort_norms``), or on an AYT without an alan: ``{total: null, by_subject: {}, gate, reason}``."},"ranks":{"anyOf":[{"$ref":"#/components/schemas/AnalysisOfficialRanksRead"},{"type":"null"}],"description":"The school's official ranks exactly as the results upload sent them: ``overall``, ``campus``, ``section``, each ``{rank, count}``; a missing one stays missing (show \"–\"), never filled from another."},"cohort_rank":{"anyOf":[{"$ref":"#/components/schemas/AnalysisCohortRankRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Cohort Rank","description":"Intelligence's own competition rank (1, 2, 2, 4) on its total net in the cohort (the whole deneme; on an AYT the alan): ``{rank, count, basis: total_net}``, no gate. Shown as \"X/N\" with its own count, beside the official ranks, never merged with them (contract 7.7). A gated null (``field_of_study_required``) for an AYT sitting outside every cohort; absent on a run from before 2026-09-28."},"campus":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStudentCampusRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Campus","description":"``{campus_id, cohort, n, rank: {rank, count, basis: total_net}, position}``: the rank in the campus with its count, and the position within the (campus, alan) group from 50 students (else gated). ``null`` for a one-campus deneme; a gated null (``campus_id_required``, ``field_of_study_required``) when the sitting has no campus / alan; absent on a run from before 2026-09-28."},"rank_impact":{"anyOf":[{"$ref":"#/components/schemas/AnalysisRankImpactRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Rank Impact","description":"What a few more net would have meant in THIS deneme: ``steps[]`` (``delta_net`` 1, 5, 10 with ``net``, ``rank``, ``exact``; a ``lo`` to ``hi`` bracket where no student holds that net; never extrapolated) and ``potential_net`` (``value`` = ``expected_missed`` + ``reachable_blanks`` + ``trap_wrongs``, with its mandatory ``caveat``). Below 50 students (``min_cohort_norms``) ``potential_net`` is its gated null and the steps stay; a sitting outside every cohort (an AYT without an alan) has the whole block as the gated null (``field_of_study_required`` / ``field_of_study_reserved``)."},"opportunities":{"anyOf":[{"$ref":"#/components/schemas/AnalysisOpportunitiesRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Opportunities","description":"Where net was left in this deneme: ``expected_missed`` (peer rate at least 75%, not correct), ``reachable_blanks`` (blank, peer rate at least 50%), ``trap_wrongs`` (the common wrong answer chosen), each ``{count, net, question_ids[]}``; a question in one group only, never one without a peer rate (``min_peer_rate_n`` 10). A gated null below 50 students."},"unexpected_correct":{"items":{"type":"string"},"type":"array","title":"Unexpected Correct","description":"Question ids with a peer rate of at most 30% the student got right: informational, never an opportunity."},"peer_transition":{"anyOf":[{"$ref":"#/components/schemas/AnalysisPeerTransitionRead"},{"type":"null"}],"description":"Benzer seviyedekiler: the median net of the students of the same previous tercile, in the previous and in this deneme, beside the student's own (``delta_net``, ``delta_net_ci90``, ``n``, ``reliable``, ``gate``); ``null`` on the first sitting of a series. Never a progress line (decision 48)."}},"additionalProperties":true,"type":"object","required":["student","result","position","ranks","rank_impact","opportunities","unexpected_correct","peer_transition"],"title":"DenemelerServedRead","description":"Intelligence's Denemeler object of the sitting (contract 8.2) as it was served: the copy the materialisation\nstored, without ``answers[]`` (the route's own ``answers`` list holds one row per question) and without any\nIntelligence id. A key Intelligence did not send stays absent and a gated null ``{value: null, gate: {name,\nrequired, actual}, reason}`` stays whole; a block that does not fit its type is served as ``null``, and when\n``student`` or ``unexpected_correct`` does not fit, the whole object is. The machine codes (band keys, gate names,\n``basis``) are the contract."},"DenemelerServedStudentRead":{"properties":{"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study","description":"The alan recorded on the sitting; on an AYT the student's cohort."},"campus_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Id","description":"The roster's campus code as first sent for this sitting."},"section_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Id","description":"The roster's section code as first sent for this sitting."},"scoring_block":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block","description":"``din`` | ``din-alternative``; ``null`` on an exam without a Din block."},"scoring_block_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block Basis","description":"``sent`` | ``din_marked`` | ``alternative_marked`` | ``both`` | ``neither``; ``n/a`` on an exam without a Din block."},"tercile":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tercile","description":"0 lower, 1 middle, 2 upper; ``null`` below 50 students."}},"additionalProperties":true,"type":"object","title":"DenemelerServedStudentRead","description":"The served 8.2 ``student``: the sitting as Intelligence recorded it (since WP-A the sitting's own roster values),\nwithout any id: the materialisation drops ``student_id``, ``canonical_student_id`` and ``sitting_id``."},"DenemelerStudentBlockRead":{"properties":{"tercile":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tercile","description":"0 bottom, 2 top; null below the cohort gate."},"section_name":{"type":"string","title":"Section Name","description":"Display name of the sitting's section (next to the section rank)."},"scoring":{"$ref":"#/components/schemas/DenemelerScoringRead"}},"type":"object","required":["section_name","scoring"],"title":"DenemelerStudentBlockRead"},"DenemelerStudentRead":{"properties":{"student_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Id","description":"Intelligence's student id (the roster's ``intelligence_no`` as text)."},"canonical_student_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Student Id"},"sitting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sitting Id"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study","description":"The alan recorded on the sitting; on an AYT the student's cohort."},"campus_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Id","description":"The roster's ``campus_code`` as first sent for this sitting."},"section_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Id","description":"The roster's ``section_code`` as first sent for this sitting."},"scoring_block":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block","description":"``din`` | ``din-alternative``."},"scoring_block_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block Basis","description":"``sent`` | ``din_marked`` | ``alternative_marked`` | ``both`` | ``neither``."},"tercile":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tercile","description":"0 lower, 1 middle, 2 upper; ``null`` below 50 students."}},"additionalProperties":true,"type":"object","title":"DenemelerStudentRead","description":"The pseudonymous student of a Denemeler object (8.2 ``student``): Intelligence's ids and what the roster said\nabout the sitting, never a name. The BFF re-attaches the roster identity as ``StudentAnalysisRead.student``.\nSince WP-A (2026-09-27) the roster values are the sitting's own: the campus and section of its first submitted\nupload, the alan and grade of its latest; not the roster row of today."},"DenemelerSubjectResultRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"net":{"type":"number","title":"Net","description":"``correct - 0.25 * wrong`` over the scored questions, unrounded (5.2)."},"n_questions":{"type":"integer","title":"N Questions"}},"type":"object","required":["subject","subject_name","correct","wrong","blank","net","n_questions"],"title":"DenemelerSubjectResultRead"},"DenemelerTotalsRead":{"properties":{"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"n_questions":{"type":"integer","title":"N Questions","description":"Scored questions (120 on a TYT)."}},"type":"object","required":["correct","wrong","blank","n_questions"],"title":"DenemelerTotalsRead"},"DetachLessonRequestDocumentRequest":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"}},"additionalProperties":false,"type":"object","required":["id"],"title":"DetachLessonRequestDocumentRequest","description":"Detach ONE LessonRequestDocument attachment row.\n\nSelector:\n  - id is REQUIRED and is the LessonRequestDocument row PK."},"DetachSubunitsFromLessonRequest":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"subunit_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":200,"minItems":1,"title":"Subunit Ids"}},"additionalProperties":false,"type":"object","required":["lesson_request_id","subunit_ids"],"title":"DetachSubunitsFromLessonRequest","description":"Bulk detach a set of subunits from a lesson request."},"DevicePlatform":{"type":"string","enum":["ios","android"],"title":"DevicePlatform"},"DeviceTokenDeleteRead":{"properties":{"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["deleted"],"title":"DeviceTokenDeleteRead"},"DeviceTokenRead":{"properties":{"device_token_id":{"type":"string","format":"uuid","title":"Device Token Id"},"platform":{"type":"string","title":"Platform"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"}},"type":"object","required":["device_token_id","platform","created_at","last_seen_at"],"title":"DeviceTokenRead"},"DeviceTokenRegisterRequest":{"properties":{"token":{"type":"string","maxLength":512,"minLength":16,"title":"Token"},"platform":{"$ref":"#/components/schemas/DevicePlatform"}},"additionalProperties":false,"type":"object","required":["token","platform"],"title":"DeviceTokenRegisterRequest"},"DifficultyBandRead":{"properties":{"key":{"type":"string","title":"Key","description":"`very_easy` | `easy` | `medium` | `hard` (the value every other endpoint uses)."},"label":{"type":"string","title":"Label"},"rasch_b_lo":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rasch B Lo","description":"Inclusive lower Rasch b edge; null = unbounded."},"rasch_b_hi":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rasch B Hi","description":"Exclusive upper Rasch b edge; null = unbounded."}},"type":"object","required":["key","label"],"title":"DifficultyBandRead"},"DifficultyBandRowRead":{"properties":{"band":{"type":"string","enum":["very_easy","easy","medium","hard"],"title":"Band"},"attempted":{"type":"integer","title":"Attempted"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"peer_expected":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Expected"},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"},"judged":{"type":"boolean","title":"Judged"}},"type":"object","required":["band","attempted","correct","wrong","judged"],"title":"DifficultyBandRowRead"},"DirectoryMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the (latest) run the response reads."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every exam the response reads."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload (a roster change changes the response)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (ISO 8601 with offset); a cached body keeps its time."},"visibility":{"type":"string","title":"Visibility","description":"`all` (institution admin), `campuses` (campus manager, D9 extension) or `sections` (teacher: every aggregate is over their sections only).","default":"all"},"total":{"type":"integer","title":"Total","description":"Rows after every filter, before paging.","default":0},"page":{"type":"integer","title":"Page","description":"1-based page.","default":1},"page_size":{"type":"integer","title":"Page Size","description":"Rows per page.","default":25},"scope_total":{"type":"integer","title":"Scope Total","description":"Route scope only, ignoring `q` and the user filters.","default":0},"facets":{"$ref":"#/components/schemas/FacetsRead","description":"Over the route scope, ignoring `q`."}},"type":"object","title":"DirectoryMeta"},"DirectoryRowRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"entry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entry Id","description":"The sitting's roster entry; null when the student has none in that exam's term."},"full_name":{"type":"string","title":"Full Name"},"campus_id":{"type":"string","title":"Campus Id"},"campus_name":{"type":"string","title":"Campus Name"},"section_id":{"type":"string","title":"Section Id"},"section_name":{"type":"string","title":"Section Name"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study"},"latest_exam":{"$ref":"#/components/schemas/ExamLinkRead"},"latest_net":{"type":"number","title":"Latest Net","description":"Official total net in `latest_exam`."},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank"},"cohort_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort Size"}},"type":"object","required":["student_id","full_name","campus_id","campus_name","section_id","section_name","latest_exam","latest_net"],"title":"DirectoryRowRead"},"DistractorCardRead":{"properties":{"variant":{"type":"string","title":"Variant","description":"7.2-7.4 variant code."},"provenance":{"items":{"type":"string"},"type":"array","title":"Provenance","description":"Supporting exams (distractor, blanks) or the exams of the eligible marking subjects' supported observations."},"deep_dive_exam_id":{"type":"string","title":"Deep Dive Exam Id","description":"7.1: the modal's detail block reads ``per_exam`` of this exam (the first of ``provenance``)."},"family":{"type":"string","const":"distractor","title":"Family"},"params":{"$ref":"#/components/schemas/DistractorParamsRead"},"chips":{"items":{"oneOf":[{"$ref":"#/components/schemas/TopStyleChipRead"},{"$ref":"#/components/schemas/LateHeavyChipRead"},{"$ref":"#/components/schemas/WeakestBandChipRead"}],"discriminator":{"propertyName":"code","mapping":{"late_heavy":"#/components/schemas/LateHeavyChipRead","top_style":"#/components/schemas/TopStyleChipRead","weakest_band":"#/components/schemas/WeakestBandChipRead"}}},"type":"array","title":"Chips"},"evidence":{"$ref":"#/components/schemas/DistractorEvidenceRead"}},"type":"object","required":["variant","provenance","deep_dive_exam_id","family","params","chips","evidence"],"title":"DistractorCardRead"},"DistractorEvidenceRead":{"properties":{"rows":{"items":{"oneOf":[{"$ref":"#/components/schemas/YourRateRowRead"},{"$ref":"#/components/schemas/PeerRateRowRead"}],"discriminator":{"propertyName":"kind","mapping":{"peer_rate":"#/components/schemas/PeerRateRowRead","your_rate":"#/components/schemas/YourRateRowRead"}}},"type":"array","title":"Rows","description":"Per supporting exam: your rate and your level's rate (exact tercile_n)."},"bands":{"type":"null","title":"Bands"},"items":{"items":{"$ref":"#/components/schemas/DistractorItemRead"},"type":"array","title":"Items","description":"Up to 3 representatives: top-share question of each supported style, share desc."},"caveat":{"type":"null","title":"Caveat"}},"type":"object","required":["rows","items"],"title":"DistractorEvidenceRead"},"DistractorItemRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"question_id":{"type":"string","title":"Question Id"},"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"number":{"type":"integer","title":"Number"},"share":{"type":"number","title":"Share","description":"Share of the wrong answers on the common wrong choice."},"given":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given"},"misconception":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Misconception","description":"The first named misconception of the question."}},"type":"object","required":["exam_id","question_id","subject","subject_name","number","share"],"title":"DistractorItemRead"},"DistractorParamsRead":{"properties":{"wrong_count":{"type":"integer","title":"Wrong Count","description":"Labeled wrongs pooled over the supporting exams."},"trap_count":{"type":"integer","title":"Trap Count","description":"Trap hits among them (one question set, 12.13)."},"trap_rate":{"type":"number","title":"Trap Rate"},"headline_peer_trap_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Headline Peer Trap Rate","description":"Only when exactly one exam supports."},"supporting_exam_count":{"type":"integer","title":"Supporting Exam Count"},"advice_styles":{"items":{"$ref":"#/components/schemas/AdviceStyleRead"},"type":"array","title":"Advice Styles","description":"Top 2 pooled supported styles (7.6)."}},"type":"object","required":["wrong_count","trap_count","trap_rate","supporting_exam_count","advice_styles"],"title":"DistractorParamsRead"},"DistractorResultRead":{"properties":{"status":{"type":"string","enum":["SUPPORTED","NO_SIGNAL","INSUFFICIENT_EVIDENCE"],"title":"Status"},"labeled_wrongs":{"type":"integer","title":"Labeled Wrongs"},"trap_count":{"type":"integer","title":"Trap Count"},"trap_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trap Rate"},"peer_trap_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Trap Rate"},"tercile_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tercile N"},"variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"},"supported_styles":{"items":{"$ref":"#/components/schemas/StyleSupportedRead"},"type":"array","title":"Supported Styles"},"other_styles":{"items":{"$ref":"#/components/schemas/StyleOtherRead"},"type":"array","title":"Other Styles"}},"type":"object","required":["status","labeled_wrongs","trap_count","supported_styles","other_styles"],"title":"DistractorResultRead","description":"7.2 for one exam; ``trap_count`` and ``labeled_wrongs`` use one question set (the labeled one, 12.13)."},"DistractorStyleRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"action_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Code","description":"The code the client maps to advice text; null when the style has no advice."}},"type":"object","required":["code","name"],"title":"DistractorStyleRead"},"DistractorStyleRefRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["code"],"title":"DistractorStyleRefRead"},"DistributionBinRead":{"properties":{"lo":{"type":"number","title":"Lo"},"hi":{"type":"number","title":"Hi"},"actual_count":{"type":"integer","title":"Actual Count"},"potential_count":{"type":"integer","title":"Potential Count"}},"type":"object","required":["lo","hi","actual_count","potential_count"],"title":"DistributionBinRead"},"DistrictRead":{"properties":{"id":{"type":"integer","title":"Id"},"province_id":{"type":"integer","title":"Province Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","province_id","name"],"title":"DistrictRead"},"DocumentDownloadRead":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"expires_minutes":{"type":"integer","title":"Expires Minutes"}},"type":"object","required":["url","filename","expires_minutes"],"title":"DocumentDownloadRead"},"DocumentTokenRead":{"properties":{"token":{"type":"string","title":"Token"},"url":{"type":"string","title":"Url","description":"Relative URL of the printable document page; open in a new tab."},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["token","url","expires_at"],"title":"DocumentTokenRead"},"DocumentUrlRead":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"teacher_document_id":{"type":"string","format":"uuid","title":"Teacher Document Id"},"document_url":{"type":"string","title":"Document Url"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"}},"type":"object","required":["component_id","teacher_document_id","document_url"],"title":"DocumentUrlRead"},"DurationCategory":{"type":"string","enum":["ACCELERATED","MEDIUM","LONG"],"title":"DurationCategory","description":"Storefront pacing bucket, frozen at submit time (NOT recomputed when an\nadmin appends a makeup lecture). Span = IST calendar-day difference\nbetween the first and last planned lecture start; 0/1 lectures -> 0.\n\nACCELERATED -> span <= 5 days   (hızlandırılmış)\nMEDIUM      -> 5 < span <= 14   (orta)\nLONG        -> span > 14        (uzun)"},"EarningStatus":{"type":"string","enum":["PENDING","EARNED","PAID_OUT"],"title":"EarningStatus"},"EmailChangeCommit":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"phone_number":{"type":"string","title":"Phone Number"},"user_type":{"$ref":"#/components/schemas/UserType"},"change_token":{"type":"string","title":"Change Token"},"new_email":{"type":"string","format":"email","title":"New Email"}},"type":"object","required":["phone_number","user_type","change_token","new_email"],"title":"EmailChangeCommit"},"EnrollmentChangeMessage":{"type":"string","enum":["SUCCESSFULLY_ENROLLED","SUCCESSFULLY_CANCELLED","SUCCESSFULLY_RETURNED"],"title":"EnrollmentChangeMessage"},"EnrollmentStatus":{"type":"string","enum":["ENROLLED","CANCELLED","RETURNED"],"title":"EnrollmentStatus"},"EntityCountsRead":{"properties":{"created":{"type":"integer","title":"Created","default":0},"renamed":{"type":"integer","title":"Renamed","default":0},"unchanged":{"type":"integer","title":"Unchanged","default":0}},"type":"object","title":"EntityCountsRead"},"EntityListMeta":{"properties":{"total":{"type":"integer","title":"Total","default":0},"visibility":{"type":"string","title":"Visibility","default":"all"},"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"}},"type":"object","title":"EntityListMeta","description":"What the list covers: its size, the caller's visibility (D9: ``all``, ``campuses``, ``sections``) and, for\nsections, the term."},"EntityNameChangeRead":{"properties":{"kind":{"type":"string","enum":["campus","section"],"title":"Kind"},"action":{"type":"string","enum":["create","rename"],"title":"Action"},"code":{"type":"string","title":"Code","description":"The Atölyem id: the campus_id / section_id the deliveries carry."},"campus_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Code"},"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"},"old_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Name"},"new_name":{"type":"string","title":"New Name"}},"type":"object","required":["kind","action","code","new_name"],"title":"EntityNameChangeRead"},"EntryTaskRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"code_level_name":{"type":"string","title":"Code Level Name"},"order_index":{"type":"integer","title":"Order Index"},"weight":{"type":"integer","title":"Weight"},"status":{"$ref":"#/components/schemas/GamificationTaskStatus"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["code","name","description","code_level_name","order_index","weight","status"],"title":"EntryTaskRead","description":"One onboarding task as exposed to the frontend."},"EntryTasksResponse":{"properties":{"role":{"$ref":"#/components/schemas/GamificationRole"},"tasks":{"items":{"$ref":"#/components/schemas/EntryTaskRead"},"type":"array","title":"Tasks","default":[]},"totals":{"$ref":"#/components/schemas/EntryTasksTotals"}},"type":"object","required":["role","totals"],"title":"EntryTasksResponse","description":"Wrapper item for the GET /entry-tasks payload."},"EntryTasksTotals":{"properties":{"done":{"type":"integer","title":"Done"},"total":{"type":"integer","title":"Total"},"weighted_progress":{"type":"number","title":"Weighted Progress"}},"type":"object","required":["done","total","weighted_progress"],"title":"EntryTasksTotals"},"ErrorEnvelope":{"properties":{"code":{"type":"integer","title":"Code","description":"The HTTP status, repeated in the body."},"message":{"type":"string","title":"Message","default":""},"items":{"items":{},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","minItems":1,"title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","errors"],"title":"ErrorEnvelope","description":"``Result`` as every 4xx / 5xx carries it: ``code`` equal to the HTTP status, ``items`` empty,\n``errors`` non-empty (``errors[].detail`` is the module's code, e.g. ``EXAM_NOT_FOUND``), ``meta``\nwith what the caller can act on (``retry_after``, ``entry_ids``, an ``import_report`` ...). Routers\nattach it to their error statuses with ``error_responses`` so a generated client sees one shape."},"EvidenceExamRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id","description":"An exam of the evidence: a series exam the members' profiles pooled (8.10 `consumed.exam_ids`)."},"exam_name":{"type":"string","title":"Exam Name","description":"The exam's name."},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On","description":"Europe/Istanbul calendar date of the exam."},"question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Question Count","description":"Deprecated: null. Since 2026-10-17 (panel request A3, Intelligence decision 42) the groups come from Intelligence's pooled profile cells through `alfabemy_core.institution.group_candidates`, which carry no per-question items.","deprecated":true}},"type":"object","required":["exam_id","exam_name"],"title":"EvidenceExamRead"},"EvidenceQuestionRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id","description":"The exam of the item."},"question_id":{"type":"string","title":"Question Id","description":"The backend question id (it embeds the exam id)."},"subject":{"type":"string","title":"Subject","description":"Subject id of the question."},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number","description":"Question number within its subject."},"status":{"type":"string","enum":["correct","wrong","blank"],"title":"Status","description":"The member's answer: correct, wrong or blank."},"is_expected_miss":{"type":"boolean","title":"Is Expected Miss","description":"The D3 expected miss of that exam (labeled, tercile peer rate >= surprise_hi, not correct)."}},"type":"object","required":["exam_id","question_id","subject","status","is_expected_miss"],"title":"EvidenceQuestionRead"},"ExamAnalysisMeta":{"properties":{"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version"},"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id"},"cached":{"type":"boolean","title":"Cached","default":false}},"type":"object","title":"ExamAnalysisMeta","description":"The run the payload belongs to, and whether Redis answered."},"ExamAnalysisRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"analysis_version":{"type":"string","title":"Analysis Version"},"analysis_run_id":{"type":"string","title":"Analysis Run Id","description":"The run this payload belongs to; the same value as ``InstitutionExamRead.analysis_run_id``."},"exam":{"$ref":"#/components/schemas/AnalysisExamRead"},"questions":{"items":{"$ref":"#/components/schemas/AnalysisQuestionRead"},"type":"array","title":"Questions"},"ecdf":{"anyOf":[{"$ref":"#/components/schemas/GatedNullRead"},{"$ref":"#/components/schemas/AnalysisEcdfRead"}],"title":"Ecdf","description":"The whole deneme's distribution; a gated null on an AYT (read ``cohorts[<alan>].ecdf``)."},"cohort":{"anyOf":[{"$ref":"#/components/schemas/GatedNullRead"},{"$ref":"#/components/schemas/AnalysisCohortRead"}],"title":"Cohort","description":"The whole deneme's cohort block; a gated null on an AYT."},"cohort_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cohort Key","description":"How the cohorts were formed: ``exam``, or ``field_of_study`` on an AYT."},"cohorts":{"additionalProperties":{"$ref":"#/components/schemas/AnalysisCohortEntryRead"},"type":"object","title":"Cohorts","description":"``all`` on a TYT; one entry per alan on an AYT."},"campuses":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/AnalysisCampusRead"},"type":"object"},{"type":"null"}],"title":"Campuses","description":"Each campus inside each cohort (WP-B); ``{}`` for a one-campus deneme, ``null`` on a run from before WP-B."},"prerequisites":{"additionalProperties":true,"type":"object","title":"Prerequisites","description":"Per ders: kova nodes (``name`` = kova id, ``bucket_name``, ``q``, ``depth``) and prerequisite edges (``from``, ``to``, ``weight``, ``n``); only where data exists."},"bands":{"items":{"$ref":"#/components/schemas/AnalysisBandRead"},"type":"array","title":"Bands"},"sections":{"items":{"$ref":"#/components/schemas/AnalysisSectionRead"},"type":"array","title":"Sections"},"gates":{"additionalProperties":true,"type":"object","title":"Gates","description":"Every threshold of the run (``min_cohort_norms``, ``min_peer_n``, ``subject_signal_closed`` ...), plus ``labels_pending``, ``n_students``, ``n_questions`` and, since WP-B, ``campus_scope`` (``n_campuses``, ``skipped``, ``campus_missing``, ``rank_basis``)."},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method","description":"Method-and-caveats text."}},"additionalProperties":true,"type":"object","required":["schema_version","analysis_version","analysis_run_id","exam","questions","ecdf","cohort","bands","sections","gates"],"title":"ExamAnalysisRead","description":"``GET /institutions/{id}/exams/{exam_id}/analysis`` item: the exam-level analysis (guide 8.1), verbatim.\n\nOn an AYT the top-level ``ecdf`` and ``cohort`` are a gated null (``cohort_by_field_of_study``) and ``cohorts``\ncarries one entry per alan. ``campuses`` (WP-B, 2026-09-28) is each campus inside each cohort: ``{}`` with\n``gates.campus_scope.skipped = \"single_campus\"`` when the sittings carry at most one campus id (every one-campus\nschool), ``null`` on a run computed before WP-B."},"ExamAnalysisResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamAnalysisRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ExamAnalysisMeta"}},"type":"object","required":["code","message"],"title":"ExamAnalysisResult"},"ExamAnalyticsRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"exam_status":{"type":"string","title":"Exam Status","description":"institution_exam.status; analytics needs completed or partial (D14)."},"analysis_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis State"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id","description":"The exam's current Intelligence run."},"analytics_enabled":{"type":"boolean","title":"Analytics Enabled","description":"INTELLIGENCE__ANALYTICS_ENABLED."},"ready":{"type":"boolean","title":"Ready","description":"True when the current run is materialised: the analytics endpoints serve this exam."},"needs_materialization":{"type":"boolean","title":"Needs Materialization","description":"True when a job should run (no ready run for the current run, or a partial one whose labels have landed)."},"job":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsJobRead"},{"type":"null"}]},"run":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsRunRead"},{"type":"null"}]}},"type":"object","required":["exam_id","exam_status","analytics_enabled","ready","needs_materialization"],"title":"ExamAnalyticsRead","description":"``GET`` / ``POST .../exams/{exam_id}/analytics``: where the exam's materialisation stands."},"ExamAnalyticsResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamAnalyticsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"ExamAnalyticsResult"},"ExamAnalyticsStatusListMeta":{"properties":{"requested":{"type":"integer","title":"Requested","default":0},"found":{"type":"integer","title":"Found","default":0},"missing":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Missing","description":"Ids asked for that are not an exam of this institution; they are absent from items."}},"type":"object","title":"ExamAnalyticsStatusListMeta","description":"What the batch read covered: the distinct ids asked for, the exams found, and the ids that are not an exam of\nthe institution (absent from ``items``, in the order asked)."},"ExamAnalyticsStatusListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamAnalyticsStatusRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ExamAnalyticsStatusListMeta"}},"type":"object","required":["code","message"],"title":"ExamAnalyticsStatusListResult"},"ExamAnalyticsStatusRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"exam_status":{"type":"string","title":"Exam Status","description":"institution_exam.status; analytics needs completed or partial (D14)."},"analysis_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis State"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id","description":"The exam's current Intelligence run."},"analytics_enabled":{"type":"boolean","title":"Analytics Enabled","description":"INTELLIGENCE__ANALYTICS_ENABLED."},"ready":{"type":"boolean","title":"Ready","description":"True when the current run is materialised: the analytics endpoints serve this exam."},"needs_materialization":{"type":"boolean","title":"Needs Materialization","description":"True when a job should run (no ready run for the current run, or a partial one whose labels have landed)."},"job":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsJobRead"},{"type":"null"}]},"run":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsRunStatusRead"},{"type":"null"}]}},"type":"object","required":["exam_id","exam_status","analytics_enabled","ready","needs_materialization"],"title":"ExamAnalyticsStatusRead","description":"One item of ``GET .../exams/analytics?exam_ids=``: the single read's object without ``run.counts``."},"ExamCreateForm":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"term":{"type":"string","maxLength":16,"minLength":1,"title":"Term","description":"School year, e.g. 2026-2027; must match the roster term"},"exam_scope":{"$ref":"#/components/schemas/ExamScope","description":"TYT or AYT (the layouts the documents are read in); TARAMA / none are refused"},"administered_on":{"type":"string","format":"date","title":"Administered On","description":"The calendar day of the sitting (Turkey time)"},"grade_level":{"type":"integer","maximum":13.0,"minimum":1.0,"title":"Grade Level","description":"The grade the deneme was written for (13 = mezun); with term and exam_scope it names the series"}},"additionalProperties":false,"type":"object","required":["name","term","exam_scope","administered_on","grade_level"],"title":"ExamCreateForm","description":"An exam created in the panel (document intake, phase 2): its metadata only. The booklets, the key and the\nquestions never come from a form: they come from the documents uploaded to the exam (``PUT .../documents/{kind}``),\nand a body that carries any other field is refused (``extra=\"forbid\"``)."},"ExamDenemelerRead":{"properties":{"exam":{"$ref":"#/components/schemas/DenemelerExamHeadRead"},"student":{"$ref":"#/components/schemas/DenemelerStudentBlockRead"},"result":{"$ref":"#/components/schemas/DenemelerResultRead"},"ranks":{"$ref":"#/components/schemas/DenemelerRanksRead"},"position":{"$ref":"#/components/schemas/DenemelerPositionRead","description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.position`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"opportunities":{"$ref":"#/components/schemas/DenemelerOpportunitiesRead","description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.opportunities`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"unexpected_correct":{"items":{"type":"string"},"type":"array","title":"Unexpected Correct","description":"Hard-correct question ids (labeled, peer rate <= surprise_lo, correct) by peer rate asc, booklet ties. Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.unexpected_correct`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"rank_impact":{"$ref":"#/components/schemas/RankImpactRead","description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.rank_impact`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"report_card":{"$ref":"#/components/schemas/ReportCardRead"},"answers":{"items":{"$ref":"#/components/schemas/DenemelerAnswerRead"},"type":"array","title":"Answers","description":"Every scored question, booklet order."},"queues":{"$ref":"#/components/schemas/ViewerQueuesRead"},"gates":{"$ref":"#/components/schemas/DenemelerGatesRead"},"advice":{"anyOf":[{"$ref":"#/components/schemas/AdviceBlockRead"},{"$ref":"#/components/schemas/AdviceGatedRead"},{"type":"null"}],"title":"Advice","description":"Intelligence's ``denemeler.advice`` block of this sitting, read live from the single student read when the screen opens and passed through as served (owner decision AV29, 2026-10-17; the stored paged copy carries none): ``{advice_version, items[], withheld[]}`` while the advice version is approved, else the gated null ``{value: null, gate: {name: advice_version_approved, required, actual}, reason}``; show ``items[].text`` as served, never a Backend sentence. ``null`` when the live read failed, when ``INTELLIGENCE__SERVED_ADVICE_LIVE`` is off, while Intelligence's live run is another than the one this body was materialised from (a re-run waiting for the sweep's switch-over: the block would describe another run), or when the route was asked with ``advice=false``; the rest of the body is unaffected. A parent reading the child's panel gets the child's block. Since 2026-10-25 it is documented as Intelligence's advice block, the type of the 8.7 profile's ``advice`` (``AdviceBlockRead`` or ``AdviceGatedRead``): a card about one question of this sitting's 8.2 ``answers[]`` (an evidence chip) names it in ``items[].about.question_id``. The block itself is never re-validated, re-ordered or completed: a key Intelligence adds arrives as sent."},"served":{"anyOf":[{"$ref":"#/components/schemas/DenemelerServedRead"},{"type":"null"}],"title":"Served","description":"Intelligence's own Denemeler object of this sitting, exactly as it served it and typed to the last field (contract 8.2; Student Outputs Handoff, Backend action 1; ``DenemelerServedRead``, 2026-10-27, a block that does not fit its type is ``null``): read ``opportunities``, ``rank_impact`` (with ``potential_net`` and its caveat), ``unexpected_correct``, ``position``, ``cohort_rank`` and ``campus`` here, the official ``ranks`` beside them. Never an ``advice`` key: that block is read live (``advice``, AV29). ``null`` when the exam was materialised before 2026-10-11, until it is materialised again."}},"type":"object","required":["exam","student","result","ranks","position","opportunities","unexpected_correct","rank_impact","report_card","answers","queues","gates"],"title":"ExamDenemelerRead","description":"S2: the extended single-exam denemeler body (6.5-6.12). ``build_denemeler`` builds it from store rows; the\ninstitution panel's P6 reuses the same builder."},"ExamDocumentRead":{"properties":{"kind":{"type":"string","title":"Kind"},"sha256":{"type":"string","title":"Sha256"},"size_bytes":{"type":"integer","title":"Size Bytes"},"content_type":{"type":"string","title":"Content Type"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"uploaded_at":{"type":"string","format":"date-time","title":"Uploaded At"},"uploaded_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Uploaded By User Id"}},"type":"object","required":["kind","sha256","size_bytes","content_type","uploaded_at"],"title":"ExamDocumentRead"},"ExamIntakeRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"state":{"type":"string","title":"State"},"run_no":{"type":"integer","title":"Run No"},"attempts":{"type":"integer","title":"Attempts"},"failures":{"type":"integer","title":"Failures"},"busy":{"type":"boolean","title":"Busy"},"busy_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Busy Reason"},"documents":{"items":{"$ref":"#/components/schemas/ExamDocumentRead"},"type":"array","title":"Documents"},"missing":{"items":{"type":"string"},"type":"array","title":"Missing"},"needs_key_table":{"type":"boolean","title":"Needs Key Table"},"last_run":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Run"},"refusal":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Refusal"},"last_error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Error"},"ocr":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ocr"},"deliveries":{"items":{"$ref":"#/components/schemas/IntakeDeliveryRead"},"type":"array","title":"Deliveries"},"exam":{"additionalProperties":true,"type":"object","title":"Exam"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["exam_id","state","run_no","attempts","failures","busy","documents","missing","needs_key_table","deliveries","exam","updated_at"],"title":"ExamIntakeRead","description":"Everything the panel shows about an exam's documents and their conversion: the documents, what is missing, the\nstate, the last run's report (numbers, codes and school numbers only), the refusal, the delivery rows and the\nexam's own pipeline state."},"ExamIntakeSummaryRead":{"properties":{"state":{"type":"string","title":"State"},"run_no":{"type":"integer","title":"Run No"},"documents":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Documents"},"refusal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal Code"},"refusal_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal Message"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["state","run_no","documents","updated_at"],"title":"ExamIntakeSummaryRead","description":"The document intake of an exam in the exam list and read: the document chips and the state badge."},"ExamLabelRecordBriefRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"label_status":{"type":"string","title":"Label Status","description":"``labeled`` | ``pending`` | ``review`` | ``unlabelable`` | ``without_taxonomy``."},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Reason"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error","description":"``{code, detail}`` when labeling failed on this question."},"taxonomy_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Status"},"id":{"$ref":"#/components/schemas/LabelIdRead"}},"type":"object","required":["question_id","label_status","id"],"title":"ExamLabelRecordBriefRead","description":"A question record of the labels summary: only one that is not ``labeled`` or carries an ``error``, with these\nfields of the full record (``schemas/labeling.LabelRecordRead``) under the same names and paths."},"ExamLabelingJobRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"queued, running, completed, partial or failed."},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"The job's error code: quota, budget, approval_required, transient, max_attempts, engine_auth ..."},"cause":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cause","description":"With max_attempts: what the retries ran into (quota or transient)."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Intelligence's own line; ids and counts, never a provider's words on a rejected key."},"attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attempts"},"n_labeled":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Labeled"},"n_pending":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Pending"},"n_review":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Review"},"n_unlabelable":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Unlabelable"},"waiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Waiting Since","description":"When a job at a wall first stopped."},"next_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Attempt At","description":"When a waiting job tries again; null on a job that waits for a person."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["exam_id"],"title":"ExamLabelingJobRead","description":"``GET .../exams/{exam_id}/labeling-job``: why the exam's labels have not come. All null but ``exam_id`` when the\ndefinition needed no labeling job (every question was known)."},"ExamLabelingJobResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamLabelingJobRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"ExamLabelingJobResult"},"ExamLabelsMeta":{"properties":{"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag"},"n_questions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Questions"},"n_labeled":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Labeled"},"n_pending":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Pending"},"n_review":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Review"},"n_unlabelable":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Unlabelable"},"n_without_taxonomy":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Without Taxonomy"},"codebook_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Codebook Version"},"label_schema_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label Schema Version"},"skills_vocab_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Skills Vocab Version"}},"type":"object","title":"ExamLabelsMeta","description":"The labels read's ``meta``: the ETag and the exam's status counters, copied from the payload."},"ExamLabelsRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"exam_id":{"type":"string","title":"Exam Id"},"n_questions":{"type":"integer","title":"N Questions"},"n_labeled":{"type":"integer","title":"N Labeled","default":0},"n_pending":{"type":"integer","title":"N Pending","default":0},"n_review":{"type":"integer","title":"N Review","default":0},"n_unlabelable":{"type":"integer","title":"N Unlabelable","default":0},"n_without_taxonomy":{"type":"integer","title":"N Without Taxonomy","default":0},"codebook_version":{"type":"string","title":"Codebook Version"},"label_schema_version":{"type":"integer","title":"Label Schema Version"},"skills_vocab_version":{"type":"integer","title":"Skills Vocab Version"},"generated_at":{"type":"string","title":"Generated At"},"data":{"items":{"$ref":"#/components/schemas/LabelRecordRead"},"type":"array","title":"Data"}},"additionalProperties":true,"type":"object","required":["schema_version","exam_id","n_questions","codebook_version","label_schema_version","skills_vocab_version","generated_at","data"],"title":"ExamLabelsRead","description":"``GET .../exams/{exam_id}/questions/labels`` item: every record of the exam with the status counters\n(Intelligence ``GET /v1/labeling/exams/{exam_id}/questions``)."},"ExamLabelsResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamLabelsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ExamLabelsMeta"}},"type":"object","required":["code","message"],"title":"ExamLabelsResult"},"ExamLabelsSummaryErrorRead":{"properties":{"code":{"type":"string","title":"Code","description":"The single read's error code: EXAM_NOT_FOUND, EXAM_NOT_DEFINED, INTELLIGENCE_UNAVAILABLE, INTELLIGENCE_RATE_LIMITED, INTELLIGENCE_KEY_MISSING, UNEXPECTED_ERROR..."},"status":{"type":"integer","title":"Status","description":"The HTTP status the single labels read would have answered (404, 409, 500, 502, 503)."},"retry_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After","description":"Seconds after which this exam is worth asking again (a 503)."},"intelligence_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intelligence Request Id"}},"type":"object","required":["code","status"],"title":"ExamLabelsSummaryErrorRead","description":"Why one exam of the batch has no summary: the code and status the single labels read would have answered."},"ExamLabelsSummaryItemRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"summary":{"anyOf":[{"$ref":"#/components/schemas/ExamLabelsSummaryRead"},{"type":"null"}]},"error":{"anyOf":[{"$ref":"#/components/schemas/ExamLabelsSummaryErrorRead"},{"type":"null"}]}},"type":"object","required":["exam_id"],"title":"ExamLabelsSummaryItemRead","description":"One exam of the batch, in the order asked: ``summary`` or ``error``, never both."},"ExamLabelsSummaryListMeta":{"properties":{"requested":{"type":"integer","title":"Requested","default":0},"served":{"type":"integer","title":"Served","default":0},"failed":{"type":"integer","title":"Failed","default":0}},"type":"object","title":"ExamLabelsSummaryListMeta","description":"The distinct ids asked for, how many have a summary and how many an error."},"ExamLabelsSummaryListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamLabelsSummaryItemRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ExamLabelsSummaryListMeta"}},"type":"object","required":["code","message"],"title":"ExamLabelsSummaryListResult"},"ExamLabelsSummaryRead":{"properties":{"n_questions":{"type":"integer","title":"N Questions"},"n_labeled":{"type":"integer","title":"N Labeled","default":0},"n_pending":{"type":"integer","title":"N Pending","default":0},"n_review":{"type":"integer","title":"N Review","default":0},"n_unlabelable":{"type":"integer","title":"N Unlabelable","default":0},"n_without_taxonomy":{"type":"integer","title":"N Without Taxonomy","default":0},"n_records":{"type":"integer","title":"N Records","description":"How many question records Intelligence served: the full read's data length.","default":0},"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated At","description":"Intelligence's generated_at of the read, i.e. when it was read."},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag","description":"The full labels read's ETag of this exam: it changes when the labels change."},"codebook_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Codebook Version"},"label_schema_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label Schema Version"},"skills_vocab_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Skills Vocab Version"},"taxonomy_status_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Taxonomy Status Counts","description":"Records per taxonomy_status over ALL records; a record without one is not counted."},"data":{"items":{"$ref":"#/components/schemas/ExamLabelRecordBriefRead"},"type":"array","title":"Data","description":"Only the records that are not labeled or carry an error, in Intelligence's order."}},"type":"object","required":["n_questions"],"title":"ExamLabelsSummaryRead","description":"One exam's labels as a status screen needs them: the full read's counters and versions, how many records\nIntelligence served, the taxonomy statuses over all of them, and only the records worth listing."},"ExamLevelAnalysisRead":{"properties":{"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version"},"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version"},"analysis_run_id":{"type":"string","title":"Analysis Run Id"},"exam":{"$ref":"#/components/schemas/ExamLevelExamRead"},"questions":{"items":{"$ref":"#/components/schemas/ExamLevelQuestionRead"},"type":"array","title":"Questions","description":"Booklet order."},"ecdf":{"anyOf":[{"$ref":"#/components/schemas/GatedNullRead"},{"$ref":"#/components/schemas/ExamLevelEcdfRead"},{"type":"null"}],"title":"Ecdf","description":"The whole deneme's distribution; Intelligence's gated null as stored where 8.1 withholds it: on an AYT (``cohort_by_field_of_study``, the alanlar's own are in 8.1 ``cohorts``) and below ``min_cohort_stats`` (20) students."},"cohort":{"anyOf":[{"$ref":"#/components/schemas/GatedNullRead"},{"$ref":"#/components/schemas/ExamLevelCohortRead"},{"type":"null"}],"title":"Cohort","description":"The whole deneme's cohort block; Intelligence's gated null as stored on an AYT (``cohort_by_field_of_study``) and below ``min_cohort_stats`` (20) students."},"prerequisites":{"additionalProperties":true,"type":"object","title":"Prerequisites","description":"Per subject: nodes (``name`` = kova id, ``bucket_name``, ``q``, ``depth``) and edges (``from``, ``to``, ``weight``, ``n``)."},"bands":{"items":{"$ref":"#/components/schemas/ExamLevelBandRead"},"type":"array","title":"Bands"},"sections":{"items":{"$ref":"#/components/schemas/ExamLevelSectionRead"},"type":"array","title":"Sections","description":"Booklet index ranges."},"gates":{"additionalProperties":true,"type":"object","title":"Gates","description":"Intelligence's thresholds of the run, as stored."},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"}},"type":"object","required":["analysis_run_id","exam","questions","bands","sections"],"title":"ExamLevelAnalysisRead","description":"S6: the exam-level analysis (``ExamAnalysisRead``) of an exam the caller sat, rebuilt from the materialised run,\nwith the per-question S6 additions. No per-student data."},"ExamLevelAnalysisResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamLevelAnalysisRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentAnalyticsMeta"}},"type":"object","required":["code","message"],"title":"ExamLevelAnalysisResult"},"ExamLevelBandRead":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"lo":{"type":"number","title":"Lo"},"hi":{"type":"number","title":"Hi"}},"type":"object","required":["key","label","lo","hi"],"title":"ExamLevelBandRead"},"ExamLevelCohortRead":{"properties":{"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net"},"mean_net_by_subject":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"object","title":"Mean Net By Subject"},"blank_rate_by_tercile":{"additionalProperties":true,"type":"object","title":"Blank Rate By Tercile","description":"Per subject, three values (bottom, middle, top tercile), computed over each student's scored set; or Intelligence's gated null."},"blank_rate_n_by_tercile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Blank Rate N By Tercile","description":"Per subject, the students behind each of the three blank rates (decision 70)."},"blank_by_tercile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Blank By Tercile","description":"Per subject, the blank answers of each tercile: the exact numerator (decision 89)."},"n_questions_by_tercile":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"N Questions By Tercile","description":"Per subject, the scored questions of each tercile: the exact denominator (decision 89)."},"blank_rate_by_tercile_reason":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Blank Rate By Tercile Reason","description":"Why a blank rate is null (decision 84)."},"trap_rate_by_tercile":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Trap Rate By Tercile","description":"Three values (bottom, middle, top tercile): the share of wrong answers on a common wrong answer; or Intelligence's gated null."},"trap_rate_n_by_tercile":{"anyOf":[{"items":{"anyOf":[{"type":"integer"},{"type":"null"}]},"type":"array"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Trap Rate N By Tercile","description":"The wrong answers behind each trap rate (decision 58)."},"trap_rate_by_tercile_reason":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Trap Rate By Tercile Reason","description":"Why a trap rate is null (decision 84)."},"blank_rate_basis":{"type":"string","const":"scored_set","title":"Blank Rate Basis","default":"scored_set"}},"type":"object","title":"ExamLevelCohortRead","description":"The 8.1 ``cohort`` block as stored. Since 2026-10-16 (Intelligence handoff item 3b, decisions 58, 70, 84, 89) the\ncounts and reasons travel beside the rates: a rate never without its ``n``. From 20 to 49 students Intelligence\nserves each tercile block as one gated null ``{value: null, gate, reason}`` (``min_cohort_norms``), which passes as\nis; below 20, and on an AYT, the whole block is a gated null instead of this object. A run materialised before a\nfield existed carries null."},"ExamLevelCommonWrongRead":{"properties":{"letter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Letter"},"share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Share"},"n_wrong":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Wrong"}},"type":"object","title":"ExamLevelCommonWrongRead","description":"Intelligence's 8.1 ``common_wrong`` as stored: the most chosen wrong letter, its share among the wrong picks and\nthe wrong picks behind it."},"ExamLevelDistractorStyleRead":{"properties":{"code":{"type":"string","title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["code"],"title":"ExamLevelDistractorStyleRead"},"ExamLevelEcdfRead":{"properties":{"total":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Total"},"by_subject":{"additionalProperties":true,"type":"object","title":"By Subject","description":"Per subject a 201-point grid (or Intelligence's gated null)."}},"type":"object","title":"ExamLevelEcdfRead"},"ExamLevelExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"name":{"type":"string","title":"Name"},"short_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Label"},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On"},"exam_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Scope"},"term_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term Id"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"cohort_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort Size","description":"Ranking cohort."},"norm_sample":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Norm Sample","description":"Students of the analysed cohort (behind the rates and the distribution)."},"question_count":{"type":"integer","title":"Question Count"},"scored_question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scored Question Count"},"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version"}},"type":"object","required":["exam_id","name","question_count"],"title":"ExamLevelExamRead"},"ExamLevelQuestionRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"subject":{"type":"string","title":"Subject"},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Name"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position","description":"0-based booklet index."},"correct_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correct Answer"},"cancelled":{"type":"boolean","title":"Cancelled","default":false},"scoring_block":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block"},"correct_rate":{"anyOf":[{"$ref":"#/components/schemas/ExamLevelRateRead"},{"type":"null"}]},"blank_rate":{"anyOf":[{"$ref":"#/components/schemas/ExamLevelRateRead"},{"type":"null"}],"description":"Over each student's scored set."},"tercile_correct_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Tercile Correct Rate"},"tercile_n":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Tercile N"},"common_wrong":{"anyOf":[{"$ref":"#/components/schemas/ExamLevelCommonWrongRead"},{"type":"null"}],"description":"Null below its gate (``common_wrong_gate`` names it) or for a reason (``common_wrong_reason``). A null with neither beside it comes from an Intelligence run before pipeline 2026.10-b or from a run materialised before 2026-10-25."},"common_wrong_gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}],"description":"Intelligence's 8.1 gate beside a null ``common_wrong``, as stored (pipeline 2026.10-b): ``min_wrong_ship`` (``actual`` the question's wrong picks), ``trap_share_min`` (``actual`` the modal wrong answer's share) or, without terciles (below 50 students), ``min_cohort_norms``; ``required`` is the threshold as served. Null beside a value or a ``common_wrong_reason``. Also null, whatever ``common_wrong`` is, on an Intelligence run before 2026.10-b and on a run materialised before 2026-10-25 (migration ``d7a3c9e5f1b4``): there it is unknown, never rebuilt by the Backend, until the exam is materialised again (a forced re-materialisation fills it)."},"common_wrong_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Common Wrong Reason","description":"Intelligence's 8.1 reason beside a null ``common_wrong`` where no threshold applies, as stored (pipeline 2026.10-d): ``cancelled`` (a cancelled question), ``key_repaired`` (the key was repaired in the current version). Null otherwise. Also null on an Intelligence run before 2026.10-d and on a run materialised before 2026-10-25 (migration ``d7a3c9e5f1b4``), until the exam is materialised again."},"difficulty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Difficulty","description":"Intelligence's empirical difficulty (never the band basis)."},"rasch_b":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rasch B","description":"Rasch difficulty; the difficulty band uses this, never ``difficulty``."},"stats_reliable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stats Reliable"},"labeled":{"type":"boolean","title":"Labeled"},"bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Id","description":"Topic id ``<subject>/<bucket_id>`` (the S4 bucket id)."},"topic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Name"},"question_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Type Id"},"question_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Type Name"},"skill_ids":{"items":{"type":"string"},"type":"array","title":"Skill Ids"},"skill_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Skill Names"},"overall_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overall N","description":"Population behind ``correct_rate`` and ``blank_rate`` (answer-data population, not the ranking cohort)."},"wrong_count":{"type":"integer","title":"Wrong Count","description":"Total wrong answers on the question (drives the trap gate)."},"misconceptions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Misconceptions"},"strategies":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Strategies"},"distractor_style":{"anyOf":[{"$ref":"#/components/schemas/ExamLevelDistractorStyleRead"},{"type":"null"}]},"cognitive_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cognitive Level"},"text_load":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Load"},"calc_load":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calc Load"},"visual_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visual Role"},"solution_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Solution Steps"},"has_shortcut":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Shortcut"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Signed URL (S7, valid at least an hour); null = no image (D11)."}},"type":"object","required":["question_id","subject","labeled","wrong_count"],"title":"ExamLevelQuestionRead","description":"One question of the exam-level body (``ExamAnalysisRead.questions[]``) with the S6 additions."},"ExamLevelRateRead":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"Null below Intelligence's ``min_reliable_n`` (``gate`` says so), or on a cancelled question (``reason`` says so)."},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"gate":{"anyOf":[{"$ref":"#/components/schemas/ValueGateRead"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"``cancelled`` beside the null value of a cancelled question, which has no gate (8.1 since pipeline 2026.10-d, P23); null otherwise."}},"type":"object","title":"ExamLevelRateRead"},"ExamLevelSectionRead":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"start":{"type":"integer","title":"Start","description":"Booklet index, inclusive."},"end":{"type":"integer","title":"End","description":"Booklet index, exclusive (the unscored block included)."}},"type":"object","required":["start","end"],"title":"ExamLevelSectionRead"},"ExamLinkRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On","description":"Europe/Istanbul calendar date."}},"type":"object","required":["exam_id","exam_name"],"title":"ExamLinkRead"},"ExamPersonFitMeta":{"properties":{"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id"},"scope":{"type":"string","title":"Scope","description":"The caller's visibility: ``all`` (admin), ``sections`` (teacher), ``campuses`` (campus manager).","default":"all"},"visible_flagged":{"type":"integer","title":"Visible Flagged","description":"Rows in ``flagged`` (inside the caller's visibility).","default":0},"unmapped":{"type":"integer","title":"Unmapped","description":"Flagged rows of a student no roster row of the exam's term matches; left out.","default":0}},"type":"object","title":"ExamPersonFitMeta"},"ExamPersonFitRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"exam_id":{"type":"string","title":"Exam Id"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id"},"computed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Computed At"},"n_sittings":{"type":"integer","title":"N Sittings"},"n_checked":{"type":"integer","title":"N Checked"},"n_flagged":{"type":"integer","title":"N Flagged"},"flagged":{"items":{"$ref":"#/components/schemas/PersonFitFlagRead"},"type":"array","title":"Flagged"},"gate":{"anyOf":[{"$ref":"#/components/schemas/ExpectationGateRead"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"gates":{"additionalProperties":true,"type":"object","title":"Gates"}},"additionalProperties":true,"type":"object","required":["schema_version","exam_id","n_sittings","n_checked","n_flagged","flagged","gates"],"title":"ExamPersonFitRead","description":"Intelligence's person-fit read of the exam with the flagged rows the caller may see (a teacher's sections, a\ncampus manager's campuses, every row for the admin); ``n_sittings``, ``n_checked`` and ``n_flagged`` stay the\nexam's own counts (no name in them)."},"ExamPersonFitResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamPersonFitRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ExamPersonFitMeta"}},"type":"object","required":["code","message"],"title":"ExamPersonFitResult"},"ExamReleaseRequest":{"properties":{"release_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Release At"}},"additionalProperties":false,"type":"object","title":"ExamReleaseRequest","description":"``POST .../exams/{exam_id}/release``: open the exam to its students now (``release_at`` omitted, or a time\nalready past) or at ``release_at`` (the exam stays hidden until then). The time carries its offset (``+03:00``,\n``Z``): a bare local time names no instant and is a 422, never compared with the clock."},"ExamResultListMeta":{"properties":{"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":50},"exam_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Exam Id"},"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"scope":{"type":"string","title":"Scope","default":"all"},"section_codes":{"items":{"type":"string"},"type":"array","title":"Section Codes"},"campus_codes":{"items":{"type":"string"},"type":"array","title":"Campus Codes"},"results_recorded":{"type":"boolean","title":"Results Recorded","default":true},"booklets":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Booklets"}},"type":"object","title":"ExamResultListMeta"},"ExamResultListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamResultRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ExamResultListMeta"}},"type":"object","required":["code","message"],"title":"ExamResultListResult"},"ExamResultRead":{"properties":{"grade_level":{"type":"integer","title":"Grade Level"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study"},"section_code":{"type":"string","title":"Section Code"},"campus_code":{"type":"string","title":"Campus Code"},"booklet_form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booklet Form"},"scoring_block":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block"},"scoring_block_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block Basis"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"net":{"type":"number","title":"Net"},"official_source":{"type":"string","title":"Official Source"},"computed_net":{"type":"number","title":"Computed Net"},"booklets":{"items":{"$ref":"#/components/schemas/ResultBookletRead"},"type":"array","title":"Booklets"},"course_nets":{"additionalProperties":{"type":"number"},"type":"object","title":"Course Nets"},"ranks":{"$ref":"#/components/schemas/ResultRanksRead"},"file_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Rank"},"entry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entry Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"student_no":{"type":"string","title":"Student No"},"full_name":{"type":"string","title":"Full Name"}},"type":"object","required":["grade_level","section_code","campus_code","correct","wrong","blank","net","official_source","computed_net","ranks","student_id","student_no","full_name"],"title":"ExamResultRead","description":"A row of the exam's results table. ``student_id`` is the identity row (stable across terms: the\npanel's cross-exam key); ``entry_id`` the exam term's roster row."},"ExamSatRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"administered_on":{"type":"string","format":"date","title":"Administered On"},"exam_scope":{"type":"string","title":"Exam Scope"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"in_series":{"type":"boolean","title":"In Series"},"net":{"type":"number","title":"Net","description":"Official net of the sitting (the value of `ObservationRead.net`)."},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank","description":"Official general rank of the sitting (`ObservationRead.general_rank`); null when the results carry none."},"cohort_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort Size","description":"The count of the general rank, from the same row (`ObservationRead.cohort_size`); null with the rank."},"scored_question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scored Question Count","description":"Scored questions of the exam (the sum of its run's subject catalog, as `deneme.exam.scored_question_count` of the selected sitting); null when the run has no catalog."}},"type":"object","required":["exam_id","exam_name","administered_on","exam_scope","in_series","net"],"title":"ExamSatRead","description":"One analytics-ready sitting of the student (D14), with its official results whatever exam is selected (D46,\nthe institution panel's request of 2026-11-01): the same row and the same meaning as `history.observations[]`."},"ExamScope":{"type":"string","enum":["TYT","AYT","TARAMA","none"],"title":"ExamScope"},"ExamSeriesRead":{"properties":{"series":{"$ref":"#/components/schemas/SeriesSpecRead","description":"The institution series: 12th-grade TYT of the latest such term. AYT and Tarama exams are listed in `exams` but never in it."},"latest":{"$ref":"#/components/schemas/LatestRead","description":"The caller's latest exam (D42, 2026-11-16): an admin's is the latest exam of the TYT series; a campus manager's or a teacher's is the newest TYT exam of the series' grade and term (one out of the series for `partial-coverage` included) with a result they can see, else the series'. Never an AYT or Tarama exam. `/hierarchy` and `/overview` default to it."},"exams":{"items":{"$ref":"#/components/schemas/SeriesExamRead"},"type":"array","title":"Exams","description":"Every analytics-ready dated exam of the institution, whatever its type (TYT, AYT, TARAMA; since 2026-10-28, D39), newest first (date desc, exam id desc). An exam outside the series has `in_series` false and its `exclusion`."},"series_exams_without_scope_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Series Exams Without Scope Students","description":"Only with `scope`: the TYT series exams with no student in the scope."}},"type":"object","required":["series","latest"],"title":"ExamSeriesRead"},"ExamSeriesResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamSeriesRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"ExamSeriesResult"},"ExpectationGateRead":{"properties":{"name":{"type":"string","title":"Name"},"required":{"title":"Required"},"actual":{"title":"Actual"}},"additionalProperties":true,"type":"object","required":["name"],"title":"ExpectationGateRead","description":"A gate of the 8.9 reads; ``required`` and ``actual`` may be compound (``expectation_calibration``: ``{n: 200,\ncoverage: [0.70, 0.90]}`` against ``{n, coverage}``), so they stay untyped."},"ExpectationSubjectRead":{"properties":{"subject":{"type":"string","title":"Subject"},"expectation":{"additionalProperties":true,"type":"object","title":"Expectation","description":"``lo, mid, hi`` (never a point), ``correct{lo, mid, hi}``, ``verdict`` (within, above, below) judged on ``verdict_range``, ``observed_net``, ``n_items``, ``items_without`` ...; or ``{value: null, gate, reason}`` with the counts."},"potential":{"additionalProperties":true,"type":"object","title":"Potential","description":"Kişisel potansiyel: ``value``, ``lo``, ``hi`` with its caveat; never summed with the exam-wide ``per_exam_potential_net``."},"answers":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":true,"type":"object"}],"title":"Answers"},"theta_pre":{"additionalProperties":true,"type":"object","title":"Theta Pre"}},"additionalProperties":true,"type":"object","required":["subject","expectation","potential","answers","theta_pre"],"title":"ExpectationSubjectRead","description":"One ders of the student's exam: the expectation block (the range ``lo``..``hi`` before the sitting and the\n``verdict`` after it, or the gated null ``expectation_calibration`` until 200 unseen sittings of the ders cover 0.70\nto 0.90), the personal potential, the per-question probabilities and the ability before the sitting."},"ExpectedMissesItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"expected-misses","title":"Id"},"params":{"$ref":"#/components/schemas/ExpectedMissesParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"ExpectedMissesItemRead"},"ExpectedMissesParamsRead":{"properties":{"count":{"type":"integer","title":"Count"},"expected_net":{"type":"number","title":"Expected Net"},"example_question_id":{"type":"string","title":"Example Question Id","description":"Highest peer rate (booklet ties)."},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"}},"type":"object","required":["count","expected_net","example_question_id"],"title":"ExpectedMissesParamsRead"},"ExpenseLedgerGenerateRequest":{"properties":{"scope":{"type":"string","pattern":"^(teacher|refund)$","title":"Scope","description":"teacher = monthly series, refund = weekly series"},"period":{"type":"string","maxLength":8,"minLength":7,"title":"Period","description":"teacher: YYYY-MM · refund: YYYY-Wnn (ISO week)"},"force":{"type":"boolean","title":"Force","description":"Supersede a frozen period (opens a new version; note mandatory).","default":false},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["scope","period"],"title":"ExpenseLedgerGenerateRequest"},"ExpenseLedgerMeta":{"properties":{"run":{"anyOf":[{"$ref":"#/components/schemas/ExpenseLedgerRunRead"},{"type":"null"}]},"anomalies":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Anomalies"},"pending":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Pending"},"reversals":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Reversals"},"supersede_diff":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Supersede Diff"},"regenerated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Regenerated"},"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":100}},"type":"object","title":"ExpenseLedgerMeta","description":"All-default meta: the error path serves meta={} through this model."},"ExpenseLedgerResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExpenseLedgerRowRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ExpenseLedgerMeta"}},"type":"object","required":["code","message"],"title":"ExpenseLedgerResult"},"ExpenseLedgerRowRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"seq_no":{"type":"integer","title":"Seq No"},"kind":{"type":"string","title":"Kind"},"source_kind":{"type":"string","title":"Source Kind"},"source_id":{"type":"string","format":"uuid","title":"Source Id"},"source_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Status"},"person_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Person User Id"},"person_full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Full Name"},"person_tckn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Tckn"},"person_identity_source":{"type":"string","title":"Person Identity Source","default":"MISSING"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"occurred_on":{"type":"string","format":"date","title":"Occurred On"},"description":{"type":"string","title":"Description"},"quantity":{"type":"integer","title":"Quantity","default":1},"unit_price_try":{"type":"string","title":"Unit Price Try"},"amount_try":{"type":"string","title":"Amount Try"},"commission_try":{"type":"string","title":"Commission Try","default":"0"},"currency":{"type":"string","title":"Currency","default":"TRY"},"voided":{"type":"boolean","title":"Voided","default":false},"reverses_row_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reverses Row Id"},"flags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Flags"}},"type":"object","required":["id","seq_no","kind","source_kind","source_id","occurred_at","occurred_on","description","unit_price_try","amount_try"],"title":"ExpenseLedgerRowRead"},"ExpenseLedgerRunRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"scope":{"type":"string","title":"Scope"},"period_key":{"type":"string","title":"Period Key"},"version":{"type":"integer","title":"Version"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"is_partial":{"type":"boolean","title":"Is Partial","default":false},"source":{"type":"string","title":"Source","default":"ADMIN"},"generated_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Generated By"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"row_count":{"type":"integer","title":"Row Count","default":0},"teacher_row_count":{"type":"integer","title":"Teacher Row Count","default":0},"student_row_count":{"type":"integer","title":"Student Row Count","default":0},"total_amount_try":{"type":"string","title":"Total Amount Try","default":"0"},"teacher_total_try":{"type":"string","title":"Teacher Total Try","default":"0"},"student_total_try":{"type":"string","title":"Student Total Try","default":"0"},"has_blocking_anomalies":{"type":"boolean","title":"Has Blocking Anomalies","default":false},"xlsx_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xlsx Filename"},"superseded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Superseded At"},"regenerate_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Regenerate Note"}},"type":"object","required":["id","scope","period_key","version","period_start","period_end","generated_at","as_of"],"title":"ExpenseLedgerRunRead"},"ExpenseLedgerRunsMeta":{"properties":{"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":50}},"type":"object","title":"ExpenseLedgerRunsMeta"},"ExpenseLedgerRunsResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExpenseLedgerRunRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ExpenseLedgerRunsMeta"}},"type":"object","required":["code","message"],"title":"ExpenseLedgerRunsResult"},"ExpenseLedgerXlsxRead":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"expires_minutes":{"type":"integer","title":"Expires Minutes"},"generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Generated At"}},"type":"object","required":["url","filename","expires_minutes"],"title":"ExpenseLedgerXlsxRead"},"ExplorerRead":{"properties":{"level":{"type":"string","title":"Level","description":"`campus` (institution scope), `section` (campus scope) or `student` (section scope)."},"parent_operational_mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Parent Operational Mean Net","description":"Operational mean of the current scope; null at section scope and below `min_cohort_stats` operational students (`gate`)."},"rows":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExplorerRowRead"},"type":"array"},{"type":"null"}],"title":"Rows","description":"Null at section scope. Served operational rows by success, then gated operational rows by name, then non-operational rows."},"students":{"anyOf":[{"items":{"$ref":"#/components/schemas/StudentRecordRead"},"type":"array"},{"type":"null"}],"title":"Students","description":"Only at section scope: P1 items with `sort = net_desc`, no paging."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `parent_operational_mean_net` is null; null when served or at section scope."}},"type":"object","required":["level"],"title":"ExplorerRead"},"ExplorerRowRead":{"properties":{"level":{"type":"string","title":"Level","description":"`campus` | `section`."},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"is_operational":{"type":"boolean","title":"Is Operational"},"student_count_total":{"type":"integer","title":"Student Count Total"},"student_count":{"type":"integer","title":"Student Count","description":"Operational students."},"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net","description":"Over the row's operational students (all of them for a non-operational row); null below `min_cohort_stats` (`gate`)."},"median_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Net","description":"Null with `mean_net`."},"delta_vs_parent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta Vs Parent"},"top_tier_count":{"type":"integer","title":"Top Tier Count","description":"P1 `is_top_tier_candidate` count. Deprecated (decision 31, A4, 2026-10-18): served one more release, then removed.","deprecated":true},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank","description":"1..n for served operational rows by success; null for gated and non-operational ones."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why the object's statistics are `null`: `{name, required, actual, reason}` (Intelligence's `min_cohort_stats` 20 or `min_cohort_norms` 50; panel request A6, 2026-10-16). Null when every figure is served."}},"type":"object","required":["level","id","name","slug","is_operational","student_count_total","student_count","top_tier_count"],"title":"ExplorerRowRead"},"ExternalIdentityRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"issuer":{"type":"string","title":"Issuer"},"subject":{"type":"string","title":"Subject"},"external_student_id":{"type":"string","title":"External Student Id"},"link_method":{"type":"string","title":"Link Method"},"asserted_phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asserted Phone Masked"},"target_had_sessions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Target Had Sessions"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"section_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Id"},"term_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term Id"},"external_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Organization Id"},"external_campus_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Campus Id"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"login_count":{"type":"integer","title":"Login Count","default":0},"unlinked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Unlinked At"},"unlinked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unlinked By"},"unlink_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unlink Reason"},"unlink_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unlink Note"},"relink_blocked":{"type":"boolean","title":"Relink Blocked","default":false}},"type":"object","required":["id","user_id","issuer","subject","external_student_id","link_method","linked_at"],"title":"ExternalIdentityRead"},"ExternalParentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"issuer":{"type":"string","title":"Issuer"},"subject":{"type":"string","title":"Subject"},"given_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given Name"},"family_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Name"},"parent_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Type"},"asserted_phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asserted Phone Masked"},"external_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Organization Id"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"login_count":{"type":"integer","title":"Login Count","default":0},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"revoked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Revoked By"},"revoke_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoke Note"}},"type":"object","required":["id","issuer","subject","first_seen_at"],"title":"ExternalParentRead"},"ExternalStaffRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"issuer":{"type":"string","title":"Issuer"},"subject":{"type":"string","title":"Subject"},"role":{"type":"string","enum":["admin","campus_manager"],"title":"Role"},"campus_codes":{"items":{"type":"string"},"type":"array","title":"Campus Codes"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"term_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term Id"},"imported_at":{"type":"string","format":"date-time","title":"Imported At"},"imported_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Imported By"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"linked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Linked At"},"external_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Organization Id"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"login_count":{"type":"integer","title":"Login Count","default":0},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"revoked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Revoked By"},"revoke_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoke Reason"},"revoke_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoke Note"}},"type":"object","required":["id","issuer","subject","role","imported_at"],"title":"ExternalStaffRead","description":"A partner staff row (2026-10-30): the allow-list fields and the account link. Never a name: the panel shows the\nprofile the first click filled, the operator sees ids only."},"FacetRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["id","name","count"],"title":"FacetRead"},"FacetsRead":{"properties":{"campuses":{"items":{"$ref":"#/components/schemas/FacetRead"},"type":"array","title":"Campuses","description":"Name order (Turkish collation)."},"sections":{"items":{"$ref":"#/components/schemas/FacetRead"},"type":"array","title":"Sections","description":"Only when a campus is selected (by the scope or `campus_id`)."}},"type":"object","title":"FacetsRead"},"FreeIntervalRead":{"properties":{"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"}},"type":"object","required":["starts_at","ends_at"],"title":"FreeIntervalRead"},"FunnelRead":{"properties":{"match_to_request":{"items":{"$ref":"#/components/schemas/FunnelStepRead"},"type":"array","title":"Match To Request"},"approved_to_completed":{"items":{"$ref":"#/components/schemas/FunnelStepRead"},"type":"array","title":"Approved To Completed"},"meeting_to_paid":{"items":{"$ref":"#/components/schemas/FunnelStepRead"},"type":"array","title":"Meeting To Paid"}},"additionalProperties":false,"type":"object","title":"FunnelRead","description":"The three sub-funnels rendered as separate panels.\n\nEach sub-funnel intentionally keeps one temporal cohort end-to-end\nso its cumulative ratio is meaningful:\n\n* ``match_to_request`` -- ``tutoring_teachers_match`` (anchored on\n  match.created_at, folded by distinct ``match_id`` upstream in\n  MV2 so 1-3 candidate teachers per match attempt do not inflate\n  the denominator).\n* ``approved_to_completed`` -- ``tutoring_lesson_request`` (anchored\n  on lesson_start) restricted to rows that ever entered the\n  post-approval pipeline. Counts come from MV1.\n* ``meeting_to_paid`` -- distinct students who completed a tanışma\n  in the window vs the subset that also completed a paid lesson\n  inside the conversion window. Computed from the raw table on\n  demand (see :mod:`crud.funnel`).\n\nThe previous single-funnel layout mixed the match-creation cohort\nwith the lesson-start cohort which let ``Approved/Match`` exceed\n1.0 and tripped Pydantic. Splitting into three matches the data\nmodel and is what the design doc was implicitly asking for."},"FunnelStepRead":{"properties":{"name":{"type":"string","title":"Name"},"count":{"type":"integer","minimum":0.0,"title":"Count"},"ratio_from_top":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Ratio From Top","description":"Share relative to the first step of this sub-funnel."}},"additionalProperties":false,"type":"object","required":["name","count"],"title":"FunnelStepRead","description":"One row of a sub-funnel.\n\n``ratio_from_top`` is the cumulative share relative to the first\nstep of the **same** sub-funnel. Each sub-funnel keeps a single\ntemporal cohort (see :class:`FunnelRead`) so the ratio is always\nmathematically bounded in ``[0, 1]``."},"GamificationRole":{"type":"string","enum":["STUDENT","TEACHER"],"title":"GamificationRole","description":"Logical role buckets used to scope gamification tasks.\n\nMaps from main_api.modules.authentication.models.UserType:\n  - UserType.STUDENT  -> GamificationRole.STUDENT\n  - UserType.TEACHER  -> GamificationRole.TEACHER\n  - UserType.MODERATOR -> (no tasks)"},"GamificationTaskStatus":{"type":"string","enum":["DONE","NOT_DONE"],"title":"GamificationTaskStatus","description":"Snapshot status persisted in gamification_task_state."},"GateRead":{"properties":{"name":{"type":"string","title":"Name","description":"Gate name (`cohort_gate`, `ecdf`, `min_peer_n` ...)."},"required":{"type":"number","title":"Required","description":"What the gate requires."},"actual":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Actual","description":"What was measured."},"reason":{"type":"string","title":"Reason","description":"Machine reason (`insufficient_n`, `ecdf_unavailable` ...).","default":""}},"type":"object","required":["name","required"],"title":"GateRead","description":"The sibling ``<field>_gate`` of a ``Gated<T>`` value that is ``null`` (10.0)."},"GatedNullRead":{"properties":{"value":{"type":"null","title":"Value"},"gate":{"$ref":"#/components/schemas/AnalysisGateRead"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":true,"type":"object","required":["gate"],"title":"GatedNullRead","description":"A whole object replaced because its gate failed: ``value`` is ``null`` and ``gate`` says which one."},"GatedValueRead":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}]}},"additionalProperties":true,"type":"object","title":"GatedValueRead","description":"A statistic with its ``n``; ``value`` is ``null`` with a ``gate`` below the gate."},"GenerateMeetLinkRequest":{"properties":{"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"start_time":{"type":"string","format":"date-time","title":"Start Time","description":"tz-aware timestamp (Istanbul)"},"end_time":{"type":"string","format":"date-time","title":"End Time","description":"tz-aware timestamp (Istanbul)"},"is_free":{"type":"boolean","title":"Is Free","description":"If true, the generated lesson will be free (PAID invoice, price 0). If false, price is computed automatically.","default":false}},"type":"object","required":["subbranch_id","start_time","end_time"],"title":"GenerateMeetLinkRequest"},"GoalImportance":{"type":"string","enum":["RANK","SCHOOL_PROGRAM","FAMILY_REACTION","NET_INCREASE","OTHER"],"title":"GoalImportance"},"GradeRead":{"properties":{"code":{"type":"string","title":"Code","description":"`9` .. `12` and `mezun` (a graduate is not 12)."},"label":{"type":"string","title":"Label"},"order":{"type":"integer","title":"Order"}},"type":"object","required":["code","label","order"],"title":"GradeRead"},"GrantPermissionRequest":{"properties":{"roleID":{"type":"string","format":"uuid","title":"Roleid"},"permissionIDs":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Permissionids","description":"One or many permission UUIDs."}},"type":"object","required":["roleID","permissionIDs"],"title":"GrantPermissionRequest"},"GrantRoleByPhoneRequest":{"properties":{"phoneNumber":{"type":"string","minLength":1,"title":"Phonenumber","description":"User's phone number (unique)."},"roleID":{"type":"string","format":"uuid","title":"Roleid"},"userType":{"$ref":"#/components/schemas/UserType","description":"Which account type to match. One phone can exist once per type. PARENT is refused (422 USER_TYPE_NOT_ALLOWED): a parent account holds no role.","default":"MODERATOR"}},"type":"object","required":["phoneNumber","roleID"],"title":"GrantRoleByPhoneRequest"},"GrantRoleRequest":{"properties":{"userID":{"type":"string","format":"uuid4","title":"Userid"},"roleID":{"type":"string","format":"uuid","title":"Roleid"}},"type":"object","required":["userID","roleID"],"title":"GrantRoleRequest"},"GroupMemberIn":{"properties":{"entry_id":{"type":"string","format":"uuid","title":"Entry Id","description":"Roster entry id (GET .../roster)"},"source":{"type":"string","enum":["suggested","manual"],"title":"Source"},"evidence_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence Snapshot","description":"The panel's own snapshot at proposal time; stored as sent, must carry no personal data"}},"additionalProperties":false,"type":"object","required":["entry_id","source"],"title":"GroupMemberIn"},"GroupMemberRead":{"properties":{"student":{"anyOf":[{"$ref":"#/components/schemas/StudentRefRead"},{"type":"null"}]},"missing":{"type":"boolean","title":"Missing","default":false},"canonical_student_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Student Id"},"source":{"type":"string","title":"Source"},"evidence_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence Snapshot"},"added_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added By"},"added_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added At"},"removed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Removed By"},"removed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Removed At"}},"type":"object","required":["source"],"title":"GroupMemberRead","description":"One member row; active while ``removed_at`` is null. ``student`` is our roster\nrow re-attached on the way out; ``missing`` marks a member whose row left the\nroster of the series' term. ``canonical_student_id`` is Intelligence's pseudonym,\nechoed so a panel that still reads static payloads (keyed by it) can match a saved\nmember; the ``student_id`` Intelligence was sent (our ``intelligence_no``) stays here."},"GroupScopeIn":{"properties":{"level":{"type":"string","enum":["institution","campus","section"],"title":"Level"},"campus_id":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Campus Id"},"section_id":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Section Id"}},"additionalProperties":false,"type":"object","required":["level"],"title":"GroupScopeIn","description":"Who the group is for, in contract 8.8's names. The values are the roster's\n``campus_code`` / ``section_code`` (what Intelligence received as ``campus_id`` / ``section_id``)."},"GroupScopeRead":{"properties":{"level":{"type":"string","title":"Level"},"campus_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Id"},"section_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Id"}},"type":"object","required":["level"],"title":"GroupScopeRead","description":"Contract 8.8 names; the values are the roster's ``campus_code`` / ``section_code``."},"GroupSeriesRead":{"properties":{"term_id":{"type":"string","title":"Term Id"},"exam_scope":{"type":"string","title":"Exam Scope"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"}},"type":"object","required":["term_id","exam_scope"],"title":"GroupSeriesRead"},"GroupTargetRead":{"properties":{"type":{"type":"string","title":"Type"},"curriculum_id":{"type":"string","title":"Curriculum Id"}},"type":"object","required":["type","curriculum_id"],"title":"GroupTargetRead"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HardCorrectItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"hard-correct","title":"Id"},"params":{"$ref":"#/components/schemas/HardCorrectParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"HardCorrectItemRead"},"HardCorrectParamsRead":{"properties":{"count":{"type":"integer","title":"Count"},"example_question_id":{"type":"string","title":"Example Question Id","description":"Lowest peer rate (booklet ties)."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"}},"type":"object","required":["count","example_question_id"],"title":"HardCorrectParamsRead"},"HeatmapCellRead":{"properties":{"dow":{"type":"integer","maximum":6.0,"minimum":0.0,"title":"Dow","description":"0=Sunday … 6=Saturday (Postgres DOW)"},"hour":{"type":"integer","maximum":23.0,"minimum":0.0,"title":"Hour"},"completed":{"type":"integer","minimum":0.0,"title":"Completed"}},"additionalProperties":false,"type":"object","required":["dow","hour","completed"],"title":"HeatmapCellRead","description":"One cell of the 7x24 completed-lesson heat-map."},"HeatmapRead":{"properties":{"cells":{"items":{"$ref":"#/components/schemas/HeatmapCellRead"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","title":"HeatmapRead"},"HierarchyCampusRead":{"properties":{"campus_id":{"type":"string","title":"Campus Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"student_count":{"type":"integer","title":"Student Count","description":"The campus's students in the tree's exam (D48: without `exam_id` or `grade`, the 12th grade's latest exam; the 11th-grade sections listed under it are not counted here)."},"sections":{"items":{"$ref":"#/components/schemas/HierarchySectionRead"},"type":"array","title":"Sections"}},"type":"object","required":["campus_id","name","slug","student_count"],"title":"HierarchyCampusRead"},"HierarchyCohortRead":{"properties":{"grade":{"type":"integer","title":"Grade","description":"12 (the 12th grade and the graduates) or 11."},"label":{"type":"string","title":"Label","description":"The series label, e.g. \"11. sınıf TYT\"."},"exam_id":{"type":"string","format":"uuid","title":"Exam Id","description":"The series' latest exam: the one `grade={grade}` lands on."}},"type":"object","required":["grade","label","exam_id"],"title":"HierarchyCohortRead","description":"D48: one grade with a series of its own and its latest exam (the caller's, D42)."},"HierarchyRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id","description":"The tree's exam (D48: without `exam_id` or `grade`, the 12th grade's latest exam)."},"campuses":{"items":{"$ref":"#/components/schemas/HierarchyCampusRead"},"type":"array","title":"Campuses","description":"Name order (Turkish collation); built from the exam's records. D48: without `exam_id` or `grade`, the 12th grade's latest exam with the 11th-grade series' latest exam's sections added under their campuses (`grade: 11`)."},"cohorts":{"items":{"$ref":"#/components/schemas/HierarchyCohortRead"},"type":"array","title":"Cohorts","description":"D48: the grades with a series, 12 first; a grade without an analysed exam is not listed."}},"type":"object","required":["exam_id"],"title":"HierarchyRead"},"HierarchyResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/HierarchyRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"HierarchyResult"},"HierarchySectionRead":{"properties":{"section_id":{"type":"string","title":"Section Id"},"name":{"type":"string","title":"Name"},"short_name":{"type":"string","title":"Short Name","description":"The section name without the campus prefix."},"slug":{"type":"string","title":"Slug"},"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"},"student_count":{"type":"integer","title":"Student Count"},"is_operational":{"type":"boolean","title":"Is Operational"},"grade":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade","description":"D48: the grade whose series this section reads (12: the 12th grade and the graduates; 11: the 11th grade). Its `student_count` is that series' latest exam's; a request with `scope=section:{id}` and no `grade` reads that series."}},"type":"object","required":["section_id","name","short_name","slug","student_count","is_operational"],"title":"HierarchySectionRead"},"HistoryRead":{"properties":{"series":{"items":{"$ref":"#/components/schemas/ExamLinkRead"},"type":"array","title":"Series","description":"Dated in-series exams."},"series_label":{"type":"string","title":"Series Label"},"depth":{"type":"integer","title":"Depth","description":"In-series observations."},"missing":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Missing","description":"Series exams without the student."},"observations":{"items":{"$ref":"#/components/schemas/ObservationRead"},"type":"array","title":"Observations"},"out_of_series_observation":{"anyOf":[{"$ref":"#/components/schemas/ObservationRead"},{"type":"null"}],"description":"When the selected exam is outside the series; `observations` is then empty."}},"type":"object","required":["series_label","depth"],"title":"HistoryRead"},"HomeworkAssignmentRead":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"question_count":{"type":"integer","title":"Question Count"},"real_answers":{"type":"string","title":"Real Answers"},"is_submitted":{"type":"boolean","title":"Is Submitted"},"student_answers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Answers"},"correct_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Correct Count"},"wrong_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wrong Count"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["document_id","question_count","real_answers","is_submitted"],"title":"HomeworkAssignmentRead"},"HomeworkDisciplineTotalsRead":{"properties":{"total_assigned":{"type":"integer","title":"Total Assigned","default":0},"on_time_count":{"type":"integer","title":"On Time Count","default":0},"on_time_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"On Time Rate Percent"}},"additionalProperties":false,"type":"object","title":"HomeworkDisciplineTotalsRead"},"HomeworkMiniRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"visible_from":{"type":"string","format":"date-time","title":"Visible From"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"},"submitted":{"type":"boolean","title":"Submitted"}},"type":"object","required":["id","course_id","visible_from","deadline","submitted"],"title":"HomeworkMiniRead","description":"Minimal homework card for student dashboards.\n\n- id: LessonRequestDocument.id (row PK)\n- course_id: derived from the attached lesson request\n- submitted: True if student has a submission row for this homework document"},"HomeworkRankingRowRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"class_level":{"anyOf":[{"$ref":"#/components/schemas/ClassLevel"},{"type":"null"}]},"score_percent":{"type":"number","title":"Score Percent"},"correct_count":{"type":"integer","title":"Correct Count","default":0},"wrong_count":{"type":"integer","title":"Wrong Count","default":0},"blank_count":{"type":"integer","title":"Blank Count","default":0},"rank":{"type":"integer","title":"Rank"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"}},"additionalProperties":false,"type":"object","required":["student_id","score_percent","rank","submitted_at"],"title":"HomeworkRankingRowRead"},"HomeworkRead":{"properties":{"document":{"$ref":"#/components/schemas/LessonRequestDocumentRead"},"question_count":{"type":"integer","minimum":0.0,"title":"Question Count"},"answers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answers"}},"type":"object","required":["document","question_count"],"title":"HomeworkRead","description":"``answers`` is the answer key and is disclosed on a need-to-know basis:\nthe owning teacher always sees it, a student only after their own\nsubmission exists. Everyone gets ``question_count``."},"HomeworkStatsRead":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"question_count":{"type":"integer","title":"Question Count"},"answer_key":{"type":"string","title":"Answer Key"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"student_answers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Answers"},"correct_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Correct Count"},"wrong_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wrong Count"},"blank_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blank Count"},"score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Percent"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank"},"submitted_count":{"type":"integer","title":"Submitted Count","default":0},"not_submitted_count":{"type":"integer","title":"Not Submitted Count","default":0},"average_score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Score Percent"}},"type":"object","required":["component_id","marketplace_bundle_id","question_count","answer_key","student_id"],"title":"HomeworkStatsRead","description":"view_bundle_homework_stats: one student's result + aggregate stats."},"HomeworkSubmissionListItem":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"is_submitted":{"type":"boolean","title":"Is Submitted","default":false},"correct_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Correct Count"},"wrong_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wrong Count"},"blank_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blank Count"},"score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Percent"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"}},"type":"object","required":["student_id"],"title":"HomeworkSubmissionListItem","description":"One enrolled student's submission status (teacher list view)."},"HomeworkSubmissionRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"question_count":{"type":"integer","minimum":0.0,"title":"Question Count"},"student_answers":{"type":"string","title":"Student Answers"},"real_answers":{"type":"string","title":"Real Answers"},"correct_count":{"type":"integer","minimum":0.0,"title":"Correct Count"},"wrong_count":{"type":"integer","minimum":0.0,"title":"Wrong Count"},"blank_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blank Count"},"score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Percent"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["course_id","document_id","student_id","question_count","student_answers","real_answers","correct_count","wrong_count","submitted_at","updated_at"],"title":"HomeworkSubmissionRead"},"HomeworkSubmissionResultRead":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"question_count":{"type":"integer","title":"Question Count"},"answer_key":{"type":"string","title":"Answer Key"},"student_answers":{"type":"string","title":"Student Answers"},"correct_count":{"type":"integer","title":"Correct Count"},"wrong_count":{"type":"integer","title":"Wrong Count"},"blank_count":{"type":"integer","title":"Blank Count"},"score_percent":{"type":"number","title":"Score Percent"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"}},"type":"object","required":["component_id","student_id","question_count","answer_key","student_answers","correct_count","wrong_count","blank_count","score_percent","submitted_at"],"title":"HomeworkSubmissionResultRead","description":"Returned right after submit (and for the student's own stats)."},"HomeworkSubmissionUpsertRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id","description":"Course ID"},"document_id":{"type":"string","format":"uuid","title":"Document Id","description":"LessonRequestDocument.id (row PK)"},"answers":{"type":"string","minLength":1,"title":"Answers","description":"Student answers string (e.g., 'ABCD...')"}},"additionalProperties":false,"type":"object","required":["course_id","document_id","answers"],"title":"HomeworkSubmissionUpsertRequest"},"HomeworkSummaryRead":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"title":{"type":"string","title":"Title"},"deadline":{"type":"string","format":"date-time","title":"Deadline"},"did_submit":{"type":"boolean","title":"Did Submit"}},"additionalProperties":false,"type":"object","required":["document_id","title","deadline","did_submit"],"title":"HomeworkSummaryRead","description":"Used for both \"previous homework\" and \"upcoming homeworks\"."},"HomeworkUpsertRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"question_count":{"type":"integer","title":"Question Count"},"answers":{"type":"string","title":"Answers"}},"additionalProperties":false,"type":"object","required":["course_id","document_id","question_count","answers"],"title":"HomeworkUpsertRequest"},"ImportIssueRead":{"properties":{"row":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Row"},"column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Column"},"code":{"type":"string","title":"Code"},"detail":{"type":"string","title":"Detail","default":""}},"type":"object","required":["code"],"title":"ImportIssueRead","description":"Where the file is wrong: the physical row (header = 1) and the column, never a cell value."},"ImportReportMeta":{"properties":{"kind":{"type":"string","title":"Kind","default":"analyze"},"import_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Import Id"}},"type":"object","title":"ImportReportMeta"},"ImportReportRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version","default":"1.0"},"import_id":{"type":"string","title":"Import Id"},"kind":{"type":"string","title":"Kind","description":"``definition`` | ``results`` | ``analyze``."},"status":{"type":"string","title":"Status"},"received_at":{"type":"string","title":"Received At"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"report":{"additionalProperties":true,"type":"object","title":"Report"}},"additionalProperties":true,"type":"object","required":["import_id","kind","status","received_at","report"],"title":"ImportReportRead","description":"``GET .../exams/{exam_id}/import-report`` item: one received package and its report (Intelligence\n``GET /v1/imports/{import_id}``): the checks with severity, code, path and context; for results also the\ncounts, the scoring block basis, the official net basis, the net match rates and the key agreement. Student\nids inside ``report`` arrive translated to roster ``entry_id`` / ``entry_ids``; a number without a roster row\nis counted under ``unmapped``."},"ImportReportResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ImportReportRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ImportReportMeta"}},"type":"object","required":["code","message"],"title":"ImportReportResult"},"ImportRowRead":{"properties":{"row":{"type":"integer","title":"Row"},"code":{"type":"string","title":"Code"}},"type":"object","required":["row","code"],"title":"ImportRowRead","description":"A row the import refuses, skips or could not write, by its physical row number."},"InitVideoRequest":{"properties":{"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"video_kind":{"$ref":"#/components/schemas/TeacherProfileVideoKind"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"custom_thumbnail_object_id":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Custom Thumbnail Object Id"},"original_filename":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Original Filename"},"max_duration_seconds":{"anyOf":[{"type":"integer","maximum":180.0,"minimum":1.0},{"type":"null"}],"title":"Max Duration Seconds","default":180}},"type":"object","required":["title","video_kind"],"title":"InitVideoRequest","description":"Payload for starting a teacher profile video (direct upload) + metadata."},"InsertCompletedSubunitRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"lesson_id":{"type":"string","format":"uuid","title":"Lesson Id"},"subunit_id":{"type":"string","format":"uuid","title":"Subunit Id"}},"type":"object","required":["course_id","lesson_id","subunit_id"],"title":"InsertCompletedSubunitRequest"},"InsightRead":{"properties":{"count":{"type":"integer","title":"Count"},"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net"},"median_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Net"},"max_actual_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Actual Net","description":"The highest student net."},"parent":{"anyOf":[{"$ref":"#/components/schemas/ParentComparisonRead"},{"type":"null"}],"description":"Null at institution scope."},"subjects":{"items":{"$ref":"#/components/schemas/SubjectInsightRead"},"type":"array","title":"Subjects","description":"Canonical order; subjects with `student_count = 0` omitted."},"standouts":{"items":{"$ref":"#/components/schemas/StandoutRead"},"type":"array","title":"Standouts","description":"Top 5 by general rank asc, net desc, name; empty below `min_cohort_stats`."},"mean_accessible":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Accessible","description":"Mean `potential_net` over the scoped students (P2 `mean_accessible`); null for an empty or gated scope."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why the object's statistics are `null`: `{name, required, actual, reason}` (Intelligence's `min_cohort_stats` 20 or `min_cohort_norms` 50; panel request A6, 2026-10-16). Null when every figure is served."}},"type":"object","required":["count"],"title":"InsightRead","description":"6.6: over every scoped student (non-operational included). Since panel request A6 (2026-10-16) the mean, median,\nmax, accessible mean and the standouts need `min_cohort_stats` (20) scoped students: below it they are null / empty\nand `gate` says why (Intelligence's `group_summary` rule). `count` is always served."},"InstitutionAccessRequestListMeta":{"properties":{"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":25}},"type":"object","title":"InstitutionAccessRequestListMeta"},"InstitutionAccessRequestListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InstitutionAccessRequestRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/InstitutionAccessRequestListMeta"}},"type":"object","required":["code","message"],"title":"InstitutionAccessRequestListResult"},"InstitutionAccessRequestRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"institution_name":{"type":"string","title":"Institution Name"},"province":{"anyOf":[{"$ref":"#/components/schemas/PlaceRead"},{"type":"null"}]},"role":{"type":"string","enum":["student","parent","teacher","institution_manager"],"title":"Role"},"full_name":{"type":"string","title":"Full Name"},"contact":{"type":"string","title":"Contact"},"contact_kind":{"type":"string","enum":["phone","email"],"title":"Contact Kind"},"source":{"type":"string","enum":["request_form","demo_request","search_not_found","search_results_link"],"title":"Source"},"search_query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Query"},"consent_at":{"type":"string","format":"date-time","title":"Consent At"},"consent_text_version":{"type":"string","title":"Consent Text Version"},"status":{"type":"string","enum":["new","contacted","won","closed"],"title":"Status"},"notified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Notified At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","institution_name","role","full_name","contact","contact_kind","source","consent_at","consent_text_version","status","created_at"],"title":"InstitutionAccessRequestRead","description":"A request as Alfabemy's administrators see it (personal data: ``full_name``, ``contact``)."},"InstitutionAdminGrant":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"}},"additionalProperties":false,"type":"object","required":["user_id"],"title":"InstitutionAdminGrant"},"InstitutionBrandingRead":{"properties":{"name":{"type":"string","title":"Name","description":"The name the brand shows: the site's display name, else the institution's own."},"name_lines":{"anyOf":[{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Name Lines","description":"A long name's two lines for a narrow sign-in page; joined with a space they are `name`."},"co_branded":{"type":"boolean","title":"Co Branded","description":"The institution's logo and name with a small Alfabemy mark beside them.","default":true},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url","description":"Square PNG, at most 1024 px; the URL changes when the logo does (cache it for good)."},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url","description":"The tab icon: the same logo, square PNG, at most 128 px."},"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color","description":"#rrggbb: the banner of the Kurum Paneli."},"wordmark":{"anyOf":[{"$ref":"#/components/schemas/SiteWordmark"},{"type":"null"}]},"return_link":{"anyOf":[{"$ref":"#/components/schemas/SiteReturnLink"},{"type":"null"}]},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","updated_at"],"title":"InstitutionBrandingRead","description":"An institution's look on the panels. Every nullable field falls back on the client: no logo draws Alfabemy's\nmark, no ``brand_color`` or ``wordmark`` no banner, no ``return_link`` no button, no ``name_lines`` one line."},"InstitutionCohortRead":{"properties":{"exam_scope":{"type":"string","title":"Exam Scope"},"grade":{"type":"string","title":"Grade"}},"type":"object","required":["exam_scope","grade"],"title":"InstitutionCohortRead","description":"The institution's comparable series cohort (TYT, grade 12 today)."},"InstitutionCreate":{"properties":{"slug":{"type":"string","maxLength":64,"minLength":1,"title":"Slug","description":"Immutable; lowercase ASCII, the Intelligence tenant slug"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"is_active":{"type":"boolean","title":"Is Active","default":true},"meb_code":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Meb Code"},"province_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Province Id"},"district_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"District Id"}},"additionalProperties":false,"type":"object","required":["slug","name"],"title":"InstitutionCreate"},"InstitutionExamListMeta":{"properties":{"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":25}},"type":"object","title":"InstitutionExamListMeta"},"InstitutionExamListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InstitutionExamRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/InstitutionExamListMeta"}},"type":"object","required":["code","message"],"title":"InstitutionExamListResult"},"InstitutionExamRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"institution_id":{"type":"string","format":"uuid","title":"Institution Id"},"source":{"type":"string","title":"Source","default":"panel"},"external_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Code"},"term":{"type":"string","title":"Term"},"name":{"type":"string","title":"Name"},"exam_scope":{"type":"string","title":"Exam Scope"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"administered_on":{"type":"string","format":"date","title":"Administered On"},"booklets":{"items":{"$ref":"#/components/schemas/BookletSpecRead"},"type":"array","title":"Booklets"},"question_count":{"type":"integer","title":"Question Count"},"status":{"type":"string","title":"Status"},"exam_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exam Version"},"definition_import_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Definition Import Id"},"definition_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Definition Hash"},"warnings_summary":{"additionalProperties":true,"type":"object","title":"Warnings Summary"},"label_coverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Label Coverage"},"publisher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher"},"publisher_exam_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher Exam Code"},"results_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Results Sha256"},"results_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Results Filename"},"results_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Results Format"},"results_student_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Results Student Count"},"results_answer_cells":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Results Answer Cells"},"results_official_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Results Official Source"},"results_import_ids":{"items":{"type":"string"},"type":"array","title":"Results Import Ids"},"results_uploaded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Results Uploaded At"},"analyze_import_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analyze Import Id"},"analyze_attempt":{"type":"integer","title":"Analyze Attempt","default":0},"analyze_warnings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Analyze Warnings"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"job_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job State"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id"},"analysis_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis State"},"analysis_student_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Analysis Student Count"},"analysis_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Analysis Completed At"},"last_polled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Polled At"},"poll_attempts":{"type":"integer","title":"Poll Attempts","default":0},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error"},"created_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"intake":{"anyOf":[{"$ref":"#/components/schemas/ExamIntakeSummaryRead"},{"type":"null"}]},"student_release":{"anyOf":[{"$ref":"#/components/schemas/StudentReleaseRead"},{"type":"null"}]},"replaced_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Replaced By"},"replaced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Replaced At"},"replaces":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Replaces"}},"type":"object","required":["id","institution_id","term","name","exam_scope","administered_on","booklets","question_count","status","created_at","updated_at"],"title":"InstitutionExamRead","description":"The exam row without its idempotency keys. ``warnings_summary`` is the compressed\nIntelligence accept response (``{code: {count, paths[:20]}}``)."},"InstitutionListMeta":{"properties":{"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":25}},"type":"object","title":"InstitutionListMeta"},"InstitutionListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InstitutionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/InstitutionListMeta"}},"type":"object","required":["code","message"],"title":"InstitutionListResult"},"InstitutionLoginRequest":{"properties":{"device_token":{"type":"string","maxLength":512,"minLength":8,"title":"Device Token","description":"The client-generated per-device string the app also sends on /refresh and /logout"},"user_agent":{"type":"string","maxLength":512,"title":"User Agent","default":""},"IP_address":{"type":"string","maxLength":64,"title":"Ip Address","default":""},"institution_code":{"type":"string","pattern":"^(?:[0-9]{6}|[0-9]{8})$","title":"Institution Code","description":"The school's code (MEB code or the generated one)"},"student_no":{"type":"string","maxLength":32,"minLength":1,"title":"Student No","description":"The school's own student number, as on the roster"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"additionalProperties":false,"type":"object","required":["device_token","institution_code","student_no","password"],"title":"InstitutionLoginRequest"},"InstitutionLoginResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"expiration":{"type":"integer","exclusiveMinimum":0.0,"title":"Expiration"},"password_change_required":{"type":"boolean","title":"Password Change Required"},"institution_id":{"type":"string","format":"uuid","title":"Institution Id"}},"type":"object","required":["access_token","refresh_token","expiration","password_change_required","institution_id"],"title":"InstitutionLoginResponse"},"InstitutionOnboardReport":{"properties":{"institution":{"$ref":"#/components/schemas/InstitutionRead"},"roster":{"$ref":"#/components/schemas/RosterUploadReport"}},"type":"object","required":["institution","roster"],"title":"InstitutionOnboardReport","description":"``POST /admin/institutions/onboard``: the institution (with its login code) and the roster report\nwhose ``accounts.credentials`` carry the students' one-time passwords."},"InstitutionParentLinkPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/InstitutionParentLinkRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["items","total","page","page_size"],"title":"InstitutionParentLinkPage"},"InstitutionParentLinkRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"student_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Student Id"},"student_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student No"},"student_full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Full Name"},"given_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given Name"},"family_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Name"},"relation":{"$ref":"#/components/schemas/ParentRelation"},"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"}},"type":"object","required":["id","relation","linked_at"],"title":"InstitutionParentLinkRead"},"InstitutionPasswordChangeRequest":{"properties":{"device_token":{"type":"string","maxLength":512,"minLength":8,"title":"Device Token","description":"The client-generated per-device string the app also sends on /refresh and /logout"},"user_agent":{"type":"string","maxLength":512,"title":"User Agent","default":""},"IP_address":{"type":"string","maxLength":64,"title":"Ip Address","default":""},"current_password":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Current Password"},"new_password":{"type":"string","maxLength":128,"minLength":1,"title":"New Password"}},"additionalProperties":false,"type":"object","required":["device_token","new_password"],"title":"InstitutionPasswordChangeRequest"},"InstitutionPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"meb_code":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Meb Code"},"student_release_mode":{"anyOf":[{"type":"string","enum":["auto","manual"]},{"type":"null"}],"title":"Student Release Mode"},"province_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Province Id"},"district_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"District Id"}},"additionalProperties":false,"type":"object","title":"InstitutionPatch","description":"``slug`` is deliberately absent: it cannot change once Intelligence knows it. ``province_id`` / ``district_id``:\na number sets it, an explicit ``null`` clears it, absent leaves it; a new province without a district clears a\ndistrict that lies elsewhere."},"InstitutionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"is_active":{"type":"boolean","title":"Is Active"},"login_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Code"},"login_code_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Code Source"},"student_release_mode":{"type":"string","title":"Student Release Mode","default":"auto"},"province_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Province Id"},"district_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"District Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"branding":{"anyOf":[{"$ref":"#/components/schemas/InstitutionBrandingRead"},{"type":"null"}]}},"type":"object","required":["id","slug","name","is_active","created_at","updated_at"],"title":"InstitutionRead"},"InstitutionRequestCreate":{"properties":{"institution_name":{"type":"string","maxLength":200,"minLength":2,"title":"Institution Name"},"province_id":{"type":"integer","minimum":1.0,"title":"Province Id"},"role":{"type":"string","enum":["student","parent","teacher","institution_manager"],"title":"Role"},"full_name":{"type":"string","maxLength":120,"minLength":3,"title":"Full Name"},"contact":{"type":"string","maxLength":320,"title":"Contact","description":"A Turkish phone number (stored +90…) or an e-mail address (stored in lower case)","default":""},"consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Consent","description":"Must be true"},"consent_text_version":{"type":"string","maxLength":32,"minLength":1,"title":"Consent Text Version","description":"The version of the consent text the visitor saw, e.g. 2026-12-02"},"source":{"type":"string","enum":["request_form","demo_request","search_not_found","search_results_link"],"title":"Source"},"search_query":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Search Query","description":"Optional, kept for the old search sources; the /talep form sends null"},"website":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Website","description":"The hidden honeypot field: a person leaves it empty"}},"additionalProperties":false,"type":"object","required":["institution_name","province_id","role","full_name","consent_text_version","source"],"title":"InstitutionRequestCreate","description":"The landing page's form. ``contact`` and ``consent`` are checked by the service so the envelope carries the\nmodule's code (``INSTITUTION_REQUEST_CONTACT_INVALID``, ``INSTITUTION_REQUEST_CONSENT_REQUIRED``); ``website`` is\nthe hidden field a person never fills."},"InstitutionRequestReceipt":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","created_at"],"title":"InstitutionRequestReceipt"},"InstitutionSitePut":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Display Name","description":"Only when the brand's name is not the institution's own"},"name_lines":{"anyOf":[{"prefixItems":[{"type":"string","maxLength":100,"minLength":1},{"type":"string","maxLength":100,"minLength":1}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Name Lines","description":"Two lines that, joined with a space, are the brand's name"},"co_branded":{"type":"boolean","title":"Co Branded","default":true},"brand_color":{"anyOf":[{"type":"string","maxLength":7,"minLength":7},{"type":"null"}],"title":"Brand Color","description":"#rrggbb"},"wordmark":{"anyOf":[{"$ref":"#/components/schemas/SiteWordmarkWrite"},{"type":"null"}]},"lock_login_code":{"type":"boolean","title":"Lock Login Code","description":"The sign-in page shows the institution's login code filled in and read only","default":false},"return_link":{"anyOf":[{"$ref":"#/components/schemas/SiteReturnLinkWrite"},{"type":"null"}]},"hosts":{"items":{"$ref":"#/components/schemas/SiteHostWrite"},"type":"array","maxItems":2,"title":"Hosts","description":"At most one per panel"}},"additionalProperties":false,"type":"object","title":"InstitutionSitePut","description":"The whole site: what is left out is cleared (the logo excepted, it has its own routes)."},"InstitutionSiteRead":{"properties":{"name":{"type":"string","title":"Name","description":"The name the brand shows: the site's display name, else the institution's own."},"name_lines":{"anyOf":[{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Name Lines","description":"A long name's two lines for a narrow sign-in page; joined with a space they are `name`."},"co_branded":{"type":"boolean","title":"Co Branded","description":"The institution's logo and name with a small Alfabemy mark beside them.","default":true},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url","description":"Square PNG, at most 1024 px; the URL changes when the logo does (cache it for good)."},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url","description":"The tab icon: the same logo, square PNG, at most 128 px."},"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color","description":"#rrggbb: the banner of the Kurum Paneli."},"wordmark":{"anyOf":[{"$ref":"#/components/schemas/SiteWordmark"},{"type":"null"}]},"return_link":{"anyOf":[{"$ref":"#/components/schemas/SiteReturnLink"},{"type":"null"}]},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"institution_id":{"type":"string","format":"uuid","title":"Institution Id"},"institution_slug":{"type":"string","title":"Institution Slug","description":"Backend and Intelligence slug; the panels check the account's membership against it."},"sign_in_methods":{"items":{"type":"string","enum":["institution-code","school-launch"]},"type":"array","title":"Sign In Methods","description":"institution-code: the institution has a login code; school-launch: a school sign-in partner is bound to it."},"locked_login_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locked Login Code","description":"Shown filled in and read only on the sign-in page; null: the student types the code."},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"lock_login_code":{"type":"boolean","title":"Lock Login Code","default":false},"hosts":{"items":{"$ref":"#/components/schemas/SiteHostRead"},"type":"array","title":"Hosts"},"logo_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Sha256"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["name","updated_at","institution_id","institution_slug","sign_in_methods","created_at"],"title":"InstitutionSiteRead","description":"The platform administrator's read: the public body and the stored values behind it (``display_name`` null: the\nbrand shows the institution's own name)."},"IntakeDeliveryRead":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"kind":{"type":"string","title":"Kind"},"state":{"type":"string","title":"State"},"attempts":{"type":"integer","title":"Attempts"},"last_error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["delivery_id","kind","state","attempts","created_at"],"title":"IntakeDeliveryRead","description":"A delivery row the intake opened for the exam (``<exam8>-def-<n>`` / ``-res-<n>``) as the sweep left it."},"IntervalDTO":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"start_time":{"type":"string","format":"time","title":"Start Time"},"end_time":{"type":"string","format":"time","title":"End Time"},"source":{"$ref":"#/components/schemas/BlockSourceDTO"}},"type":"object","required":["start_time","end_time","source"],"title":"IntervalDTO","description":"Pydantic representation of a single busy interval with its source."},"InterventionGroupCreate":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id","description":"An exam of the series the group is locked to (its term and scope make the series)"},"scope":{"$ref":"#/components/schemas/GroupScopeIn"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"target_type":{"type":"string","enum":["topic","skill"],"title":"Target Type"},"target_curriculum_id":{"type":"string","maxLength":160,"minLength":1,"title":"Target Curriculum Id","description":"topic: subject/bucket_id from the taxonomy read (an analysis id whose kova the taxonomy files under a sibling ders of the same bölüm, e.g. matematik/<geometri kova>, is saved under the taxonomy's ders); skill: a skill id from the skills read"},"members":{"items":{"$ref":"#/components/schemas/GroupMemberIn"},"type":"array","title":"Members"}},"additionalProperties":false,"type":"object","required":["exam_id","scope","name","target_type","target_curriculum_id"],"title":"InterventionGroupCreate"},"InterventionGroupListMeta":{"properties":{"returned":{"type":"integer","title":"Returned","default":0},"truncated":{"type":"boolean","title":"Truncated","default":false},"scope":{"type":"string","title":"Scope","default":"all"},"section_codes":{"items":{"type":"string"},"type":"array","title":"Section Codes"},"campus_codes":{"items":{"type":"string"},"type":"array","title":"Campus Codes"}},"type":"object","title":"InterventionGroupListMeta","description":"``returned`` counts the items in this response; ``truncated`` says more may exist (the caller's visible rows\nwere cut at ``limit``, or Intelligence filled its own cap; there is no cursor yet). A ``total`` would be a lie:\nIntelligence does not count, and a teacher's rows are narrowed here."},"InterventionGroupListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InterventionGroupRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/InterventionGroupListMeta"}},"type":"object","required":["code","message"],"title":"InterventionGroupListResult"},"InterventionGroupPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"string","enum":["active","archived"]},{"type":"null"}],"title":"Status"},"add":{"items":{"$ref":"#/components/schemas/GroupMemberIn"},"type":"array","title":"Add"},"remove":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Remove","description":"Roster entry ids of active members"}},"additionalProperties":false,"type":"object","title":"InterventionGroupPatch"},"InterventionGroupRead":{"properties":{"id":{"type":"string","title":"Id"},"scope":{"$ref":"#/components/schemas/GroupScopeRead"},"name":{"type":"string","title":"Name"},"target":{"$ref":"#/components/schemas/GroupTargetRead"},"series":{"$ref":"#/components/schemas/GroupSeriesRead"},"series_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series Key"},"status":{"type":"string","title":"Status"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"archived_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archived At"},"member_count":{"type":"integer","title":"Member Count","default":0},"members":{"anyOf":[{"items":{"$ref":"#/components/schemas/GroupMemberRead"},"type":"array"},{"type":"null"}],"title":"Members"}},"type":"object","required":["id","scope","name","target","series","status"],"title":"InterventionGroupRead"},"InviteAcceptRequest":{"properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,128}$","title":"Token","description":"The token of the shared link: what follows the # of https://<site>/veli/davet#<token>"},"phone_number":{"type":"string","maxLength":40,"minLength":1,"title":"Phone Number","description":"The same number the code was sent to"},"code":{"type":"string","pattern":"^\\d{6}$","title":"Code","description":"The 6-digit code the parent received by SMS"},"given_name":{"type":"string","title":"Given Name","description":"The parent's first name(s), as typed"},"family_name":{"type":"string","title":"Family Name","description":"The parent's last name, as typed"},"relation":{"$ref":"#/components/schemas/ParentRelation","description":"mother | father | other"},"results_sms_consent":{"type":"boolean","title":"Results Sms Consent","description":"The separate, unticked box: an SMS when a new deneme result is out","default":false},"device_token":{"type":"string","maxLength":512,"minLength":8,"title":"Device Token","description":"The client-generated per-device string the app also sends on /authenticate/refresh and /logout"}},"type":"object","required":["token","phone_number","code","given_name","family_name","relation","device_token"],"title":"InviteAcceptRequest"},"InviteCodeRequest":{"properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,128}$","title":"Token","description":"The token of the shared link: what follows the # of https://<site>/veli/davet#<token>"},"phone_number":{"type":"string","maxLength":40,"minLength":1,"title":"Phone Number","description":"The parent's Turkish mobile number; any common formatting"}},"type":"object","required":["token","phone_number"],"title":"InviteCodeRequest"},"InviteTokenRequest":{"properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,128}$","title":"Token","description":"The token of the shared link: what follows the # of https://<site>/veli/davet#<token>"}},"type":"object","required":["token"],"title":"InviteTokenRequest"},"IssuedCredentialRead":{"properties":{"student_no":{"type":"string","title":"Student No"},"full_name":{"type":"string","title":"Full Name"},"section_code":{"type":"string","title":"Section Code"},"password":{"type":"string","title":"Password"}},"type":"object","required":["student_no","full_name","section_code","password"],"title":"IssuedCredentialRead","description":"One student's login triple as handed to the school: shown ONCE in the response that created it,\nnever stored, never logged. The FE turns the list into the download the school prints."},"KarneBlanksParamsRead":{"properties":{"total_blank":{"type":"integer","title":"Total Blank","description":"Scored blanks."},"recoverable_net":{"type":"number","title":"Recoverable Net"}},"type":"object","required":["total_blank","recoverable_net"],"title":"KarneBlanksParamsRead"},"KarneBlockRef":{"properties":{"name":{"type":"string","title":"Name","description":"A block of the meta's ``blocks``."},"options":{"additionalProperties":true,"type":"object","title":"Options","description":"Only the options that differ from the block's defaults."}},"additionalProperties":false,"type":"object","required":["name"],"title":"KarneBlockRef"},"KarneDesignDraft":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"max_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pages"},"pages":{"items":{"items":{"$ref":"#/components/schemas/KarneBlockRef"},"type":"array"},"type":"array","title":"Pages"},"theme":{"additionalProperties":{"type":"string"},"type":"object","title":"Theme","description":"Overrides of ``theme_defaults``."}},"additionalProperties":false,"type":"object","required":["title","pages"],"title":"KarneDesignDraft","description":"A design as the studio edits it: ``design.yaml`` with every block as ``{name, options}``."},"KarneDesignSummary":{"properties":{"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"broken":{"type":"boolean","title":"Broken","description":"The design's files do not load; opening it answers 422 with why."}},"additionalProperties":false,"type":"object","required":["name","title","broken"],"title":"KarneDesignSummary"},"KarneExportCreate":{"properties":{"campus_code":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Campus Code"},"section_code":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Section Code"},"design":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Design","description":"A karne design; omitted = the default, the one the single karne prints with."}},"additionalProperties":false,"type":"object","title":"KarneExportCreate","description":"Every karne of the exam inside the caller's scope; ``campus_code`` / ``section_code`` narrow it (both: that\nsection of that campus). The students are fixed when the export is asked for."},"KarneExportRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"state":{"type":"string","enum":["queued","running","done","failed","expired"],"title":"State"},"campus_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Code"},"section_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Code"},"design":{"type":"string","title":"Design"},"requested_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Requested By User Id"},"total":{"type":"integer","title":"Total"},"processed":{"type":"integer","title":"Processed"},"rendered":{"type":"integer","title":"Rendered"},"skipped":{"items":{"$ref":"#/components/schemas/KarneExportSkipRead"},"type":"array","title":"Skipped"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"download_expires_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Download Expires Minutes"}},"type":"object","required":["id","exam_id","state","design","total","processed","rendered","created_at"],"title":"KarneExportRead","description":"One export. ``processed`` counts the students handled so far (printed or skipped) out of ``total``; it moves a\nchunk at a time. ``download_url`` (a short signed URL, ``download_expires_minutes``) is there on the single read of\na ``done`` export; the PDF itself is deleted at ``expires_at`` and the export turns ``expired``. ``error`` is the\ncode of a ``failed`` export."},"KarneExportSkipRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"status":{"type":"integer","title":"Status"},"code":{"type":"string","title":"Code"}},"type":"object","required":["student_id","status","code"],"title":"KarneExportSkipRead","description":"A student whose karne the student panel refused: ``status`` and ``code`` are its refusal (404\n``STUDENT_NOT_FOUND`` for a student who left the caller's sections since, 409 ``ANALYSIS_NOT_AVAILABLE`` ...)."},"KarneStudioDesign":{"properties":{"name":{"type":"string","title":"Name"},"draft":{"$ref":"#/components/schemas/KarneDesignDraft"},"own_blocks":{"items":{"type":"string"},"type":"array","title":"Own Blocks","description":"Always empty: a design has no blocks of its own since the karne renders with Typst (kept for the studio's client)."}},"additionalProperties":false,"type":"object","required":["name","draft","own_blocks"],"title":"KarneStudioDesign"},"KarneStudioDesignResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/KarneStudioDesign"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"KarneStudioDesignResult"},"KarneStudioMeta":{"properties":{"designs":{"items":{"$ref":"#/components/schemas/KarneDesignSummary"},"type":"array","title":"Designs"},"default_design":{"type":"string","title":"Default Design"},"fixtures":{"items":{"type":"string"},"type":"array","title":"Fixtures","description":"Sample students (``KarneView`` JSON files) a draft renders against."},"blocks":{"additionalProperties":{"$ref":"#/components/schemas/BlockSpec"},"type":"object","title":"Blocks","description":"Every shared block: its title, description and option specs."},"theme_defaults":{"additionalProperties":{"type":"string"},"type":"object","title":"Theme Defaults"},"version":{"type":"string","title":"Version","description":"Changes whenever a file of the karne package changes on disk."}},"additionalProperties":false,"type":"object","required":["designs","default_design","fixtures","blocks","theme_defaults","version"],"title":"KarneStudioMeta"},"KarneStudioMetaResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/KarneStudioMeta"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"KarneStudioMetaResult"},"KarneStudioRenderBody":{"properties":{"draft":{"$ref":"#/components/schemas/KarneDesignDraft"},"fixture":{"type":"string","title":"Fixture","description":"One of ``meta.fixtures``: the sample student the draft renders against."}},"additionalProperties":false,"type":"object","required":["draft","fixture"],"title":"KarneStudioRenderBody"},"KarneStudioVersion":{"properties":{"version":{"type":"string","title":"Version"}},"additionalProperties":false,"type":"object","required":["version"],"title":"KarneStudioVersion"},"KarneStudioVersionResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/KarneStudioVersion"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"KarneStudioVersionResult"},"KarneStudioYamlBody":{"properties":{"draft":{"$ref":"#/components/schemas/KarneDesignDraft"}},"additionalProperties":false,"type":"object","required":["draft"],"title":"KarneStudioYamlBody"},"KindCountRead":{"properties":{"kind":{"type":"string","title":"Kind"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["kind","count"],"title":"KindCountRead"},"KonuAtlasiExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"buckets":{"items":{"$ref":"#/components/schemas/AtlasBucketRead"},"type":"array","title":"Buckets","description":"``depth``, ``missing_prerequisite_units`` and ``learning_path`` have no served counterpart (8.4 keeps the personal learning path locked: ``served.study_order.locked``). Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.buckets`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"skills":{"items":{"$ref":"#/components/schemas/AtlasSkillRead"},"type":"array","title":"Skills","description":"``topic_ids``, ``related_topics`` and ``where`` have no served counterpart (``served.skills[].measured_in`` names the dersler). Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.skills`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"subjects":{"items":{"$ref":"#/components/schemas/AtlasSubjectRead"},"type":"array","title":"Subjects","description":"Deprecated: the Backend's own derivation, with no served counterpart for the ders verdict (``node``): 8.4 judges kovalar and skills, never a ders; read the dersler with their question counts in ``served.coverage`` and their kova edges in ``served.prerequisites`` (decision 30). Removed once the panels read the served objects.","deprecated":true},"coverage":{"$ref":"#/components/schemas/AtlasCoverageRead","description":"``unit_count`` (the curriculum's units, S0 ``units[]``) has no served counterpart. Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.coverage`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"study_order":{"$ref":"#/components/schemas/AtlasStudyOrderRead","description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.study_order`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"gates":{"$ref":"#/components/schemas/AtlasGatesRead","description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.gates`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"advice":{"anyOf":[{"$ref":"#/components/schemas/AdviceBlockRead"},{"$ref":"#/components/schemas/AdviceGatedRead"},{"type":"null"}],"title":"Advice","description":"Intelligence's ``konu_atlasi.advice`` block of this sitting, read live from the single student read when the screen opens and passed through as served (owner decision AV29, 2026-10-17; the stored paged copy carries none): ``{advice_version, items[], withheld[]}`` while the advice version is approved, else the gated null ``{value: null, gate: {name: advice_version_approved, required, actual}, reason}``; show ``items[].text`` as served, never a Backend sentence. ``null`` when the live read failed, when ``INTELLIGENCE__SERVED_ADVICE_LIVE`` is off, while Intelligence's live run is another than the one this body was materialised from (a re-run waiting for the sweep's switch-over: the block would describe another run), or when the route was asked with ``advice=false``; the rest of the body is unaffected. A parent reading the child's panel gets the child's block. Since 2026-10-25 it is documented as Intelligence's advice block, the type of the 8.7 profile's ``advice`` (``AdviceBlockRead`` or ``AdviceGatedRead``): a card about one question of this sitting's 8.2 ``answers[]`` (an evidence chip) names it in ``items[].about.question_id``. The block itself is never re-validated, re-ordered or completed: a key Intelligence adds arrives as sent."},"served":{"anyOf":[{"$ref":"#/components/schemas/KonuAtlasiServedRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Served","description":"Intelligence's own Konu Atlası object of this sitting, whole and exactly as the materialisation stored it, typed to the last field (``KonuAtlasiServedRead``, 2026-10-27, a block that does not fit is ``null``; contract 8.4; ``raw_konu_atlasi``, the pseudonym keys stripped): ``buckets[]`` with their ``judgement`` (a kova of a closed ders gated ``subject_signal_gate``), ``skills[]``, ``prerequisites[]``, ``study_order``, ``coverage[]``, ``gates``, or the gated null that withholds it below 50 students or while labels are pending. Never a top-level ``advice`` key: that block is read live (``advice``, AV29). ``null`` when the run stored no object."}},"type":"object","required":["exam_id","buckets","skills","subjects","coverage","study_order","gates"],"title":"KonuAtlasiExamRead","description":"S8 ``part=konu_atlasi``: Intelligence's own 8.4 object of the sitting as stored (``served``) and, deprecated\nbeside it, the Backend's atlas restricted to one exam (every node ``exam_count = 1``, no provenance)."},"KonuAtlasiPooledRead":{"properties":{"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"evidence":{"$ref":"#/components/schemas/AtlasEvidenceRead"},"gates":{"$ref":"#/components/schemas/AtlasGatesRead"},"subjects":{"items":{"$ref":"#/components/schemas/AtlasSubjectRead"},"type":"array","title":"Subjects"},"buckets":{"items":{"$ref":"#/components/schemas/AtlasBucketRead"},"type":"array","title":"Buckets"},"skills":{"items":{"$ref":"#/components/schemas/AtlasSkillRead"},"type":"array","title":"Skills","description":"Skills with n > 0, n desc; the answers of the closed dersler are left out, so a skill measured only there is absent (D29)."},"study_order":{"$ref":"#/components/schemas/AtlasStudyOrderRead"},"coverage":{"$ref":"#/components/schemas/AtlasCoverageRead"},"default_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Subject","description":"The first ders of ``subjects[]`` (D29: never the weakest one, no ders is compared with another); null without subjects."},"default_mode":{"type":"string","enum":["skills","topics"],"title":"Default Mode"},"items":{"items":{"$ref":"#/components/schemas/AtlasItemRead"},"type":"array","title":"Items","description":"Every evidence item; exam chronology, then booklet index."},"viewer":{"$ref":"#/components/schemas/AtlasViewerRead"}},"type":"object","required":["evidence","gates","subjects","buckets","skills","study_order","coverage","default_mode","items","viewer"],"title":"KonuAtlasiPooledRead","description":"S4: the topic atlas over every analysed sitting of the caller in one scope (8.1-8.6)."},"KonuAtlasiPooledResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/KonuAtlasiPooledRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentAnalyticsMeta"}},"type":"object","required":["code","message"],"title":"KonuAtlasiPooledResult"},"KonuAtlasiRead":{"properties":{"buckets":{"items":{"$ref":"#/components/schemas/AnalysisAtlasBucketRead"},"type":"array","title":"Buckets"},"skills":{"items":{"$ref":"#/components/schemas/AnalysisAtlasSkillRead"},"type":"array","title":"Skills"},"prerequisites":{"items":{"$ref":"#/components/schemas/AnalysisAtlasEdgeRead"},"type":"array","title":"Prerequisites","description":"Kova-to-kova edges; measured from labels only, no skill-to-skill edge exists."},"study_order":{"$ref":"#/components/schemas/AnalysisAtlasStudyOrderRead"},"coverage":{"items":{"anyOf":[{"$ref":"#/components/schemas/AnalysisAtlasCoverageNotedRead"},{"$ref":"#/components/schemas/AnalysisAtlasCoverageRead"}]},"type":"array","title":"Coverage"},"gates":{"anyOf":[{"$ref":"#/components/schemas/AnalysisAtlasGates10aRead"},{"$ref":"#/components/schemas/AnalysisAtlasGatesRead"}],"title":"Gates"},"advice":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Advice","description":"The student advice block Intelligence renders over the stored object at read time (AV10; the verdict cards per kova and the study-order cards, no limit): ``{advice_version, items[], withheld[]}`` as ``AdviceBlockRead``, or ``AdviceGatedRead`` while the advice version is not approved (``schemas/served.py``). Not stored: absent on the paged read."}},"additionalProperties":true,"type":"object","required":["buckets","skills","prerequisites","study_order","coverage","gates"],"title":"KonuAtlasiRead","description":"Konu Atlası (8.4): kova and skill verdicts, the prerequisite edges, the study order and the coverage per ders."},"KonuAtlasiServedRead":{"properties":{"buckets":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnalysisAtlasBucketRead"},"type":"array"},{"type":"null"}],"title":"Buckets","description":"One per kova of the deneme the student was scored on: ``bucket_id`` (the kova within ``subject``; the Backend's topic id is ``<subject>/<bucket_id>``), ``name``, ``subject``, ``source_units[]``, ``judgement`` (``verdict`` ``weak`` / ``expected`` / ``strong`` with its Turkish ``label``, ``n``, ``observed``, ``expected``, ``gap``, ``se``; ``insufficient`` with ``gate`` and ``reason`` below ``gates.min_bucket`` questions or in a ders of ``gates.subject_signal_closed``), ``counts``, ``question_ids[]``, ``prerequisite_bucket_ids[]``, ``dependent_bucket_ids[]``."},"skills":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnalysisAtlasSkillRead"},"type":"array"},{"type":"null"}],"title":"Skills","description":"Transferable skills across dersler, the largest ``judgement.n`` first: ``skill_id``, ``name``, ``judgement`` (as a kova's, from ``gates.min_cell`` questions), ``counts``, ``measured_in[]`` (``{subject, n}``)."},"prerequisites":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnalysisAtlasEdgeRead"},"type":"array"},{"type":"null"}],"title":"Prerequisites","description":"Kova-to-kova prerequisite edges measured on this deneme's labels, within one ders: ``{subject, from, to, weight, n}`` (the questions of ``to`` cite ``from``); no skill-to-skill edge."},"study_order":{"anyOf":[{"$ref":"#/components/schemas/AnalysisAtlasStudyOrderRead"},{"type":"null"}],"description":"``items[]``: up to five weak kovalar to study first, prerequisite depth then gap (``reason`` is Intelligence's Turkish text; a run before ``2026.10-a`` has no ``prerequisite_depth_reason``); ``locked``: the personal learning path that unlocks with more denemeler."},"coverage":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/AnalysisAtlasCoverageNotedRead"},{"$ref":"#/components/schemas/AnalysisAtlasCoverageRead"}]},"type":"array"},{"type":"null"}],"title":"Coverage","description":"One row per ders of the deneme: ``{subject, subject_name, n_questions, n_labeled, n_buckets}``; a ders without a labeled question adds Intelligence's ``note`` and has no kova verdict."},"gates":{"anyOf":[{"$ref":"#/components/schemas/AnalysisAtlasGates10aRead"},{"$ref":"#/components/schemas/AnalysisAtlasGatesRead"},{"type":"null"}],"title":"Gates","description":"The thresholds the object was computed under: ``min_bucket``, ``min_cell``, ``gap_target_max``, ``subject_signal_closed`` (the dersler whose kova verdicts the per-ders signal gate withholds), since ``2026.10-a`` ``skill_cross_subject_min_n``."}},"additionalProperties":true,"type":"object","required":["buckets","skills","prerequisites","study_order","coverage","gates"],"title":"KonuAtlasiServedRead","description":"Intelligence's Konu Atlası object of the sitting (contract 8.4) as it was served: the blocks of ``KonuAtlasiRead``\n(no ``advice``: that block is read live). Below 50 students or while labels are pending the field holds the gated\nnull ``{value: null, gate, reason}`` instead (``GatedNullRead``). Checked like ``DenemelerServedRead``. The codes\n(``verdict``, gate and reason names) are the contract, its Turkish strings (``label``, ``reason``, ``note``,\n``locked``) are Intelligence's own."},"KovaGapBucketRead":{"properties":{"bucket_id":{"type":"string","title":"Bucket Id"},"name":{"type":"string","title":"Name","description":"The kova's name as the question table labels it (P0 topics); the id when unknown."}},"type":"object","required":["bucket_id","name"],"title":"KovaGapBucketRead"},"KovaGapCellRead":{"properties":{"subject":{"type":"string","title":"Subject"},"bucket_id":{"type":"string","title":"Bucket Id"},"n_students":{"type":"integer","title":"N Students","description":"Opened cells (students who answered in the kova's bölüm and have a cell)."},"n_students_unopened":{"type":"integer","title":"N Students Unopened","description":"Students with a cell who left the whole bölüm blank; they enter nothing else."},"n_answers":{"type":"integer","title":"N Answers","description":"Answers behind the gap (the sum of the opened cells' `n`)."},"verdict_counts":{"$ref":"#/components/schemas/KovaVerdictCountsRead","description":"The opened students' own 8.4 verdicts, counted."},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap","description":"Pooled tercile gap (correct minus expected per answer), in thousandths; null when withheld or `whole_cohort`."},"se":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Se","description":"Its standard error, rounded up to thousandths; null with `gap`."},"se_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Se Basis","description":"`cluster_student` | `binomial_floor`: which of the two errors the served `se` is."},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict","description":"`weak` | `expected` | `strong`; null when withheld, `whole_cohort` or `se_zero`."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"`min_cohort_stats` on the opened students, or `subject_signal_gate` on a closed ders; null when served."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"`insufficient_n` | `whole_cohort` | `se_zero` | `subject_signal_gate`; null when served."}},"type":"object","required":["subject","bucket_id","n_students","n_students_unopened","n_answers","verdict_counts"],"title":"KovaGapCellRead","description":"One cell of the heatmap: `alfabemy_core.institution.kova_group_gap` over the row's students' stored 8.4 cells of\nthe kova. The counts are always served; `gap` and `se` (thousandths) from `min_cohort_stats` opened students, else\nwithheld under `gate`; `verdict` (`weak` | `strong`) only beyond `group_gap_se_multiple` standard errors and\n`gap_target_max`, `expected` otherwise; `reason` `whole_cohort` for a group that is the whole cohort (nothing to\ncompare with), `se_zero` when the served error is 0, `subject_signal_gate` for a closed ders."},"KovaGapRowRead":{"properties":{"level":{"type":"string","title":"Level","description":"`campus` | `section`."},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"is_operational":{"type":"boolean","title":"Is Operational"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study","description":"AYT only: the alan whose students this row holds, as a code from P0 `tracks` (the sitting's stored 8.2 `student.field_of_study`, e.g. `Eşit Ağırlık` -> `turkce_matematik`; an alan P0 has no code for keeps that label). Intelligence cuts an AYT's terciles per alan (8.1 `cohorts`), so every cell is against that alan's cohort: `whole_cohort` when the row holds all of the alan's students in the run. A campus or section with students of two alanlar has one row per alan. Null on every other scope (one cohort)."},"n":{"type":"integer","title":"N","description":"Scoped students of the row in this exam (the group's size the whole-cohort rule reads); on an AYT its students of `field_of_study`."},"cells":{"items":{"$ref":"#/components/schemas/KovaGapCellRead"},"type":"array","title":"Cells","description":"One cell per `subjects[].buckets[]`, in that order."}},"type":"object","required":["level","id","name","slug","is_operational","n"],"title":"KovaGapRowRead"},"KovaGapSubjectRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"buckets":{"items":{"$ref":"#/components/schemas/KovaGapBucketRead"},"type":"array","title":"Buckets","description":"The kovalar any scoped student has a cell of, by name; every row's `cells[]` lists them in this order."}},"type":"object","required":["id","name"],"title":"KovaGapSubjectRead"},"KovaGapsExamRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"name":{"type":"string","title":"Name"},"administered_on":{"type":"string","format":"date","title":"Administered On"},"exam_scope":{"type":"string","title":"Exam Scope"}},"type":"object","required":["exam_id","name","administered_on","exam_scope"],"title":"KovaGapsExamRead"},"KovaGapsGatesRead":{"properties":{"min_cohort_stats":{"type":"integer","title":"Min Cohort Stats"},"group_gap_se_multiple":{"type":"number","title":"Group Gap Se Multiple"},"gap_target_max":{"type":"number","title":"Gap Target Max"}},"type":"object","required":["min_cohort_stats","group_gap_se_multiple","gap_target_max"],"title":"KovaGapsGatesRead"},"KovaGapsRead":{"properties":{"exam":{"$ref":"#/components/schemas/KovaGapsExamRead"},"scope":{"$ref":"#/components/schemas/ScopeRead"},"child_level":{"type":"string","title":"Child Level","description":"`campus` | `section`: what `rows[]` are."},"cells_state":{"type":"string","title":"Cells State","description":"`ready` when the run's cells are extracted; `pending` while the sweep has not reached the run yet (no `subjects`, no `cells`, the counts of `rows[]` still served)."},"subjects":{"items":{"$ref":"#/components/schemas/KovaGapSubjectRead"},"type":"array","title":"Subjects","description":"The dersler with at least one kova cell among the scoped students, in P0 order; `subject` narrows to one. On an AYT the union over the alanlar: every row lists every kova, a kova none of the row's alan has a cell of with 0 students."},"rows":{"items":{"$ref":"#/components/schemas/KovaGapRowRead"},"type":"array","title":"Rows","description":"Operational children first by name, then the non-operational ones; a section scope lists the section itself. On an AYT one block of rows per alan (`field_of_study`), the alanlar in P0 `tracks` order (one without a P0 code last), each block in that order."},"gates":{"$ref":"#/components/schemas/KovaGapsGatesRead"}},"type":"object","required":["exam","scope","child_level","cells_state","gates"],"title":"KovaGapsRead","description":"P2c: the kova gap heatmap of a scope on one deneme (6.9a since panel request A5): the scope's children (institution\n-> campuses, campus -> sections, section -> the section itself) by ders and kova. There is no school-wide row: each\nstudent's gap is against their own tercile on the same questions, so the whole cohort reads 0 by construction.\n\nAn AYT has one cohort per alan (Intelligence cuts its terciles per `student.field_of_study`; decisions 34 and 51, the\nrules handoff R20): the heatmap runs per alan, each row holds one alan's students (`rows[].field_of_study`) and is\ncompared with that alan's cohort, all of the alan's students in the run whatever the scope or visibility. A sitting\nwhose stored 8.2 object names no alan (a run materialised before the object was stored, or none sent) is in no\ncohort and in no row until the exam is materialised again. Every other scope is one cohort (`field_of_study` null)."},"KovaGapsResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/KovaGapsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"KovaGapsResult"},"KovaVerdictCountsRead":{"properties":{"weak":{"type":"integer","title":"Weak","default":0},"expected":{"type":"integer","title":"Expected","default":0},"strong":{"type":"integer","title":"Strong","default":0},"insufficient":{"type":"integer","title":"Insufficient","default":0}},"type":"object","title":"KovaVerdictCountsRead"},"KpiCardRead":{"properties":{"label":{"type":"string","title":"Label"},"value":{"anyOf":[{"type":"number"},{"type":"integer"}],"title":"Value"},"unit":{"type":"string","enum":["count","percent","currency","hours"],"title":"Unit","default":"count"},"delta":{"anyOf":[{"$ref":"#/components/schemas/DeltaRead"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["label","value"],"title":"KpiCardRead","description":"Single card in the 6-card KPI strip."},"KpiStripRead":{"properties":{"completed":{"$ref":"#/components/schemas/KpiCardRead"},"completion_rate":{"$ref":"#/components/schemas/KpiCardRead"},"revenue":{"$ref":"#/components/schemas/KpiCardRead"},"avg_hours":{"$ref":"#/components/schemas/KpiCardRead"},"unique_students":{"$ref":"#/components/schemas/KpiCardRead"},"unique_teachers":{"$ref":"#/components/schemas/KpiCardRead"}},"additionalProperties":false,"type":"object","required":["completed","completion_rate","revenue","avg_hours","unique_students","unique_teachers"],"title":"KpiStripRead","description":"The fixed 6-card strip: completed, completion %, revenue, avg hours,\nunique students, unique teachers."},"LabelBucketRead":{"properties":{"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"alt_bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Bucket Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"hint":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hint","description":"The deterministic unit-name match: ``{agrees, unit_match_bucket_id}``."}},"additionalProperties":true,"type":"object","title":"LabelBucketRead","description":"How the kova was assigned: the vote confidence, the runner-up kova, the source, the unit-name hint."},"LabelDifficultyRead":{"properties":{"difficulty_best":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Difficulty Best"},"difficulty_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Difficulty Source"},"difficulty_calibrated":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Difficulty Calibrated"},"pred_difficulty_model":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pred Difficulty Model"},"gate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gate"}},"additionalProperties":true,"type":"object","title":"LabelDifficultyRead","description":"The difficulty block: the best estimate, its source, the calibrated and the model-predicted value, a gate when withheld."},"LabelIdRead":{"properties":{"subject":{"type":"string","title":"Subject"},"bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Id"},"bucket_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Name"},"exam_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Scope"},"grade":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade"}},"additionalProperties":true,"type":"object","required":["subject"],"title":"LabelIdRead","description":"The question's place in the taxonomy (8.1 ``id``): the ders and, once labeled, its kova."},"LabelRecordRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"canonical_question_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Question Id"},"label_status":{"type":"string","title":"Label Status","description":"``labeled`` | ``pending`` | ``review`` | ``unlabelable`` | ``without_taxonomy``."},"label_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label Run Id"},"taxonomy_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Sha"},"schema_version":{"type":"integer","title":"Schema Version"},"skills_vocab_version":{"type":"integer","title":"Skills Vocab Version"},"codebook_version":{"type":"string","title":"Codebook Version"},"generated_at":{"type":"string","title":"Generated At"},"taxonomy_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Status"},"id":{"$ref":"#/components/schemas/LabelIdRead"},"source_unit":{"$ref":"#/components/schemas/LabelSourceUnitRead"},"bucket":{"anyOf":[{"$ref":"#/components/schemas/LabelBucketRead"},{"type":"null"}]},"labels":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Labels","description":"``question_type_id``, ``skill_ids[]``, ``common_wrong_type`` ... as the codebook names them."},"agreement":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Agreement","description":"Votes per label value."},"violations":{"items":{},"type":"array","title":"Violations"},"n_votes":{"type":"integer","title":"N Votes","default":0},"needs_review":{"type":"boolean","title":"Needs Review","default":false},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Reason"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error","description":"``{code, detail}`` when labeling failed on this question."},"text_metrics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Text Metrics"},"difficulty":{"$ref":"#/components/schemas/LabelDifficultyRead"},"behaviour":{"additionalProperties":true,"type":"object","title":"Behaviour","description":"This institution's measured behaviour on the question (rates with their ``n``)."},"distractors":{"additionalProperties":true,"type":"object","title":"Distractors"},"talent":{"additionalProperties":true,"type":"object","title":"Talent"},"norm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Norm Source"},"concepts":{"items":{},"type":"array","title":"Concepts"},"use":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use","description":"``research_only`` for a question whose licence forbids product use; ``null`` otherwise."}},"additionalProperties":true,"type":"object","required":["question_id","label_status","schema_version","skills_vocab_version","codebook_version","generated_at","id","source_unit","difficulty","behaviour","distractors","talent"],"title":"LabelRecordRead","description":"One question's record (8.1): the version block, the kova, the labels with their vote agreement, the\ntext metrics, the difficulty block and this institution's measured behaviour. Label fields are ``null``\nwhile ``label_status`` is ``pending``."},"LabelSourceUnitRead":{"properties":{"unit_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"},"topic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Id"},"topic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Name"}},"additionalProperties":true,"type":"object","title":"LabelSourceUnitRead","description":"The institution's own unit and topic behind the question, as sent in the definition."},"LabelingBundleMeta":{"properties":{"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag"},"cached":{"type":"boolean","title":"Cached","default":false}},"type":"object","title":"LabelingBundleMeta","description":"A cached bundle read's ``meta``: the ETag (also the ``ETag`` header) and whether Redis answered."},"LateHeavyChipRead":{"properties":{"code":{"type":"string","const":"late_heavy","title":"Code"},"params":{"$ref":"#/components/schemas/LateHeavyParamsRead"}},"type":"object","required":["code","params"],"title":"LateHeavyChipRead"},"LateHeavyParamsRead":{"properties":{"exam_ids":{"items":{"type":"string"},"type":"array","title":"Exam Ids","description":"Supporting exams whose blanks are late-heavy (``per_exam[].blanks.section_signal.late_heavy``: Intelligence's controlled 8.3 flag where the stored object carries it, pipeline 2026.10-e on; the count rule otherwise)."}},"type":"object","required":["exam_ids"],"title":"LateHeavyParamsRead"},"LatestRead":{"properties":{"exam_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Exam Id","description":"Null only when the institution has no analytics-ready exam of its cohort scope."},"confidence":{"type":"string","title":"Confidence"}},"type":"object","required":["confidence"],"title":"LatestRead"},"LaunchSessionRequest":{"properties":{"device_token":{"type":"string","maxLength":512,"minLength":8,"title":"Device Token","description":"The client-generated per-device string the app also sends on /refresh and /logout"},"parent_account":{"type":"boolean","title":"Parent Account","description":"true: a parent's hand-off answers the PARENT account's token pair (with SCHOOL_LAUNCH__PARENT_ACCOUNTS_ENABLED on); false/absent: the parent session body (parent_token) as before","default":false},"handoff_code":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Handoff Code","description":"The native app only: the handoff query parameter of the landing redirect (/launch?handoff=<code>), sent instead of the hand-off cookie. Read only from a request without an Origin header (a browser is always answered from its cookie and this field is ignored). Single use, 60 seconds, and spent together with the cookie of the same launch: whichever comes first wins, the other answers 401 HANDOFF_INVALID."}},"type":"object","required":["device_token"],"title":"LaunchSessionRequest","description":"``user_agent`` / ``IP_address`` are accepted for symmetry with the OTP login body but ignored:\nthe server uses what it observes on the request."},"LearningOutcomeRead":{"properties":{"code":{"type":"string","title":"Code"},"name_tr":{"type":"string","title":"Name Tr","default":""},"share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Share"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"additionalProperties":true,"type":"object","required":["code"],"title":"LearningOutcomeRead","description":"One kazanım of a kova: the curriculum outcome code, its name, the share and count of the kova's questions mapped to it."},"LessonCompletedSubunitsRead":{"properties":{"lesson":{"$ref":"#/components/schemas/CourseLessonRead"},"subunits":{"items":{"$ref":"#/components/schemas/SubunitRead"},"type":"array","title":"Subunits"}},"type":"object","required":["lesson","subunits"],"title":"LessonCompletedSubunitsRead"},"LessonRequestDocumentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"teacher_document_id":{"type":"string","format":"uuid","title":"Teacher Document Id"},"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id"},"uploader_profile":{"anyOf":[{},{"type":"null"}],"title":"Uploader Profile"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"subbranch":{"anyOf":[{"$ref":"#/components/schemas/SubbranchRead"},{"type":"null"}]},"unit":{"anyOf":[{"$ref":"#/components/schemas/main_api__modules__curriculum__schemas__UnitRead"},{"type":"null"}]},"document_type":{"$ref":"#/components/schemas/CourseDocumentType"},"homework_answers":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Homework Answers"},"document_name":{"type":"string","title":"Document Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_submitted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Submitted"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"visible_from":{"type":"string","format":"date-time","title":"Visible From"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"document_link":{"type":"string","title":"Document Link","default":""}},"type":"object","required":["id","teacher_document_id","lesson_request_id","document_type","document_name","visible_from","created_at","updated_at"],"title":"LessonRequestDocumentRead","description":"Read DTO for LessonRequestDocument.\n\nIMPORTANT:\n  - `id` is the DB row PK (unique per lesson-request attachment row).\n  - `teacher_document_id` is the shared teacher-library file id\n    (FK -> course_document_of_teacher.id).\n  - `lesson_request_id` is the tutoring lesson request this attachment\n    belongs to.\n  - `course_id` is hydrated at the service layer from the attached\n    lesson request (so downstream consumers can still group by course).\n  - mime_type + file_size_bytes are NOT stored on LessonRequestDocument;\n    the service layer hydrates them from CourseDocumentOfTeacher.\n  - document_link is derived from teacher_document_id + mime_type;\n    the service layer may override document_link to guarantee the\n    correct extension."},"LessonRequestInvoiceRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"price":{"type":"string","title":"Price"},"currency":{"type":"string","title":"Currency","default":"TRY"},"free":{"type":"boolean","title":"Free","default":false},"payment_statu":{"anyOf":[{"$ref":"#/components/schemas/LessonRequestPaymentStatu"},{"type":"null"}]},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refund_needed":{"type":"boolean","title":"Refund Needed","default":false},"refund_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Refund Id"},"invoice_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invoice Created At"},"approval_statu":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"meeting_lesson":{"type":"boolean","title":"Meeting Lesson"},"attempts":{"items":{"$ref":"#/components/schemas/LessonRequestPaymentAttemptRead"},"type":"array","title":"Attempts","default":[]},"paytr":{"anyOf":[{"$ref":"#/components/schemas/LessonRequestPaytrRead"},{"type":"null"}]},"not_payable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Not Payable Reason"}},"type":"object","required":["lesson_request_id","price","approval_statu","lesson_start","lesson_end","teacher_id","subbranch_id","course_id","meeting_lesson"],"title":"LessonRequestInvoiceRead","description":"Full invoice surface of one lesson request: paid state + history + (when\npayable) a fresh PayTR iframe token. ``paytr`` is null with\n``not_payable_reason`` set otherwise:\n  INVOICE_NOT_CREATED_YET | ALREADY_PAID | FREE_LESSON | LESSON_CANCELLED | PAYTR_NOT_CONFIGURED"},"LessonRequestInvoiceRequest":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"refresh":{"type":"boolean","title":"Refresh","default":false}},"type":"object","required":["lesson_request_id"],"title":"LessonRequestInvoiceRequest"},"LessonRequestPaymentAttemptRead":{"properties":{"intent_id":{"type":"string","format":"uuid","title":"Intent Id"},"status":{"type":"string","title":"Status"},"amount_try":{"type":"string","title":"Amount Try"},"merchant_oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Oid"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["intent_id","status","amount_try","created_at"],"title":"LessonRequestPaymentAttemptRead","description":"One payment attempt (PaymentIntent) against the lesson invoice."},"LessonRequestPaymentStatu":{"type":"string","enum":["PAID","NONPAID"],"title":"LessonRequestPaymentStatu","description":"Derived payment status for a lesson request's invoice.\n\nPAID    -> a TutoringLessonPayment row exists and payment_id IS NOT NULL\n           (free lessons use NIL_UUID, real payments use the payment id).\nNONPAID -> a TutoringLessonPayment row exists and payment_id IS NULL.\n(None)  -> no invoice row exists yet."},"LessonRequestPaytrRead":{"properties":{"token":{"type":"string","title":"Token"},"iframe_url":{"type":"string","title":"Iframe Url"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"test_mode":{"type":"boolean","title":"Test Mode","default":false}},"type":"object","required":["token","iframe_url"],"title":"LessonRequestPaytrRead","description":"Everything the frontend needs to open the PayTR iframe."},"LessonRequestSubunitsRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"subunits":{"items":{"$ref":"#/components/schemas/SubunitRead"},"type":"array","title":"Subunits","default":[]}},"type":"object","required":["lesson_request_id","course_id"],"title":"LessonRequestSubunitsRead","description":"Final set of subunits currently attached to a lesson request.\n\nThe list is returned in a stable order (insertion time ascending) so the\nfrontend can render it without additional sorting."},"LessonStatusItemRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"status":{"$ref":"#/components/schemas/LessonWindowStatus"},"info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["course_id","status"],"title":"LessonStatusItemRead","description":"Batch item for lesson window status lookup.\nOne entry per requested course_id."},"LessonWindowItemRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"approval_statu":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"}},"additionalProperties":false,"type":"object","required":["lesson_request_id","lesson_start","lesson_end","approval_statu","teacher_id","subbranch_id"],"title":"LessonWindowItemRead"},"LessonWindowStatus":{"type":"string","enum":["NO_ACTIVE_LESSON","CREATABLE_WINDOW","ACTIVE_LESSON"],"title":"LessonWindowStatus"},"LevelInsert":{"properties":{"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["name","code"],"title":"LevelInsert"},"LevelRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","name","code","is_active"],"title":"LevelRead"},"LevelTree":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"subbranches":{"items":{"$ref":"#/components/schemas/SubbranchTree"},"type":"array","title":"Subbranches","default":[]}},"type":"object","required":["id","name","code","is_active"],"title":"LevelTree"},"LevelUpdate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","required":["id"],"title":"LevelUpdate"},"LevelWithSubbranches":{"properties":{"parent":{"$ref":"#/components/schemas/LevelRead"},"siblings":{"items":{"$ref":"#/components/schemas/SubbranchRead"},"type":"array","title":"Siblings"}},"type":"object","required":["parent","siblings"],"title":"LevelWithSubbranches"},"LiveSlotScheduleItem":{"properties":{"bundle_component_id":{"type":"string","format":"uuid","title":"Bundle Component Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"}},"type":"object","required":["bundle_component_id","starts_at"],"title":"LiveSlotScheduleItem","description":"One concrete schedule for a template LIVE_LECTURE_SLOT component."},"MainObstacle":{"type":"string","enum":["TIME","DISTRACTION","KNOWLEDGE_GAP","COMPREHENSION","OTHER"],"title":"MainObstacle"},"MakeupAvailabilityDayRead":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"free":{"items":{"$ref":"#/components/schemas/FreeIntervalRead"},"type":"array","title":"Free","default":[]}},"type":"object","required":["date"],"title":"MakeupAvailabilityDayRead","description":"One day of common free time (teacher + every enrolled student)."},"MarkAllAnnouncementsSeenRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"updated_count":{"type":"integer","title":"Updated Count"}},"type":"object","required":["course_id","updated_count"],"title":"MarkAllAnnouncementsSeenRead","description":"Helper DTO: result of marking all announcements in a course as seen.\n\n`updated_count` = how many announcements transitioned from unseen -> seen during this call."},"MarkAllSeenRead":{"properties":{"updated_count":{"type":"integer","title":"Updated Count"}},"type":"object","required":["updated_count"],"title":"MarkAllSeenRead"},"MarkClickedRead":{"properties":{"notification_id":{"type":"string","format":"uuid","title":"Notification Id"},"clicked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clicked At"},"updated":{"type":"boolean","title":"Updated","default":false}},"type":"object","required":["notification_id","clicked_at"],"title":"MarkClickedRead"},"MarkSeenRead":{"properties":{"notification_id":{"type":"string","format":"uuid","title":"Notification Id"},"seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seen At"},"updated":{"type":"boolean","title":"Updated","default":false}},"type":"object","required":["notification_id","seen_at"],"title":"MarkSeenRead"},"MarketplaceAnnouncementCreateRequest":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"type":"string","maxLength":4000,"minLength":1,"title":"Description"}},"additionalProperties":false,"type":"object","required":["title","description"],"title":"MarketplaceAnnouncementCreateRequest","description":"A new bundle announcement. ``title`` is capped at 200 because the fan-out\ncopies it into ``in_app_notification.title`` (String(200))."},"MarketplaceAnnouncementUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","title":"MarketplaceAnnouncementUpdateRequest","description":"Partial edit of an announcement. Omitted fields stay untouched; an empty\nbody is a 422 (nothing to do). Editing never re-notifies — it rewrites the\nin-app rows the original announcement already produced."},"MarketplaceBundleAnnouncementRead":{"properties":{"announcement_id":{"type":"string","format":"uuid","title":"Announcement Id"},"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"author_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author User Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["announcement_id","marketplace_bundle_id","title","description","created_at","updated_at"],"title":"MarketplaceBundleAnnouncementRead","description":"One announcement row. ``author_user_id`` is nullable because the FK is\nON DELETE SET NULL (a removed teacher account keeps the announcement)."},"MarketplaceBundleEnrollmentStatus":{"type":"string","enum":["ENROLLED","CANCELLED"],"title":"MarketplaceBundleEnrollmentStatus"},"MarketplaceBundleListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_overview":{"anyOf":[{"$ref":"#/components/schemas/TeacherOverview"},{"type":"null"}]},"source_bundle_id":{"type":"string","format":"uuid","title":"Source Bundle Id"},"source_bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Bundle Title"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"status":{"$ref":"#/components/schemas/MarketplaceBundleStatus"},"price_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Try"},"min_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Students"},"max_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Students"},"scope_items":{"items":{"type":"string"},"type":"array","title":"Scope Items","default":[]},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"},"component_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Component Counts","default":{}},"live_lecture_count":{"type":"integer","title":"Live Lecture Count","default":0},"held_live_lecture_count":{"type":"integer","title":"Held Live Lecture Count","default":0},"first_live_lecture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Live Lecture At"},"enrollment_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Enrollment Ends At"},"cancel_decision_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel Decision At"},"last_live_lecture_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Live Lecture Ends At"},"enrollment_count":{"type":"integer","title":"Enrollment Count","default":0},"gross_revenue_try":{"type":"string","title":"Gross Revenue Try","default":"0"},"rejected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rejected At"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"content_flagged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Content Flagged At"},"content_flag_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Flag Reason"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"cancel_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","teacher_id","source_bundle_id","status","created_at","updated_at"],"title":"MarketplaceBundleListItem","description":"One row of the teacher's \"Yayınlarım\" list AND the admin moderation queue\n(shared hydration: ``build_list_items``). Everything a list card needs —\nno per-bundle detail calls required."},"MarketplaceBundleRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_overview":{"anyOf":[{"$ref":"#/components/schemas/TeacherOverview"},{"type":"null"}]},"source_bundle_id":{"type":"string","format":"uuid","title":"Source Bundle Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"min_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Students"},"max_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Students"},"price_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Try"},"scope_items":{"items":{"type":"string"},"type":"array","title":"Scope Items","default":[]},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"},"status":{"$ref":"#/components/schemas/MarketplaceBundleStatus"},"enrollment_count":{"type":"integer","title":"Enrollment Count","default":0},"components":{"items":{"$ref":"#/components/schemas/MarketplaceComponentRead"},"type":"array","title":"Components","default":[]},"planned_live_lectures":{"items":{"$ref":"#/components/schemas/PlannedLiveLectureRead"},"type":"array","title":"Planned Live Lectures","default":[]},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"rejected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rejected At"},"rejected_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rejected By"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"content_flagged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Content Flagged At"},"content_flag_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Flag Reason"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"cancel_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Reason"},"first_live_lecture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Live Lecture At"},"enrollment_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Enrollment Ends At"},"cancel_decision_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel Decision At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","tenant_id","teacher_id","source_bundle_id","status","created_at","updated_at"],"title":"MarketplaceBundleRead"},"MarketplaceBundleStatus":{"type":"string","enum":["DRAFT","PUBLISHED","ONGOING","COMPLETED","PUBLISH_CANCELLED","ONGOING_CANCELLED"],"title":"MarketplaceBundleStatus","description":"Lifecycle of a published bundle instance (a snapshot of a template).\n\nDRAFT              -> just submitted by the teacher; awaiting admin review.\nPUBLISHED          -> admin approved; students may enroll (enrollment API later).\nONGOING            -> teacher started it (min enrollment met); live sessions run.\nCOMPLETED          -> last planned live lecture session finished.\nPUBLISH_CANCELLED  -> cancelled while PUBLISHED (before start).\nONGOING_CANCELLED  -> cancelled while ONGOING (after start)."},"MarketplaceComponentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"sort_order":{"type":"integer","title":"Sort Order"},"component_type":{"$ref":"#/components/schemas/BundleComponentType"},"teacher_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Document Id"},"teacher_profile_video_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Profile Video Id"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"slot_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Title"},"slot_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Description"},"question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Question Count"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"},"is_makeup":{"type":"boolean","title":"Is Makeup","default":false}},"type":"object","required":["id","sort_order","component_type"],"title":"MarketplaceComponentRead"},"MarketplaceContentComponentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"sort_order":{"type":"integer","title":"Sort Order"},"component_type":{"$ref":"#/components/schemas/BundleComponentType"},"is_unlocked":{"type":"boolean","title":"Is Unlocked","default":false},"is_done":{"type":"boolean","title":"Is Done","default":false},"done_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Done At"},"visible_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Visible From"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"},"teacher_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Document Id"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Question Count"},"is_submitted":{"type":"boolean","title":"Is Submitted","default":false},"teacher_profile_video_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Profile Video Id"},"video_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Title"},"video_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Duration Seconds"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"video_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Status"},"planned_live_lecture_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Planned Live Lecture Id"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"slot_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Title"},"slot_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Description"},"is_held":{"type":"boolean","title":"Is Held","default":false},"lecture_status":{"anyOf":[{"$ref":"#/components/schemas/PlannedLiveLectureStatus"},{"type":"null"}]},"is_makeup":{"type":"boolean","title":"Is Makeup","default":false},"makeup_for_planned_live_lecture_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Makeup For Planned Live Lecture Id"},"makeup_scheduled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Makeup Scheduled"}},"type":"object","required":["id","sort_order","component_type"],"title":"MarketplaceContentComponentRead","description":"One component in the enrolled student's content list."},"MarketplaceEnrollmentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"status":{"$ref":"#/components/schemas/MarketplaceBundleEnrollmentStatus"},"enrolled_at":{"type":"string","format":"date-time","title":"Enrolled At"}},"type":"object","required":["id","marketplace_bundle_id","student_id","status","enrolled_at"],"title":"MarketplaceEnrollmentRead"},"MarketplaceProgressSource":{"type":"string","enum":["MANUAL","SUBMISSION"],"title":"MarketplaceProgressSource","description":"How a component got marked done for a student."},"MarketplacePublishingConfigRead":{"properties":{"min_submit_lead_hours":{"type":"integer","title":"Min Submit Lead Hours"},"min_sales_window_hours":{"type":"integer","title":"Min Sales Window Hours"},"auto_start_lead_hours":{"type":"integer","title":"Auto Start Lead Hours"},"cancel_decision_lead_hours":{"type":"integer","title":"Cancel Decision Lead Hours"},"sweep_interval_seconds":{"type":"integer","title":"Sweep Interval Seconds"}},"type":"object","required":["min_submit_lead_hours","min_sales_window_hours","auto_start_lead_hours","cancel_decision_lead_hours","sweep_interval_seconds"],"title":"MarketplacePublishingConfigRead","description":"Publishing-window constants for GET /bundles/marketplace/publishing-config.\n\nInvariant: min_submit_lead_hours >= min_sales_window_hours >=\nauto_start_lead_hours >= cancel_decision_lead_hours. The first two are\nenvironment policy (settings.marketplace), the rest are sweep constants."},"MarkingCardRead":{"properties":{"variant":{"type":"string","title":"Variant","description":"7.2-7.4 variant code."},"provenance":{"items":{"type":"string"},"type":"array","title":"Provenance","description":"Supporting exams (distractor, blanks) or the exams of the eligible marking subjects' supported observations."},"deep_dive_exam_id":{"type":"string","title":"Deep Dive Exam Id","description":"7.1: the modal's detail block reads ``per_exam`` of this exam (the first of ``provenance``)."},"family":{"type":"string","const":"subject_marking","title":"Family"},"params":{"$ref":"#/components/schemas/MarkingParamsRead"},"chips":{"items":{"oneOf":[{"$ref":"#/components/schemas/TopStyleChipRead"},{"$ref":"#/components/schemas/LateHeavyChipRead"},{"$ref":"#/components/schemas/WeakestBandChipRead"}],"discriminator":{"propertyName":"code","mapping":{"late_heavy":"#/components/schemas/LateHeavyChipRead","top_style":"#/components/schemas/TopStyleChipRead","weakest_band":"#/components/schemas/WeakestBandChipRead"}}},"type":"array","title":"Chips","description":"Always empty for marking."},"evidence":{"$ref":"#/components/schemas/MarkingEvidenceRead"}},"type":"object","required":["variant","provenance","deep_dive_exam_id","family","params","evidence"],"title":"MarkingCardRead"},"MarkingEvidenceRead":{"properties":{"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows","description":"Always empty: the marking rows are ``marking_subjects``."},"bands":{"type":"null","title":"Bands"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items","description":"Always empty: marking has no evidence questions."},"caveat":{"type":"null","title":"Caveat"}},"type":"object","title":"MarkingEvidenceRead"},"MarkingParamsRead":{"properties":{"risky_subjects":{"items":{"type":"string"},"type":"array","title":"Risky Subjects","description":"Eligible risky subjects (accuracy asc)."},"timid_subjects":{"items":{"type":"string"},"type":"array","title":"Timid Subjects","description":"Eligible timid subjects (gap desc)."},"supporting_exam_count":{"type":"integer","title":"Supporting Exam Count"}},"type":"object","required":["risky_subjects","timid_subjects","supporting_exam_count"],"title":"MarkingParamsRead"},"MarkingRepresentativeRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"}},"type":"object","required":["exam_id"],"title":"MarkingRepresentativeRead"},"MarkingRowRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"status":{"type":"string","enum":["SUPPORTED","NO_SIGNAL","INSUFFICIENT_EVIDENCE"],"title":"Status"},"direction":{"anyOf":[{"type":"string","enum":["risky","timid"]},{"type":"null"}],"title":"Direction","description":"Null unless SUPPORTED."},"tendency":{"anyOf":[{"type":"string","enum":["more-attempts","more-blanks","as-expected"]},{"type":"null"}],"title":"Tendency"},"observed":{"type":"number","title":"Observed"},"expected":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expected"},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"question_count":{"type":"integer","title":"Question Count"},"judged":{"type":"boolean","title":"Judged"}},"type":"object","required":["subject","subject_name","status","observed","correct","wrong","blank","question_count","judged"],"title":"MarkingRowRead"},"MarkingSubjectRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"direction":{"type":"string","enum":["risky","timid"],"title":"Direction"},"eligible":{"type":"boolean","title":"Eligible","description":"7.7, direction-aware consistency."},"representative":{"$ref":"#/components/schemas/MarkingRepresentativeRead","description":"Lowest accuracy (risky) or highest gap (timid) observation."},"supporting_exam_count":{"type":"integer","title":"Supporting Exam Count"},"evaluated_exam_count":{"type":"integer","title":"Evaluated Exam Count"}},"type":"object","required":["subject","subject_name","direction","eligible","representative","supporting_exam_count","evaluated_exam_count"],"title":"MarkingSubjectRead"},"MaterializeMeta":{"properties":{"queued":{"type":"boolean","title":"Queued","default":false},"started":{"type":"boolean","title":"Started","default":false},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","title":"MaterializeMeta","description":"What ``POST .../analytics/materialize`` did: ``queued`` by this call (false when a job was already queued or\nrunning, or the run is ready and ``force`` was not given), ``started`` right after the response."},"MaterializeResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamAnalyticsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/MaterializeMeta"}},"type":"object","required":["code","message"],"title":"MaterializeResult"},"MatrixCellRead":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"n":{"type":"integer","title":"N","description":"The campus's operational students scored on the subject (A6)."},"diff_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diff Net","description":"Null below `min_cohort_stats` of `n` or when the subject's benchmark row is gated (`gate`)."},"diff_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diff Share"},"points":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Points","description":"`round(diff_share x 100)`."},"campus_mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Campus Mean Net"},"reference_mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reference Mean Net"},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why the cell is null; null when served."}},"type":"object","required":["subject_id","n"],"title":"MatrixCellRead"},"MatrixRowRead":{"properties":{"campus_id":{"type":"string","title":"Campus Id"},"name":{"type":"string","title":"Name"},"n_operational":{"type":"integer","title":"N Operational"},"n_total":{"type":"integer","title":"N Total"},"tier":{"type":"string","title":"Tier","description":"On `n_operational`: `counts` below `min_cohort_stats`, `limited` below `min_cohort_norms`, else `full` (A6)."},"mean_net_operational":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net Operational","description":"Null below `min_cohort_stats` operational students (`gate`)."},"delta_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta Net","description":"`mean_net_operational - institution_operational_mean_net`; null when either is withheld."},"cells":{"items":{"$ref":"#/components/schemas/MatrixCellRead"},"type":"array","title":"Cells"},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why the row's mean or delta is null; null when served."}},"type":"object","required":["campus_id","name","n_operational","n_total","tier"],"title":"MatrixRowRead"},"MatrixSubjectRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"short_name":{"type":"string","title":"Short Name"},"question_count":{"type":"integer","title":"Question Count"}},"type":"object","required":["id","name","short_name","question_count"],"title":"MatrixSubjectRead"},"MeasuredInRead":{"properties":{"subject":{"type":"string","title":"Subject"},"n":{"type":"integer","title":"N"}},"type":"object","required":["subject","n"],"title":"MeasuredInRead"},"MeetLinkGenerated":{"properties":{"path":{"type":"string","title":"Path"}},"type":"object","required":["path"],"title":"MeetLinkGenerated"},"MeetLinkPreviewRead":{"properties":{"teacher":{"$ref":"#/components/schemas/TeacherOverview"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"price":{"type":"string","title":"Price"},"meeting_lesson":{"type":"boolean","title":"Meeting Lesson"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"}},"type":"object","required":["teacher","lesson_start","lesson_end","price","meeting_lesson","subbranch_id"],"title":"MeetLinkPreviewRead"},"MeetLinkTokenRequest":{"properties":{"token":{"type":"string","title":"Token","description":"Encrypted meet-link token"}},"type":"object","required":["token"],"title":"MeetLinkTokenRequest"},"MemberEvidenceRead":{"properties":{"state":{"anyOf":[{"type":"string","enum":["weak","expected","strong","insufficient"]},{"type":"null"}],"title":"State","description":"Deprecated alias of `verdict`.","deprecated":true},"verdict":{"anyOf":[{"type":"string","enum":["weak","expected","strong","insufficient"]},{"type":"null"}],"title":"Verdict","description":"Intelligence's pooled verdict of the cell (8.7 / 8.10: `weak` for a member)."},"strength":{"anyOf":[{"type":"string","enum":["none","low","solid","corroborated"]},{"type":"null"}],"title":"Strength","description":"Intelligence's pooled strength (`solid` or `corroborated` for a member)."},"n":{"type":"integer","title":"N","description":"Answers pooled in the cell."},"correct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Correct","description":"Deprecated: null.","deprecated":true},"wrong":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wrong","description":"Deprecated: null.","deprecated":true},"blank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blank","description":"Deprecated: null.","deprecated":true},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap","description":"Intelligence's `gap` (observed - expected, blank-corrected); null without one."},"se":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Se","description":"Intelligence's standard error of the gap."},"peer_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Peer N","description":"Peer answers behind the cell's expected rate."},"blank_driven":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Blank Driven","description":"The weakness rests on blanks."},"exam_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exam Count","description":"Exams the cell pooled."},"latest_local":{"anyOf":[{"type":"string","enum":["weak","expected","strong","insufficient"]},{"type":"null"}],"title":"Latest Local","description":"Deprecated: null.","deprecated":true},"prerequisite_depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prerequisite Depth","description":"The kova's depth in the prerequisite graph; null on a cycle (`prerequisite_depth_reason`) and for a skill."},"prerequisite_depth_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prerequisite Depth Reason"},"gate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gate","description":"Intelligence's gate on the cell, when any (`{name, required, actual}`)."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"measured_in":{"anyOf":[{"items":{"$ref":"#/components/schemas/MeasuredInRead"},"type":"array"},{"type":"null"}],"title":"Measured In","description":"A skill cell: the dersler it was measured in, with their answer counts."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"The kova's ders; null for a skill."},"bucket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket Id","description":"The kova id within its ders; null for a skill."},"skill_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skill Id","description":"The skill id; null for a kova."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The kova's or skill's display name, as served."},"consumed_exam_ids":{"items":{"type":"string"},"type":"array","title":"Consumed Exam Ids","description":"The exams the member's profile pooled (8.10 `consumed.exam_ids`, Intelligence's ids)."},"questions":{"items":{"$ref":"#/components/schemas/EvidenceQuestionRead"},"type":"array","title":"Questions","description":"Deprecated: always empty (no per-question items in the profile cells). Was: the node's items in stored order (exam chronology, then booklet order).","deprecated":true}},"type":"object","required":["n"],"title":"MemberEvidenceRead","description":"The member's node for the group's target: the object the client sends back as ``evidence_snapshot``."},"MembershipRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"institution_id":{"type":"string","format":"uuid","title":"Institution Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"type":"string","title":"Role"},"section_codes":{"items":{"type":"string"},"type":"array","title":"Section Codes"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked"},"user_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"campus_codes":{"items":{"type":"string"},"type":"array","title":"Campus Codes"}},"type":"object","required":["id","institution_id","user_id","role","section_codes","created_at"],"title":"MembershipRead"},"MembershipScopePatch":{"properties":{"section_codes":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":64},{"type":"null"}],"title":"Section Codes"},"campus_codes":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":64},{"type":"null"}],"title":"Campus Codes"}},"additionalProperties":false,"type":"object","title":"MembershipScopePatch","description":"A teacher row takes ``section_codes``, a campus-manager row ``campus_codes``; the other field stays absent."},"MissedCountsRead":{"properties":{"all":{"type":"integer","title":"All"},"expected":{"type":"integer","title":"Expected","description":"Expected-miss students."},"trap":{"type":"integer","title":"Trap","description":"Trap students."},"blank":{"type":"integer","title":"Blank","description":"Blank answers."}},"type":"object","required":["all","expected","trap","blank"],"title":"MissedCountsRead"},"MissedStudentRead":{"properties":{"entry_id":{"type":"string","format":"uuid","title":"Entry Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"full_name":{"type":"string","title":"Full Name"},"campus_id":{"type":"string","title":"Campus Id"},"campus_name":{"type":"string","title":"Campus Name"},"section_id":{"type":"string","title":"Section Id"},"section_name":{"type":"string","title":"Section Name"},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank"},"status":{"type":"string","title":"Status","description":"`wrong` | `blank`."},"given":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given","description":"Null when blank."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"`expected` | `trap`; null for other misses."}},"type":"object","required":["entry_id","student_id","exam_id","full_name","campus_id","campus_name","section_id","section_name","status"],"title":"MissedStudentRead"},"MufredatSyncResponse":{"properties":{"xlsx_path":{"type":"string","title":"Xlsx Path","description":"Resolved path to the workbook that was read."},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"rows_read":{"type":"integer","title":"Rows Read","default":0},"rows_skipped_incomplete":{"type":"integer","title":"Rows Skipped Incomplete","default":0},"subbranches_wiped":{"type":"integer","title":"Subbranches Wiped","default":0},"units_wiped":{"type":"integer","title":"Units Wiped","default":0},"subunits_wiped":{"type":"integer","title":"Subunits Wiped","default":0},"outcomes_wiped":{"type":"integer","title":"Outcomes Wiped","default":0},"document_labels_nulled":{"type":"integer","title":"Document Labels Nulled","default":0},"levels_created":{"type":"integer","title":"Levels Created","default":0},"levels_reused":{"type":"integer","title":"Levels Reused","default":0},"subbranches_created":{"type":"integer","title":"Subbranches Created","default":0},"units_created":{"type":"integer","title":"Units Created","default":0},"subunits_created":{"type":"integer","title":"Subunits Created","default":0},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"},"distinct_branch_enums":{"items":{"type":"string"},"type":"array","title":"Distinct Branch Enums","description":"Unique branch_enum values present in the sheet."},"unknown_branch_enums":{"items":{"type":"string"},"type":"array","title":"Unknown Branch Enums","description":"branch_enum values not in Branch; add to models + migration before import."},"wiped_branches":{"items":{"type":"string"},"type":"array","title":"Wiped Branches","description":"Branches whose subtrees (subbranch → outcome) were wiped before re-insert."}},"type":"object","required":["xlsx_path"],"title":"MufredatSyncResponse","description":"Result of ``POST /curriculum/sync/mufredat``."},"MyAccessRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"roles":{"items":{"$ref":"#/components/schemas/MyRoleRead"},"type":"array","title":"Roles"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["user_id","roles","permissions"],"title":"MyAccessRead"},"MyBundlePurchaseItem":{"properties":{"purchase_id":{"type":"string","format":"uuid","title":"Purchase Id"},"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"amount_try":{"type":"string","title":"Amount Try"},"payment_statu":{"type":"string","title":"Payment Statu"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refund_needed":{"type":"boolean","title":"Refund Needed","default":false},"is_enrolled":{"type":"boolean","title":"Is Enrolled","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["purchase_id","marketplace_bundle_id","amount_try","payment_statu","created_at"],"title":"MyBundlePurchaseItem","description":"Purchase-history row for the student's payments screen."},"MyDenemelerPartRead":{"properties":{"denemeler":{"$ref":"#/components/schemas/ExamDenemelerRead"}},"type":"object","required":["denemeler"],"title":"MyDenemelerPartRead","description":"``part=denemeler``: only that object (the other keys are absent, not ``null``)."},"MyEnrolledBundleRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_overview":{"anyOf":[{"$ref":"#/components/schemas/TeacherOverview"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"status":{"$ref":"#/components/schemas/MarketplaceBundleStatus"},"price_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Try"},"scope_items":{"items":{"type":"string"},"type":"array","title":"Scope Items","default":[]},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"},"enrolled_at":{"type":"string","format":"date-time","title":"Enrolled At"},"enrolled_count":{"type":"integer","title":"Enrolled Count","default":0},"component_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Component Counts","default":{}},"total_component_count":{"type":"integer","title":"Total Component Count","default":0},"done_component_count":{"type":"integer","title":"Done Component Count","default":0},"progress_percent":{"type":"number","title":"Progress Percent","default":0.0},"next_live_lecture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Live Lecture At"}},"type":"object","required":["marketplace_bundle_id","teacher_id","status","enrolled_at"],"title":"MyEnrolledBundleRead","description":"Student dashboard item: bundle summary + progress + next live lecture."},"MyExamAnalysisMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the newest run involved."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam_id -> Intelligence analysis_run_id of every exam the body reads."},"roster_upload_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload, as the institution panel's meta names it (a roster change changes the response; the cache key carries it)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (Europe/Istanbul offset)."},"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version","description":"Intelligence's schema version of the newest run involved (keep it beside ``analysis_version`` with what the panel shows)."},"visibility":{"type":"string","const":"own","title":"Visibility","description":"D9: a student only ever receives their own rows; everything about other students comes as aggregates.","default":"own"},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag","description":"The ETag of this body (also sent as the response header)."},"part":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part","description":"``denemeler``, ``strateji`` or ``konu_atlasi`` (``konu-atlasi`` is accepted and reported with the underscore, D12); ``null`` = all three."}},"type":"object","title":"MyExamAnalysisMeta","description":"``meta`` of ``GET /me/exams/{exam_id}/analysis``: the D13 fields plus the ``part`` asked for (``null`` = all)."},"MyExamAnalysisPartsRead":{"properties":{"denemeler":{"$ref":"#/components/schemas/ExamDenemelerRead"},"strateji":{"$ref":"#/components/schemas/StratejiExamRead"},"konu_atlasi":{"$ref":"#/components/schemas/KonuAtlasiExamRead"}},"type":"object","required":["denemeler","strateji","konu_atlasi"],"title":"MyExamAnalysisPartsRead","description":"``part`` omitted: the three parts of the exam."},"MyExamAnalysisRead":{"properties":{"student":{"$ref":"#/components/schemas/StudentRefRead","description":"The caller's own roster identity of the exam's term."},"analysis":{"anyOf":[{"$ref":"#/components/schemas/MyExamAnalysisPartsRead"},{"$ref":"#/components/schemas/MyDenemelerPartRead"},{"$ref":"#/components/schemas/MyStratejiPartRead"},{"$ref":"#/components/schemas/MyKonuAtlasiPartRead"}],"title":"Analysis","description":"The requested part only (the other keys absent), or all three when ``part`` is omitted."}},"type":"object","required":["student","analysis"],"title":"MyExamAnalysisRead"},"MyExamAnalysisResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MyExamAnalysisRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/MyExamAnalysisMeta"}},"type":"object","required":["code","message"],"title":"MyExamAnalysisResult"},"MyExamOzetRead":{"properties":{"student":{"$ref":"#/components/schemas/StudentRefRead","description":"The caller's own roster identity of the exam's term."},"exam_id":{"type":"string","title":"Exam Id","description":"The exam the özet is about."},"ozet":{"anyOf":[{"$ref":"#/components/schemas/DenemeOzetiServedRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Ozet","description":"Intelligence's deneme özeti of the sitting as stored (`DenemeOzetiServedRead`: `opening`, the `slides` in their order, `screens`, `selection`), its gated null (`{value: null, gate, reason}`: `ozet_scope` on a deneme outside the TYT, the AYT and the konu taramaları, `ozet_tarama_grade` or `ozet_tarama_questions` on a tarama that is not a YKS one (D50), `ozet_no_scored_test` on an AYT alan cohort that takes none of its tests, `ozet_failed` when Intelligence could not build it; `min_cohort_norms` below 50 students on one stored before Intelligence 2026.11-e), or `null` on a sitting materialised before the özet existed (D44) or one that did not fit its documented type."},"view":{"anyOf":[{"$ref":"#/components/schemas/OzetViewRead"},{"type":"null"}],"description":"D45: the caller's own progress through this özet (S11); null when never opened."}},"type":"object","required":["student","exam_id"],"title":"MyExamOzetRead"},"MyExamOzetResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MyExamOzetRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentAnalyticsMeta"}},"type":"object","required":["code","message"],"title":"MyExamOzetResult"},"MyExamOzetViewRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id","description":"The exam the özet is about."},"recorded":{"type":"boolean","title":"Recorded","description":"True when the event was written (always, through the student's own route; a parent token is refused there with 403)."},"view":{"anyOf":[{"$ref":"#/components/schemas/OzetViewRead"},{"type":"null"}],"description":"The progress as it now stands."}},"type":"object","required":["exam_id","recorded"],"title":"MyExamOzetViewRead"},"MyExamOzetViewResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MyExamOzetViewRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentAnalyticsMeta"}},"type":"object","required":["code","message"],"title":"MyExamOzetViewResult"},"MyInstitutionRead":{"properties":{"institution_id":{"type":"string","format":"uuid","title":"Institution Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"section_codes":{"items":{"type":"string"},"type":"array","title":"Section Codes"},"membership_id":{"type":"string","format":"uuid","title":"Membership Id"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"campus_codes":{"items":{"type":"string"},"type":"array","title":"Campus Codes"},"branding":{"anyOf":[{"$ref":"#/components/schemas/InstitutionBrandingRead"},{"type":"null"}]}},"type":"object","required":["institution_id","slug","name","role","section_codes","membership_id"],"title":"MyInstitutionRead","description":"One institution of the caller, all their live rows there merged: ``role`` is the highest\n(admin > campus_manager > teacher > student), ``roles`` every one, ``membership_id`` the row of ``role``."},"MyKonuAtlasiPartRead":{"properties":{"konu_atlasi":{"$ref":"#/components/schemas/KonuAtlasiExamRead"}},"type":"object","required":["konu_atlasi"],"title":"MyKonuAtlasiPartRead","description":"``part=konu-atlasi`` or ``konu_atlasi`` (D12): only that object, under ``konu_atlasi``."},"MyPaymentBundleContextRead":{"properties":{"marketplace_bundle_purchase_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Purchase Id"},"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"settled":{"type":"boolean","title":"Settled"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refund_needed":{"type":"boolean","title":"Refund Needed","default":false},"is_enrolled":{"type":"boolean","title":"Is Enrolled","default":false}},"type":"object","required":["marketplace_bundle_purchase_id","marketplace_bundle_id","settled"],"title":"MyPaymentBundleContextRead"},"MyPaymentLessonContextRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"approval_statu":{"type":"string","title":"Approval Statu"},"settled":{"type":"boolean","title":"Settled"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refund_needed":{"type":"boolean","title":"Refund Needed","default":false}},"type":"object","required":["lesson_request_id","lesson_start","lesson_end","teacher_id","course_id","subbranch_id","approval_statu","settled"],"title":"MyPaymentLessonContextRead"},"MyPaymentRefundRead":{"properties":{"refund_id":{"type":"string","format":"uuid","title":"Refund Id"},"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason"},"amount_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount Try"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["refund_id","status","reason","created_at"],"title":"MyPaymentRefundRead"},"MyPaymentRowRead":{"properties":{"intent_id":{"type":"string","format":"uuid","title":"Intent Id"},"purpose":{"$ref":"#/components/schemas/PaymentIntentPurpose"},"status":{"$ref":"#/components/schemas/PaymentIntentStatus"},"provider":{"$ref":"#/components/schemas/PaymentProvider"},"merchant_oid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merchant Oid"},"amount_try":{"type":"string","title":"Amount Try"},"currency":{"type":"string","title":"Currency"},"paid":{"type":"boolean","title":"Paid"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"refund":{"anyOf":[{"$ref":"#/components/schemas/MyPaymentRefundRead"},{"type":"null"}]},"bundle":{"anyOf":[{"$ref":"#/components/schemas/MyPaymentBundleContextRead"},{"type":"null"}]},"lesson":{"anyOf":[{"$ref":"#/components/schemas/MyPaymentLessonContextRead"},{"type":"null"}]}},"type":"object","required":["intent_id","purpose","status","provider","amount_try","currency","paid","created_at","updated_at"],"title":"MyPaymentRowRead","description":"One payment attempt (intent) of the current student — lesson or bundle.\n\nPayTR summary only: the raw provider payloads (init/result JSONB) must\nnever be exposed here."},"MyReferenceMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the (latest) run the response reads."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every exam the response reads."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload (a roster change changes the response)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (ISO 8601 with offset); a cached body keeps its time."},"visibility":{"type":"string","const":"own","title":"Visibility","description":"D9: a student's responses always say ``own``; the reference itself carries no student data.","default":"own"},"taxonomy_available":{"type":"boolean","title":"Taxonomy Available","description":"False when the shared taxonomy could not be read: topics, units and types then come from the materialised questions only.","default":true},"skills_available":{"type":"boolean","title":"Skills Available","description":"False when the skills vocabulary could not be read.","default":true},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag","description":"The ETag of this body (also sent as the response header)."}},"type":"object","title":"MyReferenceMeta","description":"``meta`` of ``GET /me/reference``: P0's (D13 freshness, where the dictionaries came from) with the caller's\nvisibility, always ``own``, and the ETag of the body (also the response header)."},"MyReferenceResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ReferenceRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/MyReferenceMeta"}},"type":"object","required":["code","message"],"title":"MyReferenceResult","description":"S0: the P0 body (``ReferenceRead``) for a student."},"MyRoleRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","created_at","updated_at"],"title":"MyRoleRead"},"MyStratejiPartRead":{"properties":{"strateji":{"$ref":"#/components/schemas/StratejiExamRead"}},"type":"object","required":["strateji"],"title":"MyStratejiPartRead","description":"``part=strateji``: only that object."},"NetCountRead":{"properties":{"count":{"type":"integer","title":"Count","description":"Questions."},"net":{"type":"number","title":"Net","description":"Net they are worth (blank 1.00, wrong 1.25 each)."}},"type":"object","required":["count","net"],"title":"NetCountRead"},"NetDistributionGatesRead":{"properties":{"min_cohort_stats":{"type":"integer","title":"Min Cohort Stats","description":"Intelligence: a quarter's or a level's means need this many students (20)."},"min_cohort_norms":{"type":"integer","title":"Min Cohort Norms","description":"Intelligence: the quantiles and the quarters need this many students (50)."}},"type":"object","required":["min_cohort_stats","min_cohort_norms"],"title":"NetDistributionGatesRead"},"NetDistributionRead":{"properties":{"n":{"type":"integer","title":"N"},"quantiles":{"$ref":"#/components/schemas/NetQuantilesRead","description":"Nearest-lower index for q1, q3, p90; interpolated median (6.14); every value null below `min_cohort_norms` (`gate`)."},"bins":{"items":{"$ref":"#/components/schemas/DistributionBinRead"},"type":"array","title":"Bins"},"quarters":{"items":{"$ref":"#/components/schemas/QuarterRead"},"type":"array","title":"Quarters","description":"Empty below `min_cohort_norms`."},"levels":{"items":{"$ref":"#/components/schemas/NetLevelRead"},"type":"array","title":"Levels"},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"The strictest unmet gate of the scope (`min_cohort_stats` below 20, else `min_cohort_norms` below 50); null when everything is served."},"gates":{"$ref":"#/components/schemas/NetDistributionGatesRead"}},"type":"object","required":["n","quantiles","gates"],"title":"NetDistributionRead","description":"6.14 / P9. Since panel request A6 (2026-10-16): `bins` always; the quantiles are null and `quarters` empty below\n`min_cohort_norms` (50) students; a quarter's or a level's means are null below `min_cohort_stats` (20) of its own."},"NetDistributionResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/NetDistributionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"NetDistributionResult"},"NetLevelRead":{"properties":{"lo":{"type":"number","title":"Lo"},"hi":{"type":"number","title":"Hi"},"n":{"type":"integer","title":"N"},"mean_actual":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Actual","description":"Null below `min_cohort_stats` students in the level (`gate`)."},"mean_potential":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Potential"},"mean_opportunity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Opportunity"},"total_opportunity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Opportunity"},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}]}},"type":"object","required":["lo","hi","n"],"title":"NetLevelRead"},"NetQuantilesRead":{"properties":{"actual":{"$ref":"#/components/schemas/QuantilesRead"},"potential":{"$ref":"#/components/schemas/QuantilesRead"}},"type":"object","required":["actual","potential"],"title":"NetQuantilesRead"},"NetsRead":{"properties":{"derived_net":{"type":"number","title":"Derived Net","description":"Sum of the scored-set subject nets."},"official_net":{"type":"number","title":"Official Net","description":"From the results file."}},"type":"object","required":["derived_net","official_net"],"title":"NetsRead"},"NextLiveLessonRead":{"properties":{"source":{"type":"string","title":"Source"},"id":{"type":"string","format":"uuid","title":"Id"},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id"},"planned_live_lecture_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Planned Live Lecture Id"},"marketplace_bundle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketplace Bundle Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"slot_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Title"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"is_ongoing":{"type":"boolean","title":"Is Ongoing"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"lecture_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lecture Status"},"is_makeup":{"type":"boolean","title":"Is Makeup","default":false},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name"},"teacher_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Avatar Url"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"image_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Thumb Url"},"lecture_no":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lecture No"},"lecture_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lecture Total"},"payment_statu":{"anyOf":[{"$ref":"#/components/schemas/LessonRequestPaymentStatu"},{"type":"null"}]},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name"},"starts_in_hours":{"type":"integer","title":"Starts In Hours","default":0},"starts_in_minutes":{"type":"integer","title":"Starts In Minutes","default":0},"zoom_session_started":{"type":"boolean","title":"Zoom Session Started","default":false}},"type":"object","required":["source","id","starts_at","ends_at","is_ongoing","teacher_id"],"title":"NextLiveLessonRead","description":"One card on the student's mini calendar (next 7 days, nearest first).\n\nZoom join keys — the frontend's \"katıl\" button MUST use:\n  COURSE -> ``course_id``                (POST /course/lesson/join-token)\n  BUNDLE -> ``planned_live_lecture_id``  (POST /bundles/marketplace/planned-live/{id}/join-token)\nOngoing lessons sort first naturally: their ``starts_at`` is in the past."},"NextQuestionRead":{"properties":{"question_id":{"type":"integer","title":"Question Id"},"image_url":{"type":"string","title":"Image Url"},"hardness":{"anyOf":[{"$ref":"#/components/schemas/QbHardness"},{"type":"null"}]},"resource":{"$ref":"#/components/schemas/QbResource"},"exam_scope":{"anyOf":[{"$ref":"#/components/schemas/QbExamScope"},{"type":"null"}]},"topic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Name"},"has_solution_video":{"type":"boolean","title":"Has Solution Video"},"type":{"$ref":"#/components/schemas/TypeRef"},"pool":{"$ref":"#/components/schemas/PoolInfo"}},"type":"object","required":["question_id","image_url","resource","has_solution_video","type","pool"],"title":"NextQuestionRead"},"NoSignalSubjectRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"derived_net":{"type":"number","title":"Derived Net"},"max_net":{"type":"integer","title":"Max Net"}},"type":"object","required":["subject","subject_name","derived_net","max_net"],"title":"NoSignalSubjectRead"},"NotificationChannel":{"type":"string","enum":["email","sms","whatsapp"],"title":"NotificationChannel"},"NotificationChannelPreferencesRead":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CategoryChannelPreferenceRead"},"type":"array","title":"Items","default":[]}},"type":"object","title":"NotificationChannelPreferencesRead"},"NotificationChannelPreferencesUpdate":{"properties":{"channels":{"additionalProperties":{"items":{"$ref":"#/components/schemas/NotificationChannel"},"type":"array"},"type":"object","title":"Channels"}},"additionalProperties":false,"type":"object","required":["channels"],"title":"NotificationChannelPreferencesUpdate"},"NotificationPageRead":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NotificationRead"},"type":"array","title":"Items","default":[]},"unseen":{"$ref":"#/components/schemas/UnseenNotificationTotalRead"}},"type":"object","required":["unseen"],"title":"NotificationPageRead"},"NotificationRead":{"properties":{"notification_id":{"type":"string","format":"uuid","title":"Notification Id"},"event_name":{"type":"string","title":"Event Name"},"notification_type":{"type":"string","title":"Notification Type"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"action_type":{"type":"string","title":"Action Type"},"action_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action Payload"},"actor_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor User Id"},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id"},"seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Seen At"},"clicked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clicked At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["notification_id","event_name","notification_type","title","body","action_type","created_at"],"title":"NotificationRead"},"ObservationRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"series_index":{"type":"integer","title":"Series Index","description":"-1 for the out-of-series observation."},"net":{"type":"number","title":"Net","description":"Official net."},"potential_net":{"type":"number","title":"Potential Net","description":"Backend D1: official net + expected misses + other trap wrongs (no reachable blanks); the basis of the ranks and means."},"served_potential_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Served Potential Net","description":"Official net + Intelligence's `rank_impact.potential_net.value` of the sitting's stored 8.2 object (reachable blanks included): the card's number. Null without a stored object (the exam not materialised since 2026-10-11) or when the figure is gated. A different basis from `potential_net`: shown apart, never summed or compared."},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank"},"cohort_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort Size"},"section_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Section Rank"},"section_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Section Count","description":"Official section rank count; null when the results carry none (never a roster count)."},"campus_name":{"type":"string","title":"Campus Name"},"section_name":{"type":"string","title":"Section Name"},"campus_changed":{"type":"boolean","title":"Campus Changed"},"section_changed":{"type":"boolean","title":"Section Changed"},"previous_observed":{"anyOf":[{"$ref":"#/components/schemas/PreviousObservedRead"},{"type":"null"}]}},"type":"object","required":["exam_id","series_index","net","potential_net","campus_name","section_name","campus_changed","section_changed"],"title":"ObservationRead"},"OpportunitiesRead":{"properties":{"by_subject":{"items":{"$ref":"#/components/schemas/SubjectOpportunitiesRead"},"type":"array","title":"By Subject","description":"Subjects with items: expected desc, reachable desc, trap desc, then canonical order."},"no_signal_subjects":{"items":{"$ref":"#/components/schemas/NoSignalSubjectRead"},"type":"array","title":"No Signal Subjects","description":"Remaining scored subjects, canonical order."},"summary":{"anyOf":[{"$ref":"#/components/schemas/OpportunitySummaryRead"},{"type":"null"}],"description":"Null unless at least 2 subjects and 2 kinds are non-zero."}},"type":"object","title":"OpportunitiesRead"},"OpportunityCountsRead":{"properties":{"expected":{"type":"integer","title":"Expected"},"reachable_blank":{"type":"integer","title":"Reachable Blank"},"trap":{"type":"integer","title":"Trap"}},"type":"object","required":["expected","reachable_blank","trap"],"title":"OpportunityCountsRead"},"OpportunityGroupRead":{"properties":{"count":{"type":"integer","title":"Count"},"net":{"type":"number","title":"Net"},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids"}},"type":"object","required":["count","net","question_ids"],"title":"OpportunityGroupRead"},"OpportunityItemRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"number":{"type":"integer","title":"Number"},"kind":{"type":"string","title":"Kind","description":"`expected` | `reachable_blank` | `trap` (first kind by precedence)."},"status":{"type":"string","title":"Status"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate","description":"Null when fewer than `min_peer_rate_n` peers answered (`peer_gate`; A6) or Intelligence served none."},"peer_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Peer N"},"peer_gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `peer_rate` is null; null when served."},"gain":{"type":"number","title":"Gain","description":"1.00 for a blank, 1.25 for a wrong answer."},"also":{"items":{"type":"string"},"type":"array","title":"Also","description":"The question's other kinds."}},"type":"object","required":["question_id","number","kind","status","gain"],"title":"OpportunityItemRead"},"OpportunityKindCountRead":{"properties":{"kind":{"type":"string","enum":["expected","reachable_blank","trap"],"title":"Kind"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["kind","count"],"title":"OpportunityKindCountRead"},"OpportunitySummaryRead":{"properties":{"total":{"type":"integer","title":"Total"},"by_kind":{"items":{"$ref":"#/components/schemas/KindCountRead"},"type":"array","title":"By Kind","description":"Count desc (kind order on ties)."}},"type":"object","required":["total"],"title":"OpportunitySummaryRead"},"OpsFailureRead":{"properties":{"kind":{"type":"string","title":"Kind"},"code":{"type":"string","title":"Code"},"n":{"type":"integer","title":"N"}},"type":"object","required":["kind","code","n"],"title":"OpsFailureRead"},"OpsJobDecisionRead":{"properties":{"job_ids":{"items":{"type":"string"},"type":"array","title":"Job Ids"},"state":{"type":"string","title":"State","description":"queued after an approval, failed after a rejection."}},"type":"object","required":["job_ids","state"],"title":"OpsJobDecisionRead","description":"A held job approved or rejected, with every job of its group."},"OpsJobDecisionResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/OpsJobDecisionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"OpsJobDecisionResult"},"OpsOutboxRead":{"properties":{"undelivered":{"type":"integer","title":"Undelivered"},"oldest_undelivered_age_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Oldest Undelivered Age S"},"dead_24h":{"type":"integer","title":"Dead 24H"}},"type":"object","required":["undelivered","dead_24h"],"title":"OpsOutboxRead","description":"Intelligence's webhook events. An event without a subscribed endpoint counts as delivered, so this moves only for an institution that subscribed; the Backend itself follows jobs by polling."},"OpsParkedJobRead":{"properties":{"job_id":{"type":"string","title":"Job Id"},"code":{"type":"string","title":"Code","description":"quota (the provider's credit ran out), budget (the day's ceiling) or approval_required (a person decides)."},"institution_slug":{"type":"string","title":"Institution Slug"},"institution_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Institution Name"},"exam_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Exam Id"},"exam_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Name","description":"Null for a job outside an exam (a relabel)."},"n_questions":{"type":"integer","title":"N Questions"},"n_pending":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Pending"},"estimated_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Usd","description":"The estimate of a job that waits for an approval."},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group","description":"One taxonomy import: approved or rejected as one."},"waiting_since":{"type":"string","format":"date-time","title":"Waiting Since"},"next_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Attempt At","description":"Null on a job that waits for a person."}},"type":"object","required":["job_id","code","institution_slug","n_questions","waiting_since"],"title":"OpsParkedJobRead","description":"A labeling job that waits."},"OpsQueueRead":{"properties":{"role":{"type":"string","title":"Role","description":"analysis, labeling or bank."},"claimable":{"type":"integer","title":"Claimable","description":"Jobs that could start now."},"blocked":{"type":"integer","title":"Blocked","description":"Jobs waiting for a job they depend on."},"waiting":{"type":"integer","title":"Waiting","description":"Jobs not due yet: a retry's backoff, or a wait for the quota, the budget or a person."},"running":{"type":"integer","title":"Running"},"oldest_claimable_age_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Oldest Claimable Age S","description":"How long the oldest claimable job has been able to start: the number that says the service is falling behind."}},"type":"object","required":["role","claimable","blocked","waiting","running"],"title":"OpsQueueRead","description":"One worker role's queue."},"OpsSummaryRead":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"queues":{"items":{"$ref":"#/components/schemas/OpsQueueRead"},"type":"array","title":"Queues"},"failed_24h":{"items":{"$ref":"#/components/schemas/OpsFailureRead"},"type":"array","title":"Failed 24H","description":"The last day's failed jobs by kind and code."},"outbox":{"$ref":"#/components/schemas/OpsOutboxRead"},"spend_today_usd":{"type":"number","title":"Spend Today Usd","description":"Model spend of the Istanbul day across every institution."},"daily_budget_usd":{"type":"number","title":"Daily Budget Usd","description":"The ceiling; 0 means none."},"parked":{"items":{"$ref":"#/components/schemas/OpsParkedJobRead"},"type":"array","title":"Parked"}},"type":"object","required":["generated_at","queues","failed_24h","outbox","spend_today_usd","daily_budget_usd","parked"],"title":"OpsSummaryRead","description":"``GET /intelligence/admin/ops/summary``: Intelligence across every institution; kinds, codes and counts."},"OpsSummaryResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/OpsSummaryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"OpsSummaryResult"},"OptionSpec":{"properties":{"type":{"type":"string","enum":["text","bool","int","choices"],"title":"Type"},"label":{"type":"string","title":"Label"},"default":{"title":"Default"},"minimum":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimum"},"maximum":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maximum"},"choices":{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Choices","default":[]}},"type":"object","required":["type","label"],"title":"OptionSpec"},"OrgContextRead":{"properties":{"source_exam_id":{"type":"string","format":"uuid","title":"Source Exam Id"},"current_exam_id":{"type":"string","format":"uuid","title":"Current Exam Id"},"scope":{"$ref":"#/components/schemas/ScopeNamesRead","description":"Names as of the source exam."},"routable":{"$ref":"#/components/schemas/ScopeNamesRead","description":"Names as of the current (latest) exam."},"continuity":{"type":"string","title":"Continuity","description":"`current` | `historical`."},"fallback":{"type":"string","title":"Fallback","description":"`none` | `section_to_campus` | `campus_to_institution`."}},"type":"object","required":["source_exam_id","current_exam_id","scope","routable","continuity","fallback"],"title":"OrgContextRead","description":"6.4: where a scope of the source exam was, and which current page can show it."},"OrgContextResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/OrgContextRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"OrgContextResult"},"OutcomeInsert":{"properties":{"parent_subunit_id":{"type":"string","format":"uuid","title":"Parent Subunit Id"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"order_index":{"type":"integer","title":"Order Index","default":1},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["parent_subunit_id","code"],"title":"OutcomeInsert"},"OutcomeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subunit_id":{"type":"string","format":"uuid","title":"Subunit Id","description":"FK to Subunit (source model attribute)."},"branch":{"$ref":"#/components/schemas/Branch"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"order_index":{"type":"integer","title":"Order Index"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","subunit_id","branch","code","order_index","is_active"],"title":"OutcomeRead"},"OutcomeTodosView":{"properties":{"outcome_id":{"type":"string","format":"uuid","title":"Outcome Id"},"outcome_name":{"type":"string","title":"Outcome Name"},"outcome_code":{"type":"string","title":"Outcome Code"},"todos":{"items":{"$ref":"#/components/schemas/SchemeTodoRead"},"type":"array","title":"Todos"}},"type":"object","required":["outcome_id","outcome_name","outcome_code","todos"],"title":"OutcomeTodosView"},"OutcomeUpdate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","required":["id"],"title":"OutcomeUpdate"},"OverviewChronologyRead":{"properties":{"confidence":{"type":"string","enum":["dated","explicit-order","unresolved"],"title":"Confidence","description":"5.6; every exam is dated (D4), so ``dated``."},"shared_date_groups":{"items":{"items":{"type":"string"},"type":"array"},"type":"array","title":"Shared Date Groups","description":"Exam ids with the same date (their relative order is by exam id; transitions across them are allowed, D4)."}},"type":"object","required":["confidence"],"title":"OverviewChronologyRead"},"OverviewExamRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"name":{"type":"string","title":"Name"},"administered_on":{"type":"string","format":"date","title":"Administered On"},"confidence":{"type":"string","title":"Confidence","description":"`dated` | `explicit-order` | `unresolved` (\"selected\", not \"latest\"; 5.6)."}},"type":"object","required":["exam_id","name","administered_on","confidence"],"title":"OverviewExamRead"},"OverviewGatesRead":{"properties":{"min_cell":{"type":"integer","title":"Min Cell"},"full_tier_n":{"type":"integer","title":"Full Tier N"},"min_cohort_stats":{"type":"integer","title":"Min Cohort Stats","description":"Intelligence: a mean needs this many students (20)."},"min_cohort_norms":{"type":"integer","title":"Min Cohort Norms","description":"Intelligence: a distribution, tercile or position needs this many (50)."},"min_peer_rate_n":{"type":"integer","title":"Min Peer Rate N","description":"Intelligence: a peer rate needs this many answers (10)."}},"type":"object","required":["min_cell","full_tier_n","min_cohort_stats","min_cohort_norms","min_peer_rate_n"],"title":"OverviewGatesRead"},"OverviewOzetRead":{"properties":{"state":{"type":"string","enum":["ready","gated","none"],"title":"State","description":"``ready``: the özet is there (S9 serves it); ``gated``: Intelligence's gated null (a deneme outside its scope, a cohort below its gate, a failed build; ``gate`` names it), no özet to open; ``none``: the sitting was materialised before the özet existed."},"gate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate","description":"The gate's name when ``gated``: ``ozet_scope`` (a deneme outside the TYT, the AYT and the konu taramaları), ``ozet_tarama_grade`` and ``ozet_tarama_questions`` (a tarama that is not a YKS one: prepared for a grade below 11, or under 60 questions; D50), ``ozet_no_scored_test`` (an AYT alan cohort that takes none of its tests), ``ozet_failed``, a cohort or field gate (``min_cohort_norms`` on an özet stored before Intelligence 2026.11-e)."},"screens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Screens","description":"The özet's screen count when ``ready`` (the opening plus its slides)."},"view":{"anyOf":[{"$ref":"#/components/schemas/OzetViewRead"},{"type":"null"}],"description":"The student's own progress through it (S11); null when never opened: the entry shows the özet as new."}},"type":"object","required":["state"],"title":"OverviewOzetRead","description":"D45: the deneme özeti of this sitting as the Denemeler page needs it for its entry, without the object itself."},"OverviewPeerRead":{"properties":{"previous_tercile":{"type":"integer","title":"Previous Tercile","description":"The caller's tercile in the previous exam (0 bottom, 2 top)."},"n":{"type":"integer","title":"N","description":"Matched peers (the caller excluded)."},"reliable":{"type":"boolean","title":"Reliable","description":"``n >= min_peer_n``; always true when the peer object is present."},"previous_median_net":{"type":"number","title":"Previous Median Net","description":"Median official net of the matched peers in the previous exam."},"current_median_net":{"type":"number","title":"Current Median Net","description":"Median official net of the same peers in this exam."},"delta_net":{"type":"number","title":"Delta Net","description":"``current_median_net - previous_median_net``; not rounded, never chained across transitions."},"delta_net_ci90":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Delta Net Ci90","description":"Always null (D2: no confidence interval, no CI gate)."}},"type":"object","required":["previous_tercile","n","reliable","previous_median_net","current_median_net","delta_net"],"title":"OverviewPeerRead","description":"6.3, D2: the previous exam's tercile peers of the caller, matched by identity, medians over the same people."},"OverviewPendingExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On"},"analysis_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis State","description":"Why it is not plotted: the exam's status (``analyzing``, ``failed``, ``rejected`` ...), ``materializing`` when Intelligence finished but our materialisation is not ready yet (D14), or ``not_in_analysis`` when the run holds no analysis of the caller."}},"type":"object","required":["exam_id","exam_name"],"title":"OverviewPendingExamRead"},"OverviewPotentialRankRead":{"properties":{"rank":{"type":"integer","title":"Rank","description":"Competition rank at that net (1 = top): the students above it, plus one; the middle of ``[lo, hi]`` when no student holds that net."},"exact":{"type":"boolean","title":"Exact","description":"True when a student of the ranking cohort holds exactly that net."},"lo":{"type":"integer","title":"Lo","description":"The best rank of the bracket; ``rank`` when exact."},"hi":{"type":"integer","title":"Hi","description":"The worst rank of the bracket; ``rank`` when exact."}},"type":"object","required":["rank","exact","lo","hi"],"title":"OverviewPotentialRankRead","description":"S1 ``exams[].potential_rank`` (D38, 2026-10-27): a rank of the run's full-cohort table (5.5), found as S2's\n``rank_impact.steps[]`` find theirs."},"OverviewRead":{"properties":{"exam":{"$ref":"#/components/schemas/OverviewExamRead"},"scope":{"$ref":"#/components/schemas/ScopeRead"},"insight":{"$ref":"#/components/schemas/InsightRead"},"attention":{"$ref":"#/components/schemas/AttentionRead"},"explorer":{"$ref":"#/components/schemas/ExplorerRead"},"gates":{"$ref":"#/components/schemas/OverviewGatesRead"}},"type":"object","required":["exam","scope","insight","attention","explorer","gates"],"title":"OverviewRead"},"OverviewResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/OverviewRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"OverviewResult"},"OverviewScopeCountRead":{"properties":{"scope":{"type":"string","enum":["TYT","AYT"],"title":"Scope"},"exam_count":{"type":"integer","title":"Exam Count","description":"Analysed sittings of the caller in this scope; drives the tabs and the empty state of an empty scope."}},"type":"object","required":["scope","exam_count"],"title":"OverviewScopeCountRead"},"OverviewTransitionRead":{"properties":{"previous_exam_id":{"type":"string","title":"Previous Exam Id"},"student":{"$ref":"#/components/schemas/OverviewTransitionStudentRead"},"peer":{"anyOf":[{"$ref":"#/components/schemas/OverviewPeerRead"},{"type":"null"}],"description":"Gated<object>: null with ``peer_gate`` below ``min_peer_n`` matched peers, or without a previous tercile. Deprecated: the Backend's own derivation of what Intelligence serves; read ``transition_in.served`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"peer_gate":{"anyOf":[{"$ref":"#/components/schemas/ValueGateRead"},{"type":"null"}],"description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``transition_in.served.gate`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"difference_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Difference Net","description":"``student.delta_net - peer.delta_net``; null with no peer. ``|difference| < 0.125`` reads 'aynı ölçüde' on the client. Deprecated: the Backend's own derivation of what Intelligence serves; read ``transition_in.served`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"served":{"anyOf":[{"$ref":"#/components/schemas/AnalysisPeerTransitionRead"},{"type":"null"}],"title":"Served","description":"Intelligence's 8.2 ``peer_transition`` of this sitting as stored (``raw_denemeler``), untouched and typed (``AnalysisPeerTransitionRead``, 2026-10-27): ``previous_exam_id``, ``current_exam_id``, ``previous_tercile``, ``previous_median_net``, ``current_median_net``, ``delta_net``, ``delta_net_ci90``, ``n``, ``reliable``, ``gate`` (``min_peer_n`` 30 matched peers, ``delta_net_ci90_halfwidth_max`` 2.5 net), ``student {previous_net, current_net}``, ``method``. Null when the sitting was materialised before the column existed, Intelligence served none, or the block does not fit the type. Never a progress line (decision 48)."}},"type":"object","required":["previous_exam_id","student"],"title":"OverviewTransitionRead","description":"``transition_in`` (6.3, 6.4): the caller's own move, the Backend's rolling peer (deprecated since 2026-10-16, the\n2026-10-01 handoff's R3) and Intelligence's own ``peer_transition`` of the sitting as served (``served``)."},"OverviewTransitionStudentRead":{"properties":{"previous_net":{"type":"number","title":"Previous Net","description":"The caller's official net in the previous exam."},"current_net":{"type":"number","title":"Current Net","description":"The caller's official net in this exam."},"delta_net":{"type":"number","title":"Delta Net","description":"``current_net - previous_net`` (6.4)."}},"type":"object","required":["previous_net","current_net","delta_net"],"title":"OverviewTransitionStudentRead"},"OzetHeroRead":{"properties":{"value":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Value","description":"The number; with ``format`` ``net`` a quarter-step net (72,75), else a whole number."},"format":{"type":"string","title":"Format","description":"``int`` | ``net`` | ``frac`` | ``ord``."},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit","description":"The word after the number (``net``, ``soru``, ``kişi``, ``deneme`` ...), Turkish."},"prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefix","description":"What is written before the number: ``%``, ``+`` or ``İlk ``."},"of":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Of","description":"With ``format`` ``frac``: the whole (``value`` of ``of``)."}},"additionalProperties":true,"type":"object","required":["value","format"],"title":"OzetHeroRead","description":"The big number of a card: ``value`` with ``format`` ``int``, ``net`` (a quarter-step net), ``frac`` (``value`` of\n``of``) or ``ord`` (an ordinal); ``prefix`` (``%``, ``+``, ``İlk ``) is written before it and ``unit`` after it."},"OzetOpeningRead":{"properties":{"net":{"type":"number","title":"Net"},"rank":{"type":"integer","title":"Rank"},"n":{"type":"integer","title":"N"},"max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max","description":"The end of the net bar: the deneme's scored questions (120 on a TYT, 80 on a 12th-grade konu tarama or an AYT alan's two tests, 70 on an 11th-grade tarama). Since Intelligence 2026.11-g (D50); an özet stored before it has none: read 120."},"state":{"type":"string","title":"State","description":"``rekor`` | ``ustunde`` | ``cizgide`` | ``altinda`` | ``ilk``. On a konu tarama the state follows the student's mean percentile of their last three taramalar (``rekor`` 3 points above the best earlier one, ``ustunde`` and ``altinda`` 5 points from the line), since taramalar get harder over the term."},"sentence":{"type":"string","title":"Sentence","description":"The line under the number, Turkish; empty on ``altinda`` and ``ilk``."},"small":{"type":"boolean","title":"Small","description":"The lower half: the rank is shown small."},"pre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre","description":"On ``altinda``: the context line shown before the number when the cohort's mean fell (never on a konu tarama)."},"line":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Line","description":"The student's line on the bar, in nets: the mean net of their last three earlier denemeler; on a konu tarama the net their mean percentile of the last three taramalar falls on this tarama, so the tick is reached exactly when their rank reaches their line."},"confetti":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confetti"},"potential":{"anyOf":[{"$ref":"#/components/schemas/OzetPotentialRead"},{"type":"null"}]},"gate":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Gate","description":"Without ``potential``: the two lines shown instead, Turkish."},"rank_above":{"items":{"type":"integer"},"type":"array","title":"Rank Above"}},"additionalProperties":true,"type":"object","required":["net","rank","n","state","sentence","small","rank_above"],"title":"OzetOpeningRead","description":"The opening screen: net and rank in the cohort of ``n``, the end of the net bar (``max``), the state the sentence\nfollows, the student's own line, the potential net or the two lines that say why there is none, and the rank of\nevery quarter net up to the bar's end (``rank_above[j]``: students above ``j / 4`` net). On an AYT the cohort is the\nstudent's alan (one özet per alan cohort)."},"OzetPotentialRead":{"properties":{"net":{"type":"number","title":"Net"},"rank":{"type":"integer","title":"Rank"},"k":{"type":"integer","title":"K"}},"additionalProperties":true,"type":"object","required":["net","rank","k"],"title":"OzetPotentialRead","description":"The opening's potential net: the day's net plus the 8.2 ``potential_net`` value (at most the opening's ``max``, the\ndeneme's scored questions: 120 on a TYT), its rank in the cohort and how many missed questions make it."},"OzetQuestionRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"question_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Id"}},"additionalProperties":true,"type":"object","required":["exam_id"],"title":"OzetQuestionRead","description":"A question the closing opens: the exam it belongs to (the Backend's exam id) and its question id there."},"OzetRowRead":{"properties":{"kind":{"type":"string","title":"Kind"},"sentence":{"type":"string","title":"Sentence"},"basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basis"},"visual":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Visual"},"place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place"},"fallback":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fallback"}},"additionalProperties":true,"type":"object","required":["kind","sentence"],"title":"OzetRowRead","description":"A row of Bir dahakine: the place, its sentence, a line only where the visual does not already show the numbers,\nand the visual's data (``mode`` ``cmp``, ``next`` or ``blank``)."},"OzetSlideRead":{"properties":{"kind":{"type":"string","title":"Kind"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"over":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Over"},"hero":{"anyOf":[{"$ref":"#/components/schemas/OzetHeroRead"},{"type":"null"}]},"sentence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentence"},"basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basis"},"visual":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Visual"},"confetti":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Confetti"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight","description":"Why the card was chosen: its importance times its doluluk; never a score of the student."},"fill":{"anyOf":[{"type":"number"},{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Fill","description":"The card's doluluk (0 to 1; a list on Bir dahakine, one per row)."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"rows":{"anyOf":[{"items":{"$ref":"#/components/schemas/OzetRowRead"},"type":"array"},{"type":"null"}],"title":"Rows"},"no_gap":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"No Gap"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"action_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Label"},"questions":{"anyOf":[{"items":{"$ref":"#/components/schemas/OzetQuestionRead"},"type":"array"},{"type":"null"}],"title":"Questions"}},"additionalProperties":true,"type":"object","required":["kind"],"title":"OzetSlideRead","description":"One screen after the opening. ``kind`` ``gurur`` (a pride; ``key`` its number in the pool, ``K1`` to ``K10`` the\neasy ones, ``N1`` to ``N5`` the five of an AYT or a konu tarama since Intelligence 2026.11-g), ``bilgi`` (an info\ncard, ``İ1`` to ``İ7``), ``yonlendirme`` (``Y1`` to ``Y5``, the bottom third only),\n``dikkat`` (Bir dahakine: ``title`` and ``rows``) or ``kapanis`` (the closing: ``action`` and ``questions``).\n``visual`` carries the data of the card's visual: ``t`` names the renderer, ``mode`` its variant, ``dates`` the\nshort dates of the denemeler a series spans."},"OzetViewEventWrite":{"properties":{"event":{"type":"string","enum":["opened","screen","completed"],"title":"Event","description":"``opened``: the story was opened (once per open); ``screen``: the student reached screen ``screen``; ``completed``: the student reached the last screen."},"screen":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Screen","description":"The screen reached, 1-based (the opening is 1); required with ``screen``, optional otherwise."}},"additionalProperties":false,"type":"object","required":["event"],"title":"OzetViewEventWrite","description":"S11's body (D45): one event of the student's own pass through the özet."},"OzetViewRead":{"properties":{"first_opened_at":{"type":"string","format":"date-time","title":"First Opened At","description":"The first open (S11 ``opened``)."},"last_opened_at":{"type":"string","format":"date-time","title":"Last Opened At","description":"The latest open."},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When the student first reached the last screen; null until then."},"furthest_screen":{"type":"integer","minimum":0.0,"title":"Furthest Screen","description":"The furthest screen reached, 1-based (the opening is screen 1)."},"screens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Screens","description":"The özet's screen count at the last event (the opening plus its slides)."},"open_count":{"type":"integer","minimum":1.0,"title":"Open Count","description":"How many times the student opened it (one per S11 ``opened``)."}},"type":"object","required":["first_opened_at","last_opened_at","furthest_screen","open_count"],"title":"OzetViewRead","description":"D45: how far the student went through this deneme özeti, recorded by their own S11. ``furthest_screen`` is\n1-based (the opening is 1) and never goes down; ``completed_at`` is set the first time the last screen is reached;\n``screens`` is the özet's screen count at the last event. In a body, ``null`` means the student never opened it."},"PanelQuestionRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"number":{"type":"integer","title":"Number"},"position":{"type":"integer","title":"Position"},"labeled":{"type":"boolean","title":"Labeled"},"status":{"type":"string","title":"Status"},"given":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given"},"correct_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correct Answer"},"peer_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Rate","description":"Null when fewer than `min_peer_rate_n` peers answered (`peer_gate`; A6) or Intelligence served none."},"peer_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Peer N"},"peer_gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `peer_rate` is null; null when served."},"overall_correct_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Correct Rate"},"overall_blank_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Blank Rate"},"overall_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overall N"},"wrong_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wrong Count","description":"The question's total wrong answers (it also drives the trap gate)."},"common_wrong_choice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Common Wrong Choice"},"common_wrong_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Common Wrong Share"},"flags":{"$ref":"#/components/schemas/QuestionFlagsRead"},"topic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Id"},"topic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Name"},"question_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Type Id"},"question_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Type Name"},"skill_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Skill Ids"},"skill_names":{"anyOf":[{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Skill Names"},"misconceptions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Misconceptions"},"strategies":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Strategies"},"distractor_style":{"anyOf":[{"$ref":"#/components/schemas/DistractorStyleRefRead"},{"type":"null"}]},"cognitive_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cognitive Level"},"text_load":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Load"},"calc_load":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calc Load"},"visual_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visual Role"},"solution_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Solution Steps"},"has_shortcut":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Shortcut"},"rasch_b":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rasch B"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Signed image URL (D11: null until images are hosted)."}},"type":"object","required":["question_id","subject","subject_name","number","position","labeled","status","flags"],"title":"PanelQuestionRead","description":"One scored question of the selected exam (booklet order); label fields null when `labeled = false`."},"PanelStudentRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"entry_id":{"type":"string","format":"uuid","title":"Entry Id"},"full_name":{"type":"string","title":"Full Name"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study"},"campus_id":{"type":"string","title":"Campus Id"},"campus_name":{"type":"string","title":"Campus Name"},"section_id":{"type":"string","title":"Section Id"},"section_name":{"type":"string","title":"Section Name"},"identity_resolved":{"type":"boolean","title":"Identity Resolved","description":"False: no identity, history has only the selected exam."}},"type":"object","required":["student_id","entry_id","full_name","campus_id","campus_name","section_id","section_name","identity_resolved"],"title":"PanelStudentRead"},"ParentAccountSessionRead":{"properties":{"role":{"type":"string","const":"parent","title":"Role","default":"parent"},"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"expiration":{"type":"integer","exclusiveMinimum":0.0,"title":"Expiration"},"parent":{"$ref":"#/components/schemas/ParentInfoRead"},"students":{"items":{"$ref":"#/components/schemas/ParentStudentRead"},"type":"array","title":"Students"},"parent_token":{"type":"string","title":"Parent Token"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["access_token","refresh_token","expiration","parent","students","parent_token","expires_in"],"title":"ParentAccountSessionRead","description":"``POST /session`` for a PARENT's hand-off with ``SCHOOL_LAUNCH__PARENT_ACCOUNTS_ENABLED`` on: the parent's\nPARENT account and its ordinary token pair (kept with ``/authenticate/refresh``, ended with ``/logout``, like a\nstudent's), the parent and the children. ``parent_token`` / ``expires_in`` are the transitional ``pst_`` session\nfor the old parent screen; the new panel ignores them (they go away with the contract step)."},"ParentChildLinkRead":{"properties":{"parent_id":{"type":"string","format":"uuid","title":"Parent Id"},"student_ref":{"type":"string","format":"uuid","title":"Student Ref"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"removed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Removed At"},"blocked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Blocked At"}},"type":"object","required":["parent_id","student_ref","created_at"],"title":"ParentChildLinkRead","description":"One parent -> child link as the operator sees it after ``unlink`` / ``unblock``."},"ParentCodeSentRead":{"properties":{"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"resend_after_seconds":{"type":"integer","title":"Resend After Seconds"},"attempts_remaining":{"type":"integer","title":"Attempts Remaining"},"delivery":{"type":"string","enum":["sms","mock"],"title":"Delivery"},"mock":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mock"}},"type":"object","required":["expires_at","resend_after_seconds","attempts_remaining","delivery"],"title":"ParentCodeSentRead"},"ParentComparisonRead":{"properties":{"level":{"type":"string","title":"Level","description":"`institution` (for a campus) or `campus` (for a section)."},"name":{"type":"string","title":"Name","description":"`Kurum` or `Kampüs`."},"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net","description":"Parent mean over **all** its students; null below `min_cohort_stats` parent students (`gate`)."},"delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta","description":"`scope mean - parent mean`; null when either mean is withheld."},"above_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Above Count","description":"Scoped students with net strictly above the parent mean; null when either mean is withheld."},"above_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Above Share","description":"`above_count / n`."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `mean_net` (the parent's own count) or `delta` / `above_*` (the scope's count) are null; null when served."}},"type":"object","required":["level","name"],"title":"ParentComparisonRead"},"ParentInfoRead":{"properties":{"given_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given Name"},"family_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Name"},"parent_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Type"}},"type":"object","title":"ParentInfoRead"},"ParentInviteCreatedRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"token":{"type":"string","title":"Token"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["id","token","expires_at"],"title":"ParentInviteCreatedRead"},"ParentInvitePreviewRead":{"properties":{"student_display_name":{"type":"string","title":"Student Display Name"},"institution_id":{"type":"string","format":"uuid","title":"Institution Id"},"institution_name":{"type":"string","title":"Institution Name"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["student_display_name","institution_id","institution_name","expires_at"],"title":"ParentInvitePreviewRead"},"ParentLinkSessionRead":{"properties":{"role":{"type":"string","const":"parent","title":"Role","default":"parent"},"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"expiration":{"type":"integer","exclusiveMinimum":0.0,"title":"Expiration"},"parent":{"$ref":"#/components/schemas/ParentInfoRead"},"students":{"items":{"$ref":"#/components/schemas/ParentStudentRead"},"type":"array","title":"Students"},"student_ref":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Student Ref"}},"type":"object","required":["access_token","refresh_token","expiration","parent","students"],"title":"ParentLinkSessionRead","description":"The parent's PARENT account and its ordinary token pair (kept with ``/authenticate/refresh``, ended with\n``/authenticate/logout``), the parent and the children: the shape of the school's button's parent body."},"ParentLoginCodeRead":{"properties":{"resend_after_seconds":{"type":"integer","title":"Resend After Seconds"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds"},"mock":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mock"}},"type":"object","required":["resend_after_seconds","expires_in_seconds"],"title":"ParentLoginCodeRead","description":"The same answer whether or not the number belongs to a parent account (no account oracle)."},"ParentLoginCodeRequest":{"properties":{"phone_number":{"type":"string","maxLength":40,"minLength":1,"title":"Phone Number","description":"The number the parent signed up with"}},"type":"object","required":["phone_number"],"title":"ParentLoginCodeRequest"},"ParentLoginRequest":{"properties":{"phone_number":{"type":"string","maxLength":40,"minLength":1,"title":"Phone Number"},"code":{"type":"string","pattern":"^\\d{6}$","title":"Code"},"device_token":{"type":"string","maxLength":512,"minLength":8,"title":"Device Token","description":"The client-generated per-device string the app also sends on /authenticate/refresh and /logout"}},"type":"object","required":["phone_number","code","device_token"],"title":"ParentLoginRequest"},"ParentMeRead":{"properties":{"role":{"type":"string","const":"parent","title":"Role","default":"parent"},"partner":{"type":"string","title":"Partner"},"parent":{"$ref":"#/components/schemas/ParentInfoRead"},"students":{"items":{"$ref":"#/components/schemas/ParentStudentRead"},"type":"array","title":"Students"}},"type":"object","required":["partner","parent","students"],"title":"ParentMeRead"},"ParentPhoneOtpRequest":{"properties":{"parent_phone":{"type":"string","maxLength":32,"minLength":1,"title":"Parent Phone","description":"Parent/guardian phone (TR mobile). Any common formatting is accepted."}},"additionalProperties":false,"type":"object","required":["parent_phone"],"title":"ParentPhoneOtpRequest","description":"Body of ``POST /course_profile/student/parent-phone/request``."},"ParentPhoneOtpRequestRead":{"properties":{"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked","description":"The target number, masked (`+90 532 ··· 4567`)."},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"When the minted code stops being accepted; null when nothing was minted."},"resend_after_seconds":{"type":"integer","minimum":0.0,"title":"Resend After Seconds","description":"Seconds until another code may be requested.","default":0},"attempts_remaining":{"type":"integer","minimum":0.0,"title":"Attempts Remaining","description":"Wrong guesses still allowed on the minted code.","default":0},"already_verified":{"type":"boolean","title":"Already Verified","description":"True when this exact number is already the student's verified parent phone; nothing was sent.","default":false}},"additionalProperties":false,"type":"object","title":"ParentPhoneOtpRequestRead","description":"Answer to a successful ``POST .../parent-phone/request``.\n\nField names are snake_case (unlike ``StudentRead``'s PascalCase aliases):\nthis is a new, self-contained contract."},"ParentPhoneOtpVerifyRequest":{"properties":{"code":{"type":"string","pattern":"^\\d{6}$","title":"Code","description":"The 6-digit code the parent received by SMS."}},"additionalProperties":false,"type":"object","required":["code"],"title":"ParentPhoneOtpVerifyRequest","description":"Body of ``POST /course_profile/student/parent-phone/verify``."},"ParentPhoneStatusRead":{"properties":{"verified_phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified Phone Masked"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"},"pending_phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Phone Masked","description":"Masked target of the active, unexpired code (null when none)."},"pending_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pending Expires At"},"resend_after_seconds":{"type":"integer","minimum":0.0,"title":"Resend After Seconds","default":0},"attempts_remaining":{"type":"integer","minimum":0.0,"title":"Attempts Remaining","description":"Wrong guesses still allowed on the pending code (0 when none).","default":0},"sends_remaining_today":{"type":"integer","minimum":0.0,"title":"Sends Remaining Today","description":"Codes this student may still request today.","default":0}},"additionalProperties":false,"type":"object","title":"ParentPhoneStatusRead","description":"Answer to ``GET .../parent-phone/status`` — what the FE needs to resume the screen."},"ParentRelation":{"type":"string","enum":["mother","father","other"],"title":"ParentRelation","description":"What the parent said they are to the child (one tap on the form)."},"ParentSessionRead":{"properties":{"role":{"type":"string","const":"parent","title":"Role","default":"parent"},"parent_token":{"type":"string","title":"Parent Token"},"expires_in":{"type":"integer","title":"Expires In"},"parent":{"$ref":"#/components/schemas/ParentInfoRead"},"students":{"items":{"$ref":"#/components/schemas/ParentStudentRead"},"type":"array","title":"Students"}},"type":"object","required":["parent_token","expires_in","parent","students"],"title":"ParentSessionRead","description":"What ``POST /session`` answers a PARENT's hand-off with while ``SCHOOL_LAUNCH__PARENT_ACCOUNTS_ENABLED`` is off:\nno access / refresh pair, an opaque bearer for ``/parent/*`` instead. The application tells the bodies apart by\n``role`` (and a parent's two bodies by ``access_token``)."},"ParentStudentRead":{"properties":{"ref":{"type":"string","format":"uuid","title":"Ref"},"institution_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Institution Id"},"external_student_id":{"type":"string","title":"External Student Id"},"given_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given Name"},"family_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Name"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"section_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Id"},"campus_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Id"},"relation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relation"},"can_leave":{"type":"boolean","title":"Can Leave","default":false}},"type":"object","required":["ref","external_student_id"],"title":"ParentStudentRead","description":"One child the partner listed under the parent. ``ref`` is what the parent routes take: ``/parent/students/{ref}/*``\nwith the ``pst_`` token, ``?student_ref={ref}`` on the student panel's routes with a parent account's token."},"PasswordChangeCommit":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"phone_number":{"type":"string","title":"Phone Number"},"user_type":{"$ref":"#/components/schemas/UserType"},"change_token":{"type":"string","title":"Change Token"},"new_password":{"type":"string","minLength":6,"title":"New Password"}},"type":"object","required":["phone_number","user_type","change_token","new_password"],"title":"PasswordChangeCommit"},"PatchTeacherLabelsRequest":{"properties":{"added":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Added"},"removed":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Removed"}},"type":"object","title":"PatchTeacherLabelsRequest","description":"PATCH /teacher_profile/labels"},"PatchTeacherLabelsResult":{"properties":{"Added":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Added"},"Removed":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Removed"},"Missing_Label_Fields":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Missing Label Fields"},"Missing_Mappings":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Missing Mappings"},"Would_Be_Count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Would Be Count"},"Max_Allowed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Allowed"}},"type":"object","title":"PatchTeacherLabelsResult","description":"For PATCH /teacher_profile/labels"},"PaymentIntentPurpose":{"type":"string","enum":["CREDIT_PACKAGE","LESSON_REQUEST","BUNDLE_PURCHASE"],"title":"PaymentIntentPurpose","description":"What the intent pays for: wallet credits, a tutoring lesson, or a bundle."},"PaymentIntentStatus":{"type":"string","enum":["CREATED","PENDING","SUCCEEDED","FAILED","CANCELED"],"title":"PaymentIntentStatus"},"PaymentProvider":{"type":"string","enum":["MOCK","IYZICO","PAYTR","PARAM"],"title":"PaymentProvider"},"PayoutAccountRead":{"properties":{"is_set":{"type":"boolean","title":"Is Set"},"iban":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iban"},"account_holder_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Holder Name"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["is_set"],"title":"PayoutAccountRead"},"PayoutAccountUpdate":{"properties":{"iban":{"type":"string","maxLength":34,"minLength":26,"title":"Iban","description":"TR IBAN; spaces/case tolerated, stored normalized"},"account_holder_name":{"type":"string","maxLength":140,"minLength":3,"title":"Account Holder Name","description":"Bank account holder name"}},"type":"object","required":["iban","account_holder_name"],"title":"PayoutAccountUpdate"},"PayoutEligibilityOpenRequest":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","created_at"],"title":"PayoutEligibilityOpenRequest","description":"The request currently blocking a new one (REQUESTED only)."},"PayoutEligibilityRead":{"properties":{"can_request":{"type":"boolean","title":"Can Request"},"blocker":{"anyOf":[{"type":"string","enum":["ACCOUNT_MISSING","OPEN_REQUEST","NOTHING_TO_CLAIM"]},{"type":"null"}],"title":"Blocker"},"claimable_total":{"type":"string","title":"Claimable Total"},"claimable_count":{"type":"integer","title":"Claimable Count"},"open_request":{"anyOf":[{"$ref":"#/components/schemas/PayoutEligibilityOpenRequest"},{"type":"null"}]},"excluded":{"items":{"$ref":"#/components/schemas/PayoutExclusionRead"},"type":"array","title":"Excluded"},"currency":{"type":"string","title":"Currency","default":"TRY"}},"type":"object","required":["can_request","claimable_total","claimable_count"],"title":"PayoutEligibilityRead","description":"Everything the \"Ödeme Talep Et\" button needs, in one read.\n\nADVISORY: computed without row locks, so a concurrent request can claim\nthese earnings between this read and the POST. The POST is the authority —\na 200 here can still be answered with 409 there.\n\n``claimable_*`` and ``excluded`` are filled whatever the blocker is, so the\nclient can say \"1.250 TL birikti\" next to an open-request warning."},"PayoutExclusionRead":{"properties":{"source_type":{"type":"string","title":"Source Type"},"source_id":{"type":"string","title":"Source Id"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["source_type","source_id","reason"],"title":"PayoutExclusionRead","description":"An EARNED row the request would NOT claim, and why.\n\n``source_id`` is a string, matching the ``meta.excluded`` list the create\nendpoint returns — one shape for the client, not two."},"PayoutMarkReturnedRequest":{"properties":{"ref_no":{"type":"string","maxLength":64,"minLength":1,"title":"Ref No","description":"PayTR geri-dönen ref_no"},"note":{"type":"string","maxLength":1000,"minLength":3,"title":"Note"}},"type":"object","required":["ref_no","note"],"title":"PayoutMarkReturnedRequest"},"PayoutNoteRequest":{"properties":{"note":{"type":"string","maxLength":1000,"minLength":3,"title":"Note"}},"type":"object","required":["note"],"title":"PayoutNoteRequest"},"PayoutRequestDetailRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"total_amount_try":{"type":"string","title":"Total Amount Try"},"transfer_count":{"type":"integer","title":"Transfer Count"},"reject_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reject Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"transfers":{"items":{"$ref":"#/components/schemas/PayoutTransferRowRead"},"type":"array","title":"Transfers"}},"type":"object","required":["id","status","total_amount_try","transfer_count","created_at"],"title":"PayoutRequestDetailRead"},"PayoutRequestRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"total_amount_try":{"type":"string","title":"Total Amount Try"},"transfer_count":{"type":"integer","title":"Transfer Count"},"reject_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reject Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"}},"type":"object","required":["id","status","total_amount_try","transfer_count","created_at"],"title":"PayoutRequestRead"},"PayoutRequestsListMeta":{"properties":{"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":20}},"type":"object","title":"PayoutRequestsListMeta","description":"Typed envelope meta for the teacher's payout-request list.\n\n``counts`` is per PayoutRequestStatus value. Every field is defaulted so\nthe error path's bare ``Result`` (meta ``{}``) still validates against the\nconcrete response_model below."},"PayoutRequestsListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PayoutRequestRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/PayoutRequestsListMeta"}},"type":"object","required":["code","message"],"title":"PayoutRequestsListResult","description":"``Result`` with a narrowed meta so OpenAPI describes ``counts``."},"PayoutResolveRequest":{"properties":{"outcome":{"type":"string","enum":["CONFIRM","RELEASE"],"title":"Outcome"},"note":{"type":"string","maxLength":1000,"minLength":3,"title":"Note"}},"type":"object","required":["outcome","note"],"title":"PayoutResolveRequest"},"PayoutSweepResult":{"properties":{"stale_executing":{"type":"integer","title":"Stale Executing","default":0}},"type":"object","title":"PayoutSweepResult"},"PayoutTransferRowRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_type":{"type":"string","title":"Source Type"},"source_id":{"type":"string","format":"uuid","title":"Source Id"},"amount_try":{"type":"string","title":"Amount Try"},"status":{"type":"string","title":"Status"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"},"returned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Returned At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","source_type","source_id","amount_try","status","created_at"],"title":"PayoutTransferRowRead","description":"One earning inside a payout request, as the teacher sees it."},"PeerRateRowRead":{"properties":{"kind":{"type":"string","const":"peer_rate","title":"Kind"},"exam_id":{"type":"string","title":"Exam Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"The caller's tercile trap rate on the same labeled set."},"tercile_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tercile N","description":"Exact number of peers behind it (12.7)."}},"type":"object","required":["kind","exam_id"],"title":"PeerRateRowRead"},"PendingInviteRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["id","created_at","expires_at"],"title":"PendingInviteRead"},"PerExamPotentialNetGatedRead":{"properties":{"value":{"type":"null","title":"Value"},"gate":{"$ref":"#/components/schemas/ExpectationGateRead"},"reason":{"type":"string","title":"Reason"},"basis":{"type":"string","title":"Basis"},"scope":{"type":"string","title":"Scope"},"caveat":{"type":"null","title":"Caveat"}},"additionalProperties":true,"type":"object","required":["gate","reason","basis","scope"],"title":"PerExamPotentialNetGatedRead","description":"The same figure where 8.2 withholds it, with 8.2's gate and reason."},"PerExamPotentialNetRead":{"properties":{"value":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Value"},"basis":{"type":"string","title":"Basis"},"scope":{"type":"string","title":"Scope"},"caveat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caveat"}},"additionalProperties":true,"type":"object","required":["value","basis","scope"],"title":"PerExamPotentialNetRead","description":"The exam-wide Denemeler ``potential_net`` (8.2), labelled ``basis`` ``same_exam_tercile`` and ``scope`` ``exam``\nso no screen sets it beside a ders figure."},"PercentileBandRead":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"lo":{"type":"number","title":"Lo"},"hi":{"type":"number","title":"Hi"},"order":{"type":"integer","title":"Order","description":"The band with the highest order is the top band of the attention rule."}},"type":"object","required":["key","label","lo","hi","order"],"title":"PercentileBandRead"},"PercentileRead":{"properties":{"mid":{"type":"number","title":"Mid","description":"pct(net)."},"lo":{"type":"number","title":"Lo","description":"pct(net - net_sensitivity)."},"hi":{"type":"number","title":"Hi","description":"pct(net + net_sensitivity)."},"band":{"type":"string","title":"Band","description":"P0 `percentile_bands[].key` of `mid` (first band with `mid < hi`, else the last)."}},"type":"object","required":["mid","lo","hi","band"],"title":"PercentileRead","description":"A bottom-share position on the ECDF grid (5.5, D7): ``{mid, lo, hi}`` with the +/-``net_sensitivity`` range and\nthe band key of ``mid``; top share is ``100 - mid``."},"PermissionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","created_at","updated_at"],"title":"PermissionRead"},"PersonFitFlagRead":{"properties":{"subject":{"type":"string","title":"Subject"},"n":{"type":"integer","title":"N"},"n_blank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Blank"},"index":{"type":"number","title":"Index"},"theta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Theta"},"advice":{"anyOf":[{"$ref":"#/components/schemas/AdviceBlockRead"},{"$ref":"#/components/schemas/AdviceGatedRead"},{"type":"null"}],"title":"Advice"},"student":{"$ref":"#/components/schemas/StudentRefRead","description":"The roster row of the student in the exam's term (our ids, the name)."}},"additionalProperties":true,"type":"object","required":["subject","n","index","student"],"title":"PersonFitFlagRead","description":"One flagged (sitting, ders) of a student the caller may see: the roster identity instead of Intelligence's id."},"PhoneLinkRequest":{"properties":{"phone_number":{"type":"string","maxLength":32,"minLength":1,"title":"Phone Number","description":"The student's own TR mobile number, any common formatting"}},"additionalProperties":false,"type":"object","required":["phone_number"],"title":"PhoneLinkRequest"},"PhoneLinkRequestResponse":{"properties":{"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"resend_after_seconds":{"type":"integer","title":"Resend After Seconds"},"attempts_remaining":{"type":"integer","title":"Attempts Remaining"},"delivery":{"type":"string","enum":["sms","mock"],"title":"Delivery"},"mock":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mock"}},"type":"object","required":["phone_masked","expires_at","resend_after_seconds","attempts_remaining","delivery"],"title":"PhoneLinkRequestResponse"},"PhoneLinkVerifyRequest":{"properties":{"device_token":{"type":"string","maxLength":512,"minLength":8,"title":"Device Token","description":"The client-generated per-device string the app also sends on /refresh and /logout"},"user_agent":{"type":"string","maxLength":512,"title":"User Agent","default":""},"IP_address":{"type":"string","maxLength":64,"title":"Ip Address","default":""},"phone_number":{"type":"string","maxLength":32,"minLength":1,"title":"Phone Number"},"code":{"type":"string","pattern":"^\\d{6}$","title":"Code"}},"additionalProperties":false,"type":"object","required":["device_token","phone_number","code"],"title":"PhoneLinkVerifyRequest"},"PhoneLinkVerifyResponse":{"properties":{"merged":{"type":"boolean","title":"Merged"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked"},"tokens":{"anyOf":[{"$ref":"#/components/schemas/AccessTokenRead"},{"type":"null"}]}},"type":"object","required":["merged","user_id","phone_masked"],"title":"PhoneLinkVerifyResponse"},"PlaceRead":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"PlaceRead"},"PlannedLiveLectureRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"marketplace_bundle_component_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Component Id"},"sort_order":{"type":"integer","title":"Sort Order"},"status":{"$ref":"#/components/schemas/PlannedLiveLectureStatus","default":"SCHEDULED"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"slot_title":{"type":"string","title":"Slot Title"},"slot_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Description"},"session_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Session Started At"},"host_joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Host Joined At"},"host_left_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Host Left At"},"is_makeup":{"type":"boolean","title":"Is Makeup","default":false},"makeup_for_planned_live_lecture_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Makeup For Planned Live Lecture Id"}},"type":"object","required":["id","marketplace_bundle_component_id","sort_order","starts_at","ends_at","duration_minutes","slot_title"],"title":"PlannedLiveLectureRead"},"PlannedLiveLectureStatus":{"type":"string","enum":["SCHEDULED","LIVE","COMPLETED","GHOSTED"],"title":"PlannedLiveLectureStatus","description":"Lifecycle of a single planned live lecture (mirrors tutoring's GHOSTED\nmodel; transitions are written, never derived).\n\nSCHEDULED -> created at marketplace submit; waiting for its window.\nLIVE      -> host opened the Zoom session (join-token path).\nCOMPLETED -> host exited, or the worker safety net closed a LIVE lecture\n             whose window passed (ends_at + grace).\nGHOSTED   -> terminal: the session was never opened and starts_at + grace\n             passed (teacher no-show; written only by the worker sweep)."},"PlannedLiveWindowRead":{"properties":{"planned_live_lecture_id":{"type":"string","format":"uuid","title":"Planned Live Lecture Id"},"state":{"type":"string","title":"State"},"status":{"$ref":"#/components/schemas/PlannedLiveLectureStatus"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"session_started":{"type":"boolean","title":"Session Started","default":false},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"host_present":{"type":"boolean","title":"Host Present","default":false}},"type":"object","required":["planned_live_lecture_id","state","status","starts_at","ends_at"],"title":"PlannedLiveWindowRead"},"PlatformKpiCardRead":{"properties":{"key":{"type":"string","enum":["active","star","fading","risk"],"title":"Key"},"label":{"type":"string","title":"Label"},"value":{"type":"integer","minimum":0.0,"title":"Value"},"delta":{"anyOf":[{"$ref":"#/components/schemas/DeltaRead"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","label","value"],"title":"PlatformKpiCardRead","description":"One of the four platform-level KPI cards (Aktif / Yıldız / Sönen /\nRisk). Δ is sourced from the tenant-global ``teacher_segment_counts_daily``\nsnapshots so today's value can be compared against the row thirty\ncalendar days earlier without rerunning MV queries."},"PlaybackResponse":{"properties":{"video_id":{"type":"string","format":"uuid","title":"Video Id"},"iframe":{"type":"string","title":"Iframe"},"hls":{"type":"string","title":"Hls"},"dash":{"type":"string","title":"Dash"},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail"}},"type":"object","required":["video_id","iframe","hls","dash"],"title":"PlaybackResponse","description":"Public playback URLs for a READY video."},"PointerRead":{"properties":{"kind":{"type":"string","title":"Kind","description":"`question` | `top_tier`."},"count":{"type":"integer","title":"Count"},"metric":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric"},"question_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Id"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"concentration_gated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Concentration Gated"},"choice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Choice","description":"The concentrated wrong letter (`same_wrong_count` pointer)."},"link_to_attention":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Link To Attention","description":"Was the top-tier pointer's link to the ranked attention list; that pointer is no longer emitted (decision 31, A4, 2026-10-18), so always null."}},"type":"object","required":["kind","count"],"title":"PointerRead","description":"6.7 pointer: a question (`metric` opportunity_students, blank_share or same_wrong_count) or the top-tier count."},"PoolInfo":{"properties":{"total":{"type":"integer","title":"Total","description":"Live (image_ok) questions of this type in the bank."},"unseen":{"type":"integer","title":"Unseen","description":"Of those, never viewed by this teacher."},"times_viewed_by_me":{"type":"integer","title":"Times Viewed By Me","description":"How many times this teacher has viewed the served question."},"wrapped":{"type":"boolean","title":"Wrapped","description":"True when the served question was viewed before (rotation wrapped around)."}},"type":"object","required":["total","unseen","times_viewed_by_me","wrapped"],"title":"PoolInfo"},"PositionItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"position","title":"Id"},"params":{"$ref":"#/components/schemas/PositionParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"PositionItemRead"},"PositionParamsRead":{"properties":{"top_share":{"type":"number","title":"Top Share","description":"``100 - mid`` of the official net (<= 50)."},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank"},"cohort_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort Size"},"official_net":{"type":"number","title":"Official Net"},"cohort_mean_total_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cohort Mean Total Net"}},"type":"object","required":["top_share","official_net"],"title":"PositionParamsRead"},"PositionRowRead":{"properties":{"level":{"type":"string","title":"Level","description":"`campus` (institution scope) or `section` (campus scope)."},"id":{"type":"string","title":"Id","description":"The campus or section roster code (D10)."},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"is_operational":{"type":"boolean","title":"Is Operational"},"n":{"type":"integer","title":"N","description":"Matched students the medians rest on: the operational ones of an operational group (every one of a non-operational group), each with a general rank in both exams."},"n_total":{"type":"integer","title":"N Total","description":"Every matched student of the group (current exam), ranked or not."},"prev_top_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prev Top Share","description":"Median of `100 * general_rank / count` in the previous exam (each exam against its own count; the first of 200 is 0.5, the last 100; the lower, the nearer the top); null below `min_peer_n` (`gate`)."},"curr_top_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Curr Top Share","description":"The same median in the current exam; null with `prev_top_share`."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why the medians are null (`min_peer_n` on `n`); null when served."}},"type":"object","required":["level","id","name","slug","is_operational","n","n_total"],"title":"PositionRowRead","description":"One child group of the scope (D46): the median top share of the same students in each exam of the pair."},"PositionSubjectRead":{"properties":{"lo":{"type":"number","title":"Lo"},"mid":{"type":"number","title":"Mid"},"hi":{"type":"number","title":"Hi"},"band":{"type":"string","title":"Band"},"basis":{"type":"string","const":"derived_net","title":"Basis","default":"derived_net"},"after_one_more_hi":{"type":"number","title":"After One More Hi","description":"``hi`` of ``net + 1`` (the '1 doğru daha' tooltip reads its top share ``100 - after_one_more_hi``)."}},"type":"object","required":["lo","mid","hi","band","after_one_more_hi"],"title":"PositionSubjectRead"},"PositionTotalRead":{"properties":{"lo":{"type":"number","title":"Lo","description":"Bottom share at ``net - net_sensitivity``."},"mid":{"type":"number","title":"Mid","description":"Bottom share at the net."},"hi":{"type":"number","title":"Hi","description":"Bottom share at ``net + net_sensitivity``."},"band":{"type":"string","title":"Band","description":"Percentile band key (D7)."},"basis":{"type":"string","const":"official_net","title":"Basis","default":"official_net"},"n":{"type":"integer","title":"N","description":"Students behind the distribution."}},"type":"object","required":["lo","mid","hi","band","n"],"title":"PositionTotalRead"},"PrepType":{"type":"string","enum":["DERSHANE","OZEL_DERS","YKS_KURSU","OTHER"],"title":"PrepType"},"PreviousObservedRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"net":{"type":"number","title":"Net"},"delta":{"type":"number","title":"Delta","description":"`net - previous net`."},"campus_name":{"type":"string","title":"Campus Name"},"section_name":{"type":"string","title":"Section Name"}},"type":"object","required":["exam_id","net","delta","campus_name","section_name"],"title":"PreviousObservedRead"},"PriceBucket":{"type":"string","enum":["LT_1000","BTW_1000_2000","GT_2000"],"title":"PriceBucket"},"ProfileConsumedRead":{"properties":{"analysis_run_ids":{"items":{"type":"string"},"type":"array","title":"Analysis Run Ids"},"bank_version_ids":{"items":{"type":"string"},"type":"array","title":"Bank Version Ids"},"exam_ids":{"items":{"type":"string"},"type":"array","title":"Exam Ids"}},"additionalProperties":true,"type":"object","title":"ProfileConsumedRead","description":"What the profile pools: the analysis runs, the bank versions and the denemeler."},"ProfileRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"Surname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surname"},"Birthdate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birthdate"},"AvatarLink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatarlink"},"Statu":{"$ref":"#/components/schemas/ProfileStatus"}},"type":"object","required":["ID","Statu"],"title":"ProfileRead"},"ProfileSetMeta":{"properties":{"state":{"type":"string","title":"State","description":"`ready` | `failed` (the rows of the last ready read served) | `empty`."},"set_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set Version","description":"Intelligence's `set_version` of the pages read."},"profile_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Version"},"total":{"type":"integer","title":"Total","description":"Intelligence's `total` of the set.","default":0},"mapped_count":{"type":"integer","title":"Mapped Count","description":"Profiles matched to a student of ours.","default":0},"unmapped_count":{"type":"integer","title":"Unmapped Count","description":"Profiles of no student of ours.","default":0},"stale_count":{"type":"integer","title":"Stale Count","description":"Profiles Intelligence marks stale (a bank promotion outdated them).","default":0},"fetched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fetched At","description":"The last successful read."},"refreshed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Refreshed At","description":"The last attempt."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"The last attempt's error code when `state = failed`."}},"type":"object","required":["state"],"title":"ProfileSetMeta","description":"The 8.10 profile set the groups were computed from (`analytics/profiles.py`); null when none was read yet."},"ProfileStatus":{"type":"string","enum":["ACTIVE","PASSIVE","DISABLED"],"title":"ProfileStatus"},"ProfileStudyOrderRead":{"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"alan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alan"},"alan_first":{"type":"boolean","title":"Alan First","default":false}},"additionalProperties":true,"type":"object","title":"ProfileStudyOrderRead","description":"``study_order``: the weak kovalar to open first, by prerequisite depth then gap; on an AYT with a known alan the\nalan's dersler first (``alan_first``). Cut to three on a student screen."},"ProfileSubjectRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Name"},"open":{"type":"boolean","title":"Open"},"n_responses":{"type":"integer","title":"N Responses"},"n_sittings":{"type":"integer","title":"N Sittings"},"n_items_with_parameters":{"type":"integer","title":"N Items With Parameters"},"theta":{"$ref":"#/components/schemas/ProfileThetaRead"},"theta_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Theta Source"},"reliable":{"type":"boolean","title":"Reliable"},"cohort_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cohort Key"},"cohort_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort N","description":"Students of the cohort the decile reads (0 in no cohort)."},"percentile":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percentile"},"decile":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decile"},"band":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Band"},"position":{"additionalProperties":true,"type":"object","title":"Position","description":"``{lo, mid, hi, band, n, basis: theta_pm_se, cohort_key}``: a range, never a point; show it with its ``n``. All ``null`` with ``gate`` / ``reason`` below the gates."},"position_alan":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Position Alan","description":"The same range among the students of the alan (on a TYT), with its own ``n``; ``null`` without one."},"level":{"additionalProperties":true,"type":"object","title":"Level","description":"``{rung, value, label, badge, n}``: the rung the peer numbers rest on (``theta_decile`` or ``same_exam_tercile``)."},"peer_basis":{"type":"string","title":"Peer Basis"},"blank_rate":{"additionalProperties":true,"type":"object","title":"Blank Rate"},"signal":{"additionalProperties":true,"type":"object","title":"Signal","description":"``{tau_measured, tau_measured_reason, n_cells, tau_research, tau_research_reason, source, closed, gate}``; ``closed`` = counts only."},"buckets":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Buckets","description":"The pooled kova cells: ``n, correct, wrong, blank, observed, peer_rate, gap, se, verdict, label, blank_driven, fragile, contradiction, strength`` (none, low, solid, corroborated), ``exam_count``, ``peer_n``, ``gate``, ``reason``, ``provenance[]``."},"skills":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Skills","description":"The skill cells within the ders (8 answers), the shape of ``buckets``."},"node":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Node","description":"The ders's own pooled cell in the shape of a ``buckets[]`` cell, every answer of the student in the ders on the rung of its kova cells: on ``same_exam_tercile`` it has a verdict; on ``theta_decile`` its verdict and comparison rates are ``null`` with reason ``same_level_circular`` (no gate), the counts kept; in a closed ders ``insufficient`` under the signal gate, counts and rates kept. Since profile version ``2026.10-e`` (contract 0.16, decisions 143 and 158); a profile stored before it has no such key."},"recommendations":{"additionalProperties":true,"type":"object","title":"Recommendations","description":"``practice_targets[]`` (up to 5 weak kovalar: ``bucket_id, subject, name, gap, gap_se, n, peer_n, prerequisite_depth, prerequisite_gaps[]`` (plain kova ids)), ``targets_trustworthy`` (a visible flag, never a hidden list), ``n_reliable_cells``, ``n_candidates``, ``tau``, ``tau_reason``, ``diagnostic_next`` (the 5 most informative unseen questions)."},"decile_gate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Decile Gate","description":"The gate the decile stopped at (``{name, required, actual}``); ``null`` when ``decile`` is served."},"decile_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decile Reason","description":"Why ``decile`` is ``null`` (the gate's reason code); ``null`` when it is served."},"expectation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Expectation","description":"The ders' 8.9 block for the student's upcoming exam (``lo, mid, hi, verdict, ...``), or the gated null ``{value: null, gate, reason}`` (``no_upcoming_exam``, ``expectation_calibration``, ``bank_missing``)."},"sittings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sittings","description":"The ders' sittings the profile pooled, each ``{exam_id, administered_on, expectation}`` (that sitting's 8.9 block, or the gated null ``not_scored``). A list: the payload's ``sittings`` is a count, ``n_sittings`` the ders' count."}},"additionalProperties":true,"type":"object","required":["subject","open","n_responses","n_sittings","n_items_with_parameters","theta","reliable","position","level","peer_basis","blank_rate","signal","recommendations"],"title":"ProfileSubjectRead","description":"One ders of the profile (8.7 ``subjects[]``). Opens at 30 answers; ``decile``, ``band``, ``position`` need 50\nanswers, a standard error below 0.45 and 50 students in the cohort (else ``null`` with ``decile_gate`` /\n``decile_reason``); a closed ders (coğrafya, tarih, felsefe: ``signal.closed``) has counts only and no target."},"ProfileTcknRead":{"properties":{"is_set":{"type":"boolean","title":"Is Set"},"tckn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tckn"}},"type":"object","required":["is_set"],"title":"ProfileTcknRead","description":"Owner-only TCKN readback. Deliberately NOT part of ProfileRead: that\nschema is embedded in teacher/student listings and the open profile\nendpoint, where the national id must never travel."},"ProfileThetaRead":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"se":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Se"},"n":{"type":"integer","title":"N"},"n_items":{"type":"integer","title":"N Items"},"gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":true,"type":"object","required":["n","n_items"],"title":"ProfileThetaRead","description":"``subjects[].theta``: the ability on the item bank's scale with its standard error; ``n`` the answers in the ders,\n``n_items`` those with bank parameters. ``value`` is ``null`` with the gate below 30 answers\n(``profile_min_responses``), without a current bank version or without a parametrized item. Never compared across\ndersler."},"ProfileUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Given name"},"surname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surname","description":"Family name"},"birthdate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birthdate","description":"Birth date in YYYY-MM-DD"},"tckn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tckn","description":"TC Kimlik No (11 digits). Nullable to clear."}},"additionalProperties":false,"type":"object","title":"ProfileUpdateRequest"},"ProgramRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"college_id":{"type":"string","format":"uuid","title":"College Id"},"name":{"type":"string","title":"Name"},"college":{"anyOf":[{"$ref":"#/components/schemas/CollegeRead"},{"type":"null"}]}},"type":"object","required":["ID","college_id","name"],"title":"ProgramRead"},"ProgressRead":{"properties":{"added_count":{"type":"integer","title":"Added Count"},"target_count":{"type":"integer","title":"Target Count","description":"Soft target — added_count may exceed it."}},"type":"object","required":["added_count","target_count"],"title":"ProgressRead"},"ProvinceRead":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"ProvinceRead"},"QbExamScope":{"type":"string","enum":["TYT","AYT","BOTH"],"title":"QbExamScope"},"QbHardness":{"type":"string","enum":["EASY","MEDIUM","HARD"],"title":"QbHardness","description":"Derived difficulty of a question, computed at import time from the export's\n``difficulty`` column (0 = easy … 1 = hard; deneme/tarama: measured\n1 - correct_rate, fasikül: the data team's GBM model prediction that\nnormalizes the inflated fasikül rates). NULL in the DB means the export\ncarried no difficulty for the row."},"QbResource":{"type":"string","enum":["DENEME","TARAMA","FASIKUL"],"title":"QbResource","description":"Where the question was used on the platform. A question belongs to exactly one."},"QbTestStatus":{"type":"string","enum":["DRAFT","FINALIZED"],"title":"QbTestStatus"},"QuantilesRead":{"properties":{"q1":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Q1"},"median":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median"},"q3":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Q3"},"p90":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P90"}},"type":"object","title":"QuantilesRead"},"QuarterRead":{"properties":{"key":{"type":"string","title":"Key"},"n":{"type":"integer","title":"N"},"mean_actual":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Actual","description":"Null below `min_cohort_stats` students in the quarter (`gate`)."},"mean_potential":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Potential"},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}]}},"type":"object","required":["key","n"],"title":"QuarterRead"},"QuestionCohortRead":{"properties":{"correct_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Correct Rate"},"correct_rate_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Correct Rate N"},"blank_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Blank Rate"},"blank_rate_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Blank Rate N"},"common_wrong_choice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Common Wrong Choice"},"common_wrong_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Common Wrong Share"},"wrong_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wrong Count","description":"The question's total wrong count over the cohort."},"tercile_correct_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Tercile Correct Rate"},"rasch_b":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rasch B","description":"Null when not estimated."},"is_ceiling":{"type":"boolean","title":"Is Ceiling","description":"`correct_rate >= ceiling_correct_rate`."}},"type":"object","required":["is_ceiling"],"title":"QuestionCohortRead","description":"Whole-cohort reference of a question (from the exam analysis); `*_n` is the answer-data population."},"QuestionCorrectnessRead":{"properties":{"question_index":{"type":"integer","title":"Question Index"},"correct_answer":{"type":"string","title":"Correct Answer"},"correct_count":{"type":"integer","title":"Correct Count","default":0},"wrong_count":{"type":"integer","title":"Wrong Count","default":0},"blank_count":{"type":"integer","title":"Blank Count","default":0},"correct_rate_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Correct Rate Percent"},"correct_student_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Correct Student Ids"},"wrong_student_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Wrong Student Ids"},"blank_student_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Blank Student Ids"}},"additionalProperties":false,"type":"object","required":["question_index","correct_answer"],"title":"QuestionCorrectnessRead","description":"One question's outcome across every submission of the component."},"QuestionFlagsRead":{"properties":{"expected_miss":{"type":"boolean","title":"Expected Miss"},"hard_correct":{"type":"boolean","title":"Hard Correct"},"trap_hit":{"type":"boolean","title":"Trap Hit"},"reachable_blank":{"type":"boolean","title":"Reachable Blank"}},"type":"object","required":["expected_miss","hard_correct","trap_hit","reachable_blank"],"title":"QuestionFlagsRead"},"QuestionMissedMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the (latest) run the response reads."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every exam the response reads."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload (a roster change changes the response)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (ISO 8601 with offset); a cached body keeps its time."},"visibility":{"type":"string","title":"Visibility","description":"`all` (institution admin), `campuses` (campus manager, D9 extension) or `sections` (teacher: every aggregate is over their sections only).","default":"all"},"counts":{"$ref":"#/components/schemas/MissedCountsRead","description":"Independent of `reason` and the paging."},"total":{"type":"integer","title":"Total","description":"Rows after the `reason` filter, before the paging."},"page":{"type":"integer","title":"Page","description":"1-based page (D46); `limit` alone is page 1.","default":1},"page_size":{"type":"integer","title":"Page Size","description":"Rows per page: `page_size`, else `limit`, else 40.","default":40}},"type":"object","required":["counts","total"],"title":"QuestionMissedMeta"},"QuestionMissedResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MissedStudentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/QuestionMissedMeta"}},"type":"object","required":["code","message","meta"],"title":"QuestionMissedResult"},"QuestionStatusRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"number":{"type":"integer","title":"Number"},"status":{"type":"string","title":"Status"}},"type":"object","required":["question_id","number","status"],"title":"QuestionStatusRead"},"QuestionSummaryRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id","description":"The exam of the evidence question."},"question_id":{"type":"string","title":"Question Id","description":"The backend question id."},"subject":{"type":"string","title":"Subject","description":"Subject id."},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number","description":"Question number within its subject."},"missed_members":{"type":"integer","title":"Missed Members","description":"Members whose answer is not correct."},"expected_miss_members":{"type":"integer","title":"Expected Miss Members","description":"Members with an expected miss on it."}},"type":"object","required":["exam_id","question_id","subject","missed_members","expected_miss_members"],"title":"QuestionSummaryRead"},"QuestionTypeRead":{"properties":{"id":{"type":"string","title":"Id","description":"`<topic id>/<type id>`."},"topic_id":{"type":"string","title":"Topic Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","topic_id","name"],"title":"QuestionTypeRead"},"QueuesRead":{"properties":{"expected_misses":{"items":{"type":"string"},"type":"array","title":"Expected Misses","description":"Peer rate desc."},"hard_correct":{"items":{"type":"string"},"type":"array","title":"Hard Correct","description":"Peer rate asc (booklet ties)."},"trap_hits":{"items":{"type":"string"},"type":"array","title":"Trap Hits","description":"All trap hits (expected overlaps included), booklet order."},"wrong":{"items":{"type":"string"},"type":"array","title":"Wrong"},"blank":{"items":{"type":"string"},"type":"array","title":"Blank"},"all":{"items":{"type":"string"},"type":"array","title":"All"}},"type":"object","title":"QueuesRead"},"RankAtRead":{"properties":{"rank":{"type":"integer","title":"Rank"},"exact":{"type":"boolean","title":"Exact"},"lo":{"type":"integer","title":"Lo"},"hi":{"type":"integer","title":"Hi"}},"type":"object","required":["rank","exact","lo","hi"],"title":"RankAtRead","description":"The general rank at a net (5.4): exact at an observed net, else the ``[lo, hi]`` bracket and its middle."},"RankChangeRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"entry_id":{"type":"string","format":"uuid","title":"Entry Id","description":"The student's record in the current exam."},"exam_id":{"type":"string","format":"uuid","title":"Exam Id","description":"The current exam."},"full_name":{"type":"string","title":"Full Name"},"campus_id":{"type":"string","title":"Campus Id"},"campus_name":{"type":"string","title":"Campus Name"},"section_id":{"type":"string","title":"Section Id"},"section_name":{"type":"string","title":"Section Name"},"prev_net":{"type":"number","title":"Prev Net","description":"Official net in the previous exam (context only: nets of two denemeler are not compared)."},"curr_net":{"type":"number","title":"Curr Net","description":"Official net in the current exam (context only)."},"prev_rank":{"type":"integer","title":"Prev Rank","description":"Official general rank in the previous exam."},"prev_count":{"type":"integer","title":"Prev Count","description":"The count of that ranking."},"curr_rank":{"type":"integer","title":"Curr Rank"},"curr_count":{"type":"integer","title":"Curr Count"},"prev_top_share":{"type":"number","title":"Prev Top Share","description":"`100 * prev_rank / prev_count` (the lower, the nearer the top)."},"curr_top_share":{"type":"number","title":"Curr Top Share","description":"`100 * curr_rank / curr_count`."},"share_change":{"type":"number","title":"Share Change","description":"`curr_top_share - prev_top_share`, in points of share: positive when the student is further from the top than in the previous exam, negative when nearer."}},"type":"object","required":["student_id","entry_id","exam_id","full_name","campus_id","campus_name","section_id","section_name","prev_net","curr_net","prev_rank","prev_count","curr_rank","curr_count","prev_top_share","curr_top_share","share_change"],"title":"RankChangeRead","description":"One matched student of the latest pair of series exams: the official general rank in each exam with its top share."},"RankChangesMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the (latest) run the response reads."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every exam the response reads."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload (a roster change changes the response)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (ISO 8601 with offset); a cached body keeps its time."},"visibility":{"type":"string","title":"Visibility","description":"`all` (institution admin), `campuses` (campus manager, D9 extension) or `sections` (teacher: every aggregate is over their sections only).","default":"all"},"total":{"type":"integer","title":"Total","description":"Rows after every filter, before paging.","default":0},"page":{"type":"integer","title":"Page","description":"1-based page.","default":1},"page_size":{"type":"integer","title":"Page Size","description":"Rows per page.","default":25},"prev_exam":{"anyOf":[{"$ref":"#/components/schemas/ExamLinkRead"},{"type":"null"}],"description":"The previous exam of the latest consecutive pair of dated series exams; null with fewer than two."},"curr_exam":{"anyOf":[{"$ref":"#/components/schemas/ExamLinkRead"},{"type":"null"}],"description":"The current (latest) exam of that pair."},"matched":{"type":"integer","title":"Matched","description":"Students counted: matched by identity (the current side scoped, the previous side not), operational in the current exam, with a general rank in both exams. `total` equals it.","default":0},"declined":{"type":"integer","title":"Declined","description":"Counted students with `share_change > 0`.","default":0},"improved":{"type":"integer","title":"Improved","description":"Counted students with `share_change < 0`.","default":0},"unchanged":{"type":"integer","title":"Unchanged","default":0},"unranked":{"type":"integer","title":"Unranked","description":"Matched students left out: no general rank in one of the two exams.","default":0},"excluded_non_operational":{"type":"integer","title":"Excluded Non Operational","description":"Matched students left out: their current section or campus is not operational (D9).","default":0}},"type":"object","title":"RankChangesMeta"},"RankChangesResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RankChangeRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/RankChangesMeta"}},"type":"object","required":["code","message","meta"],"title":"RankChangesResult"},"RankCountRead":{"properties":{"rank":{"type":"integer","title":"Rank","description":"Official competition rank (ties share a rank)."},"count":{"type":"integer","title":"Count","description":"Size of the ranked population."}},"type":"object","required":["rank","count"],"title":"RankCountRead"},"RankEstimateRead":{"properties":{"source":{"type":"string","enum":["preview-panel-cohort","rank-estimate-service"],"title":"Source"},"scope":{"type":"string","title":"Scope"},"state":{"type":"string","enum":["none","insufficient","wide","early","preview","ready"],"title":"State","description":"9.1; ``none`` = no sitting in scope."},"sittings_used":{"type":"integer","title":"Sittings Used"},"required_sittings":{"type":"integer","title":"Required Sittings"},"min_for_band":{"type":"integer","title":"Min For Band"},"chronology":{"type":"string","title":"Chronology"},"net_basis":{"type":"string","const":"official","title":"Net Basis","default":"official"},"observations":{"items":{"$ref":"#/components/schemas/AynaObservationRead"},"type":"array","title":"Observations","description":"9.2, chronological."},"history":{"items":{"$ref":"#/components/schemas/AynaHistoryStepRead"},"type":"array","title":"History","description":"One per k."},"current_band":{"anyOf":[{"$ref":"#/components/schemas/AynaBandRead"},{"type":"null"}],"description":"Null below min_for_band sittings."},"today":{"anyOf":[{"$ref":"#/components/schemas/AynaTodayRead"},{"type":"null"}],"description":"The last observation; null when the chronology is unresolved."},"confidence":{"$ref":"#/components/schemas/AynaConfidenceRead"},"anchor":{"$ref":"#/components/schemas/AynaAnchorRead"},"gates":{"$ref":"#/components/schemas/AynaGatesRead"}},"type":"object","required":["source","scope","state","sittings_used","required_sittings","min_for_band","chronology","observations","history","confidence","anchor","gates"],"title":"RankEstimateRead","description":"S5: Ayna, the handoff's preview algorithm over the institution's population of the scope (D15)."},"RankEstimateResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RankEstimateRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentAnalyticsMeta"}},"type":"object","required":["code","message"],"title":"RankEstimateResult"},"RankImpactRead":{"properties":{"now":{"$ref":"#/components/schemas/RankNowRead","description":"The official net and general rank."},"headroom":{"type":"number","title":"Headroom","description":"``max(0, scored_question_count - now.net)``."},"steps":{"items":{"$ref":"#/components/schemas/RankStepRead"},"type":"array","title":"Steps","description":"Only steps with ``now.net + delta <= scored_question_count``."},"headline_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Headline Step","description":"5 if present, else the last step; null when no step fits."},"rank_table":{"$ref":"#/components/schemas/RankTableRead"}},"type":"object","required":["now","headroom","steps","rank_table"],"title":"RankImpactRead"},"RankNowRead":{"properties":{"net":{"type":"number","title":"Net"},"net_basis":{"type":"string","const":"official","title":"Net Basis","default":"official"},"rank":{"type":"integer","title":"Rank"}},"type":"object","required":["net","rank"],"title":"RankNowRead"},"RankStepRead":{"properties":{"delta_net":{"type":"integer","title":"Delta Net"},"net":{"type":"number","title":"Net"},"rank":{"type":"integer","title":"Rank"},"exact":{"type":"boolean","title":"Exact","description":"True when a student of the ranking cohort holds that net; else the ``[lo, hi]`` bracket and its middle (5.5)."},"lo":{"type":"integer","title":"Lo"},"hi":{"type":"integer","title":"Hi"},"passed":{"type":"integer","title":"Passed","description":"``now.rank - rank``."}},"type":"object","required":["delta_net","net","rank","exact","lo","hi","passed"],"title":"RankStepRead"},"RankTableRead":{"properties":{"cohort_size":{"type":"integer","title":"Cohort Size","description":"The full ranking cohort."},"rows":{"items":{"prefixItems":[{"type":"number"},{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":3,"minItems":3},"type":"array","title":"Rows","description":"``[net, rank, count]`` over the full ranking cohort, net desc (5.5); aggregate only."}},"type":"object","required":["cohort_size","rows"],"title":"RankTableRead"},"RanksRead":{"properties":{"general":{"anyOf":[{"$ref":"#/components/schemas/RankCountRead"},{"type":"null"}],"description":"Official rank over the full ranking cohort (always present on a results row; null only for a row without one)."},"campus":{"anyOf":[{"$ref":"#/components/schemas/RankCountRead"},{"type":"null"}],"description":"Null when the results file has no campus rank (never replaced by the general rank)."},"section":{"anyOf":[{"$ref":"#/components/schemas/RankCountRead"},{"type":"null"}],"description":"Null when the results file has no section rank."}},"type":"object","title":"RanksRead"},"ReachBandCountRead":{"properties":{"key":{"type":"string","enum":["hard","mid","reachable"],"title":"Key"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["key","count"],"title":"ReachBandCountRead"},"RecoverableCaveatRead":{"properties":{"code":{"type":"string","const":"recoverable_net","title":"Code"},"per_exam":{"items":{"$ref":"#/components/schemas/RecoverableExamRead"},"type":"array","title":"Per Exam","description":"Per exam, never summed into one headline."}},"type":"object","required":["code","per_exam"],"title":"RecoverableCaveatRead"},"RecoverableExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"value":{"type":"number","title":"Value"}},"type":"object","required":["exam_id","value"],"title":"RecoverableExamRead"},"ReferenceInstitutionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name","description":"Replaces the hard-coded institution name."}},"type":"object","required":["id","slug","name"],"title":"ReferenceInstitutionRead"},"ReferenceMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the (latest) run the response reads."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every exam the response reads."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload (a roster change changes the response)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (ISO 8601 with offset); a cached body keeps its time."},"visibility":{"type":"string","title":"Visibility","description":"`all` (institution admin), `campuses` (campus manager, D9 extension) or `sections` (teacher: every aggregate is over their sections only).","default":"all"},"taxonomy_available":{"type":"boolean","title":"Taxonomy Available","description":"False when the shared taxonomy could not be read: topics, units and types then come from the materialised questions only.","default":true},"skills_available":{"type":"boolean","title":"Skills Available","description":"False when the skills vocabulary could not be read.","default":true}},"type":"object","title":"ReferenceMeta","description":"D13 freshness plus where the dictionaries came from."},"ReferenceRead":{"properties":{"institution":{"$ref":"#/components/schemas/ReferenceInstitutionRead"},"institution_cohort":{"$ref":"#/components/schemas/InstitutionCohortRead"},"subjects":{"items":{"$ref":"#/components/schemas/ReferenceSubjectRead"},"type":"array","title":"Subjects","description":"Canonical subject order."},"percentile_bands":{"items":{"$ref":"#/components/schemas/PercentileBandRead"},"type":"array","title":"Percentile Bands"},"difficulty_bands":{"items":{"$ref":"#/components/schemas/DifficultyBandRead"},"type":"array","title":"Difficulty Bands"},"grades":{"items":{"$ref":"#/components/schemas/GradeRead"},"type":"array","title":"Grades"},"tracks":{"items":{"$ref":"#/components/schemas/TrackRead"},"type":"array","title":"Tracks"},"topics":{"items":{"$ref":"#/components/schemas/TopicRead"},"type":"array","title":"Topics"},"units":{"items":{"$ref":"#/components/schemas/main_api__modules__intelligence__schemas__reference__UnitRead"},"type":"array","title":"Units","description":"The full curriculum unit dictionary (topics are the units that have questions)."},"skills":{"items":{"$ref":"#/components/schemas/ReferenceSkillRead"},"type":"array","title":"Skills"},"question_types":{"items":{"$ref":"#/components/schemas/QuestionTypeRead"},"type":"array","title":"Question Types"},"distractor_styles":{"items":{"$ref":"#/components/schemas/DistractorStyleRead"},"type":"array","title":"Distractor Styles"},"vocabularies":{"$ref":"#/components/schemas/VocabulariesRead"},"default_gates":{"$ref":"#/components/schemas/DefaultGatesRead"}},"type":"object","required":["institution","institution_cohort","vocabularies","default_gates"],"title":"ReferenceRead","description":"P0 / S0: static and slowly changing reference data. No student data."},"ReferenceResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ReferenceRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/ReferenceMeta"}},"type":"object","required":["code","message","meta"],"title":"ReferenceResult"},"ReferenceSkillRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"ReferenceSkillRead"},"ReferenceSubjectRead":{"properties":{"id":{"type":"string","title":"Id","description":"The vocabulary used in URLs and in every other endpoint (`turkce`, `matematik`, ...)."},"name":{"type":"string","title":"Name"},"short_name":{"type":"string","title":"Short Name","description":"For tight columns."},"exam_scopes":{"items":{"type":"string"},"type":"array","title":"Exam Scopes","description":"The scopes the subject appears in."},"order":{"type":"integer","title":"Order","description":"Canonical subject order."},"area":{"$ref":"#/components/schemas/AreaRead"}},"type":"object","required":["id","name","short_name","order","area"],"title":"ReferenceSubjectRead"},"RefreshResponseRead":{"properties":{"refreshed_views":{"items":{"type":"string"},"type":"array","title":"Refreshed Views"},"cache_keys_flushed":{"type":"integer","minimum":0.0,"title":"Cache Keys Flushed","default":0},"duration_ms":{"type":"integer","minimum":0.0,"title":"Duration Ms","default":0}},"additionalProperties":false,"type":"object","title":"RefreshResponseRead","description":"Result of a manual MV refresh."},"RefundActionResult":{"properties":{"refund_id":{"type":"string","format":"uuid","title":"Refund Id"},"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["refund_id","outcome"],"title":"RefundActionResult"},"RefundBundleContext":{"properties":{"marketplace_bundle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketplace Bundle Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"bundle_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Status"},"cancel_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Reason"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refund_stamped":{"type":"boolean","title":"Refund Stamped","default":false}},"type":"object","title":"RefundBundleContext"},"RefundLessonContext":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"lesson_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lesson Start"},"lesson_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lesson End"},"approval_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Status"},"approval_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Comment"},"teacher_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Teacher Id"},"teacher_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher First Name"},"teacher_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Last Name"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refund_stamped":{"type":"boolean","title":"Refund Stamped","default":false}},"type":"object","required":["lesson_request_id"],"title":"RefundLessonContext","description":"Why/what of a lesson refund. approval_comment is only ever filled for\nREJECTED lessons (teacher/student cancellations carry no persisted reason)."},"RefundReviewRequest":{"properties":{"note":{"type":"string","maxLength":1000,"minLength":3,"title":"Note"}},"type":"object","required":["note"],"title":"RefundReviewRequest"},"RefundRowRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"intent_id":{"type":"string","format":"uuid","title":"Intent Id"},"merchant_oid":{"type":"string","title":"Merchant Oid"},"purpose":{"type":"string","title":"Purpose"},"lesson_request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Request Id"},"marketplace_bundle_purchase_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketplace Bundle Purchase Id"},"reason":{"type":"string","title":"Reason"},"amount_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount Try"},"test_mode":{"type":"boolean","title":"Test Mode"},"status":{"type":"string","title":"Status"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"retry_count":{"type":"integer","title":"Retry Count"},"review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Note"},"executed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Executed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"student_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student First Name"},"student_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Last Name"},"student_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Phone"},"lesson":{"anyOf":[{"$ref":"#/components/schemas/RefundLessonContext"},{"type":"null"}]},"bundle":{"anyOf":[{"$ref":"#/components/schemas/RefundBundleContext"},{"type":"null"}]},"evidence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence"},"collected_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Collected Summary"},"executed_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Executed By"},"reviewed_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewed By"}},"type":"object","required":["id","intent_id","merchant_oid","purpose","reason","test_mode","status","retry_count","created_at"],"title":"RefundRowRead"},"RefundSweepResult":{"properties":{"stale_executing":{"type":"integer","title":"Stale Executing","default":0},"legacy":{"type":"integer","title":"Legacy","default":0},"orphans":{"type":"integer","title":"Orphans","default":0}},"type":"object","title":"RefundSweepResult"},"RejectMarketplaceBundleRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","title":"RejectMarketplaceBundleRequest"},"ReorderRequest":{"properties":{"question_ids":{"items":{"type":"integer","maximum":9.223372036854776e+18,"minimum":1.0},"type":"array","minItems":1,"title":"Question Ids","description":"Exact permutation of the draft's current question ids, in the new order."}},"type":"object","required":["question_ids"],"title":"ReorderRequest"},"ReplaceComponentsRequest":{"properties":{"components":{"items":{"$ref":"#/components/schemas/BundleComponentItem"},"type":"array","title":"Components"}},"type":"object","title":"ReplaceComponentsRequest"},"ReportCardHeadlineRead":{"properties":{"derived_net":{"type":"number","title":"Derived Net"},"top_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top Share","description":"``100 - mid`` of the official-net position; null when the position is gated."},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank"},"cohort_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort Size"}},"type":"object","required":["derived_net"],"title":"ReportCardHeadlineRead"},"ReportCardLinkRead":{"properties":{"group":{"type":"string","title":"Group","description":"Viewer group to open (S0 ``vocabularies.viewer_group``)."},"question_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Id"}},"type":"object","required":["group"],"title":"ReportCardLinkRead"},"ReportCardRead":{"properties":{"headline":{"$ref":"#/components/schemas/ReportCardHeadlineRead"},"good":{"items":{"oneOf":[{"$ref":"#/components/schemas/BestSubjectItemRead"},{"$ref":"#/components/schemas/HardCorrectItemRead"},{"$ref":"#/components/schemas/PositionItemRead"}],"discriminator":{"propertyName":"id","mapping":{"best-subject":"#/components/schemas/BestSubjectItemRead","hard-correct":"#/components/schemas/HardCorrectItemRead","position":"#/components/schemas/PositionItemRead"}}},"type":"array","title":"Good","description":"best-subject (60 + delta), hard-correct (55 + count), position (50); at most 2."},"watch":{"items":{"oneOf":[{"$ref":"#/components/schemas/ExpectedMissesItemRead"},{"$ref":"#/components/schemas/TrapWrongsItemRead"},{"$ref":"#/components/schemas/WorstSubjectItemRead"},{"$ref":"#/components/schemas/BlanksItemRead"}],"discriminator":{"propertyName":"id","mapping":{"blanks":"#/components/schemas/BlanksItemRead","expected-misses":"#/components/schemas/ExpectedMissesItemRead","trap-wrongs":"#/components/schemas/TrapWrongsItemRead","worst-subject":"#/components/schemas/WorstSubjectItemRead"}}},"type":"array","title":"Watch","description":"expected-misses (100 + count), trap-wrongs (85), worst-subject (70), blanks (65); at most 2."},"actions":{"items":{"oneOf":[{"$ref":"#/components/schemas/ActReviewMissedItemRead"},{"$ref":"#/components/schemas/ActTrapsItemRead"},{"$ref":"#/components/schemas/ActBlanksItemRead"},{"$ref":"#/components/schemas/ActWorstSubjectItemRead"}],"discriminator":{"propertyName":"id","mapping":{"act-blanks":"#/components/schemas/ActBlanksItemRead","act-review-missed":"#/components/schemas/ActReviewMissedItemRead","act-traps":"#/components/schemas/ActTrapsItemRead","act-worst-subject":"#/components/schemas/ActWorstSubjectItemRead"}}},"type":"array","title":"Actions","description":"act-review-missed (100), act-traps (90), act-blanks (80), act-worst-subject (70); at most 3."}},"type":"object","required":["headline","good","watch","actions"],"title":"ReportCardRead","description":"6.8: selection, weights, order and truncation (good 2, watch 2, actions 3) server-side; the headline mixes bases as\ndocumented. Equal weights keep insertion order; ``good`` is always shown before ``watch``."},"RescheduleLessonRequestByStudentRequest":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"start_time":{"type":"string","format":"date-time","title":"Start Time","description":"tz-aware timestamp (Istanbul)"},"end_time":{"type":"string","format":"date-time","title":"End Time","description":"tz-aware timestamp (Istanbul)"}},"type":"object","required":["lesson_request_id","start_time","end_time"],"title":"RescheduleLessonRequestByStudentRequest"},"ResultBookletRead":{"properties":{"order":{"type":"integer","title":"Order"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"net":{"type":"number","title":"Net"}},"type":"object","required":["order","correct","wrong","blank","net"],"title":"ResultBookletRead","description":"One kitapçık under the 120 rule (a block the student is not scored on counts nothing)."},"ResultGateRead":{"properties":{"name":{"type":"string","title":"Name"},"required":{"type":"integer","title":"Required"},"actual":{"type":"integer","title":"Actual"}},"type":"object","required":["name","required","actual"],"title":"ResultGateRead","description":"Why a group's figures are null: fewer students than the minimum."},"ResultGroupRead":{"properties":{"key":{"additionalProperties":true,"type":"object","title":"Key"},"n":{"type":"integer","title":"N"},"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net"},"booklet_mean_nets":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"object","title":"Booklet Mean Nets"},"gate":{"anyOf":[{"$ref":"#/components/schemas/ResultGateRead"},{"type":"null"}]}},"type":"object","required":["key","n"],"title":"ResultGroupRead","description":"One group of a results summary: ``key`` names it (``campus_code`` / ``section_code`` /\n``grade_level`` / ``field_of_study``, or ``{\"all\": true}``). Below the minimum size the\nfigures are null and ``gate`` says so; ``n`` always stays."},"ResultNumbersRead":{"properties":{"grade_level":{"type":"integer","title":"Grade Level"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study"},"section_code":{"type":"string","title":"Section Code"},"campus_code":{"type":"string","title":"Campus Code"},"booklet_form":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booklet Form"},"scoring_block":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block"},"scoring_block_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scoring Block Basis"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"net":{"type":"number","title":"Net"},"official_source":{"type":"string","title":"Official Source"},"computed_net":{"type":"number","title":"Computed Net"},"booklets":{"items":{"$ref":"#/components/schemas/ResultBookletRead"},"type":"array","title":"Booklets"},"course_nets":{"additionalProperties":{"type":"number"},"type":"object","title":"Course Nets"},"ranks":{"$ref":"#/components/schemas/ResultRanksRead"},"file_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Rank"}},"type":"object","required":["grade_level","section_code","campus_code","correct","wrong","blank","net","official_source","computed_net","ranks"],"title":"ResultNumbersRead","description":"One sitting's numbers. ``correct/wrong/blank/net`` are the OFFICIAL ones: the school's when its file\ncarried them (``official_source = file``), else our 120-rule count (``computed``). ``computed_net`` and\n``booklets`` are always our own count, so the two can differ on a school file. The campus / section /\ngrade are the sitting's (a later transfer does not move a past exam). ``file_rank`` is the file's own\nrank when it was not a rank inside this cohort (a publisher-wide \"Genel Sıra\"); ``ranks`` never use it."},"ResultRankRead":{"properties":{"rank":{"type":"integer","title":"Rank"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["rank","count"],"title":"ResultRankRead","description":"A competition rank (1, 2, 2, 4) and the size of the group it was counted in."},"ResultRanksRead":{"properties":{"overall":{"$ref":"#/components/schemas/ResultRankRead"},"campus":{"$ref":"#/components/schemas/ResultRankRead"},"section":{"$ref":"#/components/schemas/ResultRankRead"}},"type":"object","required":["overall","campus","section"],"title":"ResultRanksRead"},"ResultSummaryRead":{"properties":{"group_by":{"type":"string","title":"Group By"},"min_n":{"type":"integer","title":"Min N"},"groups":{"items":{"$ref":"#/components/schemas/ResultGroupRead"},"type":"array","title":"Groups"},"institution":{"anyOf":[{"$ref":"#/components/schemas/ResultGroupRead"},{"type":"null"}]}},"type":"object","required":["group_by","min_n"],"title":"ResultSummaryRead"},"Result_AddQuestionResult_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AddQuestionResult"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AddQuestionResult]"},"Result_AdminComponentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminComponentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminComponentRead]"},"Result_AdminDocumentUrlRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminDocumentUrlRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminDocumentUrlRead]"},"Result_AdminPaymentDetailRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminPaymentDetailRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminPaymentDetailRead]"},"Result_AdminPaymentReconcileResult_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminPaymentReconcileResult"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminPaymentReconcileResult]"},"Result_AdminPaymentRowRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminPaymentRowRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminPaymentRowRead]"},"Result_AdminPayoutActionResult_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminPayoutActionResult"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminPayoutActionResult]"},"Result_AdminPayoutEvidenceUrlRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminPayoutEvidenceUrlRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminPayoutEvidenceUrlRead]"},"Result_AdminPayoutPaymentInstructionsRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminPayoutPaymentInstructionsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminPayoutPaymentInstructionsRead]"},"Result_AdminPayoutRequestDetailRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminPayoutRequestDetailRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminPayoutRequestDetailRead]"},"Result_AdminPayoutRequestRowRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminPayoutRequestRowRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminPayoutRequestRowRead]"},"Result_AdminReturnedTransferRow_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminReturnedTransferRow"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminReturnedTransferRow]"},"Result_AdminTeacherBalanceRow_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminTeacherBalanceRow"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminTeacherBalanceRow]"},"Result_AdminTransferActionResult_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminTransferActionResult"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminTransferActionResult]"},"Result_AdminVideoPlaybackRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AdminVideoPlaybackRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AdminVideoPlaybackRead]"},"Result_AnswerLessonRequestRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/AnswerLessonRequestRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[AnswerLessonRequestRead]"},"Result_BranchReturn_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BranchReturn"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[BranchReturn]"},"Result_BundleAnalyticsSummaryRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BundleAnalyticsSummaryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[BundleAnalyticsSummaryRead]"},"Result_BundleCardRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BundleCardRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[BundleCardRead]"},"Result_BundleHomeworkAnalyticsDetailRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BundleHomeworkAnalyticsDetailRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[BundleHomeworkAnalyticsDetailRead]"},"Result_BundleListItem_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BundleListItem"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[BundleListItem]"},"Result_BundlePurchaseRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BundlePurchaseRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[BundlePurchaseRead]"},"Result_BundleRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BundleRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[BundleRead]"},"Result_BundleStudentAnalyticsDetailRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BundleStudentAnalyticsDetailRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[BundleStudentAnalyticsDetailRead]"},"Result_BundleVideoPlaybackRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/BundleVideoPlaybackRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[BundleVideoPlaybackRead]"},"Result_CampusImportReport_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CampusImportReport"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CampusImportReport]"},"Result_CampusRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CampusRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CampusRead]"},"Result_CancelLessonRequestByStudentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CancelLessonRequestByStudentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CancelLessonRequestByStudentRead]"},"Result_CancelLessonRequestByTeacherRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CancelLessonRequestByTeacherRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CancelLessonRequestByTeacherRead]"},"Result_CatalogSearchItem_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CatalogSearchItem"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CatalogSearchItem]"},"Result_ChatConversationPageRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ChatConversationPageRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ChatConversationPageRead]"},"Result_ChatConversationRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ChatConversationRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ChatConversationRead]"},"Result_ChatMessageRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ChatMessageRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ChatMessageRead]"},"Result_ChatMessagesPageRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ChatMessagesPageRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ChatMessagesPageRead]"},"Result_ChatReadStateRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ChatReadStateRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ChatReadStateRead]"},"Result_ChatUnseenCountRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ChatUnseenCountRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ChatUnseenCountRead]"},"Result_ChatUnseenTotalRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ChatUnseenTotalRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ChatUnseenTotalRead]"},"Result_CollegeRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CollegeRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CollegeRead]"},"Result_CourseAnnouncementOverviewPageRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CourseAnnouncementOverviewPageRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CourseAnnouncementOverviewPageRead]"},"Result_CourseAnnouncementRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CourseAnnouncementRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CourseAnnouncementRead]"},"Result_CourseDocumentCanvasRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CourseDocumentCanvasRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CourseDocumentCanvasRead]"},"Result_CourseDraftRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CourseDraftRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CourseDraftRead]"},"Result_CourseLessonRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CourseLessonRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CourseLessonRead]"},"Result_CourseRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CourseRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CourseRead]"},"Result_CourseSyllabusRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/CourseSyllabusRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[CourseSyllabusRead]"},"Result_DeliveryRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/DeliveryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[DeliveryRead]"},"Result_DeviceTokenDeleteRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/DeviceTokenDeleteRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[DeviceTokenDeleteRead]"},"Result_DeviceTokenRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/DeviceTokenRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[DeviceTokenRead]"},"Result_DistrictRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/DistrictRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[DistrictRead]"},"Result_DocumentDownloadRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/DocumentDownloadRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[DocumentDownloadRead]"},"Result_DocumentTokenRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/DocumentTokenRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[DocumentTokenRead]"},"Result_DocumentUrlRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/DocumentUrlRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[DocumentUrlRead]"},"Result_EnrollmentChangeMessage_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/EnrollmentChangeMessage"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[EnrollmentChangeMessage]"},"Result_EnrollmentStatus_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/EnrollmentStatus"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[EnrollmentStatus]"},"Result_EntryTasksResponse_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/EntryTasksResponse"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[EntryTasksResponse]"},"Result_ExamIntakeRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExamIntakeRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ExamIntakeRead]"},"Result_ExpenseLedgerXlsxRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExpenseLedgerXlsxRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ExpenseLedgerXlsxRead]"},"Result_ExternalIdentityRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExternalIdentityRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ExternalIdentityRead]"},"Result_ExternalParentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExternalParentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ExternalParentRead]"},"Result_ExternalStaffRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ExternalStaffRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ExternalStaffRead]"},"Result_HomeworkMiniRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/HomeworkMiniRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[HomeworkMiniRead]"},"Result_HomeworkRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/HomeworkRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[HomeworkRead]"},"Result_HomeworkStatsRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/HomeworkStatsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[HomeworkStatsRead]"},"Result_HomeworkSubmissionListItem_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/HomeworkSubmissionListItem"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[HomeworkSubmissionListItem]"},"Result_HomeworkSubmissionRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/HomeworkSubmissionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[HomeworkSubmissionRead]"},"Result_HomeworkSubmissionResultRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/HomeworkSubmissionResultRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[HomeworkSubmissionResultRead]"},"Result_InstitutionExamRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InstitutionExamRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[InstitutionExamRead]"},"Result_InstitutionOnboardReport_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InstitutionOnboardReport"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[InstitutionOnboardReport]"},"Result_InstitutionRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InstitutionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[InstitutionRead]"},"Result_InstitutionRequestReceipt_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InstitutionRequestReceipt"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[InstitutionRequestReceipt]"},"Result_InstitutionSiteRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InstitutionSiteRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[InstitutionSiteRead]"},"Result_InterventionGroupRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/InterventionGroupRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[InterventionGroupRead]"},"Result_IssuedCredentialRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/IssuedCredentialRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[IssuedCredentialRead]"},"Result_KarneExportRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/KarneExportRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[KarneExportRead]"},"Result_LessonCompletedSubunitsRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/LessonCompletedSubunitsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[LessonCompletedSubunitsRead]"},"Result_LessonRequestDocumentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/LessonRequestDocumentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[LessonRequestDocumentRead]"},"Result_LessonRequestInvoiceRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/LessonRequestInvoiceRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[LessonRequestInvoiceRead]"},"Result_LessonRequestSubunitsRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/LessonRequestSubunitsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[LessonRequestSubunitsRead]"},"Result_LessonStatusItemRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/LessonStatusItemRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[LessonStatusItemRead]"},"Result_LevelRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/LevelRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[LevelRead]"},"Result_LevelTree_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/LevelTree"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[LevelTree]"},"Result_LevelWithSubbranches_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/LevelWithSubbranches"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[LevelWithSubbranches]"},"Result_MakeupAvailabilityDayRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MakeupAvailabilityDayRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MakeupAvailabilityDayRead]"},"Result_MarkAllAnnouncementsSeenRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarkAllAnnouncementsSeenRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarkAllAnnouncementsSeenRead]"},"Result_MarkAllSeenRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarkAllSeenRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarkAllSeenRead]"},"Result_MarkClickedRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarkClickedRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarkClickedRead]"},"Result_MarkSeenRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarkSeenRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarkSeenRead]"},"Result_MarketplaceBundleAnnouncementRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarketplaceBundleAnnouncementRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarketplaceBundleAnnouncementRead]"},"Result_MarketplaceBundleListItem_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarketplaceBundleListItem"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarketplaceBundleListItem]"},"Result_MarketplaceBundleRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarketplaceBundleRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarketplaceBundleRead]"},"Result_MarketplaceContentComponentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarketplaceContentComponentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarketplaceContentComponentRead]"},"Result_MarketplaceEnrollmentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarketplaceEnrollmentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarketplaceEnrollmentRead]"},"Result_MarketplacePublishingConfigRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MarketplacePublishingConfigRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MarketplacePublishingConfigRead]"},"Result_MeetLinkGenerated_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MeetLinkGenerated"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MeetLinkGenerated]"},"Result_MeetLinkPreviewRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MeetLinkPreviewRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MeetLinkPreviewRead]"},"Result_MembershipRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MembershipRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MembershipRead]"},"Result_MyAccessRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MyAccessRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MyAccessRead]"},"Result_MyBundlePurchaseItem_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MyBundlePurchaseItem"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MyBundlePurchaseItem]"},"Result_MyEnrolledBundleRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MyEnrolledBundleRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MyEnrolledBundleRead]"},"Result_MyInstitutionRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MyInstitutionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MyInstitutionRead]"},"Result_MyPaymentRowRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/MyPaymentRowRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[MyPaymentRowRead]"},"Result_NextLiveLessonRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/NextLiveLessonRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[NextLiveLessonRead]"},"Result_NextQuestionRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/NextQuestionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[NextQuestionRead]"},"Result_NoneType_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"type":"null"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[NoneType]"},"Result_NotificationChannelPreferencesRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/NotificationChannelPreferencesRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[NotificationChannelPreferencesRead]"},"Result_NotificationPageRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/NotificationPageRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[NotificationPageRead]"},"Result_NotificationRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/NotificationRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[NotificationRead]"},"Result_OutcomeRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/OutcomeRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[OutcomeRead]"},"Result_OutcomeTodosView_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/OutcomeTodosView"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[OutcomeTodosView]"},"Result_ParentPhoneOtpRequestRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ParentPhoneOtpRequestRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ParentPhoneOtpRequestRead]"},"Result_ParentPhoneStatusRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ParentPhoneStatusRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ParentPhoneStatusRead]"},"Result_PatchTeacherLabelsResult_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PatchTeacherLabelsResult"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[PatchTeacherLabelsResult]"},"Result_PayoutAccountRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PayoutAccountRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[PayoutAccountRead]"},"Result_PayoutEligibilityRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PayoutEligibilityRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[PayoutEligibilityRead]"},"Result_PayoutRequestDetailRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PayoutRequestDetailRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[PayoutRequestDetailRead]"},"Result_PayoutSweepResult_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PayoutSweepResult"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[PayoutSweepResult]"},"Result_PermissionRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PermissionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[PermissionRead]"},"Result_PlannedLiveLectureRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PlannedLiveLectureRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[PlannedLiveLectureRead]"},"Result_PlannedLiveWindowRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PlannedLiveWindowRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[PlannedLiveWindowRead]"},"Result_PlaybackResponse_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/PlaybackResponse"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[PlaybackResponse]"},"Result_ProfileRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ProfileRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ProfileRead]"},"Result_ProfileTcknRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ProfileTcknRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ProfileTcknRead]"},"Result_ProgramRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ProgramRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ProgramRead]"},"Result_ProvinceRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ProvinceRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ProvinceRead]"},"Result_RefundActionResult_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RefundActionResult"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RefundActionResult]"},"Result_RefundRowRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RefundRowRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RefundRowRead]"},"Result_RefundSweepResult_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RefundSweepResult"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RefundSweepResult]"},"Result_ResultSummaryRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ResultSummaryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ResultSummaryRead]"},"Result_RoleOverviewRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RoleOverviewRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RoleOverviewRead]"},"Result_RoleRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RoleRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RoleRead]"},"Result_RoleWithPermissions_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RoleWithPermissions"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RoleWithPermissions]"},"Result_RosterAccountsReport_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RosterAccountsReport"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RosterAccountsReport]"},"Result_RosterEntryRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RosterEntryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RosterEntryRead]"},"Result_RosterStudentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RosterStudentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RosterStudentRead]"},"Result_RosterTermRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RosterTermRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RosterTermRead]"},"Result_RosterUploadReport_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RosterUploadReport"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[RosterUploadReport]"},"Result_SchemeTodoRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SchemeTodoRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SchemeTodoRead]"},"Result_SchoolRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SchoolRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SchoolRead]"},"Result_SectionRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SectionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SectionRead]"},"Result_SiteRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SiteRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SiteRead]"},"Result_SkipResult_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SkipResult"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SkipResult]"},"Result_StaffImportReport_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StaffImportReport"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StaffImportReport]"},"Result_StorefrontBundleDetail_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StorefrontBundleDetail"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StorefrontBundleDetail]"},"Result_StorefrontBundleItem_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StorefrontBundleItem"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StorefrontBundleItem]"},"Result_StudentAssignmentDeadlineRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentAssignmentDeadlineRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentAssignmentDeadlineRead]"},"Result_StudentAttendanceBreakdownRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentAttendanceBreakdownRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentAttendanceBreakdownRead]"},"Result_StudentAttendanceRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentAttendanceRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentAttendanceRead]"},"Result_StudentBundleProgressRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentBundleProgressRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentBundleProgressRead]"},"Result_StudentCombinedAttendanceRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentCombinedAttendanceRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentCombinedAttendanceRead]"},"Result_StudentDashboardStatsRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentDashboardStatsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentDashboardStatsRead]"},"Result_StudentExamResultRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentExamResultRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentExamResultRead]"},"Result_StudentHomeworkAssignmentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentHomeworkAssignmentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentHomeworkAssignmentRead]"},"Result_StudentHomeworkDisciplineRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentHomeworkDisciplineRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentHomeworkDisciplineRead]"},"Result_StudentHomeworkRankingRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentHomeworkRankingRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentHomeworkRankingRead]"},"Result_StudentImportReport_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentImportReport"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentImportReport]"},"Result_StudentMeRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentMeRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentMeRead]"},"Result_StudentProfileCompletionRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentProfileCompletionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentProfileCompletionRead]"},"Result_StudentQuestionnaireRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentQuestionnaireRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentQuestionnaireRead]"},"Result_StudentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentRead]"},"Result_StudentReportRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentReportRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentReportRead]"},"Result_StudentReportShareListItemRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentReportShareListItemRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentReportShareListItemRead]"},"Result_StudentReportShareRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentReportShareRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentReportShareRead]"},"Result_StudentScheduleItemRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentScheduleItemRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentScheduleItemRead]"},"Result_StudentWithCoursesRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentWithCoursesRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[StudentWithCoursesRead]"},"Result_SubbranchRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SubbranchRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SubbranchRead]"},"Result_SubbranchWithUnits_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SubbranchWithUnits"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SubbranchWithUnits]"},"Result_SubunitRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SubunitRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SubunitRead]"},"Result_SubunitTodosView_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SubunitTodosView"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SubunitTodosView]"},"Result_SubunitWithOutcomes_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SubunitWithOutcomes"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[SubunitWithOutcomes]"},"Result_TaxonomyTreeRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TaxonomyTreeRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TaxonomyTreeRead]"},"Result_TeacherAnalyticsSummaryRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherAnalyticsSummaryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherAnalyticsSummaryRead]"},"Result_TeacherApprovalRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherApprovalRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherApprovalRead]"},"Result_TeacherBundleEarningsSummaryRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherBundleEarningsSummaryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherBundleEarningsSummaryRead]"},"Result_TeacherDocumentAttachmentsRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherDocumentAttachmentsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherDocumentAttachmentsRead]"},"Result_TeacherDocumentHomeworkRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherDocumentHomeworkRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherDocumentHomeworkRead]"},"Result_TeacherDocumentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherDocumentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherDocumentRead]"},"Result_TeacherEarningsSummaryRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherEarningsSummaryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherEarningsSummaryRead]"},"Result_TeacherLabelFieldListRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherLabelFieldListRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherLabelFieldListRead]"},"Result_TeacherLabelFieldRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherLabelFieldRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherLabelFieldRead]"},"Result_TeacherLabelsRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherLabelsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherLabelsRead]"},"Result_TeacherOnboardingStateRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherOnboardingStateRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherOnboardingStateRead]"},"Result_TeacherOverview_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherOverview"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherOverview]"},"Result_TeacherProfileVideoRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherProfileVideoRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherProfileVideoRead]"},"Result_TeacherQuizRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherQuizRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherQuizRead]"},"Result_TeacherReviews_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherReviews"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherReviews]"},"Result_TeacherRosterStudentRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherRosterStudentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherRosterStudentRead]"},"Result_TeacherScheduleItemRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherScheduleItemRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherScheduleItemRead]"},"Result_TeacherStudentAnalyticsForTeacherRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherStudentAnalyticsForTeacherRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TeacherStudentAnalyticsForTeacherRead]"},"Result_TestListItem_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TestListItem"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TestListItem]"},"Result_TestRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TestRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TestRead]"},"Result_ThumbnailUploadResponse_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ThumbnailUploadResponse"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ThumbnailUploadResponse]"},"Result_TutoringLessonAttendanceAnalyticsRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TutoringLessonAttendanceAnalyticsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TutoringLessonAttendanceAnalyticsRead]"},"Result_TutoringLessonCardRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TutoringLessonCardRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TutoringLessonCardRead]"},"Result_TutoringLessonParentReportRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TutoringLessonParentReportRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TutoringLessonParentReportRead]"},"Result_TutoringLessonRequestAttendanceMapRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TutoringLessonRequestAttendanceMapRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TutoringLessonRequestAttendanceMapRead]"},"Result_TutoringLessonRequestByCourseRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TutoringLessonRequestByCourseRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TutoringLessonRequestByCourseRead]"},"Result_TutoringLessonRequestRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TutoringLessonRequestRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TutoringLessonRequestRead]"},"Result_TutoringMatchGroupRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TutoringMatchGroupRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TutoringMatchGroupRead]"},"Result_TutoringMatchRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TutoringMatchRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[TutoringMatchRead]"},"Result_UnitRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/main_api__modules__curriculum__schemas__UnitRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[UnitRead]"},"Result_UnitTodosView_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/UnitTodosView"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[UnitTodosView]"},"Result_UnitWithSubunits_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/UnitWithSubunits"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[UnitWithSubunits]"},"Result_UnseenNotificationTotalRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/UnseenNotificationTotalRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[UnseenNotificationTotalRead]"},"Result_UserBanRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/UserBanRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[UserBanRead]"},"Result_UserCreditsRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/UserCreditsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[UserCreditsRead]"},"Result_UserDirectoryRow_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/UserDirectoryRow"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[UserDirectoryRow]"},"Result_UserRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/UserRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[UserRead]"},"Result_VideoInitResponse_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/VideoInitResponse"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[VideoInitResponse]"},"Result_VideoWatchStateRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/VideoWatchStateRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[VideoWatchStateRead]"},"Result_ViewRolesByPermissionResponse_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ViewRolesByPermissionResponse"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ViewRolesByPermissionResponse]"},"Result_WeeklyBusyMapDTO_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/WeeklyBusyMapDTO"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[WeeklyBusyMapDTO]"},"Result_WeeklyBusyMapRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/WeeklyBusyMapRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[WeeklyBusyMapRead]"},"Result_ZoomJoinTokenRead_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ZoomJoinTokenRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ZoomJoinTokenRead]"},"Result_ZoomJoinToken_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ZoomJoinToken"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[ZoomJoinToken]"},"Result_bool_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"type":"boolean"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[bool]"},"Result_dict_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[dict]"},"Result_int_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"type":"integer"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[int]"},"Result_str_":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"type":"string"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["code","message"],"title":"Result[str]"},"ReviewModerationStatus":{"type":"string","enum":["PENDING","APPROVED"],"title":"ReviewModerationStatus"},"ReviewProductRef":{"properties":{"product_type":{"$ref":"#/components/schemas/TeacherReviewProductType"},"marketplace_bundle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketplace Bundle Id"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"}},"additionalProperties":false,"type":"object","required":["product_type"],"title":"ReviewProductRef","description":"One product tag the reviewer claims: a marketplace bundle they enrolled\nin, or one-on-one lessons in a subbranch. Exactly the id matching the\ntype must be set; the service verifies the claim against real evidence."},"ReviewRequest":{"properties":{"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"score":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Score","description":"Score between 1 and 5 inclusive."},"review":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Review"},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"products":{"items":{"$ref":"#/components/schemas/ReviewProductRef"},"type":"array","maxItems":5,"title":"Products"}},"additionalProperties":false,"type":"object","required":["teacher_id","score"],"title":"ReviewRequest","description":"Payload for creating a teacher review by a student.\nTeacher identity is explicit via teacher_id; student is taken from auth context.\nEvery POST replaces the review's product set with ``products``\n(absent/empty clears it) — the endpoint upserts the whole review."},"RevokeParentRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"RevokeParentRequest"},"RevokePermissionRequest":{"properties":{"roleID":{"type":"string","format":"uuid","title":"Roleid"},"permissionID":{"type":"string","format":"uuid","title":"Permissionid"}},"type":"object","required":["roleID","permissionID"],"title":"RevokePermissionRequest"},"RevokeRoleRequest":{"properties":{"userID":{"type":"string","format":"uuid4","title":"Userid"},"roleID":{"type":"string","format":"uuid","title":"Roleid"}},"type":"object","required":["userID","roleID"],"title":"RevokeRoleRequest"},"RevokeStaffRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"RevokeStaffRequest"},"RoleOverviewRead":{"properties":{"role":{"$ref":"#/components/schemas/RoleRead"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionRead"},"type":"array","title":"Permissions"},"member_count":{"type":"integer","title":"Member Count","default":0},"is_locked":{"type":"boolean","title":"Is Locked","default":false},"is_assignable":{"type":"boolean","title":"Is Assignable","default":true},"is_system":{"type":"boolean","title":"Is System","default":true}},"type":"object","required":["role","permissions"],"title":"RoleOverviewRead","description":"One role card: its permissions, its size and what may be edited."},"RoleRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","created_at","updated_at"],"title":"RoleRead"},"RoleWithPermissions":{"properties":{"role":{"$ref":"#/components/schemas/RoleRead"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionRead"},"type":"array","title":"Permissions"}},"type":"object","required":["role","permissions"],"title":"RoleWithPermissions"},"RosterAccountsReport":{"properties":{"created":{"type":"integer","title":"Created","default":0},"pending":{"type":"integer","title":"Pending","default":0},"credentials":{"items":{"$ref":"#/components/schemas/IssuedCredentialRead"},"type":"array","title":"Credentials"},"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term","description":"The term the accounts belong to (set by every write that provisions)."},"reissued":{"type":"integer","title":"Reissued","description":"``POST .../roster/accounts/reissue``: existing accounts given a new one-time password (their credentials follow); 0 elsewhere.","default":0}},"type":"object","title":"RosterAccountsReport","description":"What the upload did about accounts: ``created`` new ones (their credentials follow), ``pending``\nidentities still without one (over ``ACCOUNT_PROVISION_MAX_INLINE``: POST .../roster/accounts/provision)."},"RosterEntryRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"student_no":{"type":"string","title":"Student No"},"full_name":{"type":"string","title":"Full Name"},"term":{"type":"string","title":"Term"},"grade_level":{"type":"integer","title":"Grade Level"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study"},"section_code":{"type":"string","title":"Section Code"},"campus_code":{"type":"string","title":"Campus Code"},"is_active":{"type":"boolean","title":"Is Active"},"removed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Removed At"},"upload_id":{"type":"string","format":"uuid","title":"Upload Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"has_account":{"type":"boolean","title":"Has Account","default":false},"account_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Source"},"credential_issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Credential Issued At"}},"type":"object","required":["id","student_id","student_no","full_name","term","grade_level","section_code","campus_code","is_active","upload_id","created_at","updated_at"],"title":"RosterEntryRead"},"RosterIssueRead":{"properties":{"row":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Row"},"column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Column"},"code":{"type":"string","title":"Code"},"detail":{"type":"string","title":"Detail","default":""}},"type":"object","required":["code"],"title":"RosterIssueRead","description":"A problem in an uploaded roster: where and what, never the cell value."},"RosterListMeta":{"properties":{"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":50},"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"},"scope":{"type":"string","title":"Scope","default":"all"},"section_codes":{"items":{"type":"string"},"type":"array","title":"Section Codes"},"campus_codes":{"items":{"type":"string"},"type":"array","title":"Campus Codes"}},"type":"object","title":"RosterListMeta"},"RosterListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RosterEntryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/RosterListMeta"}},"type":"object","required":["code","message"],"title":"RosterListResult"},"RosterSectionCount":{"properties":{"section_code":{"type":"string","title":"Section Code"},"campus_code":{"type":"string","title":"Campus Code"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["section_code","campus_code","count"],"title":"RosterSectionCount"},"RosterStudentRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileRead"},{"type":"null"}]},"School_Level":{"anyOf":[{"$ref":"#/components/schemas/SchoolLevel"},{"type":"null"}]},"Class_Level":{"anyOf":[{"$ref":"#/components/schemas/ClassLevel"},{"type":"null"}]},"Target_Ranking":{"anyOf":[{"$ref":"#/components/schemas/TargetRanking"},{"type":"null"}]},"Province":{"anyOf":[{"$ref":"#/components/schemas/ProvinceRead"},{"type":"null"}]},"District":{"anyOf":[{"$ref":"#/components/schemas/DistrictRead"},{"type":"null"}]},"School":{"anyOf":[{"$ref":"#/components/schemas/SchoolRead"},{"type":"null"}]},"Target_College_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target College Id"},"Target_Program_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id"},"Parent_Phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Phone"},"Parent_Phone_Verified_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Parent Phone Verified At"},"Last_Seen_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"}},"type":"object","required":["ID"],"title":"RosterStudentRead","description":"StudentRead plus last activity, for teacher-owned rosters only.\n\nThe field lives on a subclass, not on ``StudentRead``, because the base is the\nresponse model of ``/course_profile/student/profile`` (and its batch twin), which\nany authenticated caller can invoke for any student id in the tenant. \"When was this\nstudent last active\" is not something a student's peers get to read."},"RosterTermRead":{"properties":{"term":{"type":"string","title":"Term"},"active_count":{"type":"integer","title":"Active Count"},"last_upload_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Upload At"}},"type":"object","required":["term","active_count"],"title":"RosterTermRead"},"RosterUploadListMeta":{"properties":{"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":25},"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"}},"type":"object","title":"RosterUploadListMeta"},"RosterUploadListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/RosterUploadRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/RosterUploadListMeta"}},"type":"object","required":["code","message"],"title":"RosterUploadListResult"},"RosterUploadRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"term":{"type":"string","title":"Term"},"original_filename":{"type":"string","title":"Original Filename"},"file_kind":{"type":"string","title":"File Kind"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"rows_read":{"type":"integer","title":"Rows Read"},"rows_valid":{"type":"integer","title":"Rows Valid"},"students_created":{"type":"integer","title":"Students Created"},"entries_created":{"type":"integer","title":"Entries Created"},"entries_updated":{"type":"integer","title":"Entries Updated"},"entries_deactivated":{"type":"integer","title":"Entries Deactivated"},"uploaded_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Uploaded By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","term","original_filename","file_kind","file_size_bytes","rows_read","rows_valid","students_created","entries_created","entries_updated","entries_deactivated","created_at"],"title":"RosterUploadRead"},"RosterUploadReport":{"properties":{"term":{"type":"string","title":"Term"},"dry_run":{"type":"boolean","title":"Dry Run"},"file_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Kind"},"encoding":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encoding"},"rows_read":{"type":"integer","title":"Rows Read","default":0},"rows_valid":{"type":"integer","title":"Rows Valid","default":0},"students_new":{"type":"integer","title":"Students New","default":0},"students_existing":{"type":"integer","title":"Students Existing","default":0},"entries_created":{"type":"integer","title":"Entries Created","default":0},"entries_updated":{"type":"integer","title":"Entries Updated","default":0},"entries_unchanged":{"type":"integer","title":"Entries Unchanged","default":0},"entries_deactivated":{"type":"integer","title":"Entries Deactivated","default":0},"sections":{"items":{"$ref":"#/components/schemas/RosterSectionCount"},"type":"array","title":"Sections"},"grades":{"additionalProperties":{"type":"integer"},"type":"object","title":"Grades"},"upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Upload Id"},"issues":{"items":{"$ref":"#/components/schemas/RosterIssueRead"},"type":"array","title":"Issues"},"accounts":{"anyOf":[{"$ref":"#/components/schemas/RosterAccountsReport"},{"type":"null"}]}},"type":"object","required":["term","dry_run"],"title":"RosterUploadReport"},"SameStudentRead":{"properties":{"n":{"type":"integer","title":"N"},"prev_exam_id":{"type":"string","format":"uuid","title":"Prev Exam Id"},"prev_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prev Mean"},"curr_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Curr Mean"},"delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta","description":"`curr_mean - prev_mean`, unrounded."}},"type":"object","required":["n","prev_exam_id"],"title":"SameStudentRead"},"SchemeNecessity":{"type":"string","enum":["Required","Recommended"],"title":"SchemeNecessity"},"SchemeScopeLevel":{"type":"string","enum":["UNIT","SUBUNIT","OUTCOME"],"title":"SchemeScopeLevel"},"SchemeTodoInsert":{"properties":{"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"subunit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subunit Id"},"outcome_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Outcome Id"},"type":{"$ref":"#/components/schemas/SchemeType"},"amount":{"type":"integer","maximum":25.0,"minimum":1.0,"title":"Amount","default":1},"necessity":{"$ref":"#/components/schemas/SchemeNecessity"},"reason":{"type":"string","maxLength":300,"title":"Reason","default":""}},"type":"object","required":["type","necessity"],"title":"SchemeTodoInsert"},"SchemeTodoRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"unit_id":{"type":"string","format":"uuid","title":"Unit Id"},"subunit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subunit Id"},"outcome_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Outcome Id"},"scope_level":{"$ref":"#/components/schemas/SchemeScopeLevel"},"branch":{"$ref":"#/components/schemas/Branch"},"type":{"$ref":"#/components/schemas/SchemeType"},"amount":{"type":"integer","title":"Amount"},"necessity":{"$ref":"#/components/schemas/SchemeNecessity"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["id","tenant_id","unit_id","subunit_id","outcome_id","scope_level","branch","type","amount","necessity","reason"],"title":"SchemeTodoRead"},"SchemeTodoUpdate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"amount":{"anyOf":[{"type":"integer","maximum":25.0,"minimum":1.0},{"type":"null"}],"title":"Amount"},"necessity":{"anyOf":[{"$ref":"#/components/schemas/SchemeNecessity"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Reason"}},"type":"object","required":["id"],"title":"SchemeTodoUpdate"},"SchemeType":{"type":"string","enum":["IntroVideo","DefinitionVideo","QuestionVideo","ExamQuestionVideo","SummarySlides"],"title":"SchemeType"},"SchoolLevel":{"type":"string","enum":["PRIMARY_SCHOOL","SECONDARY_SCHOOL","HIGHSCHOOL","COLLEGE","GRADUATE"],"title":"SchoolLevel"},"SchoolRead":{"properties":{"id":{"type":"integer","title":"Id"},"district_id":{"type":"integer","title":"District Id"},"name":{"type":"string","title":"Name"},"level":{"$ref":"#/components/schemas/SchoolLevel"},"private":{"type":"boolean","title":"Private"}},"type":"object","required":["id","district_id","name","level","private"],"title":"SchoolRead"},"ScopeDetailGatesRead":{"properties":{"min_cell":{"type":"integer","title":"Min Cell"},"full_tier_n":{"type":"integer","title":"Full Tier N"},"trap_share_min":{"type":"number","title":"Trap Share Min"},"min_wrong_for_trap":{"type":"integer","title":"Min Wrong For Trap"},"blank_share_signal":{"type":"number","title":"Blank Share Signal"},"ceiling_correct_rate":{"type":"number","title":"Ceiling Correct Rate"},"min_cohort_stats":{"type":"integer","title":"Min Cohort Stats","description":"Intelligence: a mean needs this many students (20)."},"min_cohort_norms":{"type":"integer","title":"Min Cohort Norms","description":"Intelligence: a distribution, tercile or position needs this many (50)."},"min_peer_rate_n":{"type":"integer","title":"Min Peer Rate N","description":"Intelligence: a peer rate needs this many answers (10)."}},"type":"object","required":["min_cell","full_tier_n","trap_share_min","min_wrong_for_trap","blank_share_signal","ceiling_correct_rate","min_cohort_stats","min_cohort_norms","min_peer_rate_n"],"title":"ScopeDetailGatesRead"},"ScopeDetailRead":{"properties":{"exam":{"$ref":"#/components/schemas/ScopeExamRead"},"scope":{"$ref":"#/components/schemas/ScopeRead"},"n":{"type":"integer","title":"N","description":"Scoped students with answer data in this exam (all sections)."},"n_operational":{"type":"integer","title":"N Operational"},"tier":{"type":"string","title":"Tier","description":"5.9 on `n`."},"summary":{"$ref":"#/components/schemas/InsightRead"},"mean_accessible":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Accessible","description":"Mean `potential_net`; null below `min_cohort_stats` scoped students (`gate`)."},"mean_opportunity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Opportunity","description":"Mean `opportunity_net`; null with `mean_accessible`."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `mean_accessible` and `mean_opportunity` are null (the same gate as `summary.gate`); null when served."},"alternative_block_students":{"type":"integer","title":"Alternative Block Students"},"top_tier_entry_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Top Tier Entry Ids","description":"Scoped top-tier candidates (P1 `is_top_tier_candidate`). Deprecated (decision 31, A4, 2026-10-18): served one more release, then removed.","deprecated":true},"benchmark":{"$ref":"#/components/schemas/BenchmarkRead"},"campus_matrix":{"anyOf":[{"$ref":"#/components/schemas/CampusMatrixRead"},{"type":"null"}],"description":"Institution scope only."},"sub_scopes":{"anyOf":[{"items":{"$ref":"#/components/schemas/SubScopeRead"},"type":"array"},{"type":"null"}],"title":"Sub Scopes","description":"Campus scope only."},"sub_scope_parent_operational_mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sub Scope Parent Operational Mean Net","description":"Campus operational mean; only with `sub_scopes`, null below `min_cohort_stats` operational students (`sub_scope_parent_gate`)."},"sub_scope_parent_gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `sub_scope_parent_operational_mean_net` is null; null when served or without `sub_scopes`."},"subjects":{"items":{"$ref":"#/components/schemas/SubjectScopeStatRead"},"type":"array","title":"Subjects"},"questions":{"items":{"$ref":"#/components/schemas/ScopeQuestionRead"},"type":"array","title":"Questions","description":"Booklet order."},"pointers":{"items":{"$ref":"#/components/schemas/PointerRead"},"type":"array","title":"Pointers","description":"Empty unless `tier = full`; at most 3."},"gates":{"$ref":"#/components/schemas/ScopeDetailGatesRead"}},"type":"object","required":["exam","scope","n","n_operational","tier","summary","alternative_block_students","benchmark","gates"],"title":"ScopeDetailRead","description":"P2: the exam detail page for one scope (institution doc 6.6 to 6.9, 6.3 section rows)."},"ScopeDetailResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/ScopeDetailRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"ScopeDetailResult"},"ScopeExamRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"name":{"type":"string","title":"Name"},"administered_on":{"type":"string","format":"date","title":"Administered On"},"exam_scope":{"type":"string","title":"Exam Scope"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"term":{"type":"string","title":"Term"},"in_series":{"type":"boolean","title":"In Series","description":"The exam belongs to the institution series (6.1)."},"is_latest":{"type":"boolean","title":"Is Latest","description":"This exam is P8 `latest.exam_id`."},"cohort_size":{"type":"integer","title":"Cohort Size"},"scored_question_count":{"type":"integer","title":"Scored Question Count"}},"type":"object","required":["exam_id","name","administered_on","exam_scope","term","in_series","is_latest","cohort_size","scored_question_count"],"title":"ScopeExamRead"},"ScopeNamesRead":{"properties":{"level":{"type":"string","title":"Level"},"campus_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Id"},"campus_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Name"},"section_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Id"},"section_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Name"}},"type":"object","required":["level"],"title":"ScopeNamesRead"},"ScopeQuestionRead":{"properties":{"question_id":{"type":"string","title":"Question Id"},"position":{"type":"integer","title":"Position","description":"0-based booklet index."},"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"number":{"type":"integer","title":"Number"},"scoring_block":{"type":"string","title":"Scoring Block","description":"`core` | `din` | `din-alternative`."},"labeled":{"type":"boolean","title":"Labeled"},"topic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Id","description":"P0 topic id `<subject>/<bucket_id>`; null when unlabeled."},"topic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Name"},"skill_ids":{"items":{"type":"string"},"type":"array","title":"Skill Ids"},"skill_names":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array","title":"Skill Names"},"correct_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correct Answer"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Signed image URL (D11: null until images are hosted)."},"n":{"type":"integer","title":"N"},"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"},"answer_distribution":{"additionalProperties":{"type":"integer"},"type":"object","title":"Answer Distribution","description":"A to E (and any other mark seen), then `blank`."},"opportunity_students":{"type":"integer","title":"Opportunity Students"},"expected_miss_students":{"type":"integer","title":"Expected Miss Students"},"expected_miss_blank_students":{"type":"integer","title":"Expected Miss Blank Students","description":"The expected misses left blank (D46): a part of `expected_miss_students`, so the expected misses answered wrong are `expected_miss_students - expected_miss_blank_students`.","default":0},"trap_students":{"type":"integer","title":"Trap Students"},"opportunity_net_total":{"type":"number","title":"Opportunity Net Total"},"same_wrong_choice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Same Wrong Choice","description":"Most frequent in-scope wrong letter (ties: earlier letter); null without a wrong answer."},"same_wrong_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Same Wrong Count"},"concentration_gated":{"type":"boolean","title":"Concentration Gated","description":"`wrong >= min_wrong_for_trap and same_wrong_count / wrong >= trap_share_min`."},"tier":{"type":"string","title":"Tier","description":"5.9 on the question's `n`."},"discrimination":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discrimination","description":"Top minus bottom tercile rate; null when unlabeled or a tercile is empty."},"cohort":{"$ref":"#/components/schemas/QuestionCohortRead"},"signal":{"$ref":"#/components/schemas/SignalRead"}},"type":"object","required":["question_id","position","subject","subject_name","number","scoring_block","labeled","n","correct","wrong","blank","opportunity_students","expected_miss_students","trap_students","opportunity_net_total","concentration_gated","tier","cohort","signal"],"title":"ScopeQuestionRead","description":"6.7 per question over the scoped students' scored answers (only questions with in-scope `n > 0`)."},"ScopeRead":{"properties":{"level":{"type":"string","title":"Level","description":"`institution` | `campus` | `section`."},"campus_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Id"},"campus_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Name"},"section_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Id"},"section_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Name"}},"type":"object","required":["level"],"title":"ScopeRead","description":"The resolved scope with its names as of the exam (10.0)."},"ScopeStatsRead":{"properties":{"n":{"type":"integer","title":"N"},"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net","description":"Null below `min_cohort_stats` scoped students (`gate`; A6)."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `mean_net` is null; null when served."}},"type":"object","required":["n"],"title":"ScopeStatsRead"},"ScoringRead":{"properties":{"block":{"type":"string","title":"Block","description":"`din` | `din-alternative` (D6)."},"basis":{"type":"string","title":"Basis","description":"`din-answered` | `alternative-answered` | `both-answered` | `none-answered`."},"unscored_question_ids":{"items":{"type":"string"},"type":"array","title":"Unscored Question Ids"}},"type":"object","required":["block","basis"],"title":"ScoringRead"},"SectionListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SectionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/EntityListMeta"}},"type":"object","required":["code","message"],"title":"SectionListResult"},"SectionMateRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"entry_id":{"type":"string","format":"uuid","title":"Entry Id"},"full_name":{"type":"string","title":"Full Name"},"actual_net":{"type":"number","title":"Actual Net"}},"type":"object","required":["student_id","entry_id","full_name","actual_net"],"title":"SectionMateRead"},"SectionPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"short_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Short Name"},"is_operational":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Operational"}},"additionalProperties":false,"type":"object","title":"SectionPatch","description":"At least one field. A rename without ``short_name`` re-derives a short name that was still the derived one,\nand without ``is_operational`` a flag that was still the regex default; explicit values always win."},"SectionRankRead":{"properties":{"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank"},"name":{"type":"string","title":"Name","description":"Section display name (the strip shows it next to the rank, no denominator)."}},"type":"object","required":["name"],"title":"SectionRankRead"},"SectionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The entity's own id: the path parameter of PATCH .../sections/{section_id}."},"term":{"type":"string","title":"Term","description":"School year, e.g. 2026-2027."},"code":{"type":"string","title":"Code","description":"The roster section code: the section_id of every analytics payload (D10)."},"campus_code":{"type":"string","title":"Campus Code","description":"The roster campus code of the section's campus."},"campus_entity_id":{"type":"string","format":"uuid","title":"Campus Entity Id","description":"The campus entity's id (CampusRead.id)."},"name":{"type":"string","title":"Name","description":"Display name; starts as the code, the admin renames it."},"short_name":{"type":"string","title":"Short Name","description":"The name without the campus prefix (institution doc P8 hierarchy)."},"slug":{"type":"string","title":"Slug","description":"Handoff 5.8 slug, unique per institution and term (the campus slug is prefixed when two campuses share a section name)."},"is_operational":{"type":"boolean","title":"Is Operational","description":"Starts from the name: false when it matches \\[Ön Kayıt\\]|Kul[üu]b|HIZLANDIRMA|ONL[İI]NE (case-insensitive, institution doc 6.3); the admin may override it."},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","term","code","campus_code","campus_entity_id","name","short_name","slug","is_operational","updated_at"],"title":"SectionRead","description":"A section (class) of one term (D10; section codes are term-local)."},"SectionSignalRead":{"properties":{"early":{"type":"integer","title":"Early"},"middle":{"type":"integer","title":"Middle"},"late":{"type":"integer","title":"Late"},"late_heavy":{"type":"boolean","title":"Late Heavy","description":"When the sitting's stored 8.3 object carries it (pipeline 2026.10-e or later), Intelligence's own ``blanks.position.late_heavy`` (owner decision AV18): the last-third pile beyond what the tercile's per-question blank rates predict; false where Intelligence withheld it. Otherwise (an older run, an 8.3 object withheld below 50 students) the count rule (``late_pile``)."},"late_pile":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Late Pile","description":"The count rule alone over these counts: ``late > early + middle``, the rule of Intelligence's ``blanks.position.late_pile`` (whose counts leave the blanks without a peer rate out); a pile that question difficulty may explain, never a late-heavy claim by itself: a late pile counts only after the difficulty control (owner decision, 2026-10-11), which is the served position's ``late_heavy`` (``served`` of the per-exam body: S3 ``per_exam[]``, S8 ``strateji``). Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.blanks.position`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true}},"type":"object","required":["early","middle","late","late_heavy"],"title":"SectionSignalRead"},"SectionThirdsRead":{"properties":{"name":{"type":"string","title":"Name"},"thirds":{"items":{"type":"integer"},"type":"array","title":"Thirds","description":"Blank counts per third of the section's booklet index range."}},"type":"object","required":["name","thirds"],"title":"SectionThirdsRead"},"SendEmailPurpose":{"type":"string","enum":["AUTH_OTP","PWD_RESET_OTP","NOTIFICATION"],"title":"SendEmailPurpose"},"SendEmailRequest":{"properties":{"to_email":{"type":"string","format":"email","title":"To Email"},"subject":{"type":"string","maxLength":200,"minLength":1,"title":"Subject"},"message":{"type":"string","maxLength":5000,"minLength":1,"title":"Message"},"purpose":{"$ref":"#/components/schemas/SendEmailPurpose","default":"NOTIFICATION"}},"type":"object","required":["to_email","subject","message"],"title":"SendEmailRequest"},"SendEmailResponse":{"properties":{"provider":{"type":"string","title":"Provider"},"purpose":{"$ref":"#/components/schemas/SendEmailPurpose"},"accepted_to":{"type":"string","format":"email","title":"Accepted To"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"}},"type":"object","required":["provider","purpose","accepted_to"],"title":"SendEmailResponse"},"SendLessonRequestRequest":{"properties":{"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"start_time":{"type":"string","format":"date-time","title":"Start Time","description":"tz-aware timestamp (Istanbul)"},"end_time":{"type":"string","format":"date-time","title":"End Time","description":"tz-aware timestamp (Istanbul)"}},"type":"object","required":["teacher_id","subbranch_id","start_time","end_time"],"title":"SendLessonRequestRequest"},"SendSmsRequest":{"properties":{"phone_number":{"type":"string","maxLength":20,"minLength":10,"title":"Phone Number"},"message":{"type":"string","maxLength":1000,"minLength":1,"title":"Message"},"route":{"$ref":"#/components/schemas/SendSmsRoute","default":"BULK"}},"type":"object","required":["phone_number","message"],"title":"SendSmsRequest"},"SendSmsResponse":{"properties":{"provider":{"type":"string","title":"Provider"},"route":{"$ref":"#/components/schemas/SendSmsRoute"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"}},"type":"object","required":["provider","route"],"title":"SendSmsResponse"},"SendSmsRoute":{"type":"string","enum":["OTP","BULK"],"title":"SendSmsRoute"},"SendWhatsAppPurpose":{"type":"string","enum":["REMINDER","NOTIFICATION"],"title":"SendWhatsAppPurpose"},"SendWhatsAppRequest":{"properties":{"phone_number":{"type":"string","maxLength":20,"minLength":10,"title":"Phone Number"},"message":{"type":"string","maxLength":1000,"title":"Message","default":""},"template_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Template Name"},"template_params":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Template Params"},"purpose":{"$ref":"#/components/schemas/SendWhatsAppPurpose","default":"NOTIFICATION"}},"type":"object","required":["phone_number"],"title":"SendWhatsAppRequest"},"SendWhatsAppResponse":{"properties":{"provider":{"type":"string","title":"Provider"},"purpose":{"$ref":"#/components/schemas/SendWhatsAppPurpose"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"}},"type":"object","required":["provider","purpose"],"title":"SendWhatsAppResponse"},"SeriesExamRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"administered_on":{"type":"string","format":"date","title":"Administered On"},"exam_scope":{"type":"string","title":"Exam Scope"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"term":{"type":"string","title":"Term"},"in_series":{"type":"boolean","title":"In Series","description":"In the TYT series (`series`); false for every AYT and Tarama exam, and (D42, 2026-11-16) for a TYT exam of the series' grade and term whose results reached fewer than half of that term's campuses."},"exclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusion","description":"`scope-unknown` | `scope-mismatch` | `grade-unknown` | `grade-mismatch` | `term-unknown` | `term-mismatch` | `partial-coverage` (D42: one campus's own deneme); null when in series. AYT and Tarama exams are `scope-mismatch`."},"shares_date_with":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Shares Date With","description":"The other listed exams of the same date and the same `exam_scope` (a TYT and a Tarama of one day never share a series)."},"scope_stats":{"anyOf":[{"$ref":"#/components/schemas/ScopeStatsRead"},{"type":"null"}],"description":"Only with `scope`."}},"type":"object","required":["exam_id","exam_name","administered_on","exam_scope","term","in_series"],"title":"SeriesExamRead"},"SeriesSpecRead":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"},"exam_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Scope"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"label":{"type":"string","title":"Label"}},"type":"object","required":["label"],"title":"SeriesSpecRead"},"ServedExpectationRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"exam_id":{"type":"string","title":"Exam Id"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id"},"exam_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Scope"},"computed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Computed At"},"subjects":{"items":{"$ref":"#/components/schemas/ExpectationSubjectRead"},"type":"array","title":"Subjects"},"calibration":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Calibration","description":"Per ders: ``n``, ``coverage``, ``calibrated`` and, until calibrated, the gate ``expectation_calibration``."},"gate":{"anyOf":[{"$ref":"#/components/schemas/ExpectationGateRead"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"gates":{"additionalProperties":true,"type":"object","title":"Gates"},"advice":{"anyOf":[{"$ref":"#/components/schemas/AdviceBlockRead"},{"$ref":"#/components/schemas/AdviceGatedRead"},{"type":"null"}],"title":"Advice"},"per_exam_potential_net":{"anyOf":[{"$ref":"#/components/schemas/PerExamPotentialNetGatedRead"},{"$ref":"#/components/schemas/PerExamPotentialNetRead"},{"type":"null"}],"title":"Per Exam Potential Net"}},"additionalProperties":true,"type":"object","required":["schema_version","exam_id","subjects","calibration","gates"],"title":"ServedExpectationRead","description":"The expectation as the BFF serves it: Intelligence's body without its student id. A parent account reading a\nchild (``?student_ref=``) gets the same body as the child."},"ServedProfileRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"profile_version":{"type":"string","title":"Profile Version"},"term_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term Id"},"exam_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Scope"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study"},"alan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alan"},"sittings":{"type":"integer","title":"Sittings"},"subjects":{"items":{"$ref":"#/components/schemas/ProfileSubjectRead"},"type":"array","title":"Subjects"},"skills":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Skills","description":"The cross-ders skill cells (from 50 answers, ``skill_cross_subject_min_n``)."},"study_order":{"anyOf":[{"$ref":"#/components/schemas/ProfileStudyOrderRead"},{"type":"null"}]},"locks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Locks","description":"``{key, title, when, required, actual, unlocked, see?, note?}``: read ``unlocked`` and ``note`` as served, never open a lock from its count."},"gates":{"additionalProperties":true,"type":"object","title":"Gates"},"consumed":{"anyOf":[{"$ref":"#/components/schemas/ProfileConsumedRead"},{"type":"null"}]},"computed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Computed At"},"stale":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stale"},"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint"},"gate":{"anyOf":[{"$ref":"#/components/schemas/AnalysisGateRead"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"advice":{"anyOf":[{"$ref":"#/components/schemas/AdviceBlockRead"},{"$ref":"#/components/schemas/AdviceGatedRead"},{"type":"null"}],"title":"Advice"}},"additionalProperties":true,"type":"object","required":["schema_version","profile_version","sittings"],"title":"ServedProfileRead","description":"The profile as the BFF serves it: Intelligence's body, every field as sent, without Intelligence's student id\n(the item's ``student`` is the identity) and without a lock's ``see`` (an Intelligence route naming that id). A\nparent account reading a child (``/me/profile?student_ref=``) gets the same body as the child."},"SignalRead":{"properties":{"kind":{"type":"string","title":"Kind","description":"`concentration` | `blank` | `expected` | `opportunity` | `none` (6.7)."},"count":{"type":"integer","title":"Count"}},"type":"object","required":["kind","count"],"title":"SignalRead"},"SiteHostRead":{"properties":{"host":{"type":"string","title":"Host"},"panel":{"type":"string","enum":["student","staff"],"title":"Panel"}},"type":"object","required":["host","panel"],"title":"SiteHostRead"},"SiteHostWrite":{"properties":{"host":{"type":"string","maxLength":253,"minLength":1,"title":"Host","description":"A host under alfabemy.com, e.g. kurum.ornek.alfabemy.com (no scheme, no port)"},"panel":{"type":"string","enum":["student","staff"],"title":"Panel"}},"additionalProperties":false,"type":"object","required":["host","panel"],"title":"SiteHostWrite"},"SiteRead":{"properties":{"name":{"type":"string","title":"Name","description":"The name the brand shows: the site's display name, else the institution's own."},"name_lines":{"anyOf":[{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Name Lines","description":"A long name's two lines for a narrow sign-in page; joined with a space they are `name`."},"co_branded":{"type":"boolean","title":"Co Branded","description":"The institution's logo and name with a small Alfabemy mark beside them.","default":true},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url","description":"Square PNG, at most 1024 px; the URL changes when the logo does (cache it for good)."},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url","description":"The tab icon: the same logo, square PNG, at most 128 px."},"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color","description":"#rrggbb: the banner of the Kurum Paneli."},"wordmark":{"anyOf":[{"$ref":"#/components/schemas/SiteWordmark"},{"type":"null"}]},"return_link":{"anyOf":[{"$ref":"#/components/schemas/SiteReturnLink"},{"type":"null"}]},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"institution_id":{"type":"string","format":"uuid","title":"Institution Id"},"institution_slug":{"type":"string","title":"Institution Slug","description":"Backend and Intelligence slug; the panels check the account's membership against it."},"sign_in_methods":{"items":{"type":"string","enum":["institution-code","school-launch"]},"type":"array","title":"Sign In Methods","description":"institution-code: the institution has a login code; school-launch: a school sign-in partner is bound to it."},"locked_login_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locked Login Code","description":"Shown filled in and read only on the sign-in page; null: the student types the code."}},"type":"object","required":["name","updated_at","institution_id","institution_slug","sign_in_methods"],"title":"SiteRead","description":"The public read: the look plus what the sign-in page needs. Served for an active institution's registered host\nonly; the student and the staff host of one institution answer the same body."},"SiteReturnLink":{"properties":{"href":{"type":"string","title":"Href"},"label":{"type":"string","title":"Label"}},"type":"object","required":["href","label"],"title":"SiteReturnLink","description":"The button back to the institution's own site; ``label`` is the text the button shows."},"SiteReturnLinkWrite":{"properties":{"href":{"type":"string","maxLength":500,"minLength":1,"title":"Href","description":"https URL"},"label":{"type":"string","maxLength":60,"minLength":1,"title":"Label","description":"The button's text, e.g. Atölyem'e dön"}},"additionalProperties":false,"type":"object","required":["href","label"],"title":"SiteReturnLinkWrite"},"SiteWordmark":{"properties":{"bold":{"type":"string","title":"Bold"},"light":{"type":"string","title":"Light"}},"type":"object","required":["bold","light"],"title":"SiteWordmark","description":"The banner's wordmark: ``bold`` and ``light`` written one after the other, without a space."},"SiteWordmarkWrite":{"properties":{"bold":{"type":"string","maxLength":60,"minLength":1,"title":"Bold"},"light":{"type":"string","maxLength":60,"minLength":1,"title":"Light"}},"additionalProperties":false,"type":"object","required":["bold","light"],"title":"SiteWordmarkWrite"},"SkillRead":{"properties":{"id":{"type":"string","title":"Id"},"name_tr":{"type":"string","title":"Name Tr"},"description_tr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Tr"},"anchor_tr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anchor Tr"},"not_this_tr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Not This Tr"},"typical_subjects":{"items":{"type":"string"},"type":"array","title":"Typical Subjects"},"skills_vocab_version":{"type":"integer","title":"Skills Vocab Version"}},"additionalProperties":true,"type":"object","required":["id","name_tr","skills_vocab_version"],"title":"SkillRead","description":"One transferable skill of the vocabulary; ids are frozen within a ``skills_vocab_version``."},"SkillsRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"skills_vocab_version":{"type":"integer","title":"Skills Vocab Version"},"n_skills":{"type":"integer","title":"N Skills"},"data":{"items":{"$ref":"#/components/schemas/SkillRead"},"type":"array","title":"Data"},"generated_at":{"type":"string","title":"Generated At"}},"additionalProperties":true,"type":"object","required":["schema_version","skills_vocab_version","n_skills","data","generated_at"],"title":"SkillsRead","description":"``GET .../labeling/skills`` item: the skills vocabulary."},"SkillsResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SkillsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/LabelingBundleMeta"}},"type":"object","required":["code","message"],"title":"SkillsResult"},"SkipQuestionRequest":{"properties":{"question_id":{"type":"integer","maximum":9.223372036854776e+18,"minimum":1.0,"title":"Question Id","description":"The served question's platform id (from next-question)."}},"type":"object","required":["question_id"],"title":"SkipQuestionRequest"},"SkipResult":{"properties":{"question_id":{"type":"integer","title":"Question Id"},"view_count":{"type":"integer","title":"View Count"}},"type":"object","required":["question_id","view_count"],"title":"SkipResult"},"SmallCandidateRead":{"properties":{"id":{"type":"string","title":"Id","description":"konu.<subject>.<topic> or beceri.<skill>; the client's grup route parameter."},"type":{"type":"string","enum":["topic","skill"],"title":"Type","description":"topic (konu) or skill (beceri)."},"curriculum_id":{"type":"string","title":"Curriculum Id","description":"The target: <subject>/<bucket_id> for a topic, the skill id for a skill (the group's target_curriculum_id when saved; a topic is saved under the taxonomy's ders when the analysis filed its kova under a sibling ders of the same bölüm)."},"name":{"type":"string","title":"Name","description":"Topic or skill name (first chronological occurrence in the series)."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"Subject id of a topic group; null for a skill group."},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Name","description":"Subject display name of a topic group; null for a skill group."},"student_count":{"type":"integer","title":"Student Count","description":"Members: in-series pool students whose pooled cell is `weak` with strength `solid` or `corroborated`; at least `group_candidate_min_students` (4). Since 2026-10-17 (panel request A3, Intelligence decision 42) the groups come from Intelligence's pooled profile cells through `alfabemy_core.institution.group_candidates`."},"campus_count":{"type":"integer","title":"Campus Count","description":"Distinct campuses of the members (by campus id, as of their latest exam)."},"section_count":{"type":"integer","title":"Section Count","description":"Distinct campus + section pairs of the members (by id, as of their latest exam)."},"solid_count":{"type":"integer","title":"Solid Count","description":"Members with strength solid."},"corroborated_count":{"type":"integer","title":"Corroborated Count","description":"Members with strength corroborated (Intelligence's pooled strength)."},"recent_positive_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recent Positive Count","description":"Deprecated: null (the Backend's own per-exam verdicts are no longer the source).","deprecated":true},"evidence_question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Question Count","description":"Deprecated: null (no per-question items in the profile cells).","deprecated":true},"prerequisite_depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prerequisite Depth","description":"The kova's depth in the prerequisite graph (the foundations first: the list is ordered by it, then member count desc); 0 for a skill or a kova outside the graph; null for a kova on a cycle (`prerequisite_depth_reason`)."},"prerequisite_depth_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prerequisite Depth Reason","description":"Why `prerequisite_depth` is null (`prerequisite_cycle`); null otherwise."},"evidence_exams":{"items":{"$ref":"#/components/schemas/EvidenceExamRead"},"type":"array","title":"Evidence Exams","description":"The series exams the members' profiles pooled, chronological."},"member_names":{"items":{"type":"string"},"type":"array","title":"Member Names","description":"Member names in member order (6.13)."}},"type":"object","required":["id","type","curriculum_id","name","student_count","campus_count","section_count","solid_count","corroborated_count","member_names"],"title":"SmallCandidateRead","description":"Deprecated since 2026-10-17: below the core's gate there is no candidate, no name and no count (Intelligence\ndecision 45), so `small_candidates` is always empty; the model stays one release for the generated clients."},"SortDirection":{"type":"string","enum":["ASC","DESC"],"title":"SortDirection"},"SortOrder":{"type":"string","enum":["asc","desc"],"title":"SortOrder","description":"Shared by both earnings statements (like ``EarningStatus``)."},"SourceUnitRead":{"properties":{"unit_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"},"topic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Id"},"topic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Name"}},"additionalProperties":true,"type":"object","title":"SourceUnitRead","description":"The institution's own unit and topic behind a labelled question (8.1), as sent in the definition."},"StaffImportPlanRead":{"properties":{"add":{"type":"integer","title":"Add","description":"Subs with no row yet: a row is opened (no account until the first click, unless user_id links one)."},"update":{"type":"integer","title":"Update","description":"Live rows whose role, campus ids or account link change; a linked account's membership is re-applied now."},"restore":{"type":"integer","title":"Restore","description":"Revoked rows the file lists again: the mark is cleared on the same row (the same account comes back)."},"unchanged":{"type":"integer","title":"Unchanged","description":"Live rows the file repeats as they are (only the import stamp is written)."},"revoke":{"type":"integer","title":"Revoke","description":"Live rows whose sub is NOT in the file: revoked, their memberships and sessions end (the link stays)."},"link":{"type":"integer","title":"Link","description":"Of add + update: rows the file's user_id column links to an existing account now."},"sub_is_student":{"type":"integer","title":"Sub Is Student","description":"STAFF_SUB_IS_STUDENT: the sub is a linked student; the row is skipped (never merged)."},"user_mismatch":{"type":"integer","title":"User Mismatch","description":"USER_MISMATCH: the row is linked to another account than the file's user_id; skipped."},"user_not_eligible":{"type":"integer","title":"User Not Eligible","description":"USER_NOT_ELIGIBLE: the file's user_id is missing, deleted, banned or not a nil-tenant TEACHER account; skipped."},"user_already_staff":{"type":"integer","title":"User Already Staff","description":"USER_ALREADY_STAFF: the file's user_id is another staff row's account; skipped."}},"type":"object","required":["add","update","restore","unchanged","revoke","link","sub_is_student","user_mismatch","user_not_eligible","user_already_staff"],"title":"StaffImportPlanRead","description":"What the staff file would do against the rows the partner has today (``atolyem_import.import_staff``)."},"StaffImportReport":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run"},"file_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Kind"},"rows_read":{"type":"integer","title":"Rows Read","default":0},"rows_valid":{"type":"integer","title":"Rows Valid","default":0},"issues":{"items":{"$ref":"#/components/schemas/ImportIssueRead"},"type":"array","title":"Issues","description":"The first 200; a real run needs none."},"issues_total":{"type":"integer","title":"Issues Total","default":0},"plan":{"anyOf":[{"$ref":"#/components/schemas/StaffImportPlanRead"},{"type":"null"}],"description":"null when the file as a whole is unusable."},"refusals":{"items":{"$ref":"#/components/schemas/ImportRowRead"},"type":"array","title":"Refusals","description":"The rows the plan skips (the first 200), with the code; a skipped row still counts as listed (its sub is not revoked)."},"roster_term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Term","description":"The newest roster term the campus ids were checked against; null when the institution has no roster yet."},"unknown_campus_ids":{"items":{"type":"string"},"type":"array","title":"Unknown Campus Ids","description":"Campus ids of campus_manager rows that no active roster row of roster_term carries (the first 200). A warning: the panel's bar shows the last deneme's campuses anyway."},"unknown_campus_ids_total":{"type":"integer","title":"Unknown Campus Ids Total","default":0},"written":{"anyOf":[{"$ref":"#/components/schemas/StaffImportWrittenRead"},{"type":"null"}],"description":"A real run only."},"failures":{"items":{"$ref":"#/components/schemas/ImportRowRead"},"type":"array","title":"Failures","description":"Rows a real run could not write (the first 200); the same file sent again retries them."}},"type":"object","required":["dry_run"],"title":"StaffImportReport"},"StaffImportWrittenRead":{"properties":{"added":{"type":"integer","title":"Added","default":0},"updated":{"type":"integer","title":"Updated","default":0},"restored":{"type":"integer","title":"Restored","default":0},"revoked":{"type":"integer","title":"Revoked","default":0},"linked":{"type":"integer","title":"Linked","default":0},"failed":{"type":"integer","title":"Failed","default":0},"sessions_revoked":{"type":"integer","title":"Sessions Revoked","description":"Sessions ended by the revocations of this call.","default":0}},"type":"object","title":"StaffImportWrittenRead"},"StandoutRead":{"properties":{"entry_id":{"type":"string","format":"uuid","title":"Entry Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"full_name":{"type":"string","title":"Full Name"},"campus_id":{"type":"string","title":"Campus Id"},"campus_name":{"type":"string","title":"Campus Name"},"actual_net":{"type":"number","title":"Actual Net"},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade","description":"P0 `grades` code of the sitting (`9`..`12` | `mezun`), the same source as P6 `student.grade`; null when unknown."}},"type":"object","required":["entry_id","student_id","exam_id","full_name","campus_id","campus_name","actual_net"],"title":"StandoutRead"},"StorefrontBundleDetail":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"program_id":{"type":"string","format":"uuid","title":"Program Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"price_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Try"},"scope_items":{"items":{"type":"string"},"type":"array","title":"Scope Items","default":[]},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name"},"teacher_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Avatar Url"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name"},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"},"live_lecture_count":{"type":"integer","title":"Live Lecture Count","default":0},"first_live_lecture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Live Lecture At"},"enrollment_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Enrollment Ends At"},"cancel_decision_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel Decision At"},"enrolled_count":{"type":"integer","title":"Enrolled Count","default":0},"min_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Students"},"max_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Students"},"status":{"$ref":"#/components/schemas/StorefrontBundleState"},"cancelled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancelled Reason"},"duration_category":{"$ref":"#/components/schemas/DurationCategory","default":"ACCELERATED"},"async_video_count":{"type":"integer","title":"Async Video Count","default":0},"document_count":{"type":"integer","title":"Document Count","default":0},"homework_count":{"type":"integer","title":"Homework Count","default":0},"teacher_overview":{"anyOf":[{"$ref":"#/components/schemas/TeacherOverview"},{"type":"null"}]},"is_enrolled":{"type":"boolean","title":"Is Enrolled","default":false},"live_lecture_total_minutes":{"type":"integer","title":"Live Lecture Total Minutes","default":0},"homework_question_total":{"type":"integer","title":"Homework Question Total","default":0},"async_video_total_duration_seconds":{"type":"integer","title":"Async Video Total Duration Seconds","default":0},"components":{"items":{"$ref":"#/components/schemas/StorefrontComponentRead"},"type":"array","title":"Components","default":[]},"planned_live_lectures":{"items":{"$ref":"#/components/schemas/StorefrontLectureRead"},"type":"array","title":"Planned Live Lectures","default":[]}},"type":"object","required":["marketplace_bundle_id","teacher_id","program_id","status"],"title":"StorefrontBundleDetail","description":"Click-through detail: every card field (description, min_students,\nhomework_count and the doc/homework split included) plus outline, dates\nand the teacher overview."},"StorefrontBundleItem":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"program_id":{"type":"string","format":"uuid","title":"Program Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"wallpaper_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Url"},"wallpaper_thumb_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallpaper Thumb Url"},"price_try":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Try"},"scope_items":{"items":{"type":"string"},"type":"array","title":"Scope Items","default":[]},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name"},"teacher_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Avatar Url"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name"},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"unit_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit Name"},"live_lecture_count":{"type":"integer","title":"Live Lecture Count","default":0},"first_live_lecture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Live Lecture At"},"enrollment_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Enrollment Ends At"},"cancel_decision_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel Decision At"},"enrolled_count":{"type":"integer","title":"Enrolled Count","default":0},"min_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Students"},"max_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Students"},"status":{"$ref":"#/components/schemas/StorefrontBundleState"},"cancelled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancelled Reason"},"duration_category":{"$ref":"#/components/schemas/DurationCategory","default":"ACCELERATED"},"async_video_count":{"type":"integer","title":"Async Video Count","default":0},"document_count":{"type":"integer","title":"Document Count","default":0},"homework_count":{"type":"integer","title":"Homework Count","default":0}},"type":"object","required":["marketplace_bundle_id","teacher_id","program_id","status"],"title":"StorefrontBundleItem","description":"Storefront card: what a browsing (logged-in) user needs to decide on a\npurchase. Personal fields (progress, pending items) deliberately absent —\nthis is the public shop window, not the dashboard card."},"StorefrontBundleState":{"type":"string","enum":["ENROLLMENT_OPEN","FULL","ONGOING","COMPLETED","CANCELLED"],"title":"StorefrontBundleState","description":"Storefront lifecycle as exposed to clients (JSON field name: ``status``).\nDerived at read time, never stored — DB truth stays MarketplaceBundleStatus.\n\nA PUBLISHED bundle with ``max_students IS NULL`` maps to FULL: it is not\nenrollable through the storefront (the open-enrollment gate requires a\ncapacity), so \"open\" would lie. DRAFT must never reach serialization."},"StorefrontComponentRead":{"properties":{"sort_order":{"type":"integer","title":"Sort Order"},"component_type":{"$ref":"#/components/schemas/BundleComponentType"},"slot_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Title"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Question Count"},"video_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Title"},"video_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Duration Seconds"},"document_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Kind"}},"type":"object","required":["sort_order","component_type"],"title":"StorefrontComponentRead","description":"Content outline for the unenrolled detail view — no assets, no answer keys."},"StorefrontLectureRead":{"properties":{"sort_order":{"type":"integer","title":"Sort Order"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"slot_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Title"}},"type":"object","required":["sort_order","starts_at","ends_at"],"title":"StorefrontLectureRead","description":"Dates/titles only — deliberately NO lecture id: unenrolled users must\nnot be handed keys into the planned-live runtime endpoints."},"StorefrontSort":{"type":"string","enum":["PRICE_ASC","PRICE_DESC","MAX_STUDENTS_ASC","MAX_STUDENTS_DESC","LECTURES_ASC","LECTURES_DESC"],"title":"StorefrontSort","description":"Optional storefront ordering (query param). Whatever the primary key,\nties always break on the DEFAULT score ordering (score DESC,\napproved_at DESC, id) — \"eşitse bizim sıralamada önde olan önde\"."},"StrategyEligibilityRead":{"properties":{"distractor":{"type":"string","title":"Distractor"},"blanks":{"type":"string","title":"Blanks"},"subject_marking":{"type":"string","title":"Subject Marking"}},"type":"object","required":["distractor","blanks","subject_marking"],"title":"StrategyEligibilityRead"},"StrategyExamRefRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"short_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Label"},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On"}},"type":"object","required":["exam_id","exam_name"],"title":"StrategyExamRefRead"},"StrategyGatesRead":{"properties":{"min_style_support":{"type":"integer","title":"Min Style Support"},"min_labeled_wrongs":{"type":"integer","title":"Min Labeled Wrongs"},"above_margin":{"type":"number","title":"Above Margin"},"trap_share_min":{"type":"number","title":"Trap Share Min"},"min_wrong_for_trap":{"type":"integer","title":"Min Wrong For Trap"},"min_blanks":{"type":"integer","title":"Min Blanks"},"min_blanks_section":{"type":"integer","title":"Min Blanks Section"},"reachable_blank_min":{"type":"number","title":"Reachable Blank Min"},"hard_blank_max":{"type":"number","title":"Hard Blank Max"},"selective_margin":{"type":"number","title":"Selective Margin"},"min_subject_n":{"type":"integer","title":"Min Subject N"},"notable_gap":{"type":"number","title":"Notable Gap"},"risky_max_accuracy":{"type":"number","title":"Risky Max Accuracy"},"risky_min_wrong":{"type":"integer","title":"Risky Min Wrong"},"timid_min_accuracy":{"type":"number","title":"Timid Min Accuracy"},"min_band_attempted":{"type":"integer","title":"Min Band Attempted"},"caveat_min_net":{"type":"number","title":"Caveat Min Net"},"recoverable_min_attempted":{"type":"integer","title":"Recoverable Min Attempted"}},"type":"object","required":["min_style_support","min_labeled_wrongs","above_margin","trap_share_min","min_wrong_for_trap","min_blanks","min_blanks_section","reachable_blank_min","hard_blank_max","selective_margin","min_subject_n","notable_gap","risky_max_accuracy","risky_min_wrong","timid_min_accuracy","min_band_attempted","caveat_min_net","recoverable_min_attempted"],"title":"StrategyGatesRead"},"StrategyInsufficientExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"count":{"type":"integer","title":"Count","description":"Distractor: labeled wrongs; blanks: blanks."}},"type":"object","required":["exam_id","count"],"title":"StrategyInsufficientExamRead"},"StrategyInsufficientRead":{"properties":{"family":{"type":"string","enum":["distractor","blanks","subject_marking"],"title":"Family"},"reason":{"type":"string","title":"Reason","description":"The gate no exam passed: ``min_labeled_wrongs`` or ``min_blanks`` (marking never appears here)."},"per_exam":{"items":{"$ref":"#/components/schemas/StrategyInsufficientExamRead"},"type":"array","title":"Per Exam"}},"type":"object","required":["family","reason","per_exam"],"title":"StrategyInsufficientRead"},"StrategyNoSignalRead":{"properties":{"family":{"type":"string","enum":["distractor","blanks","subject_marking"],"title":"Family"},"reason":{"type":"string","enum":["not_distinctive","no_reachable_evidence","inconsistent_across_exams","no_difference"],"title":"Reason"},"params":{"additionalProperties":{"type":"number"},"type":"object","title":"Params","description":"``trap_rate`` (distractor) or ``blank_count`` (blanks)."}},"type":"object","required":["family","reason"],"title":"StrategyNoSignalRead"},"StrategyPerExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"distractor":{"anyOf":[{"$ref":"#/components/schemas/DistractorResultRead"},{"type":"null"}],"description":"Null when the exam has no labeled question in the caller's scored set."},"blanks":{"$ref":"#/components/schemas/BlanksResultRead"},"marking":{"items":{"$ref":"#/components/schemas/MarkingRowRead"},"type":"array","title":"Marking","description":"All subjects (judged and counted-only), gap asc, against 8.1's ``cohort.blank_rate_by_tercile`` (a cancelled question counted in it); the pooled ``marking_subjects`` still read these rows. Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.marking`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"difficulty_bands":{"items":{"$ref":"#/components/schemas/DifficultyBandRowRead"},"type":"array","title":"Difficulty Bands"},"served":{"anyOf":[{"$ref":"#/components/schemas/StratejiPerExamServedRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Served","description":"Since 2026-10-25 (advice-ui B6, Backend decision D33): of Intelligence's own Sınav Stratejisi object of this sitting (contract 8.3, ``raw_strateji``), the two blocks this page reads, each exactly as the materialisation stored it: ``blanks.position`` (where the blanks fall; ``late_heavy`` is the late pile beyond what the questions' difficulty predicts, owner decision 2026-10-11) and ``marking`` (per ders, against the tercile's blank rate on the student's own scored questions, no cancelled question in it: owner decision 2026-10-08); a gated value inside them stays as stored, never filled in. The gated null ``{value: null, gate, reason}`` that withholds the whole object below 50 students or while labels are pending, whole. Typed to the last field (``StratejiPerExamServedRead``, 2026-10-27; a block that does not fit is ``null``). ``null`` when the run stored no object."}},"type":"object","required":["exam_id","blanks","marking","difficulty_bands"],"title":"StrategyPerExamRead"},"StrategyStatusesRead":{"properties":{"distractor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Distractor"},"blanks":{"type":"string","title":"Blanks"},"subject_marking":{"type":"string","title":"Subject Marking"}},"type":"object","required":["blanks","subject_marking"],"title":"StrategyStatusesRead"},"StratejiExamRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"distractor":{"anyOf":[{"$ref":"#/components/schemas/DistractorResultRead"},{"type":"null"}],"description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.common_wrong`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"blanks":{"$ref":"#/components/schemas/BlanksResultRead","description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.blanks`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"marking":{"items":{"$ref":"#/components/schemas/MarkingRowRead"},"type":"array","title":"Marking","description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.marking`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"difficulty_bands":{"items":{"$ref":"#/components/schemas/DifficultyBandRowRead"},"type":"array","title":"Difficulty Bands","description":"Deprecated: the Backend's own derivation of what Intelligence serves; read ``served.difficulty_bands`` instead (decision 30). Removed once the panels read the served objects.","deprecated":true},"long_short_text":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Long Short Text","description":"Intelligence's per-exam long / short text block, passed through (hidden from students by the client, 7.7)."},"statuses":{"$ref":"#/components/schemas/StrategyStatusesRead"},"no_notable_signal":{"items":{"$ref":"#/components/schemas/StrategyNoSignalRead"},"type":"array","title":"No Notable Signal"},"insufficient":{"items":{"$ref":"#/components/schemas/StrategyInsufficientRead"},"type":"array","title":"Insufficient"},"gates":{"$ref":"#/components/schemas/StrategyGatesRead"},"advice":{"anyOf":[{"$ref":"#/components/schemas/AdviceBlockRead"},{"$ref":"#/components/schemas/AdviceGatedRead"},{"type":"null"}],"title":"Advice","description":"Intelligence's ``strateji.advice`` block of this sitting, read live from the single student read when the screen opens and passed through as served (owner decision AV29, 2026-10-17; the stored paged copy carries none): ``{advice_version, items[], withheld[]}`` while the advice version is approved, else the gated null ``{value: null, gate: {name: advice_version_approved, required, actual}, reason}``; show ``items[].text`` as served, never a Backend sentence. ``null`` when the live read failed, when ``INTELLIGENCE__SERVED_ADVICE_LIVE`` is off, while Intelligence's live run is another than the one this body was materialised from (a re-run waiting for the sweep's switch-over: the block would describe another run), or when the route was asked with ``advice=false``; the rest of the body is unaffected. A parent reading the child's panel gets the child's block. Since 2026-10-25 it is documented as Intelligence's advice block, the type of the 8.7 profile's ``advice`` (``AdviceBlockRead`` or ``AdviceGatedRead``): a card about one question of this sitting's 8.2 ``answers[]`` (an evidence chip) names it in ``items[].about.question_id``. The block itself is never re-validated, re-ordered or completed: a key Intelligence adds arrives as sent."},"served":{"anyOf":[{"$ref":"#/components/schemas/StratejiServedRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Served","description":"Intelligence's own Sınav Stratejisi object of this sitting, whole and exactly as it served it, typed to the last field (contract 8.3; Student Outputs Handoff, Backend action 1; ``StratejiServedRead``, 2026-10-27, a block that does not fit is ``null``): ``strategies[]`` with their evidence, ``blanks``, ``common_wrong``, ``marking``, ``difficulty_bands``, ``insufficient[]``, ``locked[]``, or the gated null that withholds it below 50 students. Never a top-level ``advice`` key: that block is read live (``advice``, AV29). ``null`` when the run stored no object."}},"type":"object","required":["exam_id","blanks","marking","difficulty_bands","statuses","no_notable_signal","insufficient","gates"],"title":"StratejiExamRead","description":"S8 ``part=strateji``: one exam's detectors (S3 ``per_exam`` fields) and its single-exam presentation lists."},"StratejiPerExamServedBlanksRead":{"properties":{"position":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiBlankPosition10eRead"},{"$ref":"#/components/schemas/AnalysisStratejiBlankPositionRead"}],"title":"Position","description":"``by_section[]`` (``code``, ``name``, ``thirds``, ``total``), ``early``, ``middle``, ``late`` (the blanks without a peer rate left out), ``late_heavy`` (``null`` below ``gates.min_blanks_for_position`` blanks, ``gate``); since pipeline ``2026.10-e`` also ``late_pile`` (the count rule alone), ``late_control`` (the late blanks the tercile's per-question blank rates predict) and ``late_reason``, ``late_heavy`` then being the pile beyond question difficulty (owner decision AV18, 2026-10-11), and ``runs[]``, ``run``, ``run_gate``, ``run_reason`` (the longest run of blanks, AV19)."}},"additionalProperties":true,"type":"object","required":["position"],"title":"StratejiPerExamServedBlanksRead","description":"S3's ``served.blanks``: the sitting's stored 8.3 ``blanks.position`` alone."},"StratejiPerExamServedRead":{"properties":{"blanks":{"anyOf":[{"$ref":"#/components/schemas/StratejiPerExamServedBlanksRead"},{"type":"null"}],"description":"``{position}`` only: the sitting's 8.3 ``blanks.position`` as stored."},"marking":{"anyOf":[{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiMarkingGatedRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingLegacyGatedRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingLegacyRead"}]},"type":"object"},{"type":"null"}],"title":"Marking","description":"Per ders code, the sitting's 8.3 ``marking`` row as stored: ``{subject_name, n, blank, correct, wrong, blank_rate, peer_blank_rate, peer_blank_rate_n, gap, tendency, accuracy, accuracy_reason, verdict}`` (``verdict`` ``risky`` / ``timid`` / ``balanced``; ``insufficient`` with the ders's ``gate``: ``min_subject_n``, since pipeline ``2026.10-h`` also ``nothing_attempted`` or ``peer_blank_rate_missing``). Since pipeline ``2026.10-d`` ``peer_blank_rate`` is the tercile's blank rate on the student's own scored questions, no cancelled question in it (owner decision 2026-10-08); a run before ``2026.10-b`` has no ``peer_blank_rate_n`` / ``accuracy_reason``."}},"additionalProperties":true,"type":"object","title":"StratejiPerExamServedRead","description":"S3 ``per_exam[].served`` (advice-ui B6, 2026-10-25): of the sitting's stored Sınav Stratejisi object (contract\n8.3), the two blocks the pooled page reads, each exactly as stored (a block the object lacks is absent); or, in the\nfield, the gated null that withholds the whole object (``GatedNullRead``). Checked like ``DenemelerServedRead``."},"StratejiPooledRead":{"properties":{"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope","description":"``TYT``, ``AYT`` or, when asked, ``TARAMA`` (D41): one scope, never ``all`` (D33, 2026-10-25)."},"provenance":{"items":{"$ref":"#/components/schemas/StrategyExamRefRead"},"type":"array","title":"Provenance","description":"Every pooled sitting, chronological: one scope and one term, the term of the latest analysed sitting of the scope (D33)."},"primary_exam_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Exam Id","description":"The first pooled sitting (chronological order); null without a sitting."},"strategies":{"items":{"oneOf":[{"$ref":"#/components/schemas/DistractorCardRead"},{"$ref":"#/components/schemas/BlanksCardRead"},{"$ref":"#/components/schemas/MarkingCardRead"}],"discriminator":{"propertyName":"family","mapping":{"blanks":"#/components/schemas/BlanksCardRead","distractor":"#/components/schemas/DistractorCardRead","subject_marking":"#/components/schemas/MarkingCardRead"}}},"type":"array","title":"Strategies","description":"0 to 3 cards, fixed family order distractor, blanks, subject_marking."},"marking_subjects":{"items":{"$ref":"#/components/schemas/MarkingSubjectRead"},"type":"array","title":"Marking Subjects"},"insufficient":{"items":{"$ref":"#/components/schemas/StrategyInsufficientRead"},"type":"array","title":"Insufficient","description":"Families without enough data (kept apart from ``no_notable_signal``, 7.7)."},"no_notable_signal":{"items":{"$ref":"#/components/schemas/StrategyNoSignalRead"},"type":"array","title":"No Notable Signal"},"eligibility":{"$ref":"#/components/schemas/StrategyEligibilityRead"},"per_exam":{"items":{"$ref":"#/components/schemas/StrategyPerExamRead"},"type":"array","title":"Per Exam"},"gates":{"$ref":"#/components/schemas/StrategyGatesRead"}},"type":"object","required":["provenance","strategies","marking_subjects","insufficient","no_notable_signal","eligibility","per_exam","gates"],"title":"StratejiPooledRead","description":"S3: the strategy page over the caller's analysed sittings of one scope and one term (7.1-7.7; D33, 2026-10-25:\nthe term of the latest analysed sitting of the scope); order chronological."},"StratejiPooledResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StratejiPooledRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentAnalyticsMeta"}},"type":"object","required":["code","message"],"title":"StratejiPooledResult"},"StratejiRead":{"properties":{"strategies":{"items":{"$ref":"#/components/schemas/AnalysisStratejiStrategyRead"},"type":"array","title":"Strategies","description":"Up to 4, ordered by ``priority``."},"blanks":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiBlanksNoPeerRead"},{"$ref":"#/components/schemas/AnalysisStratejiBlanksRead"},{"$ref":"#/components/schemas/AnalysisStratejiBlanksBaseRead"}],"title":"Blanks","description":"Blank-leaving breakdown; ``recoverable_upper_bound`` since 2026-09-19 (absent on an older run), ``no_peer_rate`` when a blank has no peer rate."},"common_wrong":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiCommonWrongRead"},{"$ref":"#/components/schemas/AnalysisStratejiCommonWrong10aRead"},{"$ref":"#/components/schemas/AnalysisStratejiCommonWrongLegacyRead"}],"title":"Common Wrong"},"marking":{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiMarkingGatedRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingLegacyGatedRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingLegacyRead"}]},"type":"object","title":"Marking","description":"Per ders."},"difficulty_bands":{"$ref":"#/components/schemas/AnalysisStratejiDifficultyBandsRead"},"long_short_text":{"$ref":"#/components/schemas/AnalysisStratejiLongShortRead"},"insufficient":{"items":{"$ref":"#/components/schemas/AnalysisStratejiInsufficientRead"},"type":"array","title":"Insufficient","description":"What could not be computed and why."},"locked":{"items":{"$ref":"#/components/schemas/AnalysisStratejiLockedRead"},"type":"array","title":"Locked","description":"What unlocks later and when."},"gates":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiGates10hRead"},{"$ref":"#/components/schemas/AnalysisStratejiGates10eRead"},{"$ref":"#/components/schemas/AnalysisStratejiGatesRead"}],"title":"Gates"},"advice":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Advice","description":"The student advice block Intelligence renders over the stored object at read time (AV10; at most two strategy cards, in the object's own order): ``{advice_version, items[], withheld[]}`` as ``AdviceBlockRead``, or ``AdviceGatedRead`` while the advice version is not approved (``schemas/served.py``). Not stored: absent on the paged read."}},"additionalProperties":true,"type":"object","required":["strategies","blanks","common_wrong","marking","difficulty_bands","long_short_text","insufficient","locked","gates"],"title":"StratejiRead","description":"Sınav Stratejisi (8.3): up to four evidence-backed recommendations, highest priority first, and the blocks behind\nthem."},"StratejiServedRead":{"properties":{"strategies":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnalysisStratejiStrategyRead"},"type":"array"},{"type":"null"}],"title":"Strategies","description":"Up to four recommendations, highest priority first: ``{variant, title, action, reason, evidence, priority}``; ``variant`` is the machine code (``blanks-*``, ``distractor-above``, ``distractor-common``, ``section-late``, ``section-spread``, ``blanks-run``, ``marking-*``), ``evidence`` the question ids and counts behind it, in the shape of the variant's family."},"blanks":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiBlanksNoPeerRead"},{"$ref":"#/components/schemas/AnalysisStratejiBlanksRead"},{"$ref":"#/components/schemas/AnalysisStratejiBlanksBaseRead"},{"type":"null"}],"title":"Blanks","description":"Blank-leaving: ``total``, the ``reachable`` / ``hard`` / ``mid`` counts, ``selectivity`` (the peer rates of the blanked and of the wrong questions), ``position`` (where the blanks fall in a section), ``recoverable_upper_bound`` (an upper bound, never added to ``rank_impact.potential_net``), ``no_peer_rate`` when a blank has no peer rate."},"common_wrong":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiCommonWrongRead"},{"$ref":"#/components/schemas/AnalysisStratejiCommonWrong10aRead"},{"$ref":"#/components/schemas/AnalysisStratejiCommonWrongLegacyRead"},{"type":"null"}],"title":"Common Wrong","description":"The common wrong answers chosen: ``trap_hits`` of ``n_wrong_labeled``, ``rate`` beside ``peer_rate`` (``peer_n``), ``by_style[]``, ``examples[]`` and the gate."},"marking":{"anyOf":[{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiMarkingGatedRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingLegacyGatedRead"},{"$ref":"#/components/schemas/AnalysisStratejiMarkingLegacyRead"}]},"type":"object"},{"type":"null"}],"title":"Marking","description":"Per ders code: ``{subject_name, n, correct, wrong, blank, blank_rate, peer_blank_rate, peer_blank_rate_n, gap, tendency, accuracy, accuracy_reason, verdict}`` (risky or timid marking), or that ders's gated row."},"difficulty_bands":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiDifficultyBandsRead"},{"type":"null"}],"description":"Accuracy by question difficulty: ``bands[]`` (``key``, the counts, ``accuracy``, ``peer_expected``, ``gap``, ``judged``), ``basis``, ``caveat``."},"long_short_text":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiLongShortRead"},{"type":"null"}],"description":"Long against short text questions (counts, blank rates) with its gate; not shown to a student (contract 7.7)."},"insufficient":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnalysisStratejiInsufficientRead"},"type":"array"},{"type":"null"}],"title":"Insufficient","description":"What could not be said yet, and why: ``[{title, reason}]``."},"locked":{"anyOf":[{"items":{"$ref":"#/components/schemas/AnalysisStratejiLockedRead"},"type":"array"},{"type":"null"}],"title":"Locked","description":"What unlocks later, and when: ``[{title, what, when}]``; since pipeline ``2026.10-h`` also ``key``, ``unlocked`` and ``note``."},"gates":{"anyOf":[{"$ref":"#/components/schemas/AnalysisStratejiGates10hRead"},{"$ref":"#/components/schemas/AnalysisStratejiGates10eRead"},{"$ref":"#/components/schemas/AnalysisStratejiGatesRead"},{"type":"null"}],"title":"Gates","description":"The thresholds the object was computed under (``min_blanks``, ``min_subject_n`` ...)."}},"additionalProperties":true,"type":"object","required":["strategies","blanks","common_wrong","marking","difficulty_bands","long_short_text","insufficient","locked","gates"],"title":"StratejiServedRead","description":"Intelligence's Sınav Stratejisi object of the sitting (contract 8.3) as it was served: the blocks of\n``StratejiRead`` (no ``advice``: that block is read live). Below 50 students or while labels are pending the field\nholds the gated null ``{value: null, gate, reason}`` instead (``GatedNullRead``). Checked like\n``DenemelerServedRead``: a block that does not fit is served as ``null``. The codes (``variant``, ``tendency``, band\nand gate names) are the contract, its Turkish strings are Intelligence's own."},"StudentActivityCellRead":{"properties":{"week":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"Week"},"weekday":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Weekday"},"completed":{"type":"integer","minimum":0.0,"title":"Completed","default":0}},"additionalProperties":false,"type":"object","required":["week","weekday"],"title":"StudentActivityCellRead","description":"One cell of the 13×7 yeşil ders heatmap."},"StudentActivityHeatmapRead":{"properties":{"cells":{"items":{"$ref":"#/components/schemas/StudentActivityCellRead"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","title":"StudentActivityHeatmapRead"},"StudentAnalysisMeta":{"properties":{"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version"},"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id"},"part":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Part"}},"type":"object","title":"StudentAnalysisMeta","description":"The run the payload belongs to, and the ``part`` that was asked for (``null`` = the full payload)."},"StudentAnalysisPartRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"analysis_version":{"type":"string","title":"Analysis Version"},"analysis_run_id":{"type":"string","title":"Analysis Run Id"},"exam_id":{"type":"string","title":"Exam Id"},"student_id":{"type":"string","title":"Student Id","description":"Intelligence's student id (the roster's ``intelligence_no`` as text)."},"denemeler":{"anyOf":[{"$ref":"#/components/schemas/DenemelerRead"},{"type":"null"}]},"strateji":{"anyOf":[{"$ref":"#/components/schemas/StratejiRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Strateji"},"konu_atlasi":{"anyOf":[{"$ref":"#/components/schemas/KonuAtlasiRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Konu Atlasi"},"gates":{"additionalProperties":true,"type":"object","title":"Gates"}},"additionalProperties":true,"type":"object","required":["schema_version","analysis_version","analysis_run_id","exam_id","student_id","gates"],"title":"StudentAnalysisPartRead","description":"One slice (``part`` = ``denemeler`` | ``strateji`` | ``konu-atlasi``) with the run identity beside it.\nOnly the requested object is present; the other two keys are absent (not ``null``)."},"StudentAnalysisPayloadRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"analysis_version":{"type":"string","title":"Analysis Version"},"analysis_run_id":{"type":"string","title":"Analysis Run Id"},"exam_id":{"type":"string","title":"Exam Id"},"denemeler":{"$ref":"#/components/schemas/DenemelerRead"},"strateji":{"anyOf":[{"$ref":"#/components/schemas/StratejiRead"},{"$ref":"#/components/schemas/GatedNullRead"}],"title":"Strateji"},"konu_atlasi":{"anyOf":[{"$ref":"#/components/schemas/KonuAtlasiRead"},{"$ref":"#/components/schemas/GatedNullRead"}],"title":"Konu Atlasi"},"gates":{"additionalProperties":true,"type":"object","title":"Gates"}},"additionalProperties":true,"type":"object","required":["schema_version","analysis_version","analysis_run_id","exam_id","denemeler","strateji","konu_atlasi","gates"],"title":"StudentAnalysisPayloadRead","description":"The full student analysis (``part`` omitted): the three objects; ``strateji`` and ``konu_atlasi`` are a\n``GatedNullRead`` below the cohort gate or while labels are pending."},"StudentAnalysisRead":{"properties":{"student":{"$ref":"#/components/schemas/StudentRefRead"},"analysis":{"anyOf":[{"$ref":"#/components/schemas/StudentAnalysisPayloadRead"},{"$ref":"#/components/schemas/StudentAnalysisPartRead"}],"title":"Analysis"}},"type":"object","required":["student","analysis"],"title":"StudentAnalysisRead","description":"``GET .../students/{entry_id}/analysis`` and ``GET .../me/exams/{exam_id}/analysis`` item: the roster identity\nand the Intelligence payload verbatim (a ``StudentAnalysisPartRead`` when ``part`` was given)."},"StudentAnalysisResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentAnalysisRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentAnalysisMeta"}},"type":"object","required":["code","message"],"title":"StudentAnalysisResult"},"StudentAnalyticsMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the newest run involved."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam_id -> Intelligence analysis_run_id of every exam the body reads."},"roster_upload_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload, as the institution panel's meta names it (a roster change changes the response; the cache key carries it)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (Europe/Istanbul offset)."},"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version","description":"Intelligence's schema version of the newest run involved (keep it beside ``analysis_version`` with what the panel shows)."},"visibility":{"type":"string","const":"own","title":"Visibility","description":"D9: a student only ever receives their own rows; everything about other students comes as aggregates.","default":"own"},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag","description":"The ETag of this body (also sent as the response header)."}},"type":"object","title":"StudentAnalyticsMeta","description":"``meta`` of every student analytics response (13.0 Freshness, D13): the runs the body was computed from, the\nroster upload, when it was computed and the caller's visibility (always ``own``). ``etag`` repeats the ``ETag``\nheader (weak; ``If-None-Match`` with it answers 304 without a body)."},"StudentAnswerQuizRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"quiz_id":{"type":"string","format":"uuid","title":"Quiz Id"},"answer":{"type":"string","title":"Answer"}},"additionalProperties":false,"type":"object","required":["course_id","quiz_id","answer"],"title":"StudentAnswerQuizRequest"},"StudentAssignmentDeadlineRead":{"properties":{"source":{"type":"string","title":"Source"},"id":{"type":"string","format":"uuid","title":"Id"},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id"},"marketplace_bundle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketplace Bundle Id"},"component_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Type"},"visible_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Visible From"},"deadline":{"type":"string","format":"date-time","title":"Deadline"},"submitted":{"type":"boolean","title":"Submitted"}},"type":"object","required":["source","id","deadline","submitted"],"title":"StudentAssignmentDeadlineRead","description":"One upcoming assignment on the student's combined deadline list.\n\nCOURSE items mirror ``HomeworkMiniRead`` (lesson-request homework docs);\nBUNDLE items are non-live marketplace components sandwiched between two\nlive lectures — their deadline is the next live lecture's start."},"StudentAttendanceBreakdownRead":{"properties":{"courses":{"items":{"$ref":"#/components/schemas/CourseAttendanceRowRead"},"type":"array","title":"Courses","default":[]},"bundles":{"items":{"$ref":"#/components/schemas/BundleAttendanceRowRead"},"type":"array","title":"Bundles","default":[]}},"additionalProperties":false,"type":"object","title":"StudentAttendanceBreakdownRead"},"StudentAttendanceRead":{"properties":{"lesson":{"$ref":"#/components/schemas/CourseLessonRead"},"attended":{"type":"boolean","title":"Attended","description":"True if student has an attendance row for this lesson"},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Joined At"},"left_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Left At"},"rejoins":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rejoins"}},"type":"object","required":["lesson","attended"],"title":"StudentAttendanceRead","description":"One row per lesson in a course, annotated with a specific student's attendance.\n- attended := True iff an attendance row exists (joined at least once)."},"StudentBundleProgressRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"total_component_count":{"type":"integer","title":"Total Component Count","default":0},"done_component_count":{"type":"integer","title":"Done Component Count","default":0},"progress_percent":{"type":"number","title":"Progress Percent","default":0.0},"components":{"items":{"$ref":"#/components/schemas/ComponentProgressItem"},"type":"array","title":"Components","default":[]}},"type":"object","required":["marketplace_bundle_id","student_id"],"title":"StudentBundleProgressRead"},"StudentBundleRead":{"properties":{"Marketplace_Bundle_ID":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"Title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"Subbranch":{"anyOf":[{"$ref":"#/components/schemas/SubbranchRead"},{"type":"null"}]}},"type":"object","required":["Marketplace_Bundle_ID"],"title":"StudentBundleRead","description":"One ONGOING marketplace bundle of the requesting teacher that the student is\nENROLLED in. Both ``title`` and ``subbranch`` are nullable because the\ncolumns behind them are (``marketplace_bundles.title``, ``.subbranch_id``)."},"StudentCombinedAttendanceRead":{"properties":{"last_30_days":{"$ref":"#/components/schemas/AttendanceBlockRead"},"last_180_days":{"$ref":"#/components/schemas/AttendanceBlockRead"},"lifetime":{"$ref":"#/components/schemas/AttendanceBlockRead"}},"additionalProperties":false,"type":"object","required":["last_30_days","last_180_days","lifetime"],"title":"StudentCombinedAttendanceRead"},"StudentCourseSubbranchRead":{"properties":{"Course_ID":{"type":"string","format":"uuid","title":"Course Id"},"Subbranch":{"$ref":"#/components/schemas/SubbranchRead"},"Scheduled_Lesson_Count":{"type":"integer","minimum":0.0,"title":"Scheduled Lesson Count","default":0},"Attended_Lesson_Count":{"type":"integer","minimum":0.0,"title":"Attended Lesson Count","default":0},"Last_Lesson_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Lesson At"},"Next_Lesson_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Lesson At"},"Success_Rate_Percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Success Rate Percent"}},"type":"object","required":["Course_ID","Subbranch"],"title":"StudentCourseSubbranchRead","description":"Pair of (course_id, subbranch) belonging to a teacher-student tutoring relation,\nplus the per-course counters the \"Ogrenci Analizi\" table renders.\n\nThe counters are LIFETIME for that (student, course) pair — they are NOT\nnarrowed to the 365-day window that decides which students appear in the\nroster, so a row's numbers can exceed what that window contains:\n\n  - ``scheduled_lesson_count``: COMPLETED requests that produced a lesson\n    (``lesson_id IS NOT NULL``) — lessons that actually happened. Requests\n    that never became a lesson (cancellations, rejections, WAITING,\n    RESCHEDULE) and GHOSTED requests (the teacher never started the lesson)\n    count nowhere.\n  - ``attended_lesson_count``: of those, the ones with an attendance row.\n  - ``next_lesson_at``: the earliest APPROVED lesson still ahead. Upcoming\n    lessons are deliberately kept OUT of ``scheduled_lesson_count`` so the\n    fraction reads \"attended / happened\", not \"attended / booked\".\n  - ``success_rate_percent``: mean score over submitted, scoreable homework.\n    None means nothing scoreable was submitted; 0.0 means it was submitted\n    and every answer was wrong. The two are not interchangeable."},"StudentDashboardStatsRead":{"properties":{"ongoing_bundle_count":{"type":"integer","title":"Ongoing Bundle Count","default":0},"private_lesson_count":{"type":"integer","title":"Private Lesson Count","default":0},"completed_assignment_count":{"type":"integer","title":"Completed Assignment Count","default":0},"total_live_minutes":{"type":"integer","title":"Total Live Minutes","default":0}},"type":"object","title":"StudentDashboardStatsRead","description":"The four cards under the student calendar, one call.\n\n``ongoing_bundle_count`` is a point-in-time stock metric; the other three\nhonour the fixed 15-day window (private lessons additionally count booked\nfuture ones — the card says \"my lessons\", not \"my past lessons\")."},"StudentDetailRead":{"properties":{"header":{"$ref":"#/components/schemas/StudentHeaderRead"},"kpi":{"anyOf":[{"$ref":"#/components/schemas/StudentKpiStripRead"},{"type":"null"}]},"trend":{"anyOf":[{"$ref":"#/components/schemas/StudentTrendRead"},{"type":"null"}]},"lifetime":{"anyOf":[{"$ref":"#/components/schemas/StudentLifetimeCardsRead"},{"type":"null"}]},"teacher_breakdown":{"anyOf":[{"items":{"$ref":"#/components/schemas/StudentTeacherBreakdownRowRead"},"type":"array"},{"type":"null"}],"title":"Teacher Breakdown"},"subbranch_breakdown":{"anyOf":[{"items":{"$ref":"#/components/schemas/StudentSubbranchBreakdownRowRead"},"type":"array"},{"type":"null"}],"title":"Subbranch Breakdown"},"activity":{"anyOf":[{"$ref":"#/components/schemas/StudentActivityHeatmapRead"},{"type":"null"}]},"login":{"anyOf":[{"$ref":"#/components/schemas/StudentLoginHeatmapRead"},{"type":"null"}]},"timeline":{"anyOf":[{"items":{"$ref":"#/components/schemas/StudentLessonTimelineItemRead"},"type":"array"},{"type":"null"}],"title":"Timeline"},"reviews":{"anyOf":[{"items":{"$ref":"#/components/schemas/StudentReviewItemRead"},"type":"array"},{"type":"null"}],"title":"Reviews"},"parent_contact":{"anyOf":[{"items":{"$ref":"#/components/schemas/StudentParentContactItemRead"},"type":"array"},{"type":"null"}],"title":"Parent Contact"},"partial":{"type":"boolean","title":"Partial","default":false},"failed_blocks":{"items":{"type":"string","enum":["kpi","trend","lifetime","teacher_breakdown","subbranch_breakdown","activity","login","timeline","reviews","parent_contact"]},"type":"array","title":"Failed Blocks"}},"additionalProperties":false,"type":"object","required":["header"],"title":"StudentDetailRead","description":"Single trip for the entire student profile page.\n\nMirrors the teacher detail graceful-degradation pattern: every panel\nis optional, ``partial`` flips true when any panel errored, and\n``failed_blocks`` records which one(s) so the UI can render a soft\nwarning while keeping the rest of the page intact."},"StudentExamListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentExamRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/InstitutionExamListMeta"}},"type":"object","required":["code","message"],"title":"StudentExamListResult"},"StudentExamRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"term":{"type":"string","title":"Term"},"exam_scope":{"type":"string","title":"Exam Scope"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"administered_on":{"type":"string","format":"date","title":"Administered On"},"status":{"type":"string","title":"Status"},"analysis_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis State"},"analysis_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Analysis Completed At"},"results_uploaded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Results Uploaded At"},"result":{"anyOf":[{"$ref":"#/components/schemas/ResultNumbersRead"},{"type":"null"}]}},"type":"object","required":["id","name","term","exam_scope","administered_on","status"],"title":"StudentExamRead","description":"An exam the student sat, as the student sees it: identity and state, none of the upload internals."},"StudentExamResultRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"name":{"type":"string","title":"Name"},"term":{"type":"string","title":"Term"},"exam_scope":{"type":"string","title":"Exam Scope"},"grade_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grade Level"},"administered_on":{"type":"string","format":"date","title":"Administered On"},"status":{"type":"string","title":"Status"},"result":{"$ref":"#/components/schemas/ResultNumbersRead"}},"type":"object","required":["exam_id","name","term","exam_scope","administered_on","status","result"],"title":"StudentExamResultRead","description":"One exam of a student's history with their numbers in it."},"StudentExpectationItemRead":{"properties":{"student":{"$ref":"#/components/schemas/StudentRefRead","description":"The caller's own roster row in the exam's term."},"expectation":{"$ref":"#/components/schemas/ServedExpectationRead"}},"type":"object","required":["student","expectation"],"title":"StudentExpectationItemRead"},"StudentExpectationMeta":{"properties":{"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id"},"exam_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Scope"},"computed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Computed At"}},"type":"object","title":"StudentExpectationMeta"},"StudentExpectationResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentExpectationItemRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentExpectationMeta"}},"type":"object","required":["code","message"],"title":"StudentExpectationResult"},"StudentHeaderRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"student_phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Phone Masked"},"parent_phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Phone Masked"},"email_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Masked"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"class_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class Level"},"target_program_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id"},"target_program_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Program Name"},"school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Name"},"interests":{"items":{"type":"string"},"type":"array","title":"Interests","description":"Interested branches/subbranches as plain labels."},"is_phone_verified":{"type":"boolean","title":"Is Phone Verified","default":false},"parent_registered":{"type":"boolean","title":"Parent Registered","default":false},"parent_phone_verified":{"type":"boolean","title":"Parent Phone Verified","description":"True when the parent number on file was confirmed through the OTP flow.","default":false},"signup_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Signup At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"login_count_30d":{"type":"integer","minimum":0.0,"title":"Login Count 30D","default":0}},"additionalProperties":false,"type":"object","required":["student_id","user_id"],"title":"StudentHeaderRead","description":"Identifier strip at the top of the profile page."},"StudentHomeworkAssignmentRead":{"properties":{"student":{"$ref":"#/components/schemas/StudentRead"},"assignment":{"$ref":"#/components/schemas/HomeworkAssignmentRead"}},"type":"object","required":["student","assignment"],"title":"StudentHomeworkAssignmentRead"},"StudentHomeworkDisciplineRead":{"properties":{"totals":{"$ref":"#/components/schemas/HomeworkDisciplineTotalsRead"},"courses":{"items":{"$ref":"#/components/schemas/CourseHomeworkDisciplineRowRead"},"type":"array","title":"Courses","default":[]},"bundles":{"items":{"$ref":"#/components/schemas/BundleHomeworkDisciplineRowRead"},"type":"array","title":"Bundles","default":[]}},"additionalProperties":false,"type":"object","required":["totals"],"title":"StudentHomeworkDisciplineRead","description":"On-time = submission exists AND (no deadline OR created_at <= deadline).\nThere is no ``submitted_at`` column anywhere; ``created_at`` is the\nsubmission timestamp by convention."},"StudentHomeworkRankingRead":{"properties":{"bundles":{"items":{"$ref":"#/components/schemas/BundleHomeworkRankRowRead"},"type":"array","title":"Bundles","default":[]},"overall_percentile":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Percentile"}},"additionalProperties":false,"type":"object","title":"StudentHomeworkRankingRead"},"StudentImportPlanRead":{"properties":{"create":{"type":"integer","title":"Create","description":"Rows that open an account: the student's first click as if it had happened."},"update":{"type":"integer","title":"Update","description":"Rows of linked students whose name, placement or roster row changes."},"unchanged":{"type":"integer","title":"Unchanged","description":"Rows of linked students the file changes nothing for (never written)."},"account_exists":{"type":"integer","title":"Account Exists","description":"ACCOUNT_EXISTS: the student_id is linked to an account without an Atölyem link (an institution-code account). No account is opened; only the panel name is written."},"sub_mismatch":{"type":"integer","title":"Sub Mismatch","description":"SUB_MISMATCH: the student_id belongs to an account linked to ANOTHER sub. Blocks a real run."},"student_mismatch":{"type":"integer","title":"Student Mismatch","description":"STUDENT_MISMATCH: the sub is linked under ANOTHER student_id. Blocks a real run."},"identity_blocked":{"type":"integer","title":"Identity Blocked","description":"IDENTITY_BLOCKED: an operator ended this sub's link for good."},"account_banned":{"type":"integer","title":"Account Banned","description":"ACCOUNT_BANNED: the linked account is banned."},"not_eligible":{"type":"integer","title":"Not Eligible","description":"LINK_TARGET_NOT_ELIGIBLE: the linked account is not a student account."},"delivery_rows_named":{"type":"integer","title":"Delivery Rows Named","description":"Of create: identity rows a delivery opened without a name (the panel's 'Öğrenci <no>')."},"without_name":{"type":"integer","title":"Without Name","description":"Valid rows with neither given_name nor family_name: the panel keeps 'Öğrenci <no>'."},"without_grade":{"type":"integer","title":"Without Grade","description":"Valid rows without grade_level: no roster row is written (the launch's rule)."}},"type":"object","required":["create","update","unchanged","account_exists","sub_mismatch","student_mismatch","identity_blocked","account_banned","not_eligible","delivery_rows_named","without_name","without_grade"],"title":"StudentImportPlanRead"},"StudentImportReport":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run"},"file_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Kind"},"rows_read":{"type":"integer","title":"Rows Read","default":0},"rows_valid":{"type":"integer","title":"Rows Valid","default":0},"issues":{"items":{"$ref":"#/components/schemas/ImportIssueRead"},"type":"array","title":"Issues","description":"The first 200; a real run needs none."},"issues_total":{"type":"integer","title":"Issues Total","default":0},"plan":{"anyOf":[{"$ref":"#/components/schemas/StudentImportPlanRead"},{"type":"null"}],"description":"null when the file as a whole is unusable."},"refusals":{"items":{"$ref":"#/components/schemas/ImportRowRead"},"type":"array","title":"Refusals","description":"The rows the plan refuses (the first 200), with the launch's code."},"written":{"anyOf":[{"$ref":"#/components/schemas/StudentImportWrittenRead"},{"type":"null"}],"description":"A real run only."},"failures":{"items":{"$ref":"#/components/schemas/ImportRowRead"},"type":"array","title":"Failures","description":"Rows a real run could not write (the first 200); the same file sent again retries them."},"remaining":{"type":"integer","title":"Remaining","description":"Rows still to write after this call (a dry run: all of create + update). Send the same file again while it is not 0.","default":0},"max_writes_per_call":{"type":"integer","title":"Max Writes Per Call"}},"type":"object","required":["dry_run","max_writes_per_call"],"title":"StudentImportReport"},"StudentImportWrittenRead":{"properties":{"created":{"type":"integer","title":"Created","default":0},"updated":{"type":"integer","title":"Updated","default":0},"names_updated":{"type":"integer","title":"Names Updated","description":"ACCOUNT_EXISTS rows whose panel name was written.","default":0},"failed":{"type":"integer","title":"Failed","default":0}},"type":"object","title":"StudentImportWrittenRead"},"StudentKpiStripRead":{"properties":{"completed_30d":{"type":"integer","minimum":0.0,"title":"Completed 30D"},"completion_rate_30d_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Completion Rate 30D Percent"},"score_avg_given":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Score Avg Given"},"distinct_teachers_30d":{"type":"integer","minimum":0.0,"title":"Distinct Teachers 30D","default":0},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"login_count_30d":{"type":"integer","minimum":0.0,"title":"Login Count 30D","default":0}},"additionalProperties":false,"type":"object","required":["completed_30d"],"title":"StudentKpiStripRead","description":"Six snapshot cards rendered at the top of the profile body\n(no Δ — anlık değer felsefesi)."},"StudentLessonTimelineItemRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"status":{"type":"string","title":"Status"},"meeting_lesson":{"type":"boolean","title":"Meeting Lesson"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Optional human-readable annotation (e.g. '3 saat öncesinden iptal')."}},"additionalProperties":false,"type":"object","required":["lesson_request_id","lesson_start","lesson_end","status","meeting_lesson","subbranch_id","teacher_id"],"title":"StudentLessonTimelineItemRead","description":"One row of the 'Son 20 ders' panel."},"StudentLifetimeCardsRead":{"properties":{"lifetime_completed":{"type":"integer","minimum":0.0,"title":"Lifetime Completed","default":0},"lifetime_meetings":{"type":"integer","minimum":0.0,"title":"Lifetime Meetings","default":0},"lifetime_meetings_converted":{"type":"integer","minimum":0.0,"title":"Lifetime Meetings Converted","default":0},"meeting_conversion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Meeting Conversion Rate Percent"},"active_weeks_90d":{"type":"integer","maximum":13.0,"minimum":0.0,"title":"Active Weeks 90D","default":0},"pending_reservations":{"type":"integer","minimum":0.0,"title":"Pending Reservations","default":0},"lifetime_cs":{"type":"integer","minimum":0.0,"title":"Lifetime Cs","description":"Hayat boyu öğrenci iptali sayısı.","default":0}},"additionalProperties":false,"type":"object","title":"StudentLifetimeCardsRead","description":"Hayat boyu + dönüşüm card cluster (right column under the trend)."},"StudentListRead":{"properties":{"segment":{"type":"string","enum":["s1_meeting_unconverted","s2_meeting_failed","s3_onboarded_inactive","s4_high_ltv","s5_fading_high_value","s6_new_hot","s7_bad_experience","s8_subbranch_unsettled","s9_complaint","s10_winback"],"title":"Segment"},"window_days":{"type":"integer","minimum":1.0,"title":"Window Days"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size"},"sort":{"type":"string","title":"Sort","description":"<field>:<asc|desc>"},"rows":{"items":{"$ref":"#/components/schemas/StudentRowRead"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["segment","window_days","total","page","page_size","sort"],"title":"StudentListRead","description":"Paged response for a single student segment."},"StudentLoginCellRead":{"properties":{"week":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"Week"},"weekday":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Weekday"},"distinct_login_days":{"type":"integer","minimum":0.0,"title":"Distinct Login Days","default":0},"sessions":{"type":"integer","minimum":0.0,"title":"Sessions","default":0}},"additionalProperties":false,"type":"object","required":["week","weekday"],"title":"StudentLoginCellRead","description":"One cell of the 13×7 mor uygulama girişi heatmap."},"StudentLoginHeatmapRead":{"properties":{"cells":{"items":{"$ref":"#/components/schemas/StudentLoginCellRead"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","title":"StudentLoginHeatmapRead"},"StudentMeRead":{"properties":{"institution_id":{"type":"string","format":"uuid","title":"Institution Id"},"institution_name":{"type":"string","title":"Institution Name"},"entry_id":{"type":"string","format":"uuid","title":"Entry Id","description":"The student's newest active roster row."},"student_id":{"type":"string","format":"uuid","title":"Student Id","description":"Our ``institution_student.id``: the identity behind the rows, the id the staff student routes take."},"student_no":{"type":"string","title":"Student No"},"full_name":{"type":"string","title":"Full Name"},"term":{"type":"string","title":"Term"},"grade_level":{"type":"integer","title":"Grade Level"},"section_code":{"type":"string","title":"Section Code"},"campus_code":{"type":"string","title":"Campus Code"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study"}},"type":"object","required":["institution_id","institution_name","entry_id","student_id","student_no","full_name","term","grade_level","section_code","campus_code"],"title":"StudentMeRead","description":"The student's own identity on the institution: what the panel shows as 'you'."},"StudentOzetRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"entry_id":{"type":"string","format":"uuid","title":"Entry Id"},"full_name":{"type":"string","title":"Full Name"},"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"ozet":{"anyOf":[{"$ref":"#/components/schemas/DenemeOzetiServedRead"},{"$ref":"#/components/schemas/GatedNullRead"},{"type":"null"}],"title":"Ozet","description":"Intelligence's deneme özeti of the sitting as stored (contract 8.11, `DenemeOzetiServedRead`: `opening`, the `slides` in their order, `screens`, and `selection`, the prides that held with their scores and the cards shown), its gated null (`ozet_scope` on a deneme outside the TYT, the AYT and the konu taramaları, `ozet_tarama_grade` or `ozet_tarama_questions` on a tarama that is not a YKS one (D50), `ozet_no_scored_test`, `ozet_failed`; `min_cohort_norms` below 50 students on one stored before Intelligence 2026.11-e), or `null` on a sitting materialised before the özet existed (D44) or one that did not fit its documented type."},"view":{"anyOf":[{"$ref":"#/components/schemas/OzetViewRead"},{"type":"null"}],"description":"D45: how far the student went through this özet (their own S11); null when they never opened it."}},"type":"object","required":["student_id","entry_id","full_name","exam_id"],"title":"StudentOzetRead"},"StudentOzetResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentOzetRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"StudentOzetResult"},"StudentPanelGatesRead":{"properties":{"surprise_hi":{"type":"number","title":"Surprise Hi"},"surprise_lo":{"type":"number","title":"Surprise Lo"},"trap_share_min":{"type":"number","title":"Trap Share Min"},"min_wrong_for_trap":{"type":"integer","title":"Min Wrong For Trap"},"reachable_blank_min":{"type":"number","title":"Reachable Blank Min"},"net_sensitivity":{"type":"number","title":"Net Sensitivity"},"min_cohort_stats":{"type":"integer","title":"Min Cohort Stats","description":"Intelligence: a mean needs this many students (20)."},"min_cohort_norms":{"type":"integer","title":"Min Cohort Norms","description":"Intelligence: a distribution, tercile or position needs this many (50)."},"min_peer_rate_n":{"type":"integer","title":"Min Peer Rate N","description":"Intelligence: a peer rate needs this many answers (10)."}},"type":"object","required":["surprise_hi","surprise_lo","trap_share_min","min_wrong_for_trap","reachable_blank_min","net_sensitivity","min_cohort_stats","min_cohort_norms","min_peer_rate_n"],"title":"StudentPanelGatesRead"},"StudentPanelRead":{"properties":{"student":{"$ref":"#/components/schemas/PanelStudentRead"},"selected_exam_id":{"type":"string","format":"uuid","title":"Selected Exam Id"},"exams_sat":{"items":{"$ref":"#/components/schemas/ExamSatRead"},"type":"array","title":"Exams Sat","description":"Every analytics-ready sitting, chronological."},"org_context":{"$ref":"#/components/schemas/OrgContextRead"},"section_mates":{"items":{"$ref":"#/components/schemas/SectionMateRead"},"type":"array","title":"Section Mates","description":"The selected exam's section (exam-time), name order, the student included."},"history":{"$ref":"#/components/schemas/HistoryRead"},"deneme":{"$ref":"#/components/schemas/DenemeRead"},"gates":{"$ref":"#/components/schemas/StudentPanelGatesRead"}},"type":"object","required":["student","selected_exam_id","org_context","history","deneme","gates"],"title":"StudentPanelRead","description":"P6: everything on the student page (institution doc 6.11 and 7)."},"StudentPanelResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentPanelRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"StudentPanelResult"},"StudentParentContactItemRead":{"properties":{"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"called_at":{"type":"string","format":"date-time","title":"Called At"},"admin_user_id":{"type":"string","format":"uuid","title":"Admin User Id"},"admin_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Name"},"outcome":{"type":"string","title":"Outcome"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"}},"additionalProperties":false,"type":"object","required":["contact_id","called_at","admin_user_id","outcome"],"title":"StudentParentContactItemRead","description":"One row of the 'Veli iletişim geçmişi' panel."},"StudentParentLinksRead":{"properties":{"parents":{"items":{"$ref":"#/components/schemas/StudentParentRead"},"type":"array","title":"Parents"},"invites":{"items":{"$ref":"#/components/schemas/PendingInviteRead"},"type":"array","title":"Invites"},"max_parents":{"type":"integer","title":"Max Parents"},"can_invite":{"type":"boolean","title":"Can Invite"}},"type":"object","required":["parents","invites","max_parents","can_invite"],"title":"StudentParentLinksRead"},"StudentParentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"given_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given Name"},"family_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Name"},"relation":{"$ref":"#/components/schemas/ParentRelation"},"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"},"is_new":{"type":"boolean","title":"Is New"}},"type":"object","required":["id","relation","linked_at","is_new"],"title":"StudentParentRead"},"StudentPlatformKpiCardRead":{"properties":{"key":{"type":"string","enum":["active","new_revenue","conversion_leak","churn_risk","dissatisfied"],"title":"Key"},"label":{"type":"string","title":"Label"},"value":{"type":"integer","minimum":0.0,"title":"Value"},"delta":{"anyOf":[{"$ref":"#/components/schemas/DeltaRead"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","label","value"],"title":"StudentPlatformKpiCardRead","description":"One of the five platform-level KPI cards (Aktif öğrenci / Yeni\nmüşteri / Huniden kayıp / Kayıp riski / Memnuniyetsiz). Δ comes from\nthe daily ``student_segment_counts_daily`` snapshot vs the row from\n:data:`_kpi_rules.STUDENT_PLATFORM_KPI_DELTA_DAYS` calendar days\nearlier."},"StudentProfileCompletionRead":{"properties":{"ProfileRequiredFieldsFilled":{"type":"boolean","title":"Profilerequiredfieldsfilled"},"QuestionnaireCompleted":{"type":"boolean","title":"Questionnairecompleted"},"ParentPhoneFilled":{"type":"boolean","title":"Parentphonefilled"},"ParentPhoneVerified":{"type":"boolean","title":"Parentphoneverified","default":false},"ClassLevelFilled":{"type":"boolean","title":"Classlevelfilled"},"IsReady":{"type":"boolean","title":"Isready"}},"type":"object","required":["ProfileRequiredFieldsFilled","QuestionnaireCompleted","ParentPhoneFilled","ClassLevelFilled","IsReady"],"title":"StudentProfileCompletionRead"},"StudentProfileItemRead":{"properties":{"student":{"$ref":"#/components/schemas/StudentRefRead","description":"The roster row of the student in the profile's term (our ids)."},"profile":{"$ref":"#/components/schemas/ServedProfileRead"}},"type":"object","required":["student","profile"],"title":"StudentProfileItemRead"},"StudentProfileMeta":{"properties":{"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version"},"profile_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Version"},"term_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term Id","description":"The term the profile pools (Intelligence's default: the student's latest submitted sitting's)."},"exam_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exam Scope"},"stale":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stale"},"computed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Computed At"},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag","description":"The student route's weak ETag of this body, as the ETag header carries it (2026-10-26): Intelligence's tag and the caller's row; absent on the staff route and while the profile is not built."}},"type":"object","title":"StudentProfileMeta","description":"The build the profile belongs to, read off the body."},"StudentProfileResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentProfileItemRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentProfileMeta"}},"type":"object","required":["code","message"],"title":"StudentProfileResult"},"StudentQuestionnairePatchRequest":{"properties":{"goal_importance":{"anyOf":[{"$ref":"#/components/schemas/GoalImportance"},{"type":"null"}]},"goal_importance_other_text":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Goal Importance Other Text"},"attended_prep":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Attended Prep"},"prep_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/PrepType"},"type":"array"},{"type":"null"}],"title":"Prep Types"},"prep_other_text":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Prep Other Text"},"solves_mock_exams_regularly":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Solves Mock Exams Regularly"},"devices":{"anyOf":[{"items":{"$ref":"#/components/schemas/StudyDevice"},"type":"array"},{"type":"null"}],"title":"Devices"},"main_obstacle":{"anyOf":[{"$ref":"#/components/schemas/MainObstacle"},{"type":"null"}]},"obstacle_other_text":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Obstacle Other Text"}},"additionalProperties":false,"type":"object","title":"StudentQuestionnairePatchRequest","description":"Partial update. Extra query yok: service normalize eder, CRUD sadece mutate eder."},"StudentQuestionnaireRead":{"properties":{"StudentID":{"type":"string","format":"uuid","title":"Studentid"},"GoalImportance":{"anyOf":[{"$ref":"#/components/schemas/GoalImportance"},{"type":"null"}]},"GoalImportanceOtherText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goalimportanceothertext"},"AttendedPrep":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Attendedprep"},"PrepTypes":{"items":{"$ref":"#/components/schemas/PrepType"},"type":"array","title":"Preptypes"},"PrepOtherText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prepothertext"},"SolvesMockExamsRegularly":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Solvesmockexamsregularly"},"Devices":{"items":{"$ref":"#/components/schemas/StudyDevice"},"type":"array","title":"Devices"},"MainObstacle":{"anyOf":[{"$ref":"#/components/schemas/MainObstacle"},{"type":"null"}]},"ObstacleOtherText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Obstacleothertext"},"IsCompleted":{"type":"boolean","title":"Iscompleted","default":false},"CompletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedat"},"IsCompleteNow":{"type":"boolean","title":"Iscompletenow","default":false}},"type":"object","required":["StudentID"],"title":"StudentQuestionnaireRead"},"StudentRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileRead"},{"type":"null"}]},"School_Level":{"anyOf":[{"$ref":"#/components/schemas/SchoolLevel"},{"type":"null"}]},"Class_Level":{"anyOf":[{"$ref":"#/components/schemas/ClassLevel"},{"type":"null"}]},"Target_Ranking":{"anyOf":[{"$ref":"#/components/schemas/TargetRanking"},{"type":"null"}]},"Province":{"anyOf":[{"$ref":"#/components/schemas/ProvinceRead"},{"type":"null"}]},"District":{"anyOf":[{"$ref":"#/components/schemas/DistrictRead"},{"type":"null"}]},"School":{"anyOf":[{"$ref":"#/components/schemas/SchoolRead"},{"type":"null"}]},"Target_College_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target College Id"},"Target_Program_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id"},"Parent_Phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Phone"},"Parent_Phone_Verified_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Parent Phone Verified At"}},"type":"object","required":["ID"],"title":"StudentRead","description":"Read DTO for Student.\n\nIncludes:\n  - ID\n  - nested Profile\n  - school_level\n  - target_ranking\n  - Province / District / School\n  - NEW: target_college_id, target_program_id"},"StudentRecordRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"entry_id":{"type":"string","format":"uuid","title":"Entry Id","description":"Roster entry (term-scoped)."},"student_id":{"type":"string","format":"uuid","title":"Student Id","description":"The person (stable across terms)."},"full_name":{"type":"string","title":"Full Name"},"campus_id":{"type":"string","title":"Campus Id","description":"Campus code as of this exam."},"campus_name":{"type":"string","title":"Campus Name"},"section_id":{"type":"string","title":"Section Id","description":"Section code as of this exam (term-local)."},"section_name":{"type":"string","title":"Section Name"},"section_is_operational":{"type":"boolean","title":"Section Is Operational","description":"6.3: the student's section and campus are both operational (`aggregate.record_is_operational`)."},"term":{"type":"string","title":"Term"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade","description":"Code from P0 `grades`; null when unknown."},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study","description":"Code from P0 `tracks`; null when unknown."},"actual_net":{"type":"number","title":"Actual Net","description":"Official total net."},"potential_net":{"type":"number","title":"Potential Net","description":"`actual_net + expected_missed.net + other_trap_wrongs.net` (5.3, D1). No reachable blanks."},"opportunity_net":{"type":"number","title":"Opportunity Net","description":"`potential_net - actual_net`."},"opportunity_count":{"type":"integer","title":"Opportunity Count","description":"`expected_missed.count + other_trap_wrongs.count`."},"subject_nets":{"additionalProperties":{"$ref":"#/components/schemas/SubjectNetRead"},"type":"object","title":"Subject Nets","description":"Subject id -> net and scored count; subjects with 0 scored questions omitted."},"ranks":{"$ref":"#/components/schemas/RanksRead"},"actual_percentile":{"anyOf":[{"$ref":"#/components/schemas/PercentileRead"},{"type":"null"}],"description":"Gated: 5.5 on the official net."},"actual_percentile_gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}]},"potential_percentile":{"anyOf":[{"$ref":"#/components/schemas/PercentileRead"},{"type":"null"}],"description":"Gated: 5.5 on `potential_net`; gated as a pair with the actual one."},"potential_percentile_gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}]},"expected_missed":{"$ref":"#/components/schemas/NetCountRead","description":"5.3 expected but missed."},"other_trap_wrongs":{"$ref":"#/components/schemas/NetCountRead","description":"5.3 trap hits minus expected misses."},"reachable_blanks":{"$ref":"#/components/schemas/NetCountRead","description":"5.3, informational (not part of `potential_net`)."},"rank_if_potential":{"$ref":"#/components/schemas/RankAtRead","description":"5.4 over the full ranking cohort; the general rank itself (exact) when there is no opportunity. Deprecated (Intelligence decision 31, A4, 2026-10-18): served one more release, then removed.","deprecated":true},"passed_if_potential":{"type":"integer","title":"Passed If Potential","description":"`ranks.general.rank - rank_if_potential.rank`. Deprecated (decision 31, A4).","deprecated":true},"is_top_tier_candidate":{"type":"boolean","title":"Is Top Tier Candidate","description":"6.10 of the first design: operational, `actual_percentile.mid >= top band lo`, an expected miss, `passed_if_potential > 0`; false when gated. Deprecated (decision 31, A4): the attention list no longer ranks on it.","deprecated":true},"scoring_block":{"type":"string","title":"Scoring Block","description":"`din` | `din-alternative` (5.2, D6)."}},"type":"object","required":["exam_id","entry_id","student_id","full_name","campus_id","campus_name","section_id","section_name","section_is_operational","term","actual_net","potential_net","opportunity_net","opportunity_count","ranks","expected_missed","other_trap_wrongs","reachable_blanks","rank_if_potential","passed_if_potential","is_top_tier_candidate","scoring_block"],"title":"StudentRecordRead","description":"One student of one exam (institution doc 6.2, P1 item). Every student-level item carries ``student_id``,\n``entry_id`` and the ``exam_id`` it describes (10.0)."},"StudentRecordsExamRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"administered_on":{"type":"string","format":"date","title":"Administered On"},"cohort_size":{"type":"integer","title":"Cohort Size","description":"Ranking cohort."},"roster_size":{"type":"integer","title":"Roster Size","description":"Students with answer data in this exam (can be smaller than the cohort)."},"scored_question_count":{"type":"integer","title":"Scored Question Count"},"exam_mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Exam Mean Net","description":"Whole-cohort mean official net; null below the cohort gate."},"exam_mean_subject_net":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Exam Mean Subject Net","description":"Whole-cohort subject means; null below the cohort gate."}},"type":"object","required":["exam_id","exam_name","administered_on","cohort_size","roster_size","scored_question_count"],"title":"StudentRecordsExamRead"},"StudentRecordsGatesRead":{"properties":{"net_sensitivity":{"type":"number","title":"Net Sensitivity"},"trap_share_min":{"type":"number","title":"Trap Share Min"},"min_wrong_for_trap":{"type":"integer","title":"Min Wrong For Trap"},"surprise_hi":{"type":"number","title":"Surprise Hi"},"min_cell":{"type":"integer","title":"Min Cell"},"min_peer_n":{"type":"integer","title":"Min Peer N"},"min_cohort_stats":{"type":"integer","title":"Min Cohort Stats","description":"Intelligence: a mean needs this many students (20)."},"min_cohort_norms":{"type":"integer","title":"Min Cohort Norms","description":"Intelligence: a distribution, tercile or position needs this many (50)."},"min_peer_rate_n":{"type":"integer","title":"Min Peer Rate N","description":"Intelligence: a peer rate needs this many answers (10)."}},"type":"object","required":["net_sensitivity","trap_share_min","min_wrong_for_trap","surprise_hi","min_cell","min_peer_n","min_cohort_stats","min_cohort_norms","min_peer_rate_n"],"title":"StudentRecordsGatesRead"},"StudentRecordsMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the (latest) run the response reads."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every exam the response reads."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload (a roster change changes the response)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (ISO 8601 with offset); a cached body keeps its time."},"visibility":{"type":"string","title":"Visibility","description":"`all` (institution admin), `campuses` (campus manager, D9 extension) or `sections` (teacher: every aggregate is over their sections only).","default":"all"},"total":{"type":"integer","title":"Total","description":"Rows after every filter, before paging.","default":0},"page":{"type":"integer","title":"Page","description":"1-based page.","default":1},"page_size":{"type":"integer","title":"Page Size","description":"Rows per page.","default":25},"exam":{"$ref":"#/components/schemas/StudentRecordsExamRead"},"facets":{"anyOf":[{"$ref":"#/components/schemas/FacetsRead"},{"type":"null"}],"description":"Only with `include_facets=true`; counts over the scope without `q` (and without `group` and the facet filters)."},"gates":{"$ref":"#/components/schemas/StudentRecordsGatesRead"}},"type":"object","required":["exam","gates"],"title":"StudentRecordsMeta"},"StudentRecordsResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/StudentRecordRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/StudentRecordsMeta"}},"type":"object","required":["code","message","meta"],"title":"StudentRecordsResult"},"StudentRefRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The roster row (entry) of the term the read belongs to."},"student_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Student Id","description":"Our ``institution_student.id``: the cross-term identity, the id of the staff student routes (P6 ``student.student_id``)."},"full_name":{"type":"string","title":"Full Name"},"student_no":{"type":"string","title":"Student No"},"section_code":{"type":"string","title":"Section Code"},"grade_level":{"type":"integer","title":"Grade Level"},"campus_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campus Code"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study"}},"type":"object","required":["id","full_name","student_no","section_code","grade_level"],"title":"StudentRefRead","description":"The roster row an analysis belongs to. Our identity, attached on the way out;\nIntelligence only ever saw ``intelligence_no``. ``id`` is the roster row (one per student\nper term: an analysis is a sitting's); ``student_id`` is the identity behind it, the id\nthe staff student routes (``/students/{student_id}/panel``, ``/profile``) take (panel\nrequest B2, 2026-10-16). Never Intelligence's ``student_id``."},"StudentReleaseRead":{"properties":{"state":{"type":"string","enum":["visible","held","scheduled"],"title":"State"},"release_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Release At"},"changed_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Changed By User Id"},"changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Changed At"},"intelligence_synced":{"type":"boolean","title":"Intelligence Synced","default":true},"source":{"anyOf":[{"type":"string","enum":["staff","announce","copy"]},{"type":"null"}],"title":"Source"},"announce_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Announce At"}},"type":"object","required":["state"],"title":"StudentReleaseRead","description":"An exam's release to its students (``release.py``): ``visible``; ``held`` until a manager opens it;\n``scheduled``, hidden until ``release_at``. ``intelligence_synced`` false: Intelligence was not told yet (the sweep\ntells it within minutes). ``source``: who set the release last: ``staff`` (a manager), ``announce`` (the partner's\nannouncement time: ``release_at`` is ``announce_at`` less the lead, 60 minutes), ``copy`` (taken from the exam a\npartner's copy replaced); ``null``: nobody, the institution's mode. ``announce_at``: the partner's announcement time\nas last delivered (2026-11-17), shown whatever set the release."},"StudentReportHomeworkRead":{"properties":{"title":{"type":"string","title":"Title"},"visible_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Visible From"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"},"question_count":{"type":"integer","minimum":0.0,"title":"Question Count","default":0},"is_submitted":{"type":"boolean","title":"Is Submitted","default":false},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Percent"},"correct_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Correct Count"},"wrong_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Wrong Count"},"blank_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Blank Count"}},"additionalProperties":false,"type":"object","required":["title"],"title":"StudentReportHomeworkRead","description":"The \"Son Ödev\" block — scored, but never carrying the answer key."},"StudentReportMetaRead":{"properties":{"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name"},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Label"}},"additionalProperties":false,"type":"object","required":["teacher_id"],"title":"StudentReportMetaRead"},"StudentReportProgressRead":{"properties":{"attendance_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Attendance Rate Percent"},"missed_lessons_count":{"type":"integer","minimum":0.0,"title":"Missed Lessons Count","default":0},"streak":{"type":"integer","minimum":0.0,"title":"Streak","default":0},"total_completed_lessons":{"type":"integer","minimum":0.0,"title":"Total Completed Lessons","default":0},"homeworks_assigned":{"type":"integer","minimum":0.0,"title":"Homeworks Assigned","default":0},"homeworks_completed":{"type":"integer","minimum":0.0,"title":"Homeworks Completed","default":0},"homework_completion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Homework Completion Rate Percent"},"topics_completed_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Topics Completed Count"},"topics_total_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Topics Total Count"},"topic_progress_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Topic Progress Percent"}},"additionalProperties":false,"type":"object","title":"StudentReportProgressRead","description":"The report's tiles. Course-scoped fields stay null for a course-less share."},"StudentReportRead":{"properties":{"report_version":{"type":"integer","title":"Report Version","default":1},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"student":{"$ref":"#/components/schemas/StudentReportStudentRead"},"success_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Success Percent"},"progress":{"$ref":"#/components/schemas/StudentReportProgressRead"},"last_homework":{"anyOf":[{"$ref":"#/components/schemas/StudentReportHomeworkRead"},{"type":"null"}]},"meta":{"$ref":"#/components/schemas/StudentReportMetaRead"}},"additionalProperties":false,"type":"object","required":["generated_at","student","progress","meta"],"title":"StudentReportRead"},"StudentReportRequest":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id","description":"Course to scope the progress tiles and last homework to"}},"additionalProperties":false,"type":"object","required":["student_id"],"title":"StudentReportRequest","description":"The teacher's own live read of a student's report."},"StudentReportShareCreateRequest":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id","description":"Course to scope the report to"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":90.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days","description":"Link lifetime in days (1..90); defaults to the configured 30"}},"additionalProperties":false,"type":"object","required":["student_id"],"title":"StudentReportShareCreateRequest","description":"Mint a parent-openable link. The report is frozen at this moment, so what\nthe parent sees never drifts from what the teacher reviewed before sending."},"StudentReportShareListItemRead":{"properties":{"share_id":{"type":"string","format":"uuid","title":"Share Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"student_full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Full Name"},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id"},"subbranch_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Label"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"is_active":{"type":"boolean","title":"Is Active","default":false}},"additionalProperties":false,"type":"object","required":["share_id","student_id","created_at","expires_at"],"title":"StudentReportShareListItemRead","description":"One row of the teacher's \"active links\" list. Carries no token."},"StudentReportShareRead":{"properties":{"share_id":{"type":"string","format":"uuid","title":"Share Id"},"token":{"type":"string","title":"Token"},"path":{"type":"string","title":"Path"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"additionalProperties":false,"type":"object","required":["share_id","token","path","expires_at"],"title":"StudentReportShareRead","description":"The create response — the ONLY time the raw token is ever returned. It is\nstored hashed, so a lost link cannot be recovered; mint a new one."},"StudentReportStudentRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"school_level":{"anyOf":[{"$ref":"#/components/schemas/SchoolLevel"},{"type":"null"}]},"school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Name"},"platform_joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Platform Joined At"}},"additionalProperties":false,"type":"object","required":["student_id"],"title":"StudentReportStudentRead"},"StudentReviewItemRead":{"properties":{"review_id":{"type":"string","format":"uuid","title":"Review Id"},"score":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Score"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"moderation_status":{"type":"string","title":"Moderation Status"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"}},"additionalProperties":false,"type":"object","required":["review_id","score","teacher_id","moderation_status"],"title":"StudentReviewItemRead","description":"One row of the 'Verdiği yorumlar' panel."},"StudentRowRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"student_phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Phone Masked","description":"Masked phone for PII, e.g. '+90 532 ··· 1284'."},"parent_phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Phone Masked","description":"Masked parent phone or null when not registered."},"class_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class Level","description":"Raw ``Student.class_level`` value (e.g. '12', 'MEZUN'); UI maps to chip text."},"target_program_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id"},"target_program_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Program Name"},"signup_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Signup At","description":"``user.created_at`` — used to derive üyelik yaşı in the UI."},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At","description":"``MAX(user_session.last_seen_at)`` — 'son giriş' column."},"last_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Completed At"},"lifetime_completed":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Lifetime Completed"},"meeting_event_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Meeting Event At","description":"Earliest unconverted meeting (S1) or last failed meeting (S2)."},"meeting_subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Meeting Subbranch Id"},"meeting_subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Subbranch Name"},"meeting_teacher_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Meeting Teacher Id"},"meeting_teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Teacher Name"},"meeting_age_days":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Meeting Age Days","description":"(now - meeting_event_at) in calendar days — S1 sort key."},"meeting_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Status","description":"For S2: which terminal status the meeting ended in (e.g. 'GHOSTED')."},"signup_age_days":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Signup Age Days"},"wait_days":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Wait Days","description":"Alias of signup_age_days surfaced under the 'Bekleme (gün)' column."},"completed_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Completed 30D"},"completed_90d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Completed 90D"},"completion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Completion Rate Percent"},"active_weeks_90d":{"anyOf":[{"type":"integer","maximum":13.0,"minimum":0.0},{"type":"null"}],"title":"Active Weeks 90D"},"score_avg_given":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Score Avg Given","description":"Avg score the student gave (S4 column 'Verdiği puan')."},"completed_prev_60d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Completed Prev 60D"},"drop_magnitude":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Drop Magnitude","description":"completed_prev_60d - completed_30d (positive = bigger drop)."},"ghosted_count_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Ghosted Count 30D"},"late_ct_count_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Late Ct Count 30D"},"urgency_score":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Urgency Score","description":"ghosted_count_30d * 3 + late_ct_count_30d."},"last_event_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Event At","description":"Most recent ghost / late-cancel event for S7."},"worst_subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Worst Subbranch Id"},"worst_subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worst Subbranch Name"},"worst_subbranch_distinct_teachers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Worst Subbranch Distinct Teachers"},"worst_subbranch_max_with_one":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Worst Subbranch Max With One"},"worst_subbranch_total":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Worst Subbranch Total"},"min_review_score":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Min Review Score"},"last_review_text_length":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Last Review Text Length"},"last_review_teacher_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Last Review Teacher Id"},"last_review_teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Review Teacher Name"},"last_review_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Review At"},"membership_age_days":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Membership Age Days"}},"additionalProperties":false,"type":"object","required":["student_id"],"title":"StudentRowRead","description":"One row of ``GET /admin/analytics/students``.\n\nFlat-wide on purpose: every potential mid-column that any of the 10\nsegments could populate lives here as ``| None``. The dispatcher in\n:mod:`crud.student_segment_defs` declares which fields each segment\npopulates via ``SegmentDef.populates``; the list builder emits typed\nNULLs for the rest so this single schema can serve all segments\nwithout a discriminated union."},"StudentScheduleItemRead":{"properties":{"type":{"type":"string","title":"Type"},"id":{"type":"string","format":"uuid","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"lecture_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lecture Status"},"is_makeup":{"type":"boolean","title":"Is Makeup","default":false},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id"},"marketplace_bundle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketplace Bundle Id"}},"type":"object","required":["type","id","starts_at","ends_at","teacher_id"],"title":"StudentScheduleItemRead"},"StudentSearchHitRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"student_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Phone"},"parent_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Phone"},"class_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Class Level"}},"additionalProperties":false,"type":"object","required":["student_id"],"title":"StudentSearchHitRead","description":"One hit of the navigational student search.\n\nPhone numbers are returned **un-masked** because the search input\n*is* the phone number; masking would hide the very value the admin\nis confirming."},"StudentSearchRead":{"properties":{"mode":{"type":"string","enum":["name","student_phone","parent_phone"],"title":"Mode"},"query_echo":{"type":"string","title":"Query Echo"},"hits":{"items":{"$ref":"#/components/schemas/StudentSearchHitRead"},"type":"array","title":"Hits"}},"additionalProperties":false,"type":"object","required":["mode","query_echo"],"title":"StudentSearchRead","description":"Envelope returned by ``GET /admin/analytics/students/search``."},"StudentSegmentChipRead":{"properties":{"key":{"type":"string","enum":["s1_meeting_unconverted","s2_meeting_failed","s3_onboarded_inactive","s4_high_ltv","s5_fading_high_value","s6_new_hot","s7_bad_experience","s8_subbranch_unsettled","s9_complaint","s10_winback"],"title":"Key"},"category":{"type":"string","enum":["conversion","retention","satisfaction","winback"],"title":"Category"},"label":{"type":"string","title":"Label"},"window_days":{"type":"integer","minimum":1.0,"title":"Window Days"},"count":{"type":"integer","minimum":0.0,"title":"Count"}},"additionalProperties":false,"type":"object","required":["key","category","label","window_days","count"],"title":"StudentSegmentChipRead","description":"Zoom-1 segment chip preview: ``count`` is how many students match\nthe rule today while the user's filters apply.\n\nFilters off — read today's ``student_segment_counts_daily`` row first;\nmissing keys trigger a single live MV pass so ``chips[].count`` is\nalways populated without picking a segment."},"StudentSegmentsRead":{"properties":{"kpi":{"items":{"$ref":"#/components/schemas/StudentPlatformKpiCardRead"},"type":"array","title":"Kpi"},"chips":{"items":{"$ref":"#/components/schemas/StudentSegmentChipRead"},"type":"array","title":"Chips"},"class_levels":{"items":{"type":"string"},"type":"array","title":"Class Levels","description":"Echo of the ``class_level`` filter (multi-valued); empty means 'all'."},"target_program_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id","description":"Echo of the ``target_program_id`` filter; None means 'all'."},"branches":{"items":{"$ref":"#/components/schemas/Branch"},"type":"array","title":"Branches","description":"Echo of the ``branch`` filter; empty means 'all'."},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id","description":"Echo of the ``subbranch_id`` filter; None means 'all'."}},"additionalProperties":false,"type":"object","title":"StudentSegmentsRead","description":"Payload of ``GET /admin/analytics/students/segments``."},"StudentSubbranchBreakdownRowRead":{"properties":{"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"total_lessons":{"type":"integer","minimum":0.0,"title":"Total Lessons","default":0},"distinct_teachers":{"type":"integer","minimum":0.0,"title":"Distinct Teachers","default":0},"max_with_one_teacher":{"type":"integer","minimum":0.0,"title":"Max With One Teacher","default":0},"last_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Completed At"}},"additionalProperties":false,"type":"object","required":["subbranch_id"],"title":"StudentSubbranchBreakdownRowRead","description":"One row of the profile 'Alt branş dağılımı' table."},"StudentTeacherBreakdownRowRead":{"properties":{"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"completed":{"type":"integer","minimum":0.0,"title":"Completed","default":0},"completion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Completion Rate Percent"},"last_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Completed At"}},"additionalProperties":false,"type":"object","required":["teacher_id","subbranch_id"],"title":"StudentTeacherBreakdownRowRead","description":"One row of the profile 'Hocaları (son 60g)' table."},"StudentTrendPointRead":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"completed":{"type":"integer","minimum":0.0,"title":"Completed","default":0},"cancelled":{"type":"integer","minimum":0.0,"title":"Cancelled","default":0},"ghosted":{"type":"integer","minimum":0.0,"title":"Ghosted","default":0}},"additionalProperties":false,"type":"object","required":["day"],"title":"StudentTrendPointRead","description":"One day of the daily lesson stacked trend (last 30 days)."},"StudentTrendRead":{"properties":{"window_days":{"type":"integer","minimum":1.0,"title":"Window Days","default":30},"points":{"items":{"$ref":"#/components/schemas/StudentTrendPointRead"},"type":"array","title":"Points"}},"additionalProperties":false,"type":"object","title":"StudentTrendRead"},"StudentUpdateRequest":{"properties":{"school_level":{"anyOf":[{"$ref":"#/components/schemas/SchoolLevel"},{"type":"null"}],"description":"New school level (nullable to clear)."},"class_level":{"anyOf":[{"$ref":"#/components/schemas/ClassLevel"},{"type":"null"}],"description":"Class/grade level (nullable to clear). Must match school_level."},"province_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Province Id","description":"Province id (nullable to clear)."},"district_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"District Id","description":"District id (nullable to clear)."},"school_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"School Id","description":"School id (nullable to clear)."},"target_ranking":{"anyOf":[{"$ref":"#/components/schemas/TargetRanking"},{"type":"null"}],"description":"Student's target ranking enum (nullable to clear)."},"target_college_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target College Id","description":"Target college/university id (nullable to clear)."},"target_program_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id","description":"Target program/department id (nullable to clear). Must belong to target_college_id if set."},"parent_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Phone","description":"Parent/guardian phone (nullable or empty string to clear). Validated as TR when non-null."}},"additionalProperties":false,"type":"object","title":"StudentUpdateRequest","description":"Partial update for student's direct fields.\n\nPresence-based: at least one field must be present in JSON,\neven if the value is null (to allow clearing)."},"StudentWithCoursesRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileRead"},{"type":"null"}]},"School_Level":{"anyOf":[{"$ref":"#/components/schemas/SchoolLevel"},{"type":"null"}]},"Class_Level":{"anyOf":[{"$ref":"#/components/schemas/ClassLevel"},{"type":"null"}]},"Target_Ranking":{"anyOf":[{"$ref":"#/components/schemas/TargetRanking"},{"type":"null"}]},"Province":{"anyOf":[{"$ref":"#/components/schemas/ProvinceRead"},{"type":"null"}]},"District":{"anyOf":[{"$ref":"#/components/schemas/DistrictRead"},{"type":"null"}]},"School":{"anyOf":[{"$ref":"#/components/schemas/SchoolRead"},{"type":"null"}]},"Target_College_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target College Id"},"Target_Program_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id"},"Parent_Phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Phone"},"Parent_Phone_Verified_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Parent Phone Verified At"},"Platform_Joined_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Platform Joined At"},"Is_Active":{"type":"boolean","title":"Is Active","default":false},"Courses":{"items":{"$ref":"#/components/schemas/StudentCourseSubbranchRead"},"type":"array","title":"Courses"}},"type":"object","required":["ID"],"title":"StudentWithCoursesRead","description":"Teacher roster row extended with the list of (course_id, subbranch) pairs the\nstudent shares with the requesting teacher, each carrying its own counters."},"StudentsDirectoryResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/DirectoryRowRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/DirectoryMeta"}},"type":"object","required":["code","message","meta"],"title":"StudentsDirectoryResult"},"StudyDevice":{"type":"string","enum":["TABLET","PEN_TABLET","COMPUTER"],"title":"StudyDevice"},"StyleOtherRead":{"properties":{"style":{"type":"string","title":"Style"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["style","count"],"title":"StyleOtherRead"},"StyleSupportedRead":{"properties":{"style":{"type":"string","title":"Style"},"count":{"type":"integer","title":"Count"},"mean_share":{"type":"number","title":"Mean Share"},"subjects":{"items":{"type":"string"},"type":"array","title":"Subjects"},"action_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Code"}},"type":"object","required":["style","count","mean_share","subjects"],"title":"StyleSupportedRead"},"SubScopeRead":{"properties":{"level":{"type":"string","title":"Level"},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"is_operational":{"type":"boolean","title":"Is Operational"},"n":{"type":"integer","title":"N"},"tier":{"type":"string","title":"Tier","description":"On `n`: `counts` below `min_cohort_stats`, `limited` below `min_cohort_norms`, else `full` (A6)."},"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net","description":"Null below `min_cohort_stats` (`gate`)."},"median_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Net","description":"Null with `mean_net`."},"delta_vs_parent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta Vs Parent","description":"Only served operational sections against a served `sub_scope_parent_operational_mean_net`."},"opportunity_per_student":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Opportunity Per Student","description":"Null below `min_cohort_stats` and for non-operational sections."},"top_tier_count":{"type":"integer","title":"Top Tier Count","description":"P1 `is_top_tier_candidate` count. Deprecated (decision 31, A4, 2026-10-18): served one more release, then removed.","deprecated":true},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why the object's statistics are `null`: `{name, required, actual, reason}` (Intelligence's `min_cohort_stats` 20 or `min_cohort_norms` 50; panel request A6, 2026-10-16). Null when every figure is served."}},"type":"object","required":["level","id","name","is_operational","n","tier","top_tier_count"],"title":"SubScopeRead","description":"6.3 campus-scope section row: served operational sections by success, then operational sections below\n`min_cohort_stats` by name, then non-operational ones (A6)."},"SubbranchByBranchesRequest":{"properties":{"branches":{"items":{"$ref":"#/components/schemas/Branch"},"type":"array","title":"Branches"}},"type":"object","title":"SubbranchByBranchesRequest"},"SubbranchChangeRequest":{"properties":{"added":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Added","description":"Subbranch IDs to add (same-tenant check enforced)."},"removed":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Removed","description":"Subbranch IDs to remove (mapping must exist)."}},"additionalProperties":false,"type":"object","required":["added","removed"],"title":"SubbranchChangeRequest"},"SubbranchDetailRead":{"properties":{"header":{"$ref":"#/components/schemas/SubbranchHeaderRead"},"window":{"$ref":"#/components/schemas/WindowRead"},"kpi":{"anyOf":[{"$ref":"#/components/schemas/KpiStripRead"},{"type":"null"}]},"trend":{"anyOf":[{"$ref":"#/components/schemas/TrendRead"},{"type":"null"}]},"funnel":{"anyOf":[{"$ref":"#/components/schemas/FunnelRead"},{"type":"null"}]},"heatmap":{"anyOf":[{"$ref":"#/components/schemas/HeatmapRead"},{"type":"null"}]},"availability":{"anyOf":[{"$ref":"#/components/schemas/AvailabilityRead"},{"type":"null"}]},"top_teachers":{"anyOf":[{"$ref":"#/components/schemas/TopTeachersRead"},{"type":"null"}]},"partial":{"type":"boolean","title":"Partial","description":"True when one or more sub-blocks failed and were replaced with None. Surfaced so the UI can render a soft warning.","default":false},"failed_blocks":{"items":{"type":"string","enum":["kpi","trend","funnel","heatmap","availability","top_teachers"]},"type":"array","title":"Failed Blocks","description":"Names of sub-blocks that errored out and were nulled by the graceful-degradation layer."}},"additionalProperties":false,"type":"object","required":["header","window"],"title":"SubbranchDetailRead","description":"The complete Zoom 2 payload — single endpoint, single trip.\n\nAny sub-block can be ``None`` when the underlying query times out or\nerrors. The frontend renders an inline empty-state for that panel\nwhile keeping the rest of the dashboard intact (graceful degradation).\n\n``failed_blocks`` lists the *names* of those degraded blocks so the\nUI (and on-call) can tell which panel was empty without grepping\nserver logs."},"SubbranchHeaderRead":{"properties":{"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"subbranch_name":{"type":"string","title":"Subbranch Name"},"subbranch_code":{"type":"string","title":"Subbranch Code"},"branch":{"$ref":"#/components/schemas/Branch"},"level_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Level Id","description":"Curriculum level row id (``subbranch.level_id``)."},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name","description":"Human label from ``level.name``."}},"additionalProperties":false,"type":"object","required":["subbranch_id","subbranch_name","subbranch_code","branch"],"title":"SubbranchHeaderRead","description":"Identifier strip rendered at the top of Zoom 2."},"SubbranchInsert":{"properties":{"parent_level_id":{"type":"string","format":"uuid","title":"Parent Level Id"},"branch":{"$ref":"#/components/schemas/Branch"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["parent_level_id","branch","name","code"],"title":"SubbranchInsert"},"SubbranchOverviewRead":{"properties":{"window":{"$ref":"#/components/schemas/WindowRead"},"branches":{"items":{"$ref":"#/components/schemas/Branch"},"type":"array","title":"Branches","description":"Echo of the branch filter; empty means 'all branches'."},"rows":{"items":{"$ref":"#/components/schemas/SubbranchRowRead"},"type":"array","title":"Rows"},"alerts":{"items":{"type":"string"},"type":"array","title":"Alerts","description":"Alert ribbon contents. Out of scope this release; always empty for now."}},"additionalProperties":false,"type":"object","required":["window"],"title":"SubbranchOverviewRead","description":"Top-level Zoom 1 response."},"SubbranchRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"level_id":{"type":"string","format":"uuid","title":"Level Id","description":"FK to Level (source model attribute)."},"branch":{"$ref":"#/components/schemas/Branch"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","level_id","branch","name","code","is_active"],"title":"SubbranchRead"},"SubbranchReorder":{"properties":{"parent_subbranch_id":{"type":"string","format":"uuid","title":"Parent Subbranch Id"},"id_to_order":{"additionalProperties":{"type":"integer"},"propertyNames":{"format":"uuid"},"type":"object","title":"Id To Order"}},"type":"object","required":["parent_subbranch_id","id_to_order"],"title":"SubbranchReorder","description":"Reorder ACTIVE Units under a Subbranch."},"SubbranchRowRead":{"properties":{"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"subbranch_name":{"type":"string","title":"Subbranch Name"},"subbranch_code":{"type":"string","title":"Subbranch Code"},"branch":{"$ref":"#/components/schemas/Branch"},"level_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Level Id","description":"Curriculum level row id (``subbranch.level_id``)."},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name","description":"Human label from ``level.name``."},"completed":{"type":"integer","minimum":0.0,"title":"Completed","default":0},"completion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Completion Rate Percent"},"meeting_to_paid_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Meeting To Paid Percent"},"avg_hours":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Avg Hours"},"unique_students":{"type":"integer","minimum":0.0,"title":"Unique Students","default":0},"delta_vs_prev_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta Vs Prev Percent"},"delta_direction":{"type":"string","enum":["up","down","flat"],"title":"Delta Direction","default":"flat"},"sparkline":{"items":{"type":"integer"},"type":"array","title":"Sparkline","description":"Daily completed counts over the selected window, oldest first."}},"additionalProperties":false,"type":"object","required":["subbranch_id","subbranch_name","subbranch_code","branch"],"title":"SubbranchRowRead","description":"One row of the Zoom 1 comparison table."},"SubbranchTree":{"properties":{"parent_level_id":{"type":"string","format":"uuid","title":"Parent Level Id"},"id":{"type":"string","format":"uuid","title":"Id"},"branch":{"$ref":"#/components/schemas/Branch"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"units":{"items":{"$ref":"#/components/schemas/UnitTree"},"type":"array","title":"Units","default":[]}},"type":"object","required":["parent_level_id","id","branch","name","code","is_active"],"title":"SubbranchTree"},"SubbranchUpdate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","required":["id"],"title":"SubbranchUpdate"},"SubbranchWithUnits":{"properties":{"parent":{"$ref":"#/components/schemas/SubbranchRead"},"siblings":{"items":{"$ref":"#/components/schemas/main_api__modules__curriculum__schemas__UnitRead"},"type":"array","title":"Siblings"}},"type":"object","required":["parent","siblings"],"title":"SubbranchWithUnits"},"SubjectInsightRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"question_count":{"type":"integer","title":"Question Count","description":"Most common scored count among the subject's students."},"mean_net":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Net","description":"Over students with a non-zero scored count (6.6); null below `min_cohort_stats` of them (`gate`)."},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy","description":"`sum net / sum scored questions` (a net ratio); null with `mean_net`."},"student_count":{"type":"integer","title":"Student Count"},"opportunity_net_per_student":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Opportunity Net Per Student","description":"The subject's question opportunity net / `count` (every scoped student, as P2 `subjects[].opportunity_net_per_student`); null for a subject without a scored answer and below the card's gate."},"opportunity_students":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Opportunity Students","description":"Distinct scoped students behind that opportunity (P2 `subjects[].opportunity_students`); null for a subject without a scored answer."},"evidence_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Tier","description":"Tier of `student_count`, the count `mean_net` and `accuracy` rest on: `counts` below `min_cohort_stats`, `limited` below `min_cohort_norms`, else `full` (A6); the scope's own tier is P2 `tier`."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `mean_net` and `accuracy` are null (`min_cohort_stats` on `student_count`); null when served."},"mean_correct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Correct","description":"Correct answers per student over the same students as `mean_net` (D46); null with it (`gate`). `mean_correct - 0.25 * mean_wrong` is `mean_net`."},"mean_wrong":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Wrong","description":"Wrong answers per student over the same students (D46); null with `mean_net`."},"mean_blank":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Blank","description":"Blank answers per student over the same students (D46); null with `mean_net`."}},"type":"object","required":["id","name","question_count","student_count"],"title":"SubjectInsightRead"},"SubjectNetRead":{"properties":{"net":{"type":"number","title":"Net","description":"Subject net derived from the stored answers (`correct - 0.25 x wrong` over the scored questions; the results file carries no official subject nets)."},"scored_questions":{"type":"integer","title":"Scored Questions","description":"This student's scored question count in the subject (5.2)."}},"type":"object","required":["net","scored_questions"],"title":"SubjectNetRead"},"SubjectNode":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"slug":{"type":"string","title":"Slug"},"name_tr":{"type":"string","title":"Name Tr"},"branch":{"$ref":"#/components/schemas/Branch"},"question_count":{"type":"integer","title":"Question Count"},"buckets":{"items":{"$ref":"#/components/schemas/BucketNode"},"type":"array","title":"Buckets"}},"type":"object","required":["id","code","slug","name_tr","branch","question_count","buckets"],"title":"SubjectNode"},"SubjectOpportunitiesRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"derived_net":{"type":"number","title":"Derived Net"},"max_net":{"type":"integer","title":"Max Net"},"counts":{"$ref":"#/components/schemas/OpportunityCountsRead"},"items":{"items":{"$ref":"#/components/schemas/OpportunityItemRead"},"type":"array","title":"Items"}},"type":"object","required":["subject","subject_name","derived_net","max_net","counts"],"title":"SubjectOpportunitiesRead"},"SubjectOpportunityMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence's analysis version of the (latest) run the response reads."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every exam the response reads."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's newest roster upload (a roster change changes the response)."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When the body was computed (ISO 8601 with offset); a cached body keeps its time."},"visibility":{"type":"string","title":"Visibility","description":"`all` (institution admin), `campuses` (campus manager, D9 extension) or `sections` (teacher: every aggregate is over their sections only).","default":"all"},"total":{"type":"integer","title":"Total","description":"Students with `opportunity_net > 0`, before the paging."},"page":{"type":"integer","title":"Page","description":"1-based page (D46); `limit` alone is page 1.","default":1},"page_size":{"type":"integer","title":"Page Size","description":"Rows per page: `page_size`, else `limit`, else 10.","default":10}},"type":"object","required":["total"],"title":"SubjectOpportunityMeta"},"SubjectOpportunityRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"derived_net":{"type":"number","title":"Derived Net"},"max_net":{"type":"integer","title":"Max Net"},"counts":{"$ref":"#/components/schemas/OpportunityCountsRead"},"items":{"items":{"$ref":"#/components/schemas/DenemelerOpportunityItemRead"},"type":"array","title":"Items","description":"By kind, then peer rate desc (booklet ties)."}},"type":"object","required":["subject","subject_name","derived_net","max_net","counts","items"],"title":"SubjectOpportunityRead"},"SubjectOpportunityResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SubjectOpportunityStudentRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/SubjectOpportunityMeta"}},"type":"object","required":["code","message","meta"],"title":"SubjectOpportunityResult"},"SubjectOpportunityStudentRead":{"properties":{"entry_id":{"type":"string","format":"uuid","title":"Entry Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"full_name":{"type":"string","title":"Full Name"},"campus_id":{"type":"string","title":"Campus Id"},"campus_name":{"type":"string","title":"Campus Name"},"section_id":{"type":"string","title":"Section Id"},"section_name":{"type":"string","title":"Section Name"},"subject_net":{"type":"number","title":"Subject Net","description":"The student's subject net (0 when not scored on it)."},"opportunity_net":{"type":"number","title":"Opportunity Net","description":"Sum of the student's 6.7 question contributions in the subject."},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank"}},"type":"object","required":["entry_id","student_id","exam_id","full_name","campus_id","campus_name","section_id","section_name","subject_net","opportunity_net"],"title":"SubjectOpportunityStudentRead"},"SubjectOptionRead":{"properties":{"id":{"type":"string","title":"Id","description":"Subject id (P0 vocabulary: turkce, matematik, ...)."},"name":{"type":"string","title":"Name","description":"Display name of the subject."}},"type":"object","required":["id","name"],"title":"SubjectOptionRead"},"SubjectPositionRead":{"properties":{"top_mid":{"type":"number","title":"Top Mid"},"top_lo":{"type":"number","title":"Top Lo"},"top_hi":{"type":"number","title":"Top Hi"},"top_after_one_more":{"type":"number","title":"Top After One More","description":"\"1 doğru daha\": the top share at `net + net_sensitivity` (one more wrong answer turned correct) = `100 - hi` of this position, the same value as `top_lo` (institution doc 7, the panel's `topLo`). The student panel's S2 `after_one_more_hi` (the `hi` of `net + 1`) is a different field."},"is_max":{"type":"boolean","title":"Is Max"}},"type":"object","required":["top_mid","top_lo","top_hi","top_after_one_more","is_max"],"title":"SubjectPositionRead","description":"Top-share position of the derived subject net on the subject ECDF (+/- net_sensitivity)."},"SubjectScopeStatRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"opportunity_net_per_student":{"type":"number","title":"Opportunity Net Per Student","description":"The subject's question opportunity net / n (all scoped students)."},"opportunity_students":{"type":"integer","title":"Opportunity Students"},"expected_miss_students":{"type":"integer","title":"Expected Miss Students"},"blank_answers":{"type":"integer","title":"Blank Answers"},"scored_answers":{"type":"integer","title":"Scored Answers"}},"type":"object","required":["id","name","opportunity_net_per_student","opportunity_students","expected_miss_students","blank_answers","scored_answers"],"title":"SubjectScopeStatRead"},"SubmitHomeworkRequest":{"properties":{"answers":{"type":"string","minLength":1,"title":"Answers","description":"Position-wise answers, chars A-E or '_' (e.g. 'AA_BDE')"}},"type":"object","required":["answers"],"title":"SubmitHomeworkRequest","description":"Student's one-shot multiple-choice answer string (``_`` = blank)."},"SubmitMarketplaceBundleRequest":{"properties":{"live_slots":{"items":{"$ref":"#/components/schemas/LiveSlotScheduleItem"},"type":"array","title":"Live Slots"}},"type":"object","title":"SubmitMarketplaceBundleRequest","description":"Submit a bundle template to the marketplace. Every LIVE_LECTURE_SLOT in the\ntemplate must get exactly one schedule (no more, no fewer)."},"SubunitBackgroundLevel":{"type":"string","enum":["LOW","MEDIUM","HIGH"],"title":"SubunitBackgroundLevel"},"SubunitDetail":{"type":"string","enum":["LOW","MEDIUM","HIGH"],"title":"SubunitDetail"},"SubunitHardness":{"type":"string","enum":["LOW","MEDIUM","HIGH"],"title":"SubunitHardness"},"SubunitInsert":{"properties":{"parent_unit_id":{"type":"string","format":"uuid","title":"Parent Unit Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"order_index":{"type":"integer","title":"Order Index","default":1},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["parent_unit_id","name","code"],"title":"SubunitInsert"},"SubunitPriority":{"type":"string","enum":["LOW","MEDIUM","HIGH"],"title":"SubunitPriority"},"SubunitRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"unit_id":{"type":"string","format":"uuid","title":"Unit Id","description":"FK to Unit (source model attribute)."},"branch":{"$ref":"#/components/schemas/Branch"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"order_index":{"type":"integer","title":"Order Index"},"is_active":{"type":"boolean","title":"Is Active"},"hardness":{"anyOf":[{"$ref":"#/components/schemas/SubunitHardness"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/SubunitPriority"},{"type":"null"}]},"background_level":{"anyOf":[{"$ref":"#/components/schemas/SubunitBackgroundLevel"},{"type":"null"}]},"detail":{"anyOf":[{"$ref":"#/components/schemas/SubunitDetail"},{"type":"null"}]}},"type":"object","required":["id","unit_id","branch","name","code","order_index","is_active"],"title":"SubunitRead"},"SubunitReorder":{"properties":{"parent_subunit_id":{"type":"string","format":"uuid","title":"Parent Subunit Id"},"id_to_order":{"additionalProperties":{"type":"integer"},"propertyNames":{"format":"uuid"},"type":"object","title":"Id To Order"}},"type":"object","required":["parent_subunit_id","id_to_order"],"title":"SubunitReorder","description":"Reorder ACTIVE Outcomes under a Subunit."},"SubunitTodosView":{"properties":{"subunit_id":{"type":"string","format":"uuid","title":"Subunit Id"},"subunit_name":{"type":"string","title":"Subunit Name"},"subunit_code":{"type":"string","title":"Subunit Code"},"subunit_todos":{"items":{"$ref":"#/components/schemas/SchemeTodoRead"},"type":"array","title":"Subunit Todos"},"outcomes":{"items":{"$ref":"#/components/schemas/OutcomeTodosView"},"type":"array","title":"Outcomes"}},"type":"object","required":["subunit_id","subunit_name","subunit_code","subunit_todos","outcomes"],"title":"SubunitTodosView"},"SubunitTree":{"properties":{"parent_unit_id":{"type":"string","format":"uuid","title":"Parent Unit Id"},"id":{"type":"string","format":"uuid","title":"Id"},"branch":{"$ref":"#/components/schemas/Branch"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"order_index":{"type":"integer","title":"Order Index"},"hardness":{"anyOf":[{"$ref":"#/components/schemas/SubunitHardness"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/SubunitPriority"},{"type":"null"}]},"background_level":{"anyOf":[{"$ref":"#/components/schemas/SubunitBackgroundLevel"},{"type":"null"}]},"detail":{"anyOf":[{"$ref":"#/components/schemas/SubunitDetail"},{"type":"null"}]},"outcomes":{"items":{"$ref":"#/components/schemas/OutcomeRead"},"type":"array","title":"Outcomes","default":[]}},"type":"object","required":["parent_unit_id","id","branch","name","code","is_active","order_index"],"title":"SubunitTree"},"SubunitUpdate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","required":["id"],"title":"SubunitUpdate"},"SubunitWithOutcomes":{"properties":{"parent":{"$ref":"#/components/schemas/SubunitRead"},"siblings":{"items":{"$ref":"#/components/schemas/OutcomeRead"},"type":"array","title":"Siblings"}},"type":"object","required":["parent","siblings"],"title":"SubunitWithOutcomes"},"SuggestionCandidateRead":{"properties":{"entry_id":{"type":"string","format":"uuid","title":"Entry Id","description":"Roster entry of the latest record."},"student_id":{"type":"string","format":"uuid","title":"Student Id","description":"The person."},"full_name":{"type":"string","title":"Full Name","description":"Name."},"campus_name":{"type":"string","title":"Campus Name","description":"Campus display name as of the latest exam."},"section_name":{"type":"string","title":"Section Name","description":"Section display name as of the latest exam."},"in_series":{"type":"boolean","title":"In Series","description":"False: the latest exam is outside the institution series (allowed as a manual add, never suggested)."},"target":{"anyOf":[{"$ref":"#/components/schemas/CandidateTargetRead"},{"type":"null"}],"description":"The candidate's node for the group's target (in the series of their latest exam); null without evidence."}},"type":"object","required":["entry_id","student_id","full_name","campus_name","section_name","in_series"],"title":"SuggestionCandidateRead"},"SuggestionCandidatesMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence analysis version of the latest series exam's run."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every analysed exam the body reads (the exam scope's)."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's latest roster upload."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When this body was computed (it may be served from the cache later)."},"visibility":{"type":"string","enum":["all","sections","campuses"],"title":"Visibility","description":"all (admin), sections (teacher: their sections only), campuses (campus manager: their campuses only).","default":"all"},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag","description":"The ETag header; send it back as If-None-Match."},"profiles":{"anyOf":[{"$ref":"#/components/schemas/ProfileSetMeta"},{"type":"null"}],"description":"The profile set behind the groups; null before the first read (then there are no groups)."},"limit":{"type":"integer","title":"Limit","description":"The limit applied.","default":12}},"type":"object","title":"SuggestionCandidatesMeta"},"SuggestionCandidatesResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SuggestionCandidateRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/SuggestionCandidatesMeta"}},"type":"object","required":["code","message"],"title":"SuggestionCandidatesResult"},"SuggestionDetailRead":{"properties":{"group":{"anyOf":[{"$ref":"#/components/schemas/SmallCandidateRead"},{"$ref":"#/components/schemas/SuggestionGroupRead"}],"title":"Group","description":"The same object as in the list (a small candidate carries member_names)."},"members":{"items":{"$ref":"#/components/schemas/SuggestionMemberRead"},"type":"array","title":"Members","description":"Corroborated first, then solid; gap asc; then name (Turkish collation)."},"question_summary":{"items":{"$ref":"#/components/schemas/QuestionSummaryRead"},"type":"array","title":"Question Summary","description":"Deprecated: always empty since 2026-10-17 (no per-question items in the profile cells). Was: per evidence question; subject (canonical order), then number.","deprecated":true}},"type":"object","required":["group"],"title":"SuggestionDetailRead","description":"P7 detail (``items[0]``): also resolves small-candidate ids."},"SuggestionDetailResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SuggestionDetailRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/SuggestionsMeta"}},"type":"object","required":["code","message"],"title":"SuggestionDetailResult"},"SuggestionGatesRead":{"properties":{"min_bucket_n":{"type":"integer","title":"Min Bucket N","description":"Deprecated: the Backend's own topic-verdict gate; read `min_bucket`.","deprecated":true},"min_cell":{"type":"integer","title":"Min Cell","description":"Deprecated: the Backend's own skill-verdict gate; read `skill_cross_subject_min_n`.","deprecated":true},"group_min_size":{"type":"integer","title":"Group Min Size","description":"Deprecated alias of `group_candidate_min_students`.","deprecated":true},"gap_target_max":{"type":"number","title":"Gap Target Max","description":"Gap at or below which a cell is weak (Intelligence's `gap_target_max`)."},"group_candidate_min_students":{"type":"integer","title":"Group Candidate Min Students","description":"Intelligence: members a candidate needs (4); below it nothing is served (decision 45)."},"skill_cross_subject_min_n":{"type":"integer","title":"Skill Cross Subject Min N","description":"Intelligence: answers a cross-ders skill cell needs to count (50)."},"min_bucket":{"type":"integer","title":"Min Bucket","description":"Intelligence: questions a kova verdict needs (5), as the profile page served it."}},"type":"object","required":["min_bucket_n","min_cell","group_min_size","gap_target_max","group_candidate_min_students","skill_cross_subject_min_n","min_bucket"],"title":"SuggestionGatesRead"},"SuggestionGroupRead":{"properties":{"id":{"type":"string","title":"Id","description":"konu.<subject>.<topic> or beceri.<skill>; the client's grup route parameter."},"type":{"type":"string","enum":["topic","skill"],"title":"Type","description":"topic (konu) or skill (beceri)."},"curriculum_id":{"type":"string","title":"Curriculum Id","description":"The target: <subject>/<bucket_id> for a topic, the skill id for a skill (the group's target_curriculum_id when saved; a topic is saved under the taxonomy's ders when the analysis filed its kova under a sibling ders of the same bölüm)."},"name":{"type":"string","title":"Name","description":"Topic or skill name (first chronological occurrence in the series)."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"Subject id of a topic group; null for a skill group."},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Name","description":"Subject display name of a topic group; null for a skill group."},"student_count":{"type":"integer","title":"Student Count","description":"Members: in-series pool students whose pooled cell is `weak` with strength `solid` or `corroborated`; at least `group_candidate_min_students` (4). Since 2026-10-17 (panel request A3, Intelligence decision 42) the groups come from Intelligence's pooled profile cells through `alfabemy_core.institution.group_candidates`."},"campus_count":{"type":"integer","title":"Campus Count","description":"Distinct campuses of the members (by campus id, as of their latest exam)."},"section_count":{"type":"integer","title":"Section Count","description":"Distinct campus + section pairs of the members (by id, as of their latest exam)."},"solid_count":{"type":"integer","title":"Solid Count","description":"Members with strength solid."},"corroborated_count":{"type":"integer","title":"Corroborated Count","description":"Members with strength corroborated (Intelligence's pooled strength)."},"recent_positive_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recent Positive Count","description":"Deprecated: null (the Backend's own per-exam verdicts are no longer the source).","deprecated":true},"evidence_question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Question Count","description":"Deprecated: null (no per-question items in the profile cells).","deprecated":true},"prerequisite_depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prerequisite Depth","description":"The kova's depth in the prerequisite graph (the foundations first: the list is ordered by it, then member count desc); 0 for a skill or a kova outside the graph; null for a kova on a cycle (`prerequisite_depth_reason`)."},"prerequisite_depth_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prerequisite Depth Reason","description":"Why `prerequisite_depth` is null (`prerequisite_cycle`); null otherwise."},"evidence_exams":{"items":{"$ref":"#/components/schemas/EvidenceExamRead"},"type":"array","title":"Evidence Exams","description":"The series exams the members' profiles pooled, chronological."}},"type":"object","required":["id","type","curriculum_id","name","student_count","campus_count","section_count","solid_count","corroborated_count"],"title":"SuggestionGroupRead","description":"A suggested group (institution doc 6.13): every count is a count of students or questions, never a score."},"SuggestionMemberRead":{"properties":{"entry_id":{"type":"string","format":"uuid","title":"Entry Id","description":"Roster entry of the latest record: what POST .../intervention-groups takes."},"student_id":{"type":"string","format":"uuid","title":"Student Id","description":"The person (stable across terms)."},"full_name":{"type":"string","title":"Full Name","description":"Name."},"campus_id":{"type":"string","title":"Campus Id","description":"Campus code as of the latest exam (D10)."},"campus_name":{"type":"string","title":"Campus Name","description":"Campus display name as of the latest exam."},"section_id":{"type":"string","title":"Section Id","description":"Section code as of the latest exam (D10)."},"section_name":{"type":"string","title":"Section Name","description":"Section display name as of the latest exam."},"latest_exam_id":{"type":"string","format":"uuid","title":"Latest Exam Id","description":"The member's latest exam (the link target)."},"source":{"type":"string","enum":["suggested","manual"],"title":"Source","description":"Always suggested here."},"evidence":{"$ref":"#/components/schemas/MemberEvidenceRead","description":"Intelligence's pooled cell as served (plus the deprecated aliases): send this object as the member's evidence_snapshot when saving the group."}},"type":"object","required":["entry_id","student_id","full_name","campus_id","campus_name","section_id","section_name","latest_exam_id","source","evidence"],"title":"SuggestionMemberRead"},"SuggestionsMeta":{"properties":{"analysis_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Version","description":"Intelligence analysis version of the latest series exam's run."},"analysis_run_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Analysis Run Ids","description":"exam id -> Intelligence analysis run id of every analysed exam the body reads (the exam scope's)."},"roster_upload_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roster Upload Id","description":"The institution's latest roster upload."},"computed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Computed At","description":"When this body was computed (it may be served from the cache later)."},"visibility":{"type":"string","enum":["all","sections","campuses"],"title":"Visibility","description":"all (admin), sections (teacher: their sections only), campuses (campus manager: their campuses only).","default":"all"},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag","description":"The ETag header; send it back as If-None-Match."},"profiles":{"anyOf":[{"$ref":"#/components/schemas/ProfileSetMeta"},{"type":"null"}],"description":"The profile set behind the groups; null before the first read (then there are no groups)."}},"type":"object","title":"SuggestionsMeta","description":"D13 freshness of every analytics response, and the ``ETag`` the body was served under."},"SuggestionsRead":{"properties":{"series_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series Key","description":"The institution series term|exam_scope|grade_level (D4); null when no analysed exam forms one."},"pool_size":{"type":"integer","title":"Pool Size","description":"Scope pool: students (by identity) whose latest analysed record is in the scope and visible to the caller."},"in_series_size":{"type":"integer","title":"In Series Size","description":"Pool students whose latest exam is in the institution series (only they can be members)."},"subject_options":{"items":{"$ref":"#/components/schemas/SubjectOptionRead"},"type":"array","title":"Subject Options","description":"Subjects of the latest series exam (filter options), canonical order."},"groups":{"items":{"$ref":"#/components/schemas/SuggestionGroupRead"},"type":"array","title":"Groups","description":"Intelligence's candidates in its order: prerequisite depth asc (the foundations first; a kova without a depth last), member count desc, kovalar before skills, subject, id. Size >= group_candidate_min_students desc, curriculum id asc."},"small_candidates":{"items":{"$ref":"#/components/schemas/SmallCandidateRead"},"type":"array","title":"Small Candidates","description":"Deprecated: always empty since 2026-10-17 (decision 45: nothing below the gate). Size 1 to group_min_size - 1, same order; the q filter does not apply (the client hides them while searching).","deprecated":true},"gates":{"$ref":"#/components/schemas/SuggestionGatesRead","description":"The gates applied: Intelligence's (`alfabemy_core.gates`, the profile page) and the Backend's deprecated names."},"campus_counts":{"anyOf":[{"items":{"$ref":"#/components/schemas/CampusSuggestionCountRead"},"type":"array"},{"type":"null"}],"title":"Campus Counts","description":"At the institution root only (null in a campus or a section, D46): per campus of the pool, the groups of that campus's own list and the distinct students in them, by campus name; `type`, `subject` and `q` do not apply."}},"type":"object","required":["pool_size","in_series_size","gates"],"title":"SuggestionsRead","description":"P7 list (``items[0]``). ``type``, ``subject`` and ``q`` filter the lists; the counts ignore them."},"SuggestionsResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/SuggestionsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/SuggestionsMeta"}},"type":"object","required":["code","message"],"title":"SuggestionsResult"},"TargetRanking":{"type":"string","enum":["F_1000","F_10000","F_25000","F_50000","F_100000","F_200000","F_300000","F_500000","F_1000000"],"title":"TargetRanking"},"TaxonomyBucketRead":{"properties":{"subject":{"type":"string","title":"Subject"},"bucket_id":{"type":"string","title":"Bucket Id"},"bucket_name":{"type":"string","title":"Bucket Name"},"taxonomy_sha":{"type":"string","title":"Taxonomy Sha"},"status":{"type":"string","title":"Status"},"human_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Human Share"},"units":{"items":{"type":"string"},"type":"array","title":"Units"},"learning_outcomes":{"anyOf":[{"items":{"$ref":"#/components/schemas/LearningOutcomeRead"},"type":"array"},{"type":"null"}],"title":"Learning Outcomes","description":"Sorted by share; on the per-ders read only."},"n_types":{"type":"integer","title":"N Types"},"question_types":{"items":{"$ref":"#/components/schemas/TaxonomyTypeRead"},"type":"array","title":"Question Types"}},"additionalProperties":true,"type":"object","required":["subject","bucket_id","bucket_name","taxonomy_sha","status","n_types","question_types"],"title":"TaxonomyBucketRead","description":"One kova (8.3) with its soru tipleri; ``human_share`` is the share of its types a human judged at this version."},"TaxonomyBundleRead":{"properties":{"schema_version":{"type":"string","title":"Schema Version"},"label_schema_version":{"type":"integer","title":"Label Schema Version"},"subjects":{"items":{"$ref":"#/components/schemas/TaxonomySubjectRead"},"type":"array","title":"Subjects"},"n_buckets":{"type":"integer","title":"N Buckets"},"n_types":{"type":"integer","title":"N Types"},"taxonomy_shas":{"items":{"type":"string"},"type":"array","title":"Taxonomy Shas"},"generated_at":{"type":"string","title":"Generated At"}},"additionalProperties":true,"type":"object","required":["schema_version","label_schema_version","subjects","n_buckets","n_types","taxonomy_shas","generated_at"],"title":"TaxonomyBundleRead","description":"``GET .../labeling/taxonomy`` and ``.../labeling/taxonomy/{subject}`` item: every ders (or the one asked\nfor) with its kovalar and soru tipleri. With ``fields=ids`` only the ids and names are present."},"TaxonomyBundleResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TaxonomyBundleRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/LabelingBundleMeta"}},"type":"object","required":["code","message"],"title":"TaxonomyBundleResult"},"TaxonomySubjectRead":{"properties":{"subject":{"type":"string","title":"Subject"},"subject_name":{"type":"string","title":"Subject Name"},"buckets":{"items":{"$ref":"#/components/schemas/TaxonomyBucketRead"},"type":"array","title":"Buckets"}},"additionalProperties":true,"type":"object","required":["subject","subject_name","buckets"],"title":"TaxonomySubjectRead","description":"One ders of the taxonomy with its kovalar."},"TaxonomyTreeRead":{"properties":{"branch":{"$ref":"#/components/schemas/Branch"},"subjects":{"items":{"$ref":"#/components/schemas/SubjectNode"},"type":"array","title":"Subjects"}},"type":"object","required":["branch","subjects"],"title":"TaxonomyTreeRead"},"TaxonomyTypeRead":{"properties":{"id":{"type":"string","title":"Id"},"name_tr":{"type":"string","title":"Name Tr"},"description_tr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Tr"},"signals_tr":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Signals Tr"},"traps":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Traps"},"strategies":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Strategies"}},"additionalProperties":true,"type":"object","required":["id","name_tr"],"title":"TaxonomyTypeRead","description":"One soru tipi of a kova: the Turkish display text the Konu Atlası screen shows."},"TeacherActivityCellRead":{"properties":{"week":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"Week"},"weekday":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Weekday","description":"1=Monday … 7=Sunday (ISO)."},"completed":{"type":"integer","minimum":0.0,"title":"Completed","default":0}},"additionalProperties":false,"type":"object","required":["week","weekday"],"title":"TeacherActivityCellRead","description":"One cell of the 13×7 last-90d activity heat-map.\n\n``week_index`` 0 is the **oldest** week in the window, ``12`` is the\ncurrent week (matches the design doc's left-to-right read order)."},"TeacherActivityHeatmapRead":{"properties":{"cells":{"items":{"$ref":"#/components/schemas/TeacherActivityCellRead"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","title":"TeacherActivityHeatmapRead"},"TeacherAnalyticsSummaryRead":{"properties":{"subbranch_count":{"type":"integer","minimum":0.0,"title":"Subbranch Count","default":0},"branch_count":{"type":"integer","minimum":0.0,"title":"Branch Count","default":0},"students_by_branch":{"items":{"$ref":"#/components/schemas/TeacherStudentsByBranchItemRead"},"type":"array","title":"Students By Branch"},"total_students":{"type":"integer","minimum":0.0,"title":"Total Students","default":0},"review_count":{"type":"integer","minimum":0.0,"title":"Review Count","default":0},"lesson_attendance_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Lesson Attendance Rate Percent"},"bundle_count":{"type":"integer","minimum":0.0,"title":"Bundle Count","default":0}},"additionalProperties":false,"type":"object","title":"TeacherAnalyticsSummaryRead","description":"The \"Analizler\" header strip. Stock metrics (subbranch/branch/student/bundle\ncounts) are point-in-time; flow metrics (reviews, attendance) honour the\noptional ``from``/``to`` range.\n\n``branch_count`` counts BRANCHES, not subbranch variants: a teacher who\nteaches \"Matematik\" and \"Geometri\" reads 2 even when each has several\nsubbranch rows behind it. ``students_by_branch`` counts distinct students per\nbranch over a fixed 365-day COMPLETED window (the same window as\n``/my-students-with-courses``), unioned with the branches the teacher has\ntaught, so a taught branch with no recent students still appears with 0.\nBoth are stock metrics: neither honours ``from``/``to``."},"TeacherApprovalRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Teacher_ID":{"type":"string","format":"uuid","title":"Teacher Id"},"Statu":{"$ref":"#/components/schemas/TeacherApprovalStatus"},"Applicant_Comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Comment"},"Reviewer_Comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Comment"},"Reviewer_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewer Id"},"Decided_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"Created_At":{"type":"string","format":"date-time","title":"Created At"},"Updated_At":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["ID","Teacher_ID","Statu","Created_At","Updated_At"],"title":"TeacherApprovalRead"},"TeacherApprovalRequest":{"properties":{"applicant_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Comment"}},"type":"object","title":"TeacherApprovalRequest"},"TeacherApprovalStatus":{"type":"string","enum":["PENDING","APPROVED","REJECTED"],"title":"TeacherApprovalStatus"},"TeacherAvailabilityCellRead":{"properties":{"weekday":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Weekday"},"hour_bucket":{"type":"integer","maximum":22.0,"minimum":0.0,"title":"Hour Bucket"},"has_slot":{"type":"boolean","title":"Has Slot","default":false}},"additionalProperties":false,"type":"object","required":["weekday","hour_bucket"],"title":"TeacherAvailabilityCellRead","description":"Single (weekday, 2-hour bucket) availability cell.\n\nReuses the same convention as ``AvailabilityCellRead`` for the\nsubbranch availability heatmap: weekday 1=Monday … 7=Sunday, and\n``hour_bucket`` is the bucket's starting hour (0, 2, 4, … 22)."},"TeacherAvailabilityRead":{"properties":{"cells":{"items":{"$ref":"#/components/schemas/TeacherAvailabilityCellRead"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","title":"TeacherAvailabilityRead"},"TeacherBehaviorCardsRead":{"properties":{"ghost_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Ghost Rate Percent"},"cancel_by_teacher_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Cancel By Teacher Rate Percent"},"late_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Late Rate Percent"},"avg_late_minutes":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Avg Late Minutes"},"meeting_reject_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Meeting Reject Rate Percent"},"attendance_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Attendance Rate Percent","description":"participation_stayed / participation_eligible ×100 (45 rolling days). Eligible rows: COMPLETED non-meeting, lesson_id set, INNER JOIN course_lesson with scheduled end inferred from ends_at OR lesson_end. Null only when denominator is zero (nothing linkable through course_lesson)."},"early_leave_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Early Leave Rate Percent","description":"participation_early_leave / participation_joined ×100; null when no host-joined observations in eligible completed lessons."},"decided_45d":{"type":"integer","minimum":0.0,"title":"Decided 45D","default":0},"late_base_45d":{"type":"integer","minimum":0.0,"title":"Late Base 45D","default":0},"meeting_demand_45d":{"type":"integer","minimum":0.0,"title":"Meeting Demand 45D","default":0}},"additionalProperties":false,"type":"object","title":"TeacherBehaviorCardsRead","description":"Behavior snapshot (45g): rates from MV2 plus in-lesson participation."},"TeacherBundleEarningRowRead":{"properties":{"purchase_id":{"type":"string","format":"uuid","title":"Purchase Id"},"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"student_name":{"type":"string","title":"Student Name"},"student_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Avatar Url"},"amount":{"type":"string","title":"Amount"},"paid_at":{"type":"string","format":"date-time","title":"Paid At"},"earned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Earned At"},"status":{"$ref":"#/components/schemas/EarningStatus"},"payout_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payout Id"},"paid_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid Out At"}},"type":"object","required":["purchase_id","marketplace_bundle_id","student_id","student_name","amount","paid_at","status"],"title":"TeacherBundleEarningRowRead","description":"One paid purchase on the teacher's bundle earnings statement.\n\n``earned_at`` (= the bundle's completed_at) is the month-bucket timestamp;\nit is null while the row is still PENDING (bundle not COMPLETED yet).\nAmounts are gross — no commission concept exists yet."},"TeacherBundleEarningsListMeta":{"properties":{"month":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"},"month_total":{"type":"string","title":"Month Total","default":"0"},"month_count":{"type":"integer","title":"Month Count","default":0},"month_ignored":{"type":"boolean","title":"Month Ignored","default":false},"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":50}},"type":"object","title":"TeacherBundleEarningsListMeta","description":"Typed envelope meta for the bundle earnings statement.\n\nMirrors the lesson statement's meta (see ``TeacherEarningsListMeta``); every\nfield is defaulted so the error path's bare ``Result`` (meta ``{}``) still\nvalidates against the concrete response_model below.\n\n``month_ignored`` is True for PENDING rows: a purchase has no accrual date\nuntil its bundle completes, so the month filter cannot be applied to them."},"TeacherBundleEarningsListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherBundleEarningRowRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/TeacherBundleEarningsListMeta"}},"type":"object","required":["code","message"],"title":"TeacherBundleEarningsListResult","description":"``Result`` with a narrowed meta so OpenAPI describes it.\n\n``MarketplaceResult`` is an alias of ``Result``, so parametrizing it yields\nthe same class — subclassing the concrete parametrization is the only way\nto attach a typed meta."},"TeacherBundleEarningsSortBy":{"type":"string","enum":["student_name","bundle_title","amount","paid_at","earned_at","paid_out_at"],"title":"TeacherBundleEarningsSortBy","description":"Sortable columns of the bundle statement.\n\nSome columns are empty in some buckets (``earned_at`` is NULL for every\nPENDING purchase). Sorting by one of those is allowed rather than a 422:\nnulls go last in both directions and the row id keeps it deterministic."},"TeacherBundleEarningsSummaryRead":{"properties":{"pending_total":{"type":"string","title":"Pending Total"},"pending_count":{"type":"integer","title":"Pending Count"},"unpaid_total":{"type":"string","title":"Unpaid Total"},"unpaid_count":{"type":"integer","title":"Unpaid Count"},"earned_total":{"type":"string","title":"Earned Total"},"earned_count":{"type":"integer","title":"Earned Count"},"currency":{"type":"string","title":"Currency","default":"TRY"}},"type":"object","required":["pending_total","pending_count","unpaid_total","unpaid_count","earned_total","earned_count"],"title":"TeacherBundleEarningsSummaryRead","description":"Lifetime gross balances. unpaid == earned until payouts exist."},"TeacherBundleHomeworkRankRead":{"properties":{"marketplace_bundle_id":{"type":"string","format":"uuid","title":"Marketplace Bundle Id"},"bundle_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"my_average_score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"My Average Score Percent"},"my_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"My Rank"},"ranked_participant_count":{"type":"integer","minimum":0.0,"title":"Ranked Participant Count","default":0},"enrolled_count":{"type":"integer","minimum":0.0,"title":"Enrolled Count","default":0},"percentile":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Percentile"}},"additionalProperties":false,"type":"object","required":["marketplace_bundle_id"],"title":"TeacherBundleHomeworkRankRead","description":"Student's homework standing inside one of THIS teacher's bundles."},"TeacherCancelReason":{"type":"string","enum":["SCHEDULE_INCOMPATIBLE","OTHER"],"title":"TeacherCancelReason"},"TeacherCourseAnalyticsRead":{"properties":{"course_progress":{"$ref":"#/components/schemas/TeacherCourseProgressRead"},"topic_progress":{"$ref":"#/components/schemas/TeacherTopicProgressRead"},"last_lesson":{"$ref":"#/components/schemas/TeacherLastLessonRead"},"last_homework":{"anyOf":[{"$ref":"#/components/schemas/TeacherLastHomeworkRead"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["course_progress","topic_progress","last_lesson"],"title":"TeacherCourseAnalyticsRead"},"TeacherCourseProgressRead":{"properties":{"total_completed_lessons":{"type":"integer","minimum":0.0,"title":"Total Completed Lessons","default":0},"total_visible_homeworks_assigned":{"type":"integer","minimum":0.0,"title":"Total Visible Homeworks Assigned","default":0},"total_visible_homeworks_completed":{"type":"integer","minimum":0.0,"title":"Total Visible Homeworks Completed","default":0},"homework_completion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Homework Completion Rate Percent"}},"additionalProperties":false,"type":"object","title":"TeacherCourseProgressRead"},"TeacherDetailRead":{"properties":{"header":{"$ref":"#/components/schemas/TeacherHeaderRead"},"kpi":{"anyOf":[{"$ref":"#/components/schemas/TeacherKpiStripRead"},{"type":"null"}]},"trend":{"anyOf":[{"$ref":"#/components/schemas/TeacherTrendRead"},{"type":"null"}]},"behavior":{"anyOf":[{"$ref":"#/components/schemas/TeacherBehaviorCardsRead"},{"type":"null"}]},"subbranch_breakdown":{"anyOf":[{"items":{"$ref":"#/components/schemas/TeacherSubbranchRowRead"},"type":"array"},{"type":"null"}],"title":"Subbranch Breakdown"},"availability":{"anyOf":[{"$ref":"#/components/schemas/TeacherAvailabilityRead"},{"type":"null"}]},"activity":{"anyOf":[{"$ref":"#/components/schemas/TeacherActivityHeatmapRead"},{"type":"null"}]},"timeline":{"anyOf":[{"items":{"$ref":"#/components/schemas/TeacherLessonTimelineItemRead"},"type":"array"},{"type":"null"}],"title":"Timeline"},"features":{"anyOf":[{"$ref":"#/components/schemas/TeacherFeatureUsageRead"},{"type":"null"}]},"reviews":{"anyOf":[{"items":{"$ref":"#/components/schemas/TeacherReviewItemRead"},"type":"array"},{"type":"null"}],"title":"Reviews"},"partial":{"type":"boolean","title":"Partial","description":"True when any sub-block failed and was replaced with None.","default":false},"failed_blocks":{"items":{"type":"string","enum":["kpi","trend","behavior","subbranch_breakdown","availability","activity","timeline","features","reviews"]},"type":"array","title":"Failed Blocks"}},"additionalProperties":false,"type":"object","required":["header"],"title":"TeacherDetailRead","description":"Single trip for the entire teacher detail page.\n\nMirrors the subbranch ``SubbranchDetailRead`` graceful-degradation\npattern: every panel is optional, ``partial`` flips true when any\npanel errored, and ``failed_blocks`` records which one(s) so the UI\ncan render a soft warning."},"TeacherDocumentAttachmentsRead":{"properties":{"teacher_document_id":{"type":"string","format":"uuid","title":"Teacher Document Id"},"courses":{"items":{"$ref":"#/components/schemas/AttachedCourseBasicRead"},"type":"array","title":"Courses","default":[]},"bundle_templates":{"items":{"$ref":"#/components/schemas/AttachedBundleTemplateBasicRead"},"type":"array","title":"Bundle Templates","default":[]},"marketplace_bundles":{"items":{"$ref":"#/components/schemas/AttachedMarketplaceBundleBasicRead"},"type":"array","title":"Marketplace Bundles","default":[]}},"type":"object","required":["teacher_document_id"],"title":"TeacherDocumentAttachmentsRead","description":"Where a teacher library document is used: courses, bundle templates and live\nmarketplace bundles. A document with all three lists empty is exactly the one\nthe delete endpoint accepts."},"TeacherDocumentAttachmentsRequest":{"properties":{"teacher_document_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"Teacher Document Ids","description":"1..100 library document ids; duplicates are de-duplicated, response order follows the request."}},"additionalProperties":false,"type":"object","required":["teacher_document_ids"],"title":"TeacherDocumentAttachmentsRequest","description":"Where-is-it-used lookup for a batch of teacher library documents."},"TeacherDocumentHomeworkRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"teacher_document_id":{"type":"string","format":"uuid","title":"Teacher Document Id"},"question_count":{"type":"integer","minimum":1.0,"title":"Question Count"},"answers":{"type":"string","title":"Answers"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","teacher_document_id","question_count","answers","created_at","updated_at"],"title":"TeacherDocumentHomeworkRead","description":"The answer key of a HOMEWORK library document (owner-only view)."},"TeacherDocumentHomeworkUpsertRequest":{"properties":{"teacher_document_id":{"type":"string","format":"uuid","title":"Teacher Document Id","description":"CourseDocumentOfTeacher.id (library document)"},"question_count":{"type":"integer","minimum":1.0,"title":"Question Count","description":"Number of questions (>= 1)"},"answers":{"type":"string","minLength":1,"title":"Answers","description":"Answer key string, one A-E char per question (e.g. 'ABCDE')"}},"additionalProperties":false,"type":"object","required":["teacher_document_id","question_count","answers"],"title":"TeacherDocumentHomeworkUpsertRequest","description":"Library-level answer key upsert for a teacher document (owner only)."},"TeacherDocumentKind":{"type":"string","enum":["HOMEWORK","NOTES"],"title":"TeacherDocumentKind","description":"What a library document IS, chosen once at upload and never changed:\nHOMEWORK carries an answer key (``teacher_document_homework``), NOTES does\nnot. Every attachment target (lesson request, bundle component) derives its\nown type from this, so a document cannot be homework in one place and\nreading material in another.\n\nStored as VARCHAR + CHECK rather than a PG enum: the values are stable and\na plain column stays identical whether the table was created by\n``create_all`` or by alembic (no ADD VALUE dance)."},"TeacherDocumentLabelsUpdateRequest":{"properties":{"teacher_document_id":{"type":"string","format":"uuid","title":"Teacher Document Id"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"}},"additionalProperties":false,"type":"object","required":["teacher_document_id"],"title":"TeacherDocumentLabelsUpdateRequest","description":"Patch the curriculum labels and/or display name of ONE teacher-library\ndocument.\n\nAt least one of ``subbranch_id``, ``unit_id`` or ``original_filename``\nMUST appear in the payload (checked via ``model_fields_set``). Sending\n``null`` for a label is an explicit clear; omitting the field leaves it\nuntouched. Consistency between the resulting ``(subbranch_id, unit_id)``\ntuple is enforced in the service layer (see SUBBRANCH_REQUIRED /\nUNIT_NOT_IN_SUBBRANCH).\n\n``original_filename`` renames the document as shown in the library; the\nstored object (GCS) is untouched. Unlike the labels it can NOT be\ncleared: the column is NOT NULL by contract, so ``null`` or a blank\nstring is rejected."},"TeacherDocumentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"original_filename":{"type":"string","title":"Original Filename"},"mime_type":{"type":"string","title":"Mime Type"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"document_kind":{"$ref":"#/components/schemas/TeacherDocumentKind","default":"NOTES"},"has_homework":{"type":"boolean","title":"Has Homework","default":false},"question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Question Count"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"document_link":{"type":"string","title":"Document Link","default":""}},"type":"object","required":["id","teacher_id","tenant_id","original_filename","mime_type","file_size_bytes","created_at","updated_at"],"title":"TeacherDocumentRead","description":"Read DTO for CourseDocumentOfTeacher.\n\nIMPORTANT:\n  - `id` is the stable identifier for the teacher library file.\n  - The actual file object_id uses:\n        course_documents/teacher/<id>.<ext>"},"TeacherEarningRowRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"student_name":{"type":"string","title":"Student Name"},"student_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Avatar Url"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"earned_at":{"type":"string","format":"date-time","title":"Earned At"},"amount":{"type":"string","title":"Amount"},"paid_at":{"type":"string","format":"date-time","title":"Paid At"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"status":{"$ref":"#/components/schemas/EarningStatus"},"payout_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Payout Id"},"paid_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid Out At"}},"additionalProperties":false,"type":"object","required":["lesson_request_id","student_id","student_name","lesson_start","lesson_end","earned_at","amount","paid_at","subbranch_id","status"],"title":"TeacherEarningRowRead","description":"One paid lesson on the teacher's earnings statement."},"TeacherEarningsListMeta":{"properties":{"month":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"},"month_total":{"type":"string","title":"Month Total","default":"0"},"month_count":{"type":"integer","title":"Month Count","default":0},"month_ignored":{"type":"boolean","title":"Month Ignored","default":false},"total":{"type":"integer","title":"Total","default":0},"page":{"type":"integer","title":"Page","default":0},"page_size":{"type":"integer","title":"Page Size","default":50}},"type":"object","title":"TeacherEarningsListMeta","description":"Typed envelope meta for the earnings statement lists.\n\nEVERY field carries a default and ``extra`` stays at pydantic's permissive\ndefault on purpose: error paths return the bare ``Result`` (meta ``{}``)\nand FastAPI re-validates it against the concrete response_model below, so\na required field — or ``extra=\"forbid\"`` meeting an AppException's own meta\nkeys — would turn a handled 4xx into a ResponseValidationError 500.\n\n``month_total`` is a decimal string (like ``amount``); ``month_count`` and\n``total`` are the same figure — the row count matching month + status —\nkept side by side because ``month_count`` predates ``total`` and ``total``\nis the app-wide pagination convention."},"TeacherEarningsListResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TeacherEarningRowRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/TeacherEarningsListMeta"}},"type":"object","required":["code","message"],"title":"TeacherEarningsListResult","description":"``Result`` with the meta narrowed so OpenAPI describes it.\n\nSubclassing the concrete parametrization is required: ``TutoringResult`` is\nan alias of ``Result``, so parametrizing it resolves to the very same class\nand cannot carry a narrower meta."},"TeacherEarningsSortBy":{"type":"string","enum":["student_name","lesson_start","amount","earned_at","paid_at","paid_out_at"],"title":"TeacherEarningsSortBy","description":"Sortable columns of the lesson statement.\n\nSome columns are empty in some buckets (``paid_out_at`` is NULL for every\nPENDING row). Sorting by one of those is allowed rather than a 422: nulls\ngo last in both directions and the row id keeps the order deterministic."},"TeacherEarningsSummaryRead":{"properties":{"pending_total":{"type":"string","title":"Pending Total"},"pending_count":{"type":"integer","title":"Pending Count"},"unpaid_total":{"type":"string","title":"Unpaid Total"},"unpaid_count":{"type":"integer","title":"Unpaid Count"},"earned_total":{"type":"string","title":"Earned Total"},"earned_count":{"type":"integer","title":"Earned Count"},"currency":{"type":"string","title":"Currency","default":"TRY"}},"additionalProperties":false,"type":"object","required":["pending_total","pending_count","unpaid_total","unpaid_count","earned_total","earned_count"],"title":"TeacherEarningsSummaryRead","description":"Lifetime gross balances. unpaid = EARNED bucket; earned = EARNED + PAID_OUT."},"TeacherFeatureMonthRead":{"properties":{"month":{"type":"string","format":"date","title":"Month","description":"First day of the Europe/Istanbul month."},"lib_docs":{"type":"integer","minimum":0.0,"title":"Lib Docs","default":0},"attached_docs":{"type":"integer","minimum":0.0,"title":"Attached Docs","default":0}},"additionalProperties":false,"type":"object","required":["month"],"title":"TeacherFeatureMonthRead","description":"One month of the 12-month material bar."},"TeacherFeatureUsageRead":{"properties":{"lib_docs_monthly":{"items":{"$ref":"#/components/schemas/TeacherFeatureMonthRead"},"type":"array","title":"Lib Docs Monthly"},"recent_no_syllabus":{"items":{"$ref":"#/components/schemas/TeacherNoSyllabusLessonRead"},"type":"array","title":"Recent No Syllabus"}},"additionalProperties":false,"type":"object","title":"TeacherFeatureUsageRead","description":"Combined feature-usage panel."},"TeacherHeaderRead":{"properties":{"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"primary_branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url","description":"Public HTTPS URL when GCS bucket is configured; else raw stored path."},"avg_score":{"anyOf":[{"type":"number","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Avg Score","description":"AVG(score) over all ``teacher_reviews`` rows — same 1–5 scale as OLTP ``teacher.avg_score``."},"review_count":{"type":"integer","minimum":0.0,"title":"Review Count","description":"Includes pending / unpublished rows — same denominator as reviews[].","default":0},"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked"},"email_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Masked"},"is_banned":{"type":"boolean","title":"Is Banned","default":false},"banned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Banned At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"subbranch_chips":{"items":{"$ref":"#/components/schemas/TeacherSubbranchChipRead"},"type":"array","title":"Subbranch Chips"}},"additionalProperties":false,"type":"object","required":["teacher_id","user_id"],"title":"TeacherHeaderRead","description":"Identifier strip at the top of the detail page."},"TeacherKpiStripRead":{"properties":{"completed_30d":{"type":"integer","minimum":0.0,"title":"Completed 30D"},"completion_rate_30d_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Completion Rate 30D Percent"},"ghost_rate_30d_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Ghost Rate 30D Percent","description":"Ghost share within decided real-lesson pool (30 IST calendar days, same bounds as trend.points ). Null only when denominator is zero."},"no_syllabus_rate_30d_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"No Syllabus Rate 30D Percent","description":"no_syllabus_lessons/completed × 100 in the IST 30g window; null iff completed == 0 (matches Zoom-1 list row formula). Segment S10 gates use MIN_COMPLETED separately."},"avg_score":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Avg Score","description":"Echo of header.avg_score — 1–5 scale, OLTP-aligned."},"review_count":{"type":"integer","minimum":0.0,"title":"Review Count","description":"Echo of header.review_count — all stored rows.","default":0},"unique_students_30d":{"type":"integer","minimum":0.0,"title":"Unique Students 30D"},"last_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Completed At"}},"additionalProperties":false,"type":"object","required":["completed_30d","unique_students_30d"],"title":"TeacherKpiStripRead","description":"Six snapshot cards rendered at the top of the detail body (no Δ —\nΔ would imply a snapshot comparison and we explicitly chose not to add\na per-teacher daily snapshot table)."},"TeacherLabelFieldCreateRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"TeacherLabelFieldCreateRequest"},"TeacherLabelFieldListRead":{"properties":{"Items":{"items":{"$ref":"#/components/schemas/TeacherLabelFieldRead"},"type":"array","title":"Items"},"Total":{"type":"integer","title":"Total","default":0},"Page":{"type":"integer","title":"Page","default":0},"Page_Size":{"type":"integer","title":"Page Size","default":20}},"type":"object","title":"TeacherLabelFieldListRead","description":"Paged response for GET /teacher_labels/fields"},"TeacherLabelFieldRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Name":{"type":"string","title":"Name"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["ID","Name"],"title":"TeacherLabelFieldRead"},"TeacherLabelFieldUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"}},"type":"object","title":"TeacherLabelFieldUpdateRequest","description":"PATCH label field:\n  - can update name and/or description\n  - at least one must be provided"},"TeacherLabelsRead":{"properties":{"Items":{"items":{"$ref":"#/components/schemas/TeacherLabelFieldRead"},"type":"array","title":"Items"}},"type":"object","title":"TeacherLabelsRead","description":"For GET /teacher_profile/labels or GET /teachers/{id}/labels"},"TeacherLastHomeworkRead":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"title":{"type":"string","title":"Title"},"visible_from":{"type":"string","format":"date-time","title":"Visible From"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"},"question_count":{"type":"integer","minimum":0.0,"title":"Question Count","default":0},"real_answers":{"type":"string","title":"Real Answers"},"is_submitted":{"type":"boolean","title":"Is Submitted","default":false},"student_answers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Answers"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"}},"additionalProperties":false,"type":"object","required":["document_id","lesson_request_id","title","visible_from","real_answers"],"title":"TeacherLastHomeworkRead","description":"Most recently visible homework attached to any lesson request for the\ngiven (teacher, student, subbranch) tuple. Raw payload: backend exposes\nstudent_answers and real_answers as plain text. Any per-character\ncorrect/wrong formatting (e.g. ABC(D)) is the UI's responsibility."},"TeacherLastLessonRead":{"properties":{"lesson_request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Request Id"},"lesson_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Id"},"lesson_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lesson Start"},"lesson_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lesson End"},"duration_minutes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Duration Minutes"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"approval_statu":{"anyOf":[{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},{"type":"null"}]},"topics_covered":{"items":{"type":"string"},"type":"array","title":"Topics Covered"},"upcoming_homeworks":{"items":{"$ref":"#/components/schemas/HomeworkSummaryRead"},"type":"array","title":"Upcoming Homeworks"},"upcoming_homeworks_total":{"type":"integer","minimum":0.0,"title":"Upcoming Homeworks Total","default":0}},"additionalProperties":false,"type":"object","title":"TeacherLastLessonRead"},"TeacherLessonTimelineItemRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"status":{"type":"string","title":"Status"},"meeting_lesson":{"type":"boolean","title":"Meeting Lesson"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"level_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Level Id","description":"Curriculum ``level.id``."},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name","description":"``level.name``."},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"student_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Name"},"host_joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Host Joined At"},"late_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Late Minutes"}},"additionalProperties":false,"type":"object","required":["lesson_request_id","starts_at","ends_at","status","meeting_lesson","subbranch_id","student_id"],"title":"TeacherLessonTimelineItemRead","description":"One row of the last-20 lessons timeline."},"TeacherListFilter":{"properties":{"branches":{"anyOf":[{"items":{"$ref":"#/components/schemas/Branch"},"type":"array"},{"type":"null"}],"title":"Branches"},"subbranch_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Subbranch Ids"},"level_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Level Ids"},"first_teaching_year_from":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Teaching Year From"},"first_teaching_year_to":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Teaching Year To"},"teacher_rating":{"anyOf":[{"$ref":"#/components/schemas/TeacherRatingFilter"},{"type":"null"}]},"has_published_courses":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Published Courses"},"course_subbranch_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Course Subbranch Ids"},"course_level_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Course Level Ids"},"course_branches":{"anyOf":[{"items":{"$ref":"#/components/schemas/Branch"},"type":"array"},{"type":"null"}],"title":"Course Branches"},"weekly_lesson_count_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weekly Lesson Count Min"},"weekly_lesson_count_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weekly Lesson Count Max"},"no_lesson_on_days":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"No Lesson On Days"},"sort_by":{"anyOf":[{"$ref":"#/components/schemas/TeacherSortField"},{"type":"null"}]},"sort_direction":{"$ref":"#/components/schemas/SortDirection","default":"ASC"}},"additionalProperties":false,"type":"object","title":"TeacherListFilter"},"TeacherListRead":{"properties":{"segment":{"type":"string","enum":["s1_top_performer","s2_top_rated","s3_fading","s4_low_score","s5_high_ghost","s6_high_teacher_cancel","s7_high_late","s8_high_meeting_reject","s9_no_homework","s10_no_syllabus","s11_high_demand","s12_low_meeting_conv","s13_high_meeting_conv"],"title":"Segment"},"window_days":{"type":"integer","minimum":1.0,"title":"Window Days"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size"},"sort":{"type":"string","title":"Sort","description":"<field>:<asc|desc>"},"rows":{"items":{"$ref":"#/components/schemas/TeacherRowRead"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["segment","window_days","total","page","page_size","sort"],"title":"TeacherListRead","description":"Paged list response for a single segment.\n\n``sort`` is echoed back even when the user did not supply one — the\ndefault sort for the segment is resolved server-side and surfaced here\nso the UI can render the right indicator on the column header."},"TeacherMembershipCreate":{"properties":{"phone_number":{"type":"string","maxLength":40,"minLength":1,"title":"Phone Number","description":"The teacher's Alfabemy phone; any formatting"},"section_codes":{"items":{"type":"string"},"type":"array","maxItems":64,"title":"Section Codes","description":"Sections the teacher may read, e.g. ['11-A', '11-B']"}},"additionalProperties":false,"type":"object","required":["phone_number"],"title":"TeacherMembershipCreate"},"TeacherNoSyllabusLessonRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"level_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Level Id","description":"Curriculum ``level.id``."},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name","description":"``level.name``."},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"student_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student Name"}},"additionalProperties":false,"type":"object","required":["lesson_request_id","starts_at","subbranch_id","student_id"],"title":"TeacherNoSyllabusLessonRead","description":"One row of the 'last 5 syllabusless lessons' list."},"TeacherOnboardingFlags":{"properties":{"Profile_Complete":{"type":"boolean","title":"Profile Complete"},"Has_Availability":{"type":"boolean","title":"Has Availability"},"Latest_Approval_Status":{"anyOf":[{"$ref":"#/components/schemas/TeacherApprovalStatus"},{"type":"null"}]}},"type":"object","required":["Profile_Complete","Has_Availability"],"title":"TeacherOnboardingFlags"},"TeacherOnboardingStateRead":{"properties":{"State":{"type":"string","enum":["empty","pending","rejected","approved_no_availability","ready"],"title":"State"},"Flags":{"$ref":"#/components/schemas/TeacherOnboardingFlags"}},"type":"object","required":["State","Flags"],"title":"TeacherOnboardingStateRead"},"TeacherOverview":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileRead"},{"type":"null"}]},"Subbranches":{"anyOf":[{"items":{"$ref":"#/components/schemas/SubbranchRead"},"type":"array"},{"type":"null"}],"title":"Subbranches"},"Labels":{"anyOf":[{"items":{"$ref":"#/components/schemas/TeacherLabelFieldRead"},"type":"array"},{"type":"null"}],"title":"Labels"},"First_Teaching_Year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Teaching Year"},"Avg_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Score"},"Review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Count"},"Statu":{"anyOf":[{"$ref":"#/components/schemas/TeacherStatus"},{"type":"null"}]},"Biography":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Biography"},"Slot_Price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot Price"},"Graduated_College_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Graduated College Id"},"Graduated_College":{"anyOf":[{"$ref":"#/components/schemas/CollegeRead"},{"type":"null"}]}},"type":"object","required":["ID"],"title":"TeacherOverview"},"TeacherProfileVideoKind":{"type":"string","enum":["KONU_ANLATIMI","SORU_COZUMU","KONU_DISI","PROFILE_VIDEO"],"title":"TeacherProfileVideoKind","description":"Teacher profile video categories.\n\nKONU_ANLATIMI / SORU_COZUMU require a curriculum subbranch (unit optional).\nKONU_DISI carries no curriculum labels.\nPROFILE_VIDEO is the teacher's single intro video: no curriculum labels,\nat most one active row per teacher; re-uploading swaps the underlying\nCloudflare asset in place so the row id (and bundle references) never change."},"TeacherProfileVideoRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"video_kind":{"$ref":"#/components/schemas/TeacherProfileVideoKind"},"status":{"$ref":"#/components/schemas/AsyncVideoStatus"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"},"pinned":{"type":"boolean","title":"Pinned","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","video_kind","status","created_at"],"title":"TeacherProfileVideoRead","description":"A teacher profile video as exposed to the frontend."},"TeacherPublishQuizRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"quiz_id":{"type":"string","format":"uuid","title":"Quiz Id"}},"additionalProperties":false,"type":"object","required":["course_id","quiz_id"],"title":"TeacherPublishQuizRequest"},"TeacherQuizRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"name":{"type":"string","title":"Name"},"answer":{"type":"string","title":"Answer"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"quiz_link":{"type":"string","title":"Quiz Link","default":""}},"type":"object","required":["id","tenant_id","teacher_id","name","answer","created_at"],"title":"TeacherQuizRead"},"TeacherRatingFilter":{"properties":{"min_avg_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Avg Score"},"min_review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Review Count"}},"additionalProperties":false,"type":"object","title":"TeacherRatingFilter"},"TeacherReviewItemRead":{"properties":{"review_id":{"type":"string","format":"uuid","title":"Review Id"},"stars":{"type":"number","maximum":5.0,"minimum":1.0,"title":"Stars","description":"Raw ``TeacherReview.score`` (1–5); wire alias kept as ``stars`` for FE."},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"reviewer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Name"},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"moderation_status":{"type":"string","title":"Moderation Status","description":"Raw DB moderation enum text (eg PENDING, APPROVED) for admin tooling."},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At","description":"Null until the row is visible to students/public flows."}},"additionalProperties":false,"type":"object","required":["review_id","stars","student_id","moderation_status"],"title":"TeacherReviewItemRead","description":"One review row of the last-20 reviews panel."},"TeacherReviewProductRead":{"properties":{"Product_Type":{"$ref":"#/components/schemas/TeacherReviewProductType"},"Marketplace_Bundle_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketplace Bundle Id"},"Bundle_Title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bundle Title"},"Subbranch_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"Subbranch_Name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"Branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"Level_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Level Id"}},"type":"object","required":["Product_Type"],"title":"TeacherReviewProductRead","description":"A verified product tag on a review card (\"AYT Matematik | Paket Ders\").\nBUNDLE tags resolve their subbranch from the bundle row at read time; a\ntag whose bundle/subbranch was deleted keeps only its product_type\n(tombstone — nulls everywhere else)."},"TeacherReviewProductType":{"type":"string","enum":["BUNDLE","ONE_ON_ONE"],"title":"TeacherReviewProductType","description":"What a review's product tag points at: a marketplace bundle the\nstudent enrolled in, or one-on-one lessons in a subbranch."},"TeacherReviewRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Reviewer_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewer Id"},"Reviewer_Name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Name"},"Reviewer_Surname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Surname"},"Score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"Review":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review"},"Is_Anonymous":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Anonymous"},"Moderation_Status":{"anyOf":[{"$ref":"#/components/schemas/ReviewModerationStatus"},{"type":"null"}]},"Products":{"items":{"$ref":"#/components/schemas/TeacherReviewProductRead"},"type":"array","title":"Products"},"Published_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"Edited_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Edited At"},"Created_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"Updated_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["ID"],"title":"TeacherReviewRead"},"TeacherReviewSort":{"type":"string","enum":["NEWEST","HIGHEST_SCORE"],"title":"TeacherReviewSort","description":"Review-drawer ordering: newest first (default) or best score first."},"TeacherReviews":{"properties":{"Total_Reviews":{"type":"integer","title":"Total Reviews"},"Review_Score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Review Score"},"Reviews":{"items":{"$ref":"#/components/schemas/TeacherReviewRead"},"type":"array","title":"Reviews"}},"type":"object","required":["Total_Reviews"],"title":"TeacherReviews"},"TeacherRosterStudentRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Profile":{"anyOf":[{"$ref":"#/components/schemas/ProfileRead"},{"type":"null"}]},"School_Level":{"anyOf":[{"$ref":"#/components/schemas/SchoolLevel"},{"type":"null"}]},"Class_Level":{"anyOf":[{"$ref":"#/components/schemas/ClassLevel"},{"type":"null"}]},"Target_Ranking":{"anyOf":[{"$ref":"#/components/schemas/TargetRanking"},{"type":"null"}]},"Province":{"anyOf":[{"$ref":"#/components/schemas/ProvinceRead"},{"type":"null"}]},"District":{"anyOf":[{"$ref":"#/components/schemas/DistrictRead"},{"type":"null"}]},"School":{"anyOf":[{"$ref":"#/components/schemas/SchoolRead"},{"type":"null"}]},"Target_College_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target College Id"},"Target_Program_ID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Program Id"},"Parent_Phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Phone"},"Parent_Phone_Verified_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Parent Phone Verified At"},"Platform_Joined_At":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Platform Joined At"},"Is_Active":{"type":"boolean","title":"Is Active","default":false},"Bundles":{"items":{"$ref":"#/components/schemas/StudentBundleRead"},"type":"array","title":"Bundles"}},"type":"object","required":["ID"],"title":"TeacherRosterStudentRead","description":"``/tutoring/my-students`` item, for BOTH sources — the item shape does not\ndepend on ``source``. ``bundles`` is always empty on the tutoring leg; the\ncourse pairs of a tutoring student live on ``/my-students-with-courses``."},"TeacherRowRead":{"properties":{"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked","description":"Masked phone for PII, e.g. '+90 532 ··· 4521'."},"email_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Masked","description":"Masked email for PII, e.g. 'ay···@example.com'."},"primary_branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"last_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Completed At"},"avg_score":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Avg Score"},"review_count":{"type":"integer","minimum":0.0,"title":"Review Count","default":0},"completed_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Completed 30D"},"completion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Completion Rate Percent"},"unique_students_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Unique Students 30D"},"completed_prev_60d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Completed Prev 60D"},"drop_magnitude":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Drop Magnitude","description":"completed_prev_60d - completed_30d (so positive = bigger drop)."},"decided_45d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Decided 45D"},"ghost_count_45d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Ghost Count 45D"},"ghost_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Ghost Rate Percent"},"cancel_by_teacher_count_45d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Cancel By Teacher Count 45D"},"cancel_by_teacher_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Cancel By Teacher Rate Percent"},"late_base_45d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Late Base 45D"},"late_count_45d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Late Count 45D"},"late_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Late Rate Percent"},"avg_late_minutes":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Avg Late Minutes"},"meeting_demand_45d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Meeting Demand 45D"},"meeting_reject_count_45d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Meeting Reject Count 45D"},"meeting_reject_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Meeting Reject Rate Percent"},"homework_count_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Homework Count 30D"},"library_docs_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Library Docs 30D"},"no_syllabus_lessons_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"No Syllabus Lessons 30D"},"no_syllabus_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"No Syllabus Rate Percent"},"favourite_count_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Favourite Count 30D"},"match_count_30d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Match Count 30D"},"meeting_cohort_60d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Meeting Cohort 60D"},"meeting_converted_60d":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Meeting Converted 60D"},"meeting_conversion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Meeting Conversion Rate Percent"}},"additionalProperties":false,"type":"object","required":["teacher_id"],"title":"TeacherRowRead","description":"One row of ``GET /admin/analytics/teachers``.\n\nThe row is intentionally **flat-wide**: every potential mid-column\nthat any of the 13 segments could populate lives here as an ``| None``\nfield. The segment dispatcher in ``crud.teacher_segment_defs`` knows\nwhich fields belong to each segment via ``SegmentDef.populates`` so\nthe frontend can read the row schema once and render the appropriate\ncolumns based on the active segment.\n\nThis pattern matches the existing ``TopTeacherRowRead`` in subbranch\nanalytics (mixed-shape rows in a single schema) and keeps Pydantic\nvalidation strict (``extra='forbid'``) without forcing a discriminated\nunion per segment."},"TeacherScheduleItemRead":{"properties":{"type":{"type":"string","title":"Type"},"id":{"type":"string","format":"uuid","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"lecture_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lecture Status"},"is_makeup":{"type":"boolean","title":"Is Makeup","default":false},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id"},"marketplace_bundle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Marketplace Bundle Id"},"student_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Student Id"}},"type":"object","required":["type","id","starts_at","ends_at"],"title":"TeacherScheduleItemRead"},"TeacherSearchHitRead":{"properties":{"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"additionalProperties":false,"type":"object","required":["teacher_id"],"title":"TeacherSearchHitRead","description":"One hit of the navigational teacher search.\n\nDeliberately tiny — this is **not** a row of the segment list and\nmust not be reused as one. The frontend uses these results purely\nto navigate to the per-teacher detail page; nothing on this shape\nshould drive analytics decisions.\n\nPhone number is returned **un-masked** because the search input\nitself is the phone number; masking would hide the very value the\nadmin is confirming."},"TeacherSearchRead":{"properties":{"mode":{"type":"string","enum":["name","phone"],"title":"Mode"},"query_echo":{"type":"string","title":"Query Echo"},"hits":{"items":{"$ref":"#/components/schemas/TeacherSearchHitRead"},"type":"array","title":"Hits"}},"additionalProperties":false,"type":"object","required":["mode","query_echo"],"title":"TeacherSearchRead","description":"Envelope returned by ``GET /admin/analytics/teachers/search``.\n\n``mode`` echoes which search path actually ran so the UI can render\na different empty-state (\"Bu telefon numarası kayıtlı değil.\" vs\n\"3+ karakter girin...\"). ``query_echo`` carries the trimmed query\nso a debounced UI can detect stale responses."},"TeacherSegmentChipRead":{"properties":{"key":{"type":"string","enum":["s1_top_performer","s2_top_rated","s3_fading","s4_low_score","s5_high_ghost","s6_high_teacher_cancel","s7_high_late","s8_high_meeting_reject","s9_no_homework","s10_no_syllabus","s11_high_demand","s12_low_meeting_conv","s13_high_meeting_conv"],"title":"Key"},"category":{"type":"string","enum":["performance","behavior","engagement","demand"],"title":"Category"},"label":{"type":"string","title":"Label"},"window_days":{"type":"integer","minimum":1.0,"title":"Window Days"},"count":{"type":"integer","minimum":0.0,"title":"Count"}},"additionalProperties":false,"type":"object","required":["key","category","label","window_days","count"],"title":"TeacherSegmentChipRead","description":"Zoom-1 segment chip preview: ``count`` is how many teachers match the\nrule today while the user's filters apply. Filters off — read today's\n``teacher_segment_counts_daily`` row first; missing keys trigger one\nglobal MV pass so ``chips[].count`` is always populated without picking\na segment."},"TeacherSegmentsRead":{"properties":{"kpi":{"items":{"$ref":"#/components/schemas/PlatformKpiCardRead"},"type":"array","title":"Kpi"},"chips":{"items":{"$ref":"#/components/schemas/TeacherSegmentChipRead"},"type":"array","title":"Chips"},"branches":{"items":{"$ref":"#/components/schemas/Branch"},"type":"array","title":"Branches","description":"Echo of the ``branch`` filter; empty means 'all'."},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id","description":"Echo of the ``subbranch_id`` filter; None means 'all'."}},"additionalProperties":false,"type":"object","title":"TeacherSegmentsRead","description":"Payload of ``GET /admin/analytics/teachers/segments``."},"TeacherSortField":{"type":"string","enum":["AVG_SCORE","REVIEW_COUNT","FIRST_TEACHING_YEAR","WEEKLY_LESSON_COUNT"],"title":"TeacherSortField"},"TeacherStatus":{"type":"string","enum":["VERIFIED","UNVERIFIED"],"title":"TeacherStatus"},"TeacherStudentAnalyticsForTeacherRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"is_tutoring_student":{"type":"boolean","title":"Is Tutoring Student","default":false},"is_bundle_student":{"type":"boolean","title":"Is Bundle Student","default":false},"overview":{"$ref":"#/components/schemas/TeacherStudentOverviewRead"},"course_analytics":{"anyOf":[{"$ref":"#/components/schemas/TeacherCourseAnalyticsRead"},{"type":"null"}]},"lesson_requests":{"items":{"$ref":"#/components/schemas/TeacherStudentLessonRequestRowRead"},"type":"array","title":"Lesson Requests"},"homeworks":{"items":{"$ref":"#/components/schemas/TeacherStudentHomeworkRowRead"},"type":"array","title":"Homeworks"},"bundle_homework_ranks":{"items":{"$ref":"#/components/schemas/TeacherBundleHomeworkRankRead"},"type":"array","title":"Bundle Homework Ranks"},"cancellation_split":{"$ref":"#/components/schemas/CancellationSplitRead"},"total_lessons_with_teacher":{"type":"integer","minimum":0.0,"title":"Total Lessons With Teacher","default":0},"lesson_requests_total":{"type":"integer","minimum":0.0,"title":"Lesson Requests Total","default":0},"homeworks_total":{"type":"integer","minimum":0.0,"title":"Homeworks Total","default":0}},"additionalProperties":false,"type":"object","required":["student_id","overview","cancellation_split"],"title":"TeacherStudentAnalyticsForTeacherRead","description":"Everything the teacher's student-detail page needs, in one call.\n``course_analytics`` is null for a bundle-only student (no course_id)."},"TeacherStudentAnalyticsForTeacherRequest":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id","description":"Course to scope lessons/homeworks/topics to"},"topic_list_kind":{"$ref":"#/components/schemas/TeacherTopicListKind","default":"COMPLETED"},"cursor_subunit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cursor Subunit Id","description":"Keyset cursor: Subunit.id"},"page_size":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Page Size","description":"Topic list page size (1..50)","default":20},"lessons_page":{"type":"integer","minimum":0.0,"title":"Lessons Page","description":"Lesson list page (0-based)","default":0},"lessons_page_size":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Lessons Page Size","description":"Lesson list page size (1..50)","default":20},"homeworks_limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Homeworks Limit","description":"Max homework rows (1..50)","default":20}},"additionalProperties":false,"type":"object","required":["student_id"],"title":"TeacherStudentAnalyticsForTeacherRequest","description":"One request for the whole student-detail page. ``course_id`` is optional:\nomit it for a bundle-only student, in which case the course-scoped blocks\n(course analytics, lesson list, homework list) come back empty."},"TeacherStudentBasicInfoRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"school_level":{"anyOf":[{"$ref":"#/components/schemas/SchoolLevel"},{"type":"null"}]},"school_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Name"},"target_ranking":{"anyOf":[{"$ref":"#/components/schemas/TargetRanking"},{"type":"null"}]},"platform_joined_at":{"type":"string","format":"date-time","title":"Platform Joined At"},"statu":{"anyOf":[{"$ref":"#/components/schemas/ProfileStatus"},{"type":"null"}]},"avatar_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Link"},"province_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Province Name"},"district_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"District Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"additionalProperties":false,"type":"object","required":["student_id","platform_joined_at"],"title":"TeacherStudentBasicInfoRead"},"TeacherStudentDisciplineRead":{"properties":{"streak":{"type":"integer","minimum":0.0,"title":"Streak","default":0},"attendance_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Attendance Rate Percent"},"missed_lessons_count":{"type":"integer","minimum":0.0,"title":"Missed Lessons Count","default":0},"student_cancellations_last_30d":{"type":"integer","minimum":0.0,"title":"Student Cancellations Last 30D","default":0}},"additionalProperties":false,"type":"object","title":"TeacherStudentDisciplineRead"},"TeacherStudentHomeworkRowRead":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"title":{"type":"string","title":"Title"},"visible_from":{"type":"string","format":"date-time","title":"Visible From"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"},"question_count":{"type":"integer","minimum":0.0,"title":"Question Count","default":0},"is_submitted":{"type":"boolean","title":"Is Submitted","default":false},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Percent"},"correct_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Correct Count"},"wrong_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Wrong Count"},"blank_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Blank Count"}},"additionalProperties":false,"type":"object","required":["document_id","lesson_request_id","title","visible_from"],"title":"TeacherStudentHomeworkRowRead","description":"One row of the \"Son Ödev Analizi\" table (this student, this course)."},"TeacherStudentLessonRequestRowRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"lesson_order":{"type":"integer","minimum":0.0,"title":"Lesson Order","default":0},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"duration_minutes":{"type":"integer","minimum":0.0,"title":"Duration Minutes","default":0},"approval_statu":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},"lesson_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Id"}},"additionalProperties":false,"type":"object","required":["lesson_request_id","lesson_start","lesson_end","approval_statu"],"title":"TeacherStudentLessonRequestRowRead","description":"One row of the \"Ders Yükü\" table."},"TeacherStudentOverviewRead":{"properties":{"basic_info":{"$ref":"#/components/schemas/TeacherStudentBasicInfoRead"},"discipline":{"$ref":"#/components/schemas/TeacherStudentDisciplineRead"},"weekly_load":{"$ref":"#/components/schemas/TeacherStudentWeeklyLoadRead"}},"additionalProperties":false,"type":"object","required":["basic_info","discipline","weekly_load"],"title":"TeacherStudentOverviewRead"},"TeacherStudentSource":{"type":"string","enum":["tutoring","bundle"],"title":"TeacherStudentSource","description":"Which relation makes somebody \"my student\" on /tutoring/my-students."},"TeacherStudentWeeklyLoadRead":{"properties":{"window_days":{"type":"integer","minimum":1.0,"title":"Window Days","default":7},"items":{"items":{"$ref":"#/components/schemas/LessonWindowItemRead"},"type":"array","title":"Items"},"total_count":{"type":"integer","minimum":0.0,"title":"Total Count","default":0}},"additionalProperties":false,"type":"object","title":"TeacherStudentWeeklyLoadRead"},"TeacherStudentsByBranchItemRead":{"properties":{"branch":{"$ref":"#/components/schemas/Branch"},"student_count":{"type":"integer","minimum":0.0,"title":"Student Count","default":0}},"additionalProperties":false,"type":"object","required":["branch"],"title":"TeacherStudentsByBranchItemRead","description":"Distinct students the teacher taught in one branch (see the summary strip)."},"TeacherSubbranchChipRead":{"properties":{"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"name":{"type":"string","title":"Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"level_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Level Id","description":"Curriculum ``level.id``."},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name","description":"``level.name`` (e.g. grade band)."}},"additionalProperties":false,"type":"object","required":["subbranch_id","name"],"title":"TeacherSubbranchChipRead","description":"Subbranch tag rendered in the detail header when the teacher has\nprofile registrations."},"TeacherSubbranchRowRead":{"properties":{"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"subbranch_name":{"type":"string","title":"Subbranch Name"},"subbranch_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Code"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"level_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Level Id","description":"Curriculum ``level.id``."},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name","description":"``level.name``."},"completed":{"type":"integer","minimum":0.0,"title":"Completed","default":0},"completion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Completion Rate Percent"},"unique_students":{"type":"integer","minimum":0.0,"title":"Unique Students","default":0},"no_syllabus_lessons":{"type":"integer","minimum":0.0,"title":"No Syllabus Lessons","default":0},"no_syllabus_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"No Syllabus Rate Percent","description":"Subbranch numerator/denominator from MV (UTC 30d); null iff completed == 0."},"last_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Completed At"}},"additionalProperties":false,"type":"object","required":["subbranch_id","subbranch_name"],"title":"TeacherSubbranchRowRead","description":"One row of the per-teacher subbranch breakdown table (30g)."},"TeacherTopicListKind":{"type":"string","enum":["COMPLETED","UNCOMPLETED"],"title":"TeacherTopicListKind"},"TeacherTopicProgressRead":{"properties":{"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"completed_topics_count":{"type":"integer","minimum":0.0,"title":"Completed Topics Count","default":0},"subbranch_curriculum_total_subunits":{"type":"integer","minimum":0.0,"title":"Subbranch Curriculum Total Subunits","default":0},"progress_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Progress Percent"},"topic_list_kind":{"$ref":"#/components/schemas/TeacherTopicListKind"},"items":{"items":{"$ref":"#/components/schemas/TutoringSubbranchTopicItemRead"},"type":"array","title":"Items"},"meta":{"$ref":"#/components/schemas/TutoringSubbranchTopicProgressPageMeta"}},"additionalProperties":false,"type":"object","required":["subbranch_id","topic_list_kind","meta"],"title":"TeacherTopicProgressRead"},"TeacherTrendPointRead":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"completed":{"type":"integer","minimum":0.0,"title":"Completed","default":0},"cancelled":{"type":"integer","minimum":0.0,"title":"Cancelled","default":0},"ghosted":{"type":"integer","minimum":0.0,"title":"Ghosted","default":0}},"additionalProperties":false,"type":"object","required":["day"],"title":"TeacherTrendPointRead","description":"One day of the detail-page 30d stacked trend."},"TeacherTrendRead":{"properties":{"window_days":{"type":"integer","minimum":1.0,"title":"Window Days","description":"Length of the daily series window; matches PERF_WINDOW_DAYS.","default":30},"points":{"items":{"$ref":"#/components/schemas/TeacherTrendPointRead"},"type":"array","title":"Points","description":"Daily aggregates; IST 30g lesson_start window matches KPI strip denominators."}},"additionalProperties":false,"type":"object","title":"TeacherTrendRead"},"TeacherUpdateRequest":{"properties":{"first_teaching_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Teaching Year","description":"First year the teacher started teaching (nullable to clear)."},"biography":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Biography","description":"Teacher biography (<= 2000 chars; nullable to clear)."},"slot_price":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Slot Price","description":"Teacher slot price (nullable to clear). Must be > 0 if set."},"graduated_college_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Graduated College Id","description":"Graduated university id (nullable to clear). Must exist in college table when set."}},"additionalProperties":false,"type":"object","title":"TeacherUpdateRequest"},"TeacherVerifyRequest":{"properties":{"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"decision":{"$ref":"#/components/schemas/TeacherApprovalStatus"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["teacher_id","decision"],"title":"TeacherVerifyRequest"},"TermListRulesRead":{"properties":{"min_exams":{"type":"integer","title":"Min Exams","description":"Series sittings a student needs to be listed at all (3)."},"opportunity_min":{"type":"number","title":"Opportunity Min","description":"`below_potential`: the opportunity net every sitting must reach (5)."},"top_rank":{"type":"integer","title":"Top Rank","description":"`top_candidates`: `rank_if_potential` at or within this (10) ..."},"outside_rank":{"type":"integer","title":"Outside Rank","description":"... while the general rank is beyond this (100) ..."},"top_min_exams":{"type":"integer","title":"Top Min Exams","description":"... in at least this many sittings (2)."}},"type":"object","required":["min_exams","opportunity_min","top_rank","outside_rank","top_min_exams"],"title":"TermListRulesRead","description":"The thresholds applied (the panel owner's rules of 2026-11-03 and 2026-11-04)."},"TermListsRead":{"properties":{"series":{"$ref":"#/components/schemas/TrajectorySeriesRead"},"rules":{"$ref":"#/components/schemas/TermListRulesRead"},"n_checked":{"type":"integer","title":"N Checked","description":"Students in scope by their latest series sitting, visible to the caller, operational, with `rules.min_exams` sittings or more."},"excluded_non_operational":{"type":"integer","title":"Excluded Non Operational","description":"The same students left out because their latest section or campus is not operational (D9)."},"top_candidates_total":{"type":"integer","title":"Top Candidates Total","description":"Every student meeting the `top_candidates` rule."},"top_candidates":{"items":{"$ref":"#/components/schemas/TermStudentRead"},"type":"array","title":"Top Candidates","description":"\"Derece adayı\": the first `limit`, most qualifying sittings first, then the latest `rank_if_potential` asc, the latest general rank desc, student id; `exams_met` counts the qualifying sittings."},"below_potential_total":{"type":"integer","title":"Below Potential Total","description":"Students meeting the `below_potential` rule, less those listed in `top_candidates`."},"below_potential":{"items":{"$ref":"#/components/schemas/TermStudentRead"},"type":"array","title":"Below Potential","description":"\"Potansiyelinin altında\": the first `limit`, the largest `mean_opportunity_net` first, then student id; `exams_met` equals `exams_observed`."}},"type":"object","required":["series","rules","n_checked","excluded_non_operational","top_candidates_total","below_potential_total"],"title":"TermListsRead"},"TermListsResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TermListsRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"TermListsResult"},"TermStudentRead":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"entry_id":{"type":"string","format":"uuid","title":"Entry Id","description":"The latest series sitting's record."},"exam_id":{"type":"string","format":"uuid","title":"Exam Id","description":"The latest series sitting's exam."},"full_name":{"type":"string","title":"Full Name"},"campus_id":{"type":"string","title":"Campus Id"},"campus_name":{"type":"string","title":"Campus Name"},"section_id":{"type":"string","title":"Section Id"},"section_name":{"type":"string","title":"Section Name"},"exams_observed":{"type":"integer","title":"Exams Observed","description":"Series exams the student sat this term."},"exams_met":{"type":"integer","title":"Exams Met","description":"Of those, the sittings that met the list's own rule."},"general_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"General Rank","description":"Official general rank of the latest sitting."},"rank_if_potential":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank If Potential","description":"`rank_if_potential.rank` of the latest sitting (P1's figure)."},"actual_net":{"type":"number","title":"Actual Net","description":"Official net of the latest sitting."},"potential_net":{"type":"number","title":"Potential Net","description":"Potential net of the latest sitting (P1's figure, D1)."},"mean_opportunity_net":{"type":"number","title":"Mean Opportunity Net","description":"The mean opportunity net over the observed sittings."}},"type":"object","required":["student_id","entry_id","exam_id","full_name","campus_id","campus_name","section_id","section_name","exams_observed","exams_met","actual_net","potential_net","mean_opportunity_net"],"title":"TermStudentRead","description":"A student of a term list, by their latest series sitting."},"TestListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"branch":{"$ref":"#/components/schemas/Branch"},"status":{"$ref":"#/components/schemas/QbTestStatus"},"target_count":{"type":"integer","title":"Target Count"},"question_count":{"type":"integer","title":"Question Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finalized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finalized At"},"library_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Library Document Id"}},"type":"object","required":["id","title","branch","status","target_count","question_count","created_at","finalized_at"],"title":"TestListItem"},"TestQuestionRead":{"properties":{"position":{"type":"integer","title":"Position"},"question_id":{"type":"integer","title":"Question Id"},"image_url":{"type":"string","title":"Image Url"},"hardness":{"anyOf":[{"$ref":"#/components/schemas/QbHardness"},{"type":"null"}]},"resource":{"$ref":"#/components/schemas/QbResource"},"topic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Name"},"has_solution_video":{"type":"boolean","title":"Has Solution Video"},"correct_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correct Answer"}},"type":"object","required":["position","question_id","image_url","resource","has_solution_video"],"title":"TestQuestionRead","description":"Detail view of a slot. ``correct_answer`` is populated ONLY on finalized\ntests (the teacher's in-app answer key); drafts never expose it, and the\nprintable document never contains it — the sheet goes to students."},"TestRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"branch":{"$ref":"#/components/schemas/Branch"},"status":{"$ref":"#/components/schemas/QbTestStatus"},"target_count":{"type":"integer","title":"Target Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finalized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finalized At"},"progress":{"$ref":"#/components/schemas/ProgressRead"},"questions":{"items":{"$ref":"#/components/schemas/TestQuestionRead"},"type":"array","title":"Questions"},"library_document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Library Document Id"}},"type":"object","required":["id","title","branch","status","target_count","created_at","finalized_at","progress","questions"],"title":"TestRead"},"ThumbnailUploadResponse":{"properties":{"custom_thumbnail_object_id":{"type":"string","title":"Custom Thumbnail Object Id"}},"type":"object","required":["custom_thumbnail_object_id"],"title":"ThumbnailUploadResponse","description":"Returned after a custom cover upload; feed object_id back into init."},"TopStyleChipRead":{"properties":{"code":{"type":"string","const":"top_style","title":"Code"},"params":{"$ref":"#/components/schemas/TopStyleParamsRead"}},"type":"object","required":["code","params"],"title":"TopStyleChipRead"},"TopStyleParamsRead":{"properties":{"style":{"type":"string","title":"Style"}},"type":"object","required":["style"],"title":"TopStyleParamsRead"},"TopTeacherRowRead":{"properties":{"rank":{"type":"integer","minimum":1.0,"title":"Rank"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"avg_score":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Avg Score"},"review_count":{"type":"integer","minimum":0.0,"title":"Review Count","default":0},"completed":{"type":"integer","minimum":0.0,"title":"Completed","default":0},"completion_rate_percent":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Completion Rate Percent"},"sparkline":{"items":{"type":"integer"},"type":"array","title":"Sparkline"}},"additionalProperties":false,"type":"object","required":["rank","teacher_id"],"title":"TopTeacherRowRead","description":"One row of the Top-10 teacher list."},"TopTeachersRead":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/TopTeacherRowRead"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","title":"TopTeachersRead"},"TopicRead":{"properties":{"id":{"type":"string","title":"Id","description":"`<subject>/<bucket_id>`; the same id in every analysis and in `target_curriculum_id` (canonicalised to the taxonomy's ders on save when the analysis filed the kova under a sibling ders of the same bölüm)."},"subject":{"type":"string","title":"Subject"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","subject","name"],"title":"TopicRead"},"TotalsRead":{"properties":{"correct":{"type":"integer","title":"Correct"},"wrong":{"type":"integer","title":"Wrong"},"blank":{"type":"integer","title":"Blank"}},"type":"object","required":["correct","wrong","blank"],"title":"TotalsRead"},"TrackRead":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"},"short_label":{"type":"string","title":"Short Label","description":"Used in the transition group labels."},"order":{"type":"integer","title":"Order"}},"type":"object","required":["code","label","short_label","order"],"title":"TrackRead"},"TrajectoryPointRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On"},"n":{"type":"integer","title":"N"},"roster_size":{"type":"integer","title":"Roster Size"},"cohort_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cohort Size"},"scope_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scope Mean","description":"Null below `min_cohort_stats` scoped students (`gate`; A6)."},"scope_accessible_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scope Accessible Mean","description":"Mean `potential_net`; null with `scope_mean`."},"benchmark_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Benchmark Mean","description":"Whole-cohort mean; null below the cohort gate."},"benchmark_is_self":{"type":"boolean","title":"Benchmark Is Self","description":"Institution scope and `roster_size == cohort_size`."},"scored_question_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scored Question Count"},"same_student":{"anyOf":[{"$ref":"#/components/schemas/SameStudentRead"},{"type":"null"}],"description":"From the transition's `all` group, only when reliable."},"same_student_status":{"type":"string","enum":["ok","first_exam","below_gate","no_match"],"title":"Same Student Status","description":"Why `same_student` is null: `first_exam` no transition leads into the point (the first series exam with a run); `no_match` the transition matched nobody (`n = 0`); `below_gate` `0 < n < min_peer_n`; `ok` the figure is served."},"gate":{"anyOf":[{"$ref":"#/components/schemas/GateRead"},{"type":"null"}],"description":"Why `scope_mean` and `scope_accessible_mean` are null; null when served."}},"type":"object","required":["exam_id","exam_name","n","roster_size","benchmark_is_self","same_student_status"],"title":"TrajectoryPointRead"},"TrajectoryRead":{"properties":{"series":{"$ref":"#/components/schemas/TrajectorySeriesRead"},"latest":{"$ref":"#/components/schemas/LatestRead"},"points":{"items":{"$ref":"#/components/schemas/TrajectoryPointRead"},"type":"array","title":"Points","description":"Dated in-series exams, chronological; `n = 0` points omitted."}},"type":"object","required":["series","latest"],"title":"TrajectoryRead"},"TrajectoryResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TrajectoryRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"TrajectoryResult"},"TrajectorySeriesRead":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key","description":"`term|exam_scope|grade_level`."},"label":{"type":"string","title":"Label","description":"`12. sınıf TYT`."},"total_exams":{"type":"integer","title":"Total Exams","description":"Dated in-series exams."}},"type":"object","required":["label","total_exams"],"title":"TrajectorySeriesRead"},"TransitionGroupRead":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"short_label":{"type":"string","title":"Short Label"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"grade_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade Label"},"field_of_study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study"},"field_of_study_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Of Study Label"},"n":{"type":"integer","title":"N"},"prev_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prev Mean"},"curr_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Curr Mean"},"prev_accessible_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prev Accessible Mean"},"curr_accessible_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Curr Accessible Mean"},"delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta","description":"`curr_mean - prev_mean`, unrounded."},"reliable":{"type":"boolean","title":"Reliable","description":"`n >= min_peer_n`."}},"type":"object","required":["key","label","short_label","n","reliable"],"title":"TransitionGroupRead"},"TransitionPositionsRead":{"properties":{"level":{"type":"string","title":"Level","description":"The children's level: `campus` or `section`."},"rows":{"items":{"$ref":"#/components/schemas/PositionRowRead"},"type":"array","title":"Rows","description":"Open operational rows by `curr_top_share` (the front first), then `prev_top_share`, name; then the gated operational rows by name; then the non-operational rows by name."}},"type":"object","required":["level"],"title":"TransitionPositionsRead","description":"D46 (the institution panel's request of 2026-11-20): where the same students stand in each exam, by rank share."},"TransitionRead":{"properties":{"prev":{"$ref":"#/components/schemas/TransitionSideRead"},"curr":{"$ref":"#/components/schemas/TransitionSideRead"},"matched":{"type":"integer","title":"Matched","description":"Pairs matched by identity: current side scoped, previous side unscoped."},"all":{"$ref":"#/components/schemas/TransitionGroupRead"},"groups":{"items":{"$ref":"#/components/schemas/TransitionGroupRead"},"type":"array","title":"Groups","description":"Every `grade|track` group, reliable or not (6.5 order)."},"stats":{"$ref":"#/components/schemas/DeltaStatsRead"},"positions":{"anyOf":[{"$ref":"#/components/schemas/TransitionPositionsRead"},{"type":"null"}],"description":"The matched students by the scope's children (campuses at the institution, sections in a campus) and their median rank share in each exam (D46); null at section scope."}},"type":"object","required":["prev","curr","matched","all","stats"],"title":"TransitionRead"},"TransitionSideRead":{"properties":{"exam_id":{"type":"string","format":"uuid","title":"Exam Id"},"exam_name":{"type":"string","title":"Exam Name"},"administered_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Administered On"},"benchmark_mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Benchmark Mean"},"roster_size":{"type":"integer","title":"Roster Size"},"scope_n":{"type":"integer","title":"Scope N","description":"Scoped students of that exam (coverage share = `matched / curr.scope_n`)."}},"type":"object","required":["exam_id","exam_name","roster_size","scope_n"],"title":"TransitionSideRead"},"TransitionsResult":{"properties":{"code":{"type":"integer","title":"Code"},"message":{"type":"string","title":"Message"},"items":{"items":{"$ref":"#/components/schemas/TransitionRead"},"type":"array","title":"Items"},"errors":{"items":{"$ref":"#/components/schemas/AppError"},"type":"array","title":"Errors"},"meta":{"$ref":"#/components/schemas/AnalyticsMeta"}},"type":"object","required":["code","message","meta"],"title":"TransitionsResult"},"TrapHitsRead":{"properties":{"count":{"type":"integer","title":"Count"},"question_ids":{"items":{"type":"string"},"type":"array","title":"Question Ids","description":"Booklet order."}},"type":"object","required":["count","question_ids"],"title":"TrapHitsRead"},"TrapWrongsItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"trap-wrongs","title":"Id"},"params":{"$ref":"#/components/schemas/TrapWrongsParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"TrapWrongsItemRead"},"TrapWrongsParamsRead":{"properties":{"count":{"type":"integer","title":"Count","description":"Other traps (trap hits minus expected misses)."},"example_question_id":{"type":"string","title":"Example Question Id","description":"First other trap in booklet order."},"common_wrong_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Common Wrong Share"},"common_wrong_choice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Common Wrong Choice"}},"type":"object","required":["count","example_question_id"],"title":"TrapWrongsParamsRead"},"TrendPointRead":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"completed":{"type":"integer","title":"Completed","default":0},"cancelled":{"type":"integer","title":"Cancelled","default":0},"ghosted":{"type":"integer","title":"Ghosted","default":0}},"additionalProperties":false,"type":"object","required":["day"],"title":"TrendPointRead","description":"One day of the daily stacked trend chart."},"TrendRead":{"properties":{"points":{"items":{"$ref":"#/components/schemas/TrendPointRead"},"type":"array","title":"Points"}},"additionalProperties":false,"type":"object","title":"TrendRead","description":"Daily series for the stacked trend panel."},"TutoringAttendanceAnalyticsRequest":{"properties":{"course_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Course Id","description":"Optional: filter by course_id."},"cursor_lesson_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cursor Lesson Start","description":"Cursor boundary lesson_start (tz-aware)."},"cursor_lesson_request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cursor Lesson Request Id","description":"Cursor boundary lesson_request_id."},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","description":"Page size (1..100)","default":20}},"additionalProperties":false,"type":"object","title":"TutoringAttendanceAnalyticsRequest","description":"Cursor/keyset pagination request for tutoring attendance analytics.\n\nOrdering: latest -> earliest by (lesson_start DESC, lesson_request_id DESC)\n\nCursor semantics:\n  - For the next page, pass the cursor from the previous response's meta.next_cursor."},"TutoringLessonAttendanceAnalyticsRead":{"properties":{"lesson_request_id":{"type":"string","format":"uuid","title":"Lesson Request Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"lesson_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"approval_statu":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},"attendance_status":{"$ref":"#/components/schemas/AttendanceStatus"}},"additionalProperties":false,"type":"object","required":["lesson_request_id","course_id","lesson_id","teacher_id","student_id","subbranch_id","lesson_start","lesson_end","approval_statu","attendance_status"],"title":"TutoringLessonAttendanceAnalyticsRead"},"TutoringLessonCardRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"course_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Course Name"},"banner_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banner Url"},"teacher_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Name"},"teacher_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teacher Avatar Url"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"subbranch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subbranch Name"},"branch":{"anyOf":[{"$ref":"#/components/schemas/Branch"},{"type":"null"}]},"level_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level Name"},"completed_lesson_count":{"type":"integer","title":"Completed Lesson Count","default":0},"last_lesson_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Lesson At"},"next_lesson_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Lesson At"},"next_lesson_request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Lesson Request Id"},"next_lesson_payment_statu":{"anyOf":[{"$ref":"#/components/schemas/LessonRequestPaymentStatu"},{"type":"null"}]},"has_pending_homework":{"type":"boolean","title":"Has Pending Homework","default":false},"pending_homework_deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pending Homework Deadline"}},"type":"object","required":["course_id","teacher_id"],"title":"TutoringLessonCardRead","description":"One tutoring-course card on the student dashboard, ordered by the course's\nmost recent lesson (``last_lesson_at`` DESC). Link ids: ``course_id`` +\n``teacher_id``."},"TutoringLessonParentReportRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"lesson_id":{"type":"string","format":"uuid","title":"Lesson Id"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"duration_minutes":{"type":"integer","minimum":0.0,"title":"Duration Minutes"},"topics":{"items":{"type":"string"},"type":"array","title":"Topics","description":"1-3 short bullets"},"next_lesson_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Lesson Start"},"previous_homework":{"anyOf":[{"$ref":"#/components/schemas/HomeworkSummaryRead"},{"type":"null"}]},"upcoming_homeworks":{"items":{"$ref":"#/components/schemas/HomeworkSummaryRead"},"type":"array","title":"Upcoming Homeworks"},"upcoming_homeworks_total":{"type":"integer","minimum":0.0,"title":"Upcoming Homeworks Total","default":0}},"additionalProperties":false,"type":"object","required":["course_id","lesson_id","lesson_start","lesson_end","duration_minutes"],"title":"TutoringLessonParentReportRead","description":"Parent WhatsApp report payload (data only)."},"TutoringLessonParentReportRequest":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"lesson_id":{"type":"string","format":"uuid","title":"Lesson Id"},"max_topics":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Max Topics","description":"How many short topic bullets to include (1..3).","default":10},"upcoming_limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Upcoming Limit","description":"How many upcoming homeworks to list.","default":10}},"additionalProperties":false,"type":"object","required":["course_id","lesson_id"],"title":"TutoringLessonParentReportRequest","description":"Payload to build the parent WhatsApp report for a completed lesson."},"TutoringLessonRequestApprovalStatus":{"type":"string","enum":["WAITING","REJECTED","APPROVED","CANCELLED_BY_STUDENT","CANCELLED_BY_TEACHER","RESCHEDULE","GHOSTED","ONGOING","COMPLETED"],"title":"TutoringLessonRequestApprovalStatus"},"TutoringLessonRequestAttendanceMapRead":{"properties":{"attendance_by_lesson_request_id":{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/CourseAttendanceRead"},{"type":"null"}]},"propertyNames":{"format":"uuid"},"type":"object","title":"Attendance By Lesson Request Id"}},"additionalProperties":false,"type":"object","title":"TutoringLessonRequestAttendanceMapRead"},"TutoringLessonRequestAttendanceMapRequest":{"properties":{"lesson_request_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"Lesson Request Ids","description":"Lesson request ids to map with student attendance rows."}},"additionalProperties":false,"type":"object","required":["lesson_request_ids"],"title":"TutoringLessonRequestAttendanceMapRequest","description":"Fetch student attendance rows for one or more tutoring lesson requests."},"TutoringLessonRequestByCourseRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"lesson_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Id"},"meeting_lesson":{"type":"boolean","title":"Meeting Lesson"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Details"},"price":{"type":"string","title":"Price"},"approval_statu":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},"approval_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Comment"},"payment_statu":{"anyOf":[{"$ref":"#/components/schemas/LessonRequestPaymentStatu"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"lesson_order":{"type":"integer","title":"Lesson Order","default":0}},"type":"object","required":["id","tenant_id","teacher_id","student_id","subbranch_id","course_id","meeting_lesson","lesson_start","lesson_end","price","approval_statu","created_at","updated_at"],"title":"TutoringLessonRequestByCourseRead"},"TutoringLessonRequestRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"teacher_id":{"type":"string","format":"uuid","title":"Teacher Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id"},"course_id":{"type":"string","format":"uuid","title":"Course Id"},"lesson_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lesson Id"},"meeting_lesson":{"type":"boolean","title":"Meeting Lesson"},"lesson_start":{"type":"string","format":"date-time","title":"Lesson Start"},"lesson_end":{"type":"string","format":"date-time","title":"Lesson End"},"details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Details"},"price":{"type":"string","title":"Price"},"approval_statu":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},"approval_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Comment"},"payment_statu":{"anyOf":[{"$ref":"#/components/schemas/LessonRequestPaymentStatu"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","tenant_id","teacher_id","student_id","subbranch_id","course_id","meeting_lesson","lesson_start","lesson_end","price","approval_statu","created_at","updated_at"],"title":"TutoringLessonRequestRead"},"TutoringLessonRequestRequest":{"properties":{"statuses":{"anyOf":[{"items":{"$ref":"#/components/schemas/TutoringLessonRequestApprovalStatus"},"type":"array"},{"type":"null"}],"title":"Statuses","description":"Filter by these statuses. If omitted, all statuses are returned."},"page":{"type":"integer","minimum":0.0,"title":"Page","default":0},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","default":20}},"type":"object","title":"TutoringLessonRequestRequest","description":"Filtering + paging for listing lesson requests.\n\n- statuses: optional. If omitted/empty -> service defaults to ALL statuses.\n- page: 0-based\n- page_size: max 100"},"TutoringMatchGroupRead":{"properties":{"MatchId":{"type":"string","format":"uuid","title":"Matchid"},"CreatedAt":{"type":"string","format":"date-time","title":"Createdat"},"SubbranchId":{"type":"string","format":"uuid","title":"Subbranchid"},"Subbranch":{"anyOf":[{"$ref":"#/components/schemas/SubbranchRead"},{"type":"null"}]},"PriceBucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricebucket"},"Teachers":{"items":{"$ref":"#/components/schemas/TutoringMatchGroupTeacherRead"},"type":"array","title":"Teachers"}},"type":"object","required":["MatchId","CreatedAt","SubbranchId","Teachers"],"title":"TutoringMatchGroupRead"},"TutoringMatchGroupTeacherRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Match_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Score"},"MatchedSubbranch":{"type":"string","format":"uuid","title":"Matchedsubbranch"},"MatchActionTaken":{"type":"boolean","title":"Matchactiontaken"},"Teacher":{"$ref":"#/components/schemas/TeacherOverview"}},"type":"object","required":["ID","MatchedSubbranch","MatchActionTaken","Teacher"],"title":"TutoringMatchGroupTeacherRead"},"TutoringMatchRead":{"properties":{"ID":{"type":"string","format":"uuid","title":"Id"},"Match_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Score"},"MatchedSubbranch":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Matchedsubbranch"},"Teacher":{"$ref":"#/components/schemas/TeacherOverview"}},"type":"object","required":["ID","Teacher"],"title":"TutoringMatchRead"},"TutoringSubbranchTopicItemRead":{"properties":{"subunit_id":{"type":"string","format":"uuid","title":"Subunit Id"},"subunit_name":{"type":"string","title":"Subunit Name"},"subunit_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subunit Code"}},"additionalProperties":false,"type":"object","required":["subunit_id","subunit_name"],"title":"TutoringSubbranchTopicItemRead","description":"Topic item for B2 list.\n\nSorting rule:\n  - subunit_id (ASC)"},"TutoringSubbranchTopicProgressCursor":{"properties":{"cursor_subunit_id":{"type":"string","format":"uuid","title":"Cursor Subunit Id"}},"additionalProperties":false,"type":"object","required":["cursor_subunit_id"],"title":"TutoringSubbranchTopicProgressCursor","description":"Keyset cursor for B2 topic list ordering by (Subunit.id ASC)."},"TutoringSubbranchTopicProgressPageMeta":{"properties":{"page_size":{"type":"integer","minimum":1.0,"title":"Page Size","default":50},"returned_count":{"type":"integer","minimum":0.0,"title":"Returned Count","default":0},"has_next":{"type":"boolean","title":"Has Next","default":false},"next_cursor":{"anyOf":[{"$ref":"#/components/schemas/TutoringSubbranchTopicProgressCursor"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"TutoringSubbranchTopicProgressPageMeta"},"TypeNode":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"type":"string","title":"Code"},"slug":{"type":"string","title":"Slug"},"name_tr":{"type":"string","title":"Name Tr"},"description_tr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Tr"},"question_count":{"type":"integer","title":"Question Count"},"meta":{"additionalProperties":true,"type":"object","title":"Meta","description":"Tooltip payload: signals_tr / traps / strategies / example_question_ids."}},"type":"object","required":["id","code","slug","name_tr","question_count"],"title":"TypeNode"},"TypeRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name_tr":{"type":"string","title":"Name Tr"}},"type":"object","required":["id","name_tr"],"title":"TypeRef"},"UnitInsert":{"properties":{"parent_subbranch_id":{"type":"string","format":"uuid","title":"Parent Subbranch Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"order_index":{"type":"integer","title":"Order Index","default":1},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["parent_subbranch_id","name","code"],"title":"UnitInsert"},"UnitReorder":{"properties":{"parent_unit_id":{"type":"string","format":"uuid","title":"Parent Unit Id"},"id_to_order":{"additionalProperties":{"type":"integer"},"propertyNames":{"format":"uuid"},"type":"object","title":"Id To Order"}},"type":"object","required":["parent_unit_id","id_to_order"],"title":"UnitReorder","description":"Reorder ACTIVE Subunits under a Unit."},"UnitTodosView":{"properties":{"unit_id":{"type":"string","format":"uuid","title":"Unit Id"},"unit_name":{"type":"string","title":"Unit Name"},"unit_code":{"type":"string","title":"Unit Code"},"unit_todos":{"items":{"$ref":"#/components/schemas/SchemeTodoRead"},"type":"array","title":"Unit Todos"},"subunits":{"items":{"$ref":"#/components/schemas/SubunitTodosView"},"type":"array","title":"Subunits"}},"type":"object","required":["unit_id","unit_name","unit_code","unit_todos","subunits"],"title":"UnitTodosView"},"UnitTree":{"properties":{"parent_subbranch_id":{"type":"string","format":"uuid","title":"Parent Subbranch Id"},"id":{"type":"string","format":"uuid","title":"Id"},"branch":{"$ref":"#/components/schemas/Branch"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"order_index":{"type":"integer","title":"Order Index"},"subunits":{"items":{"$ref":"#/components/schemas/SubunitTree"},"type":"array","title":"Subunits","default":[]}},"type":"object","required":["parent_subbranch_id","id","branch","name","code","is_active","order_index"],"title":"UnitTree"},"UnitUpdate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","required":["id"],"title":"UnitUpdate"},"UnitWithSubunits":{"properties":{"parent":{"$ref":"#/components/schemas/main_api__modules__curriculum__schemas__UnitRead"},"siblings":{"items":{"$ref":"#/components/schemas/SubunitRead"},"type":"array","title":"Siblings"}},"type":"object","required":["parent","siblings"],"title":"UnitWithSubunits"},"UnlinkRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"block_relink":{"type":"boolean","title":"Block Relink","default":true}},"additionalProperties":false,"type":"object","title":"UnlinkRequest"},"UnseenAnnouncementCountRead":{"properties":{"course_id":{"type":"string","format":"uuid","title":"Course Id"},"unseen_count":{"type":"integer","title":"Unseen Count"}},"type":"object","required":["course_id","unseen_count"],"title":"UnseenAnnouncementCountRead","description":"Helper DTO: how many announcements in a course are unseen by the current user."},"UnseenAnnouncementTotalRead":{"properties":{"unseen_count":{"type":"integer","title":"Unseen Count"}},"type":"object","required":["unseen_count"],"title":"UnseenAnnouncementTotalRead"},"UnseenNotificationTotalRead":{"properties":{"unseen_count":{"type":"integer","title":"Unseen Count"}},"type":"object","required":["unseen_count"],"title":"UnseenNotificationTotalRead"},"UpdateBundleRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"min_students":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Min Students"},"max_students":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Max Students"},"price_try":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string"},{"type":"null"}],"title":"Price Try"},"scope_items":{"anyOf":[{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":6},{"type":"null"}],"title":"Scope Items"},"subbranch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subbranch Id"},"unit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Unit Id"}},"type":"object","title":"UpdateBundleRequest","description":"Partial patch. Only fields present in the request body are applied."},"UpdateLessonRequestDocumentRequest":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"document_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"document_type":{"anyOf":[{"$ref":"#/components/schemas/CourseDocumentType"},{"type":"null"}],"description":"DEPRECATED: rejected with DOCUMENT_TYPE_IMMUTABLE. The type follows the library document_kind."},"visible_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Visible From"},"deadline":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline"}},"additionalProperties":false,"type":"object","required":["id"],"title":"UpdateLessonRequestDocumentRequest","description":"Partial update payload for ONE LessonRequestDocument attachment row.\n\nSelector:\n  - id is REQUIRED and is the LessonRequestDocument row PK.\n  - Updates apply ONLY to that single attachment in that single\n    lesson request.\n\nAt least one semantic field must be provided. ``document_type`` is NOT one\nof them: the type follows the library document's immutable\n``document_kind``, so sending it is rejected outright rather than silently\nignored (a payload asking to change the type should not report success)."},"UpdateSubunitLabelsRequest":{"properties":{"subunit_id":{"type":"string","format":"uuid","title":"Subunit Id"},"hardness":{"anyOf":[{"$ref":"#/components/schemas/SubunitHardness"},{"type":"null"}]},"priority":{"anyOf":[{"$ref":"#/components/schemas/SubunitPriority"},{"type":"null"}]},"background_level":{"anyOf":[{"$ref":"#/components/schemas/SubunitBackgroundLevel"},{"type":"null"}]},"detail":{"anyOf":[{"$ref":"#/components/schemas/SubunitDetail"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["subunit_id"],"title":"UpdateSubunitLabelsRequest"},"UpdateTestRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"target_count":{"anyOf":[{"type":"integer","maximum":200.0,"minimum":1.0},{"type":"null"}],"title":"Target Count"}},"type":"object","title":"UpdateTestRequest"},"UpdateVideoRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"}},"type":"object","title":"UpdateVideoRequest","description":"Editable metadata after creation (kind/curriculum are immutable)."},"UserAuthenticate":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"phone_number":{"type":"string","title":"Phone Number"},"user_type":{"$ref":"#/components/schemas/UserType","default":"STUDENT"},"login_token":{"type":"string","title":"Login Token"},"device_token":{"type":"string","title":"Device Token"},"user_agent":{"type":"string","title":"User Agent"},"IP_address":{"type":"string","title":"Ip Address"}},"type":"object","required":["phone_number","login_token","device_token","user_agent","IP_address"],"title":"UserAuthenticate"},"UserBanCreateRequest":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"identifier":{"type":"string","title":"Identifier"},"user_type":{"$ref":"#/components/schemas/UserType"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["identifier","user_type"],"title":"UserBanCreateRequest"},"UserBanRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"email":{"type":"string","title":"Email"},"phone_number":{"type":"string","title":"Phone Number"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"banned_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Banned By"},"banned_at":{"type":"string","format":"date-time","title":"Banned At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"revoked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Revoked By"}},"type":"object","required":["user_id","email","phone_number","banned_at"],"title":"UserBanRead"},"UserBanRevokeRequest":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"identifier":{"type":"string","title":"Identifier"},"user_type":{"$ref":"#/components/schemas/UserType"}},"type":"object","required":["identifier","user_type"],"title":"UserBanRevokeRequest"},"UserBasicInfoResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"user_type":{"$ref":"#/components/schemas/UserType"},"password_change_required":{"type":"boolean","title":"Password Change Required","default":false},"has_password":{"type":"boolean","title":"Has Password","default":false}},"type":"object","required":["user_id","phone_number","email","user_type"],"title":"UserBasicInfoResponse"},"UserCreditsRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"credits_amount":{"type":"integer","title":"Credits Amount"}},"type":"object","required":["user_id","credits_amount"],"title":"UserCreditsRead"},"UserDirectoryRow":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"phone_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Masked"},"email_masked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Masked"},"user_type":{"$ref":"#/components/schemas/UserType"},"roles":{"items":{"$ref":"#/components/schemas/RoleRead"},"type":"array","title":"Roles","default":[]},"is_self":{"type":"boolean","title":"Is Self","default":false}},"type":"object","required":["user_id","user_type"],"title":"UserDirectoryRow","description":"One row of the admin user directory. PII is masked."},"UserLogin":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"phone_number":{"type":"string","title":"Phone Number"},"user_type":{"$ref":"#/components/schemas/UserType","default":"STUDENT"},"password":{"type":"string","minLength":6,"title":"Password"}},"type":"object","required":["phone_number","password"],"title":"UserLogin"},"UserLogoutRequest":{"properties":{"old_access_token":{"type":"string","title":"Old Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"device_token":{"type":"string","title":"Device Token"}},"type":"object","required":["old_access_token","refresh_token","device_token"],"title":"UserLogoutRequest"},"UserRead":{"properties":{"user_id":{"type":"string","format":"uuid4","title":"User Id"},"roles":{"items":{"$ref":"#/components/schemas/RoleRead"},"type":"array","title":"Roles","default":[]}},"type":"object","required":["user_id"],"title":"UserRead"},"UserRefreshTokenRequest":{"properties":{"old_access_token":{"type":"string","title":"Old Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"device_token":{"type":"string","title":"Device Token"},"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"user_agent":{"type":"string","title":"User Agent"},"IP_address":{"type":"string","title":"Ip Address"}},"type":"object","required":["old_access_token","refresh_token","device_token","user_agent","IP_address"],"title":"UserRefreshTokenRequest"},"UserRegister":{"properties":{"tenant_id":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Tenant Id"},"phone_number":{"type":"string","title":"Phone Number"},"user_type":{"$ref":"#/components/schemas/UserType","default":"STUDENT"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":6,"title":"Password"},"email_notifications_consent":{"type":"boolean","title":"Email Notifications Consent","default":false},"sms_notifications_consent":{"type":"boolean","title":"Sms Notifications Consent","default":false}},"type":"object","required":["phone_number","email","password"],"title":"UserRegister"},"UserType":{"type":"string","enum":["STUDENT","TEACHER","MODERATOR","PARENT"],"title":"UserType"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValueGateRead":{"properties":{"name":{"type":"string","title":"Name","description":"Gate name: ``cohort_gate`` (percentiles need 50 students), ``ecdf`` (no distribution grid), ``min_peer_n`` (rolling peer), ``recoverable_min_attempted`` (recoverable net)."},"required":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Required","description":"The threshold the gate requires."},"actual":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Actual","description":"What was measured."},"reason":{"type":"string","title":"Reason","description":"``insufficient_n``, ``ecdf_unavailable``, ``no_tercile`` or ``insufficient_attempted``.","default":""}},"type":"object","required":["name"],"title":"ValueGateRead","description":"Why a ``Gated<T>`` value is ``null`` (13.0): which gate, what it requires, what was measured, why."},"VideoInitResponse":{"properties":{"video_id":{"type":"string","format":"uuid","title":"Video Id"},"cf_stream_uid":{"type":"string","title":"Cf Stream Uid"},"upload_url":{"type":"string","title":"Upload Url"}},"type":"object","required":["video_id","cf_stream_uid","upload_url"],"title":"VideoInitResponse","description":"Returned by init: the DB id + the Cloudflare direct upload target."},"VideoProgressBeatRequest":{"properties":{"position_seconds":{"type":"integer","maximum":86400.0,"minimum":0.0,"title":"Position Seconds","description":"Player position in seconds (clamped to the video's duration)"}},"additionalProperties":false,"type":"object","required":["position_seconds"],"title":"VideoProgressBeatRequest","description":"One watch heartbeat for a video component.\n\nOnly the player's current position is sent; watched TIME is accrued\nserver-side from the gap between beats, so a client cannot claim runtime it\ndid not spend."},"VideoWatchStateRead":{"properties":{"component_id":{"type":"string","format":"uuid","title":"Component Id"},"total_watched_seconds":{"type":"integer","title":"Total Watched Seconds","default":0},"last_position_seconds":{"type":"integer","title":"Last Position Seconds","default":0},"video_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Duration Seconds"},"completed":{"type":"boolean","title":"Completed","default":false},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["component_id"],"title":"VideoWatchStateRead","description":"This student's watch state for one video component, after a heartbeat."},"ViewPermissionsRequest":{"properties":{"roleIDs":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Roleids","description":"Non-empty list of role UUIDs."}},"type":"object","required":["roleIDs"],"title":"ViewPermissionsRequest"},"ViewRolesByPermissionResponse":{"properties":{"permission_id":{"type":"string","format":"uuid","title":"Permission Id"},"roles":{"items":{"$ref":"#/components/schemas/RoleRead"},"type":"array","title":"Roles"}},"type":"object","required":["permission_id","roles"],"title":"ViewRolesByPermissionResponse"},"ViewRolesRequest":{"properties":{"userID":{"type":"string","format":"uuid4","title":"Userid"}},"type":"object","required":["userID"],"title":"ViewRolesRequest"},"ViewUsersByRoleRequest":{"properties":{"roleID":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Roleid","description":"Optional role UUID to filter by. If omitted/empty, returns all users (paginated)."},"page":{"type":"integer","minimum":1.0,"title":"Page","description":"1-based page index. 100 users per page.","default":1}},"type":"object","title":"ViewUsersByRoleRequest"},"ViewerQueuesRead":{"properties":{"expected_misses":{"items":{"type":"string"},"type":"array","title":"Expected Misses","description":"Peer rate desc, booklet ties."},"hard_correct":{"items":{"type":"string"},"type":"array","title":"Hard Correct","description":"Peer rate asc, booklet ties."},"trap_hits":{"items":{"type":"string"},"type":"array","title":"Trap Hits","description":"All trap hits, booklet order."},"wrong":{"items":{"type":"string"},"type":"array","title":"Wrong"},"blank":{"items":{"type":"string"},"type":"array","title":"Blank"},"all":{"items":{"type":"string"},"type":"array","title":"All"}},"type":"object","required":["expected_misses","hard_correct","trap_hits","wrong","blank","all"],"title":"ViewerQueuesRead","description":"6.12: ordered question ids per viewer group."},"VocabulariesRead":{"properties":{"cognitive_level":{"items":{"$ref":"#/components/schemas/VocabularyEntryRead"},"type":"array","title":"Cognitive Level"},"text_load":{"items":{"$ref":"#/components/schemas/VocabularyEntryRead"},"type":"array","title":"Text Load"},"calc_load":{"items":{"$ref":"#/components/schemas/VocabularyEntryRead"},"type":"array","title":"Calc Load"},"visual_role":{"items":{"$ref":"#/components/schemas/VocabularyEntryRead"},"type":"array","title":"Visual Role"},"opportunity_kind":{"items":{"$ref":"#/components/schemas/VocabularyEntryRead"},"type":"array","title":"Opportunity Kind"},"viewer_group":{"items":{"$ref":"#/components/schemas/VocabularyEntryRead"},"type":"array","title":"Viewer Group"},"strategy_family":{"items":{"$ref":"#/components/schemas/VocabularyEntryRead"},"type":"array","title":"Strategy Family"}},"type":"object","title":"VocabulariesRead","description":"Enum codes and labels of the per-question label fields, and the shared codes of opportunity kinds, question\nviewer groups and strategy families."},"VocabularyEntryRead":{"properties":{"code":{"type":"string","title":"Code"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["code"],"title":"VocabularyEntryRead"},"WeakestBandChipRead":{"properties":{"code":{"type":"string","const":"weakest_band","title":"Code"},"params":{"$ref":"#/components/schemas/WeakestBandParamsRead"}},"type":"object","required":["code","params"],"title":"WeakestBandChipRead"},"WeakestBandParamsRead":{"properties":{"exam_id":{"type":"string","title":"Exam Id"},"band":{"type":"string","title":"Band","description":"``very_easy`` or ``easy``."},"gap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap"}},"type":"object","required":["exam_id","band"],"title":"WeakestBandParamsRead"},"WeakestBandRowRead":{"properties":{"kind":{"type":"string","const":"weakest_band","title":"Kind"},"exam_id":{"type":"string","title":"Exam Id"},"band":{"type":"string","title":"Band"},"accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy"},"peer_expected":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Peer Expected"},"wrong":{"type":"integer","title":"Wrong"}},"type":"object","required":["kind","exam_id","band","wrong"],"title":"WeakestBandRowRead"},"WeeklyBusyMapDTO":{"properties":{"busy":{"additionalProperties":{"items":{"$ref":"#/components/schemas/IntervalDTO"},"type":"array"},"type":"object","title":"Busy"}},"type":"object","title":"WeeklyBusyMapDTO","description":"Pydantic representation of WeeklyBusyMap:\n  busy[1..7] -> list[IntervalDTO], sorted by start_time."},"WeeklyBusyMapRead":{"properties":{"start_weekday":{"type":"integer","title":"Start Weekday","description":"Rotation anchor (1..7)","default":1},"days":{"additionalProperties":{"items":{"$ref":"#/components/schemas/BlockRead"},"type":"array"},"type":"object","title":"Days"}},"type":"object","title":"WeeklyBusyMapRead","description":"OPTION A (dict-based):\n\n- days is a dict keyed by weekday (1..7)\n- insertion order is preserved in JSON output\n- we insert keys in rotated order (start_weekday anchor)\n\nExample JSON:\n  {\n    \"start_weekday\": 3,\n    \"days\": {\n      \"3\": [...],\n      \"4\": [...],\n      ...\n      \"2\": [...]\n    }\n  }"},"WindowRead":{"properties":{"label":{"type":"string","enum":["1d","7d","30d","90d","365d"],"title":"Label"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"days":{"type":"integer","minimum":1.0,"title":"Days"}},"additionalProperties":false,"type":"object","required":["label","start","end","days"],"title":"WindowRead","description":"Resolved time window (inclusive on both ends, Europe/Istanbul)."},"WorstSubjectItemRead":{"properties":{"weight":{"type":"number","title":"Weight"},"link":{"$ref":"#/components/schemas/ReportCardLinkRead"},"id":{"type":"string","const":"worst-subject","title":"Id"},"params":{"$ref":"#/components/schemas/WorstSubjectParamsRead"}},"type":"object","required":["weight","link","id","params"],"title":"WorstSubjectItemRead"},"WorstSubjectParamsRead":{"properties":{"subject":{"type":"string","title":"Subject"},"net":{"type":"number","title":"Net"},"cohort_mean":{"type":"number","title":"Cohort Mean"},"abs_delta":{"type":"number","title":"Abs Delta"},"blank":{"type":"integer","title":"Blank"},"wrong":{"type":"integer","title":"Wrong"}},"type":"object","required":["subject","net","cohort_mean","abs_delta","blank","wrong"],"title":"WorstSubjectParamsRead"},"WrongPeerRateRowRead":{"properties":{"kind":{"type":"string","const":"wrong_peer_rate","title":"Kind"},"exam_id":{"type":"string","title":"Exam Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","description":"Mean tercile peer rate of the caller's wrongs (all scored questions)."},"n":{"type":"integer","title":"N"}},"type":"object","required":["kind","exam_id","n"],"title":"WrongPeerRateRowRead"},"YourRateRowRead":{"properties":{"kind":{"type":"string","const":"your_rate","title":"Kind"},"exam_id":{"type":"string","title":"Exam Id"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"numerator":{"type":"integer","title":"Numerator","description":"Trap hits (labeled set)."},"denominator":{"type":"integer","title":"Denominator","description":"Labeled wrongs."}},"type":"object","required":["kind","exam_id","numerator","denominator"],"title":"YourRateRowRead"},"ZoomJoinToken":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"ZoomJoinToken","description":"Minimal wrapper for a Zoom Video SDK token."},"ZoomJoinTokenRead":{"properties":{"token":{"type":"string","title":"Token"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"planned_live_lecture_id":{"type":"string","format":"uuid","title":"Planned Live Lecture Id"},"role_type":{"type":"integer","title":"Role Type"}},"type":"object","required":["token","session_id","planned_live_lecture_id","role_type"],"title":"ZoomJoinTokenRead"},"main_api__modules__curriculum__schemas__UnitRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subbranch_id":{"type":"string","format":"uuid","title":"Subbranch Id","description":"FK to Subbranch (source model attribute)."},"branch":{"$ref":"#/components/schemas/Branch"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"order_index":{"type":"integer","title":"Order Index"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","subbranch_id","branch","name","code","order_index","is_active"],"title":"UnitRead"},"main_api__modules__intelligence__schemas__reference__UnitRead":{"properties":{"id":{"type":"string","title":"Id","description":"`<subject>/<slug of the unit name>`; every topic is a unit too."},"subject":{"type":"string","title":"Subject"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","subject","name"],"title":"UnitRead"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}},"tags":[{"name":"intelligence-institution","description":"The caller's institutions and their staff memberships (admin, campus manager, teacher)."},{"name":"intelligence-roster","description":"The term's student list: uploads, rows, the students' accounts."},{"name":"intelligence-exams","description":"Denemeler: creation (metadata only; the documents carry the rest, intelligence-intake), the list and the analysis job's state."},{"name":"intelligence-results","description":"The results table of an exam and a student's history: the upload's own numbers."},{"name":"intelligence-analysis","description":"Intelligence's analysis payloads, question labels and import reports, served verbatim."},{"name":"intelligence-labeling","description":"The shared taxonomy and skills vocabulary the analysis payloads reference by id."},{"name":"intelligence-groups","description":"Müdahale Grupları (intervention groups) stored in Intelligence with our roster identities."},{"name":"intelligence-student","description":"A provisioned student's own panel: identity, exams sat, own analysis."},{"name":"intelligence-admin","description":"Platform catalogue of institutions (INTELLIGENCE_INSTITUTION_MANAGE)."},{"name":"intelligence-entities","description":"Campus and section entities (display names, slugs, the operational flag) and the analytics materialisation of an exam (task 10.5)."},{"name":"intelligence-analytics","description":"Institution panel analytics (task 10.5): reference data, per-exam student records and scope detail, overview and attention, trajectory and transitions, the students directory, the student page, series / hierarchy / organisational context, net distribution and question images, all served from the materialised analysis runs (ETag / If-None-Match)."},{"name":"intelligence-suggestions","description":"Müdahale grubu önerileri (P7): topic and skill groups suggested from the students' pooled evidence across the series, their members and manual-add candidates (task 10.5)."},{"name":"intelligence-student-analytics","description":"The student panel's analytics (S0-S8): the reference dictionaries, Denemeler overview and exam dashboard, Sınav Stratejisi, Konu Atlası, Ayna, the exam-level question data and question images. The caller's own data only; ETag / If-None-Match on every GET."},{"name":"intelligence-served-reads","description":"Intelligence's student machine, forwarded live: the cumulative profile (8.7) and the expectation (8.9) of the calling student, a student's profile and an exam's person fit for staff. Intelligence's bodies as served (gated nulls, advice blocks and numbers untouched), our roster identity beside them, Intelligence's student id dropped."},{"name":"intelligence-intake","description":"Document intake: an exam's karne, booklet and key table, their conversion into a delivery, and the delete of an exam that never ran (phase 2)."},{"name":"intelligence-ops","description":"The operator's view of Intelligence across every school, the approval of a large labeling job, and why an exam's labels have not come."},{"name":"intelligence-sites","description":"Institution sites: an institution's look on the panels (name, logo, banner, sign-in page) and the hosts it is served on; the public read a panel draws its sign-in page from, and the platform administrator's writes."},{"name":"intelligence-directory","description":"The landing page's institution requests: the province list and the request form, /talep and its demo request (no token), and the platform administrator's list of the requests."},{"name":"Karne","description":"A student's karne of one sitting as a PDF, from the student panel's own bodies: for the student (or a parent), and for the staff who follow them; and every karne of one exam in one PDF, made in the background (bulk export)."}]}