{"openapi":"3.1.0","info":{"title":"Wedu Admin API","version":"1.0.0","description":"Dedicated Effect-powered admin API for the Wedu speaking practice pilot."},"paths":{"/health":{"get":{"tags":["Health"],"operationId":"check","parameters":[],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["ok"],"properties":{"ok":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/auth/admin/login":{"post":{"tags":["Admin Auth"],"operationId":"adminAuth.login","parameters":[],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["token","user"],"properties":{"token":{"type":"string"},"user":{"type":"object","required":["displayName","id","loginId","role","status"],"properties":{"displayName":{"type":"string"},"id":{"$ref":"#/components/schemas/UUID"},"loginId":{"type":"string","description":"a string matching the pattern ^[a-zA-Z0-9_-]+$","title":"maxLength(50)","minLength":3,"maxLength":50,"pattern":"^[a-zA-Z0-9_-]+$"},"role":{"type":"string","enum":["admin","student"]},"status":{"type":"string","enum":["active","disabled"]}},"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"InvalidCredentialsError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidCredentialsError"}}}},"403":{"description":"AccountDisabledError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDisabledError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["loginId","password"],"properties":{"loginId":{"type":"string","description":"a string matching the pattern ^[a-zA-Z0-9_-]+$","title":"maxLength(50)","minLength":3,"maxLength":50,"pattern":"^[a-zA-Z0-9_-]+$"},"password":{"type":"string"}},"additionalProperties":false}}},"required":true}}},"/auth/admin/logout":{"post":{"tags":["Admin Auth"],"operationId":"adminAuth.logout","parameters":[],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/auth/admin/session":{"get":{"tags":["Admin Auth"],"operationId":"adminAuth.session","parameters":[],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["user"],"properties":{"user":{"type":"object","required":["displayName","id","loginId","role","status"],"properties":{"displayName":{"type":"string"},"id":{"$ref":"#/components/schemas/UUID"},"loginId":{"type":"string","description":"a string matching the pattern ^[a-zA-Z0-9_-]+$","title":"maxLength(50)","minLength":3,"maxLength":50,"pattern":"^[a-zA-Z0-9_-]+$"},"role":{"type":"string","enum":["admin","student"]},"status":{"type":"string","enum":["active","disabled"]}},"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/classes":{"get":{"tags":["Admin Classes"],"operationId":"adminClasses.list","parameters":[],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","meta"],"properties":{"items":{"type":"array","items":{"type":"object","required":["id","name","status"],"properties":{"id":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"status":{"type":"string","enum":["active","archived"]}},"additionalProperties":false}},"meta":{"type":"object","required":["total"],"properties":{"total":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0}},"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}},"post":{"tags":["Admin Classes"],"operationId":"adminClasses.create","parameters":[],"security":[{"sessionBearer":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","name","status"],"properties":{"id":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"status":{"type":"string","enum":["active","archived"]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"a string that will be trimmed"}},"additionalProperties":false}}},"required":true}}},"/admin/classes/{id}/rename":{"post":{"tags":["Admin Classes"],"operationId":"adminClasses.rename","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ClassNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"a string that will be trimmed"}},"additionalProperties":false}}},"required":true}}},"/admin/classes/{id}/archive":{"post":{"tags":["Admin Classes"],"operationId":"adminClasses.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ClassNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/classes/{id}/students":{"post":{"tags":["Admin Classes"],"operationId":"adminClasses.assignStudent","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ClassNotFoundError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClassNotFoundError"},{"$ref":"#/components/schemas/StudentNotFoundError"}]}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["studentId"],"properties":{"studentId":{"$ref":"#/components/schemas/UUID"}},"additionalProperties":false}}},"required":true}}},"/admin/classes/{id}/students/{studentId}":{"delete":{"tags":["Admin Classes"],"operationId":"adminClasses.removeStudent","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true},{"name":"studentId","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ClassNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/students":{"get":{"tags":["Admin Students"],"operationId":"adminStudents.list","parameters":[],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","meta"],"properties":{"items":{"type":"array","items":{"type":"object","required":["classId","className","displayName","id","loginId","role","status"],"properties":{"classId":{"anyOf":[{"$ref":"#/components/schemas/UUID"},{"type":"null"}]},"className":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"type":"string"},"id":{"$ref":"#/components/schemas/UUID"},"loginId":{"type":"string","description":"a string matching the pattern ^[a-zA-Z0-9_-]+$","title":"maxLength(50)","minLength":3,"maxLength":50,"pattern":"^[a-zA-Z0-9_-]+$"},"role":{"type":"string","enum":["student"]},"status":{"type":"string","enum":["active","disabled"]}},"additionalProperties":false}},"meta":{"type":"object","required":["total"],"properties":{"total":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0}},"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}},"post":{"tags":["Admin Students"],"operationId":"adminStudents.create","parameters":[],"security":[{"sessionBearer":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["classId","className","displayName","id","loginId","role","status"],"properties":{"classId":{"anyOf":[{"$ref":"#/components/schemas/UUID"},{"type":"null"}]},"className":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"type":"string"},"id":{"$ref":"#/components/schemas/UUID"},"loginId":{"type":"string","description":"a string matching the pattern ^[a-zA-Z0-9_-]+$","title":"maxLength(50)","minLength":3,"maxLength":50,"pattern":"^[a-zA-Z0-9_-]+$"},"role":{"type":"string","enum":["student"]},"status":{"type":"string","enum":["active","disabled"]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ClassNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassNotFoundError"}}}},"409":{"description":"DuplicateLoginIdError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateLoginIdError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InternalError"},{"$ref":"#/components/schemas/StudentCreationFailedError"}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["classId","displayName","loginId","password"],"properties":{"classId":{"$ref":"#/components/schemas/UUID"},"displayName":{"type":"string","description":"a string that will be trimmed"},"loginId":{"type":"string","description":"a string matching the pattern ^[a-zA-Z0-9_-]+$","title":"maxLength(50)","minLength":3,"maxLength":50,"pattern":"^[a-zA-Z0-9_-]+$"},"password":{"type":"string","description":"a string at most 128 character(s) long","title":"maxLength(128)","minLength":8,"maxLength":128}},"additionalProperties":false}}},"required":true}}},"/admin/students/{id}":{"get":{"tags":["Admin Students"],"operationId":"adminStudents.getById","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["classId","className","displayName","id","loginId","role","status"],"properties":{"classId":{"anyOf":[{"$ref":"#/components/schemas/UUID"},{"type":"null"}]},"className":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"type":"string"},"id":{"$ref":"#/components/schemas/UUID"},"loginId":{"type":"string","description":"a string matching the pattern ^[a-zA-Z0-9_-]+$","title":"maxLength(50)","minLength":3,"maxLength":50,"pattern":"^[a-zA-Z0-9_-]+$"},"role":{"type":"string","enum":["student"]},"status":{"type":"string","enum":["active","disabled"]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"StudentNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/students/{id}/reset-password":{"post":{"tags":["Admin Students"],"operationId":"adminStudents.resetPassword","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"StudentNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["password"],"properties":{"password":{"type":"string","description":"a string at most 128 character(s) long","title":"maxLength(128)","minLength":8,"maxLength":128}},"additionalProperties":false}}},"required":true}}},"/admin/students/{id}/disable":{"post":{"tags":["Admin Students"],"operationId":"adminStudents.disable","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"StudentNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/students/{id}/enable":{"post":{"tags":["Admin Students"],"operationId":"adminStudents.enable","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"StudentNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/exercises":{"get":{"tags":["Admin Exercises"],"operationId":"adminExercises.list","parameters":[],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","meta"],"properties":{"items":{"type":"array","items":{"type":"object","required":["assignmentCount","id","instructions","itemCount","locale","status","title"],"properties":{"assignmentCount":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0},"id":{"$ref":"#/components/schemas/UUID"},"instructions":{"type":"string"},"itemCount":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0},"locale":{"type":"string","description":"a string that will be trimmed"},"status":{"type":"string","enum":["draft","published","archived"]},"title":{"type":"string"}},"additionalProperties":false}},"meta":{"type":"object","required":["total"],"properties":{"total":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0}},"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}},"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.create","parameters":[],"security":[{"sessionBearer":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["assignmentCount","id","instructions","itemCount","locale","status","title"],"properties":{"assignmentCount":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0},"id":{"$ref":"#/components/schemas/UUID"},"instructions":{"type":"string"},"itemCount":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0},"locale":{"type":"string","description":"a string that will be trimmed"},"status":{"type":"string","enum":["draft","published","archived"]},"title":{"type":"string"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["instructions","locale","title"],"properties":{"instructions":{"type":"string","description":"a string that will be trimmed"},"locale":{"type":"string","description":"a string that will be trimmed"},"title":{"type":"string","description":"a string that will be trimmed"}},"additionalProperties":false}}},"required":true}}},"/admin/exercises/{id}":{"get":{"tags":["Admin Exercises"],"operationId":"adminExercises.detail","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["assignedClasses","assignmentCount","id","instructions","itemCount","items","locale","status","title"],"properties":{"assignedClasses":{"type":"array","items":{"type":"object","required":["id","name","status"],"properties":{"id":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"status":{"type":"string","enum":["active","archived"]}},"additionalProperties":false}},"assignmentCount":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0},"id":{"$ref":"#/components/schemas/UUID"},"instructions":{"type":"string"},"itemCount":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0},"items":{"type":"array","items":{"type":"object","required":["exerciseId","id","notes","promptText","promptType","sortOrder","targetLocale"],"properties":{"exerciseId":{"$ref":"#/components/schemas/UUID"},"id":{"$ref":"#/components/schemas/UUID"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"promptText":{"type":"string"},"promptType":{"type":"string","enum":["sentence","phrase"]},"sortOrder":{"$ref":"#/components/schemas/Int","description":"a number greater than or equal to 1","title":"greaterThanOrEqualTo(1)","minimum":1},"targetLocale":{"type":"string","description":"a string that will be trimmed"}},"additionalProperties":false}},"locale":{"type":"string","description":"a string that will be trimmed"},"status":{"type":"string","enum":["draft","published","archived"]},"title":{"type":"string"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/exercises/{id}/update":{"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.update","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["assignedClasses","assignmentCount","id","instructions","itemCount","items","locale","status","title"],"properties":{"assignedClasses":{"type":"array","items":{"type":"object","required":["id","name","status"],"properties":{"id":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"status":{"type":"string","enum":["active","archived"]}},"additionalProperties":false}},"assignmentCount":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0},"id":{"$ref":"#/components/schemas/UUID"},"instructions":{"type":"string"},"itemCount":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0},"items":{"type":"array","items":{"type":"object","required":["exerciseId","id","notes","promptText","promptType","sortOrder","targetLocale"],"properties":{"exerciseId":{"$ref":"#/components/schemas/UUID"},"id":{"$ref":"#/components/schemas/UUID"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"promptText":{"type":"string"},"promptType":{"type":"string","enum":["sentence","phrase"]},"sortOrder":{"$ref":"#/components/schemas/Int","description":"a number greater than or equal to 1","title":"greaterThanOrEqualTo(1)","minimum":1},"targetLocale":{"type":"string","description":"a string that will be trimmed"}},"additionalProperties":false}},"locale":{"type":"string","description":"a string that will be trimmed"},"status":{"type":"string","enum":["draft","published","archived"]},"title":{"type":"string"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["instructions","locale","title"],"properties":{"instructions":{"type":"string","description":"a string that will be trimmed"},"locale":{"type":"string","description":"a string that will be trimmed"},"title":{"type":"string","description":"a string that will be trimmed"}},"additionalProperties":false}}},"required":true}}},"/admin/exercises/{id}/publish":{"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.publish","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"},{"$ref":"#/components/schemas/ExerciseHasNoItemsError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/exercises/{id}/unpublish":{"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.unpublish","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/exercises/{id}/archive":{"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.archive","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/exercises/{id}/items":{"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.createItem","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["exerciseId","id","notes","promptText","promptType","sortOrder","targetLocale"],"properties":{"exerciseId":{"$ref":"#/components/schemas/UUID"},"id":{"$ref":"#/components/schemas/UUID"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"promptText":{"type":"string"},"promptType":{"type":"string","enum":["sentence","phrase"]},"sortOrder":{"$ref":"#/components/schemas/Int","description":"a number greater than or equal to 1","title":"greaterThanOrEqualTo(1)","minimum":1},"targetLocale":{"type":"string","description":"a string that will be trimmed"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["promptText","promptType","targetLocale"],"properties":{"notes":{"anyOf":[{"type":"string","description":"a string that will be trimmed"},{"type":"null"}]},"promptText":{"type":"string","description":"a string that will be trimmed"},"promptType":{"type":"string","enum":["sentence","phrase"]},"targetLocale":{"type":"string","description":"a string that will be trimmed"}},"additionalProperties":false}}},"required":true}}},"/admin/exercises/{id}/items/{itemId}/update":{"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.updateItem","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true},{"name":"itemId","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"},{"$ref":"#/components/schemas/ExerciseItemMismatchError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ExerciseNotFoundError"},{"$ref":"#/components/schemas/ExerciseItemNotFoundError"}]}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["promptText","promptType","targetLocale"],"properties":{"notes":{"anyOf":[{"type":"string","description":"a string that will be trimmed"},{"type":"null"}]},"promptText":{"type":"string","description":"a string that will be trimmed"},"promptType":{"type":"string","enum":["sentence","phrase"]},"targetLocale":{"type":"string","description":"a string that will be trimmed"}},"additionalProperties":false}}},"required":true}}},"/admin/exercises/{id}/items/{itemId}/delete":{"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.deleteItem","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true},{"name":"itemId","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"},{"$ref":"#/components/schemas/ExerciseItemMismatchError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ExerciseNotFoundError"},{"$ref":"#/components/schemas/ExerciseItemNotFoundError"}]}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/exercises/{id}/items/reorder":{"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.reorderItems","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"},{"$ref":"#/components/schemas/ExerciseItemsIncompleteError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["itemIds"],"properties":{"itemIds":{"type":"array","items":{"$ref":"#/components/schemas/UUID"},"description":"an array of at least 1 item(s)","title":"minItems(1)","minItems":1}},"additionalProperties":false}}},"required":true}}},"/admin/exercises/{id}/assignments":{"post":{"tags":["Admin Exercises"],"operationId":"adminExercises.assignToClass","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"},{"$ref":"#/components/schemas/ExerciseNotPublishedError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ExerciseNotFoundError"},{"$ref":"#/components/schemas/ClassNotFoundError"}]}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["classId"],"properties":{"classId":{"$ref":"#/components/schemas/UUID"}},"additionalProperties":false}}},"required":true}}},"/admin/exercises/{id}/assignments/{classId}":{"delete":{"tags":["Admin Exercises"],"operationId":"adminExercises.removeAssignment","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true},{"name":"classId","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"type":"boolean"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"ExerciseNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/attempts":{"get":{"tags":["Admin Attempts"],"operationId":"adminAttempts.list","parameters":[{"name":"classId","in":"query","schema":{"$ref":"#/components/schemas/UUID"},"required":false},{"name":"exerciseId","in":"query","schema":{"$ref":"#/components/schemas/UUID"},"required":false},{"name":"exerciseItemId","in":"query","schema":{"$ref":"#/components/schemas/UUID"},"required":false},{"name":"status","in":"query","schema":{"type":"string","enum":["uploading","queued","processing","completed","failed"]},"required":false},{"name":"studentId","in":"query","schema":{"$ref":"#/components/schemas/UUID"},"required":false}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","meta"],"properties":{"items":{"type":"array","items":{"type":"object","required":["accuracyScore","attemptNumber","audioContentType","audioDurationMs","audioObjectKey","classId","className","completenessScore","createdAt","errorCode","errorMessage","exerciseId","exerciseItemId","exerciseTitle","fluencyScore","id","overallScore","promptText","prosodyScore","provider","providerReference","scoredAt","status","studentDisplayName","studentId","studentLoginId","submittedAt","transcript","updatedAt"],"properties":{"accuracyScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"attemptNumber":{"$ref":"#/components/schemas/Int","description":"a number greater than or equal to 1","title":"greaterThanOrEqualTo(1)","minimum":1},"audioContentType":{"type":"string"},"audioDurationMs":{"anyOf":[{"$ref":"#/components/schemas/Int"},{"type":"null"}]},"audioObjectKey":{"type":"string"},"classId":{"$ref":"#/components/schemas/UUID"},"className":{"type":"string"},"completenessScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"createdAt":{"type":"string"},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"exerciseId":{"$ref":"#/components/schemas/UUID"},"exerciseItemId":{"$ref":"#/components/schemas/UUID"},"exerciseTitle":{"type":"string"},"fluencyScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"$ref":"#/components/schemas/UUID"},"overallScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"promptText":{"type":"string"},"prosodyScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"providerReference":{"anyOf":[{"type":"string"},{"type":"null"}]},"scoredAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["uploading","queued","processing","completed","failed"]},"studentDisplayName":{"type":"string"},"studentId":{"$ref":"#/components/schemas/UUID"},"studentLoginId":{"type":"string"},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"type":"string"}},"additionalProperties":false}},"meta":{"type":"object","required":["total"],"properties":{"total":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"greaterThanOrEqualTo(0)","minimum":0}},"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/attempts/{id}":{"get":{"tags":["Admin Attempts"],"operationId":"adminAttempts.detail","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["attempt","rawProviderResult"],"properties":{"attempt":{"type":"object","required":["accuracyScore","attemptNumber","audioContentType","audioDurationMs","audioObjectKey","classId","className","completenessScore","createdAt","errorCode","errorMessage","exerciseId","exerciseItemId","exerciseTitle","fluencyScore","id","overallScore","promptText","prosodyScore","provider","providerReference","scoredAt","status","studentDisplayName","studentId","studentLoginId","submittedAt","transcript","updatedAt"],"properties":{"accuracyScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"attemptNumber":{"$ref":"#/components/schemas/Int","description":"a number greater than or equal to 1","title":"greaterThanOrEqualTo(1)","minimum":1},"audioContentType":{"type":"string"},"audioDurationMs":{"anyOf":[{"$ref":"#/components/schemas/Int"},{"type":"null"}]},"audioObjectKey":{"type":"string"},"classId":{"$ref":"#/components/schemas/UUID"},"className":{"type":"string"},"completenessScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"createdAt":{"type":"string"},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"exerciseId":{"$ref":"#/components/schemas/UUID"},"exerciseItemId":{"$ref":"#/components/schemas/UUID"},"exerciseTitle":{"type":"string"},"fluencyScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"$ref":"#/components/schemas/UUID"},"overallScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"promptText":{"type":"string"},"prosodyScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"providerReference":{"anyOf":[{"type":"string"},{"type":"null"}]},"scoredAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["uploading","queued","processing","completed","failed"]},"studentDisplayName":{"type":"string"},"studentId":{"$ref":"#/components/schemas/UUID"},"studentLoginId":{"type":"string"},"submittedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"type":"string"}},"additionalProperties":false},"rawProviderResult":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"AttemptNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttemptNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/admin/attempts/{id}/audio":{"get":{"tags":["Admin Attempts"],"operationId":"adminAttempts.audio","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/UUID"},"required":true}],"security":[{"sessionBearer":[]}],"responses":{"200":{"description":"Success","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidJsonError"},{"$ref":"#/components/schemas/ValidationError"},{"$ref":"#/components/schemas/AudioMissingError"}]}}}},"401":{"description":"MissingSessionError","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MissingSessionError"},{"$ref":"#/components/schemas/InvalidSessionError"}]}}}},"403":{"description":"ForbiddenError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"AttemptNotFoundError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttemptNotFoundError"}}}},"500":{"description":"InternalError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}}},"components":{"schemas":{"HttpApiDecodeError":{"type":"object","required":["issues","message","_tag"],"properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"message":{"type":"string"},"_tag":{"type":"string","enum":["HttpApiDecodeError"]}},"additionalProperties":false,"description":"The request did not match the expected schema"},"Issue":{"type":"object","required":["_tag","path","message"],"properties":{"_tag":{"type":"string","enum":["Pointer","Unexpected","Missing","Composite","Refinement","Transformation","Type","Forbidden"],"description":"The tag identifying the type of parse issue"},"path":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKey"},"description":"The path to the property where the issue occurred"},"message":{"type":"string","description":"A descriptive message explaining the issue"}},"additionalProperties":false,"description":"Represents an error encountered while parsing a value to match the schema"},"PropertyKey":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"object","required":["_tag","key"],"properties":{"_tag":{"type":"string","enum":["symbol"]},"key":{"type":"string"}},"additionalProperties":false,"description":"an object to be decoded into a globally shared symbol"}]},"InvalidJsonError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["invalid_json"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidJsonError"]}},"additionalProperties":false},"ValidationError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["validation_error"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["ValidationError"]}},"additionalProperties":false},"InternalError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["InternalError"]}},"additionalProperties":false},"UUID":{"type":"string","description":"a Universally Unique Identifier","format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"InvalidCredentialsError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["invalid_credentials"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidCredentialsError"]}},"additionalProperties":false},"AccountDisabledError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["account_disabled"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["AccountDisabledError"]}},"additionalProperties":false},"MissingSessionError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["missing_session"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["MissingSessionError"]}},"additionalProperties":false},"InvalidSessionError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["invalid_session"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidSessionError"]}},"additionalProperties":false},"ForbiddenError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["ForbiddenError"]}},"additionalProperties":false},"Int":{"type":"integer","description":"an integer","title":"int"},"ClassNotFoundError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["class_not_found"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["ClassNotFoundError"]}},"additionalProperties":false},"StudentNotFoundError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["student_not_found"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["StudentNotFoundError"]}},"additionalProperties":false},"StudentCreationFailedError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["student_creation_failed"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["StudentCreationFailedError"]}},"additionalProperties":false},"DuplicateLoginIdError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["duplicate_login_id"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["DuplicateLoginIdError"]}},"additionalProperties":false},"ExerciseNotFoundError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["exercise_not_found"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["ExerciseNotFoundError"]}},"additionalProperties":false},"ExerciseHasNoItemsError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["exercise_has_no_items"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["ExerciseHasNoItemsError"]}},"additionalProperties":false},"ExerciseItemMismatchError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["exercise_item_mismatch"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["ExerciseItemMismatchError"]}},"additionalProperties":false},"ExerciseItemNotFoundError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["exercise_item_not_found"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["ExerciseItemNotFoundError"]}},"additionalProperties":false},"ExerciseItemsIncompleteError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["exercise_items_incomplete"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["ExerciseItemsIncompleteError"]}},"additionalProperties":false},"ExerciseNotPublishedError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["exercise_not_published"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["ExerciseNotPublishedError"]}},"additionalProperties":false},"AttemptNotFoundError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["attempt_not_found"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["AttemptNotFoundError"]}},"additionalProperties":false},"AudioMissingError":{"type":"object","required":["code","message","_tag"],"properties":{"code":{"type":"string","enum":["audio_missing"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["AudioMissingError"]}},"additionalProperties":false}},"securitySchemes":{"sessionBearer":{"description":"Bearer token returned from the admin login endpoint.","type":"http","scheme":"bearer"}}},"security":[],"tags":[{"name":"Health","description":"Operational health endpoints."},{"name":"Admin Auth","description":"Admin authentication and session management."},{"name":"Admin Classes","description":"Teacher and admin workflows for class rosters."},{"name":"Admin Students","description":"Teacher and admin workflows for student management."},{"name":"Admin Exercises","description":"Teacher and admin workflows for exercise authoring."},{"name":"Admin Attempts","description":"Teacher review endpoints for submitted speaking attempts."}]}