Spaces:
Runtime error
Runtime error
Commit ·
ae78a07
1
Parent(s): f2b94bf
Deploy files from GitHub repository
Browse filesFiles changed (6)
- docs/docs.go+652-120
- docs/swagger.json+652-120
- docs/swagger.yaml+390-40
- swagger/docs/docs.go+652-120
- swagger/docs/swagger.json+652-120
- swagger/docs/swagger.yaml+390-40
1755 unmodified lines17561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218134282 unmodified lines609660976098609961006101134 unmodified lines623662376238623962406241103 unmodified lines634563466347634863496350635163526353635463556356635763581 unmodified line636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639916 unmodified lines64166417641864196420642164221 unmodified line642464256426642764286429643064316432643364346435643664376438643964401 unmodified line644264436444644564466447644813 unmodified lines6462646364646465646664676468646964706471647264736474647564766477647864791 unmodified line648164826483648464856486648764886489649064916492649364946495649664976498649965001 unmodified line650265036504650565066507650815 unmodified lines65246525652665276528652965306531653265336534653565366537653865391 unmodified line6541654265436544654565466547654865496550655165526553483 unmodified lines703770387039704070417042343 unmodified lines738673877388738973907391269 unmodified lines766176627663766476657666251 unmodified lines79187919792079217922792374 unmodified lines79987999800080018002800326 unmodified lines803080318032803380348035390 unmodified lines842684278428842984308431369 unmodified lines88018802880388048805880611 unmodified lines88188819882088218822882388248825882688278828882988308831883288338834420 unmodified lines9255925692579258925992609261926292639264926592669 unmodified lines9276927792789279928092811755 unmodified lines}}},"/api/v1/admin/authentication/{account_id}/assign": {"put": {"security": [{"BearerAuth": []}],"description": "Update the role of a user account","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Authentication"],"summary": "Update User Role","parameters": [{"type": "string","description": "Account ID","name": "accountId","in": "path","required": true},{"description": "Update User Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateUserRoleRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-models_Account"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/admin/events": {"get": {"security": [4282 unmodified lines}}},"/api/v1/super-admin/inject/probset": {"post": {"security": [134 unmodified lines}}},"/api/v1/super-admin/repair/problemset/naming/migrate": {"post": {"security": [103 unmodified lines}}},"/api/v1/super-admin/users": {"get": {"security": [{"BearerAuth": []}],"description": "Retrieve a paginated list of all users with optional role filter. Supports pagination parameters (page, limit) and can filter by user role.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "List All Users with Pagination","parameters": [{"type": "integer","description": "Page number for pagination. Minimum value is 1. Default is 1.","name": "page","in": "query"},{"type": "integer","description": "Number of items per page. Minimum 1, Maximum 50. Default is 10.","name": "limit","in": "query"},{"type": "string","description": "Filter users by role. Allowed values: user, admin, super_admin. Leave empty for no filter.","name": "role","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {16 unmodified lines"BearerAuth": []}],"description": "Create a new user account by providing user details","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Create Single User","parameters": [{"description": "Create User Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateUserRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_UserResponse"}},"400": {13 unmodified lines"schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/bulk": {"post": {"security": [{"BearerAuth": []}],"description": "Create multiple user accounts at once","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Bulk Create Users","parameters": [{"description": "Bulk Create User Requests","name": "requests","in": "body","required": true,"schema": {"type": "array","items": {"$ref": "#/definitions/dto.CreateUserRequest"}}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_CreateUserRequest"}},"400": {15 unmodified lines}}}}},"/api/v1/super-admin/users/{id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update user information by ID","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Edit User","parameters": [{"type": "string","description": "User ID","name": "id","in": "path","required": true483 unmodified lines}}},"dto.AuthenticatedUser": {"type": "object","properties": {343 unmodified lines}}},"dto.CreateUserRequest": {"type": "object","required": [269 unmodified lines}}},"dto.ProblemSetInjectResponse": {"type": "object","properties": {251 unmodified lines}}},"dto.SignInRequest": {"type": "object","required": [74 unmodified lines}}},"dto.SuccessResponse-array_dto_EventScoreboardItem": {"type": "object","properties": {26 unmodified lines}}},"dto.SuccessResponse-array_dto_UserResponse": {"type": "object","properties": {390 unmodified lines}}},"dto.SuccessResponse-dto_UserResponse": {"type": "object","properties": {369 unmodified lines}}},"dto.UpdateUserRequest": {"type": "object","properties": {11 unmodified lines}}},"dto.UpdateUserRoleRequest": {"type": "object","required": ["role"],"properties": {"role": {"type": "string"}}},"dto.UserResponse": {"type": "object","properties": {420 unmodified lines"models.Account": {"type": "object","properties": {"created_at": {"type": "string"},"email": {"type": "string"},"full_name": {"type": "string"},9 unmodified lines"role": {"type": "string"},"username": {"type": "string"}1755 unmodified lines1756175717581759176017614282 unmodified lines6044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131134 unmodified lines626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349103 unmodified lines645364546455645664576458645964606461646264636464646564661 unmodified line6468646964706471647264736474647564766477647864796480648116 unmodified lines64986499650065016502650365041 unmodified line650665076508650965106511651265136514651565166517651865196520652165221 unmodified line652465256526652765286529653013 unmodified lines6544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665671 unmodified line6569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165921 unmodified line659465956596659765986599660015 unmodified lines661666176618661966206621662266236624662566266627662866291 unmodified line663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879483 unmodified lines73637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391343 unmodified lines77357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763269 unmodified lines80338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055251 unmodified lines830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836774 unmodified lines844284438444844584468447844884498450845184528453845484558456845784588459846084618462846326 unmodified lines8490849184928493849484958496849784988499850085018502850385048505850685078508850985108511390 unmodified lines89028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933369 unmodified lines9303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932811 unmodified lines934093419342934393449345420 unmodified lines9766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899 unmodified lines9799980098019802980398049805980698079808980998109811981298131755 unmodified lines}}},"/api/v1/admin/events": {"get": {"security": [4282 unmodified lines}}},"/api/v1/super-admin/accounts/{account_id}/role": {"put": {"security": [{"BearerAuth": []}],"description": "Set the role and privileges of a user account. Supports system roles, named custom roles, or \"custom\" with explicit flags.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Accounts"],"summary": "Set User Role","parameters": [{"type": "string","description": "Account ID","name": "account_id","in": "path","required": true},{"description": "Set User Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.SetUserRoleRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_SetUserRoleResponseData"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"404": {"description": "Not Found","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"422": {"description": "Unprocessable Entity","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/inject/probset": {"post": {"security": [134 unmodified lines}}},"/api/v1/super-admin/logs": {"get": {"security": [{"BearerAuth": []}],"description": "Get paginated audit logs with optional filters. Superadmin only.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Audit"],"summary": "List Audit Logs","parameters": [{"type": "integer","description": "Page number (default 1)","name": "page","in": "query"},{"type": "integer","description": "Items per page (default 10, max 50)","name": "limit","in": "query"},{"type": "string","description": "Filter by action","name": "action","in": "query"},{"type": "string","description": "Filter by actor account ID","name": "actor_account_id","in": "query"},{"type": "string","description": "Start time (RFC3339)","name": "from","in": "query"},{"type": "string","description": "End time (RFC3339)","name": "to","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_AuditLogResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/repair/problemset/naming/migrate": {"post": {"security": [103 unmodified lines}}},"/api/v1/super-admin/roles": {"get": {"security": [{"BearerAuth": []}],"description": "Get all system and named custom roles with their privilege flags","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "List All Roles","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_RoleResponse"}},"401": {16 unmodified lines"BearerAuth": []}],"description": "Create a new named custom role with privilege flags. Superadmin only.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Create Named Role","parameters": [{"description": "Create Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateRoleRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_RoleResponse"}},"400": {13 unmodified lines"schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/roles/{role_id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update a named custom role's privilege flags. System roles are immutable.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Update Named Role","parameters": [{"type": "string","description": "Role ID","name": "role_id","in": "path","required": true},{"description": "Update Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateRoleRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_RoleResponse"}},"400": {15 unmodified lines}}}},"delete": {"security": [{"BearerAuth": []}],"description": "Delete a named custom role. System roles are immutable. Cannot delete if assigned to any account.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Delete Named Role","parameters": [{"type": "string","description": "Role ID","name": "role_id","in": "path","required": true}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-any"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users": {"get": {"security": [{"BearerAuth": []}],"description": "Retrieve a paginated list of all users with optional role filter. Supports pagination parameters (page, limit) and can filter by user role.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "List All Users with Pagination","parameters": [{"type": "integer","description": "Page number for pagination. Minimum value is 1. Default is 1.","name": "page","in": "query"},{"type": "integer","description": "Number of items per page. Minimum 1, Maximum 50. Default is 10.","name": "limit","in": "query"},{"type": "string","description": "Filter users by role. Allowed values: user, admin, super_admin. Leave empty for no filter.","name": "role","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}},"post": {"security": [{"BearerAuth": []}],"description": "Create a new user account by providing user details","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Create Single User","parameters": [{"description": "Create User Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateUserRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/bulk": {"post": {"security": [{"BearerAuth": []}],"description": "Create multiple user accounts at once","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Bulk Create Users","parameters": [{"description": "Bulk Create User Requests","name": "requests","in": "body","required": true,"schema": {"type": "array","items": {"$ref": "#/definitions/dto.CreateUserRequest"}}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_CreateUserRequest"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/{id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update user information by ID","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Edit User","parameters": [{"type": "string","description": "User ID","name": "id","in": "path","required": true483 unmodified lines}}},"dto.AuditLogResponse": {"type": "object","properties": {"action": {"type": "string"},"actor_account_id": {"type": "string"},"created_at": {"type": "string"},"detail": {"type": "string"},"id": {"type": "string"},"target_id": {"type": "string"}}},"dto.AuthenticatedUser": {"type": "object","properties": {343 unmodified lines}}},"dto.CreateRoleRequest": {"type": "object","required": ["name"],"properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"name": {"type": "string"}}},"dto.CreateUserRequest": {"type": "object","required": [269 unmodified lines}}},"dto.Privileges": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"}}},"dto.ProblemSetInjectResponse": {"type": "object","properties": {251 unmodified lines}}},"dto.RoleResponse": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"id": {"type": "string"},"is_system": {"type": "boolean"},"name": {"type": "string"}}},"dto.SetUserRoleRequest": {"type": "object","required": ["privileges","role_name"],"properties": {"privileges": {"$ref": "#/definitions/dto.Privileges"},"role_name": {"type": "string"}}},"dto.SetUserRoleResponseData": {"type": "object","properties": {"account_id": {"type": "string"},"privileges": {"$ref": "#/definitions/dto.Privileges"},"role_name": {"type": "string"}}},"dto.SignInRequest": {"type": "object","required": [74 unmodified lines}}},"dto.SuccessResponse-array_dto_AuditLogResponse": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.AuditLogResponse"}},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-array_dto_EventScoreboardItem": {"type": "object","properties": {26 unmodified lines}}},"dto.SuccessResponse-array_dto_RoleResponse": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.RoleResponse"}},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-array_dto_UserResponse": {"type": "object","properties": {390 unmodified lines}}},"dto.SuccessResponse-dto_RoleResponse": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.RoleResponse"},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-dto_SetUserRoleResponseData": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.SetUserRoleResponseData"},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-dto_UserResponse": {"type": "object","properties": {369 unmodified lines}}},"dto.UpdateRoleRequest": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"name": {"type": "string"}}},"dto.UpdateUserRequest": {"type": "object","properties": {11 unmodified lines}}},"dto.UserResponse": {"type": "object","properties": {420 unmodified lines"models.Account": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"created_at": {"type": "string"},"email": {"type": "string"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"full_name": {"type": "string"},9 unmodified lines"role": {"type": "string"},"role_id": {"type": "string"},"role_name": {"type": "string"},"token_version": {"type": "integer"},"username": {"type": "string"}
1744 unmodified lines17451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118024282 unmodified lines608560866087608860896090134 unmodified lines622562266227622862296230103 unmodified lines633463356336633763386339634063416342634363446345634663471 unmodified line634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638816 unmodified lines64056406640764086409641064111 unmodified line641364146415641664176418641964206421642264236424642564266427642864291 unmodified line643164326433643464356436643713 unmodified lines6451645264536454645564566457645864596460646164626463646464656466646764681 unmodified line647064716472647364746475647664776478647964806481648264836484648564866487648864891 unmodified line649164926493649464956496649715 unmodified lines65136514651565166517651865196520652165226523652465256526652765281 unmodified line6530653165326533653465356536653765386539654065416542483 unmodified lines702670277028702970307031343 unmodified lines737573767377737873797380269 unmodified lines765076517652765376547655251 unmodified lines79077908790979107911791274 unmodified lines79877988798979907991799226 unmodified lines801980208021802280238024390 unmodified lines841584168417841884198420369 unmodified lines87908791879287938794879511 unmodified lines88078808880988108811881288138814881588168817881888198820882188228823420 unmodified lines9244924592469247924892499250925192529253925492559 unmodified lines9265926692679268926992701744 unmodified lines}}},"/api/v1/admin/authentication/{account_id}/assign": {"put": {"security": [{"BearerAuth": []}],"description": "Update the role of a user account","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Authentication"],"summary": "Update User Role","parameters": [{"type": "string","description": "Account ID","name": "accountId","in": "path","required": true},{"description": "Update User Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateUserRoleRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-models_Account"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/admin/events": {"get": {"security": [4282 unmodified lines}}},"/api/v1/super-admin/inject/probset": {"post": {"security": [134 unmodified lines}}},"/api/v1/super-admin/repair/problemset/naming/migrate": {"post": {"security": [103 unmodified lines}}},"/api/v1/super-admin/users": {"get": {"security": [{"BearerAuth": []}],"description": "Retrieve a paginated list of all users with optional role filter. Supports pagination parameters (page, limit) and can filter by user role.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "List All Users with Pagination","parameters": [{"type": "integer","description": "Page number for pagination. Minimum value is 1. Default is 1.","name": "page","in": "query"},{"type": "integer","description": "Number of items per page. Minimum 1, Maximum 50. Default is 10.","name": "limit","in": "query"},{"type": "string","description": "Filter users by role. Allowed values: user, admin, super_admin. Leave empty for no filter.","name": "role","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {16 unmodified lines"BearerAuth": []}],"description": "Create a new user account by providing user details","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Create Single User","parameters": [{"description": "Create User Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateUserRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_UserResponse"}},"400": {13 unmodified lines"schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/bulk": {"post": {"security": [{"BearerAuth": []}],"description": "Create multiple user accounts at once","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Bulk Create Users","parameters": [{"description": "Bulk Create User Requests","name": "requests","in": "body","required": true,"schema": {"type": "array","items": {"$ref": "#/definitions/dto.CreateUserRequest"}}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_CreateUserRequest"}},"400": {15 unmodified lines}}}}},"/api/v1/super-admin/users/{id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update user information by ID","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Edit User","parameters": [{"type": "string","description": "User ID","name": "id","in": "path","required": true483 unmodified lines}}},"dto.AuthenticatedUser": {"type": "object","properties": {343 unmodified lines}}},"dto.CreateUserRequest": {"type": "object","required": [269 unmodified lines}}},"dto.ProblemSetInjectResponse": {"type": "object","properties": {251 unmodified lines}}},"dto.SignInRequest": {"type": "object","required": [74 unmodified lines}}},"dto.SuccessResponse-array_dto_EventScoreboardItem": {"type": "object","properties": {26 unmodified lines}}},"dto.SuccessResponse-array_dto_UserResponse": {"type": "object","properties": {390 unmodified lines}}},"dto.SuccessResponse-dto_UserResponse": {"type": "object","properties": {369 unmodified lines}}},"dto.UpdateUserRequest": {"type": "object","properties": {11 unmodified lines}}},"dto.UpdateUserRoleRequest": {"type": "object","required": ["role"],"properties": {"role": {"type": "string"}}},"dto.UserResponse": {"type": "object","properties": {420 unmodified lines"models.Account": {"type": "object","properties": {"created_at": {"type": "string"},"email": {"type": "string"},"full_name": {"type": "string"},9 unmodified lines"role": {"type": "string"},"username": {"type": "string"}1744 unmodified lines1745174617471748174917504282 unmodified lines6033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120134 unmodified lines625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338103 unmodified lines644264436444644564466447644864496450645164526453645464551 unmodified line6457645864596460646164626463646464656466646764686469647016 unmodified lines64876488648964906491649264931 unmodified line649564966497649864996500650165026503650465056506650765086509651065111 unmodified line651365146515651665176518651913 unmodified lines6533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565561 unmodified line6558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065811 unmodified line658365846585658665876588658915 unmodified lines660566066607660866096610661166126613661466156616661766181 unmodified line662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868483 unmodified lines73527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380343 unmodified lines77247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752269 unmodified lines80228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044251 unmodified lines829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835674 unmodified lines843184328433843484358436843784388439844084418442844384448445844684478448844984508451845226 unmodified lines8479848084818482848384848485848684878488848984908491849284938494849584968497849884998500390 unmodified lines88918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922369 unmodified lines9292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931711 unmodified lines932993309331933293339334420 unmodified lines9755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789 unmodified lines9788978997909791979297939794979597969797979897999800980198021744 unmodified lines}}},"/api/v1/admin/events": {"get": {"security": [4282 unmodified lines}}},"/api/v1/super-admin/accounts/{account_id}/role": {"put": {"security": [{"BearerAuth": []}],"description": "Set the role and privileges of a user account. Supports system roles, named custom roles, or \"custom\" with explicit flags.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Accounts"],"summary": "Set User Role","parameters": [{"type": "string","description": "Account ID","name": "account_id","in": "path","required": true},{"description": "Set User Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.SetUserRoleRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_SetUserRoleResponseData"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"404": {"description": "Not Found","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"422": {"description": "Unprocessable Entity","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/inject/probset": {"post": {"security": [134 unmodified lines}}},"/api/v1/super-admin/logs": {"get": {"security": [{"BearerAuth": []}],"description": "Get paginated audit logs with optional filters. Superadmin only.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Audit"],"summary": "List Audit Logs","parameters": [{"type": "integer","description": "Page number (default 1)","name": "page","in": "query"},{"type": "integer","description": "Items per page (default 10, max 50)","name": "limit","in": "query"},{"type": "string","description": "Filter by action","name": "action","in": "query"},{"type": "string","description": "Filter by actor account ID","name": "actor_account_id","in": "query"},{"type": "string","description": "Start time (RFC3339)","name": "from","in": "query"},{"type": "string","description": "End time (RFC3339)","name": "to","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_AuditLogResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/repair/problemset/naming/migrate": {"post": {"security": [103 unmodified lines}}},"/api/v1/super-admin/roles": {"get": {"security": [{"BearerAuth": []}],"description": "Get all system and named custom roles with their privilege flags","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "List All Roles","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_RoleResponse"}},"401": {16 unmodified lines"BearerAuth": []}],"description": "Create a new named custom role with privilege flags. Superadmin only.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Create Named Role","parameters": [{"description": "Create Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateRoleRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_RoleResponse"}},"400": {13 unmodified lines"schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/roles/{role_id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update a named custom role's privilege flags. System roles are immutable.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Update Named Role","parameters": [{"type": "string","description": "Role ID","name": "role_id","in": "path","required": true},{"description": "Update Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateRoleRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_RoleResponse"}},"400": {15 unmodified lines}}}},"delete": {"security": [{"BearerAuth": []}],"description": "Delete a named custom role. System roles are immutable. Cannot delete if assigned to any account.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Delete Named Role","parameters": [{"type": "string","description": "Role ID","name": "role_id","in": "path","required": true}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-any"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users": {"get": {"security": [{"BearerAuth": []}],"description": "Retrieve a paginated list of all users with optional role filter. Supports pagination parameters (page, limit) and can filter by user role.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "List All Users with Pagination","parameters": [{"type": "integer","description": "Page number for pagination. Minimum value is 1. Default is 1.","name": "page","in": "query"},{"type": "integer","description": "Number of items per page. Minimum 1, Maximum 50. Default is 10.","name": "limit","in": "query"},{"type": "string","description": "Filter users by role. Allowed values: user, admin, super_admin. Leave empty for no filter.","name": "role","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}},"post": {"security": [{"BearerAuth": []}],"description": "Create a new user account by providing user details","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Create Single User","parameters": [{"description": "Create User Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateUserRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/bulk": {"post": {"security": [{"BearerAuth": []}],"description": "Create multiple user accounts at once","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Bulk Create Users","parameters": [{"description": "Bulk Create User Requests","name": "requests","in": "body","required": true,"schema": {"type": "array","items": {"$ref": "#/definitions/dto.CreateUserRequest"}}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_CreateUserRequest"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/{id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update user information by ID","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Edit User","parameters": [{"type": "string","description": "User ID","name": "id","in": "path","required": true483 unmodified lines}}},"dto.AuditLogResponse": {"type": "object","properties": {"action": {"type": "string"},"actor_account_id": {"type": "string"},"created_at": {"type": "string"},"detail": {"type": "string"},"id": {"type": "string"},"target_id": {"type": "string"}}},"dto.AuthenticatedUser": {"type": "object","properties": {343 unmodified lines}}},"dto.CreateRoleRequest": {"type": "object","required": ["name"],"properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"name": {"type": "string"}}},"dto.CreateUserRequest": {"type": "object","required": [269 unmodified lines}}},"dto.Privileges": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"}}},"dto.ProblemSetInjectResponse": {"type": "object","properties": {251 unmodified lines}}},"dto.RoleResponse": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"id": {"type": "string"},"is_system": {"type": "boolean"},"name": {"type": "string"}}},"dto.SetUserRoleRequest": {"type": "object","required": ["privileges","role_name"],"properties": {"privileges": {"$ref": "#/definitions/dto.Privileges"},"role_name": {"type": "string"}}},"dto.SetUserRoleResponseData": {"type": "object","properties": {"account_id": {"type": "string"},"privileges": {"$ref": "#/definitions/dto.Privileges"},"role_name": {"type": "string"}}},"dto.SignInRequest": {"type": "object","required": [74 unmodified lines}}},"dto.SuccessResponse-array_dto_AuditLogResponse": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.AuditLogResponse"}},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-array_dto_EventScoreboardItem": {"type": "object","properties": {26 unmodified lines}}},"dto.SuccessResponse-array_dto_RoleResponse": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.RoleResponse"}},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-array_dto_UserResponse": {"type": "object","properties": {390 unmodified lines}}},"dto.SuccessResponse-dto_RoleResponse": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.RoleResponse"},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-dto_SetUserRoleResponseData": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.SetUserRoleResponseData"},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-dto_UserResponse": {"type": "object","properties": {369 unmodified lines}}},"dto.UpdateRoleRequest": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"name": {"type": "string"}}},"dto.UpdateUserRequest": {"type": "object","properties": {11 unmodified lines}}},"dto.UserResponse": {"type": "object","properties": {420 unmodified lines"models.Account": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"created_at": {"type": "string"},"email": {"type": "string"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"full_name": {"type": "string"},9 unmodified lines"role": {"type": "string"},"role_id": {"type": "string"},"role_name": {"type": "string"},"token_version": {"type": "integer"},"username": {"type": "string"}
248 unmodified lines249250251252253254225 unmodified lines480481482483484485175 unmodified lines661662663664665666161 unmodified lines82882983083183283349 unmodified lines88388488588688788816 unmodified lines905906907908909910267 unmodified lines117811791180118111821183247 unmodified lines1431143214331434143514365 unmodified lines1442144314441445144614471448144914501451145214531454274 unmodified lines17291730173117321733173417351736173717384 unmodified lines1743174417451746174717481455 unmodified lines3204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132422796 unmodified lines60396040604160426043604485 unmodified lines61306131613261336134613565 unmodified lines620162026203620462056206248 unmodified linesaccount_id:type: stringtype: objectdto.AuthenticatedUser:properties:account:225 unmodified lines- question- typetype: objectdto.CreateUserRequest:properties:email:175 unmodified lines- option_name- option_valuestype: objectdto.ProblemSetInjectResponse:properties:file:161 unmodified linesrequired:- question_idstype: objectdto.SignInRequest:properties:email_or_username:49 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-array_dto_EventScoreboardItem:properties:data:16 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-array_dto_UserResponse:properties:data:267 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-dto_UserResponse:properties:data:247 unmodified linesrequired:- final_scoretype: objectdto.UpdateUserRequest:properties:email:5 unmodified linesusername:type: stringtype: objectdto.UpdateUserRoleRequest:properties:role:type: stringrequired:- roletype: objectdto.UserResponse:properties:created_at: {}274 unmodified linestype: objectmodels.Account:properties:created_at:type: stringemail:type: stringfull_name:type: stringid:4 unmodified linestype: booleanrole:type: stringusername:type: stringtype: object1455 unmodified linessummary: 'Admin: List Academy Participants'tags:- Admin Academy/api/v1/admin/authentication/{account_id}/assign:put:consumes:- application/jsondescription: Update the role of a user accountparameters:- description: Account IDin: pathname: accountIdrequired: truetype: string- description: Update User Role Requestin: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.UpdateUserRoleRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-models_Account'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Update User Roletags:- Authentication/api/v1/admin/events:get:consumes:2796 unmodified linessummary: Seed Provincestags:- Region/api/v1/super-admin/inject/probset:post:consumes:85 unmodified linessummary: 'Super Admin: Inject Zip to Storage'tags:- Super Admin Inject/api/v1/super-admin/repair/problemset/naming/migrate:post:consumes:65 unmodified linessummary: 'Super Admin: Repair Question Storage Path'tags:- Super Admin Repair/api/v1/super-admin/users:get:consumes:248 unmodified lines249250251252253254255256257258259260261262263264265266267268269225 unmodified lines495496497498499500501502503504505506507508509510511512513514515175 unmodified lines691692693694695696697698699700701702703704705706707161 unmodified lines86987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991049 unmodified lines96096196296396496596696796896997097197297397497597616 unmodified lines9939949959969979989991000100110021003100410051006100710081009267 unmodified lines127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300247 unmodified lines15481549155015511552155315541555155615571558155915601561156215631564156515665 unmodified lines157215731574157515761577274 unmodified lines1852185318541855185618571858185918601861186218631864186518661867186818694 unmodified lines1874187518761877187818791880188118821883188418851455 unmodified lines3341334233433344334533462796 unmodified lines61436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620285 unmodified lines6288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634365 unmodified lines6409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556248 unmodified linesaccount_id:type: stringtype: objectdto.AuditLogResponse:properties:action:type: stringactor_account_id:type: stringcreated_at:type: stringdetail:type: stringid:type: stringtarget_id:type: stringtype: objectdto.AuthenticatedUser:properties:account:225 unmodified lines- question- typetype: objectdto.CreateRoleRequest:properties:academy_management:type: booleancontent_management:type: booleanevent_management:type: booleanexam_management:type: booleanname:type: stringrequired:- nametype: objectdto.CreateUserRequest:properties:email:175 unmodified lines- option_name- option_valuestype: objectdto.Privileges:properties:academy_management:type: booleancontent_management:type: booleanevent_management:type: booleanexam_management:type: booleantype: objectdto.ProblemSetInjectResponse:properties:file:161 unmodified linesrequired:- question_idstype: objectdto.RoleResponse:properties:academy_management:type: booleancontent_management:type: booleanevent_management:type: booleanexam_management:type: booleanid:type: stringis_system:type: booleanname:type: stringtype: objectdto.SetUserRoleRequest:properties:privileges:$ref: '#/definitions/dto.Privileges'role_name:type: stringrequired:- privileges- role_nametype: objectdto.SetUserRoleResponseData:properties:account_id:type: stringprivileges:$ref: '#/definitions/dto.Privileges'role_name:type: stringtype: objectdto.SignInRequest:properties:email_or_username:49 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-array_dto_AuditLogResponse:properties:data:items:$ref: '#/definitions/dto.AuditLogResponse'type: arraymessage: {}meta_data: {}status:type: stringtype: objectdto.SuccessResponse-array_dto_EventScoreboardItem:properties:data:16 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-array_dto_RoleResponse:properties:data:items:$ref: '#/definitions/dto.RoleResponse'type: arraymessage: {}meta_data: {}status:type: stringtype: objectdto.SuccessResponse-array_dto_UserResponse:properties:data:267 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-dto_RoleResponse:properties:data:$ref: '#/definitions/dto.RoleResponse'message: {}meta_data: {}status:type: stringtype: objectdto.SuccessResponse-dto_SetUserRoleResponseData:properties:data:$ref: '#/definitions/dto.SetUserRoleResponseData'message: {}meta_data: {}status:type: stringtype: objectdto.SuccessResponse-dto_UserResponse:properties:data:247 unmodified linesrequired:- final_scoretype: objectdto.UpdateRoleRequest:properties:academy_management:type: booleancontent_management:type: booleanevent_management:type: booleanexam_management:type: booleanname:type: stringtype: objectdto.UpdateUserRequest:properties:email:5 unmodified linesusername:type: stringtype: objectdto.UserResponse:properties:created_at: {}274 unmodified linestype: objectmodels.Account:properties:academy_management:type: booleancontent_management:type: booleancreated_at:type: stringemail:type: stringevent_management:type: booleanexam_management:type: booleanfull_name:type: stringid:4 unmodified linestype: booleanrole:type: stringrole_id:type: stringrole_name:type: stringtoken_version:type: integerusername:type: stringtype: object1455 unmodified linessummary: 'Admin: List Academy Participants'tags:- Admin Academy/api/v1/admin/events:get:consumes:2796 unmodified linessummary: Seed Provincestags:- Region/api/v1/super-admin/accounts/{account_id}/role:put:consumes:- application/jsondescription: Set the role and privileges of a user account. Supports systemroles, named custom roles, or "custom" with explicit flags.parameters:- description: Account IDin: pathname: account_idrequired: truetype: string- description: Set User Role Requestin: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.SetUserRoleRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-dto_SetUserRoleResponseData'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'"404":description: Not Foundschema:$ref: '#/definitions/dto.ErrorResponse'"409":description: Conflictschema:$ref: '#/definitions/dto.ErrorResponse'"422":description: Unprocessable Entityschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Set User Roletags:- Super Admin Accounts/api/v1/super-admin/inject/probset:post:consumes:85 unmodified linessummary: 'Super Admin: Inject Zip to Storage'tags:- Super Admin Inject/api/v1/super-admin/logs:get:consumes:- application/jsondescription: Get paginated audit logs with optional filters. Superadmin only.parameters:- description: Page number (default 1)in: queryname: pagetype: integer- description: Items per page (default 10, max 50)in: queryname: limittype: integer- description: Filter by actionin: queryname: actiontype: string- description: Filter by actor account IDin: queryname: actor_account_idtype: string- description: Start time (RFC3339)in: queryname: fromtype: string- description: End time (RFC3339)in: queryname: totype: stringproduces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-array_dto_AuditLogResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: List Audit Logstags:- Super Admin Audit/api/v1/super-admin/repair/problemset/naming/migrate:post:consumes:65 unmodified linessummary: 'Super Admin: Repair Question Storage Path'tags:- Super Admin Repair/api/v1/super-admin/roles:get:consumes:- application/jsondescription: Get all system and named custom roles with their privilege flagsproduces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-array_dto_RoleResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: List All Rolestags:- Super Admin Rolespost:consumes:- application/jsondescription: Create a new named custom role with privilege flags. Superadminonly.parameters:- description: Create Role Requestin: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.CreateRoleRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-dto_RoleResponse'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'"409":description: Conflictschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Create Named Roletags:- Super Admin Roles/api/v1/super-admin/roles/{role_id}:delete:consumes:- application/jsondescription: Delete a named custom role. System roles are immutable. Cannotdelete if assigned to any account.parameters:- description: Role IDin: pathname: role_idrequired: truetype: stringproduces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-any'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'"409":description: Conflictschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Delete Named Roletags:- Super Admin Rolesput:consumes:- application/jsondescription: Update a named custom role's privilege flags. System roles areimmutable.parameters:- description: Role IDin: pathname: role_idrequired: truetype: string- description: Update Role Requestin: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.UpdateRoleRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-dto_RoleResponse'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Update Named Roletags:- Super Admin Roles/api/v1/super-admin/users:get:consumes:
1762 unmodified lines17631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918204282 unmodified lines610361046105610661076108134 unmodified lines624362446245624662476248103 unmodified lines635263536354635563566357635863596360636163626363636463651 unmodified line636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640616 unmodified lines64236424642564266427642864291 unmodified line643164326433643464356436643764386439644064416442644364446445644664471 unmodified line644964506451645264536454645513 unmodified lines6469647064716472647364746475647664776478647964806481648264836484648564861 unmodified line648864896490649164926493649464956496649764986499650065016502650365046505650665071 unmodified line650965106511651265136514651515 unmodified lines65316532653365346535653665376538653965406541654265436544654565461 unmodified line6548654965506551655265536554655565566557655865596560483 unmodified lines704470457046704770487049343 unmodified lines739373947395739673977398269 unmodified lines766876697670767176727673251 unmodified lines79257926792779287929793074 unmodified lines80058006800780088009801026 unmodified lines803780388039804080418042390 unmodified lines843384348435843684378438369 unmodified lines88088809881088118812881311 unmodified lines88258826882788288829883088318832883388348835883688378838883988408841420 unmodified lines9262926392649265926692679268926992709271927292739 unmodified lines9283928492859286928792881762 unmodified lines}}},"/api/v1/admin/authentication/{account_id}/assign": {"put": {"security": [{"BearerAuth": []}],"description": "Update the role of a user account","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Authentication"],"summary": "Update User Role","parameters": [{"type": "string","description": "Account ID","name": "accountId","in": "path","required": true},{"description": "Update User Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateUserRoleRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-models_Account"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/admin/events": {"get": {"security": [4282 unmodified lines}}},"/api/v1/super-admin/inject/probset": {"post": {"security": [134 unmodified lines}}},"/api/v1/super-admin/repair/problemset/naming/migrate": {"post": {"security": [103 unmodified lines}}},"/api/v1/super-admin/users": {"get": {"security": [{"BearerAuth": []}],"description": "Retrieve a paginated list of all users with optional role filter. Supports pagination parameters (page, limit) and can filter by user role.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "List All Users with Pagination","parameters": [{"type": "integer","description": "Page number for pagination. Minimum value is 1. Default is 1.","name": "page","in": "query"},{"type": "integer","description": "Number of items per page. Minimum 1, Maximum 50. Default is 10.","name": "limit","in": "query"},{"type": "string","description": "Filter users by role. Allowed values: user, admin, super_admin. Leave empty for no filter.","name": "role","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {16 unmodified lines"BearerAuth": []}],"description": "Create a new user account by providing user details","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Create Single User","parameters": [{"description": "Create User Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateUserRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_UserResponse"}},"400": {13 unmodified lines"schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/bulk": {"post": {"security": [{"BearerAuth": []}],"description": "Create multiple user accounts at once","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Bulk Create Users","parameters": [{"description": "Bulk Create User Requests","name": "requests","in": "body","required": true,"schema": {"type": "array","items": {"$ref": "#/definitions/dto.CreateUserRequest"}}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_CreateUserRequest"}},"400": {15 unmodified lines}}}}},"/api/v1/super-admin/users/{id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update user information by ID","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Edit User","parameters": [{"type": "string","description": "User ID","name": "id","in": "path","required": true483 unmodified lines}}},"dto.AuthenticatedUser": {"type": "object","properties": {343 unmodified lines}}},"dto.CreateUserRequest": {"type": "object","required": [269 unmodified lines}}},"dto.ProblemSetInjectResponse": {"type": "object","properties": {251 unmodified lines}}},"dto.SignInRequest": {"type": "object","required": [74 unmodified lines}}},"dto.SuccessResponse-array_dto_EventScoreboardItem": {"type": "object","properties": {26 unmodified lines}}},"dto.SuccessResponse-array_dto_UserResponse": {"type": "object","properties": {390 unmodified lines}}},"dto.SuccessResponse-dto_UserResponse": {"type": "object","properties": {369 unmodified lines}}},"dto.UpdateUserRequest": {"type": "object","properties": {11 unmodified lines}}},"dto.UpdateUserRoleRequest": {"type": "object","required": ["role"],"properties": {"role": {"type": "string"}}},"dto.UserResponse": {"type": "object","properties": {420 unmodified lines"models.Account": {"type": "object","properties": {"created_at": {"type": "string"},"email": {"type": "string"},"full_name": {"type": "string"},9 unmodified lines"role": {"type": "string"},"username": {"type": "string"}1762 unmodified lines1763176417651766176717684282 unmodified lines6051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138134 unmodified lines627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356103 unmodified lines646064616462646364646465646664676468646964706471647264731 unmodified line6475647664776478647964806481648264836484648564866487648816 unmodified lines65056506650765086509651065111 unmodified line651365146515651665176518651965206521652265236524652565266527652865291 unmodified line653165326533653465356536653713 unmodified lines6551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365741 unmodified line6576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865991 unmodified line660166026603660466056606660715 unmodified lines662366246625662666276628662966306631663266336634663566361 unmodified line663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886483 unmodified lines73707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398343 unmodified lines77427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770269 unmodified lines80408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062251 unmodified lines831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837474 unmodified lines844984508451845284538454845584568457845884598460846184628463846484658466846784688469847026 unmodified lines8497849884998500850185028503850485058506850785088509851085118512851385148515851685178518390 unmodified lines89098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940369 unmodified lines9310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933511 unmodified lines934793489349935093519352420 unmodified lines9773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969 unmodified lines9806980798089809981098119812981398149815981698179818981998201762 unmodified lines}}},"/api/v1/admin/events": {"get": {"security": [4282 unmodified lines}}},"/api/v1/super-admin/accounts/{account_id}/role": {"put": {"security": [{"BearerAuth": []}],"description": "Set the role and privileges of a user account. Supports system roles, named custom roles, or \"custom\" with explicit flags.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Accounts"],"summary": "Set User Role","parameters": [{"type": "string","description": "Account ID","name": "account_id","in": "path","required": true},{"description": "Set User Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.SetUserRoleRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_SetUserRoleResponseData"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"404": {"description": "Not Found","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"422": {"description": "Unprocessable Entity","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/inject/probset": {"post": {"security": [134 unmodified lines}}},"/api/v1/super-admin/logs": {"get": {"security": [{"BearerAuth": []}],"description": "Get paginated audit logs with optional filters. Superadmin only.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Audit"],"summary": "List Audit Logs","parameters": [{"type": "integer","description": "Page number (default 1)","name": "page","in": "query"},{"type": "integer","description": "Items per page (default 10, max 50)","name": "limit","in": "query"},{"type": "string","description": "Filter by action","name": "action","in": "query"},{"type": "string","description": "Filter by actor account ID","name": "actor_account_id","in": "query"},{"type": "string","description": "Start time (RFC3339)","name": "from","in": "query"},{"type": "string","description": "End time (RFC3339)","name": "to","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_AuditLogResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/repair/problemset/naming/migrate": {"post": {"security": [103 unmodified lines}}},"/api/v1/super-admin/roles": {"get": {"security": [{"BearerAuth": []}],"description": "Get all system and named custom roles with their privilege flags","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "List All Roles","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_RoleResponse"}},"401": {16 unmodified lines"BearerAuth": []}],"description": "Create a new named custom role with privilege flags. Superadmin only.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Create Named Role","parameters": [{"description": "Create Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateRoleRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_RoleResponse"}},"400": {13 unmodified lines"schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/roles/{role_id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update a named custom role's privilege flags. System roles are immutable.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Update Named Role","parameters": [{"type": "string","description": "Role ID","name": "role_id","in": "path","required": true},{"description": "Update Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateRoleRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_RoleResponse"}},"400": {15 unmodified lines}}}},"delete": {"security": [{"BearerAuth": []}],"description": "Delete a named custom role. System roles are immutable. Cannot delete if assigned to any account.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Delete Named Role","parameters": [{"type": "string","description": "Role ID","name": "role_id","in": "path","required": true}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-any"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users": {"get": {"security": [{"BearerAuth": []}],"description": "Retrieve a paginated list of all users with optional role filter. Supports pagination parameters (page, limit) and can filter by user role.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "List All Users with Pagination","parameters": [{"type": "integer","description": "Page number for pagination. Minimum value is 1. Default is 1.","name": "page","in": "query"},{"type": "integer","description": "Number of items per page. Minimum 1, Maximum 50. Default is 10.","name": "limit","in": "query"},{"type": "string","description": "Filter users by role. Allowed values: user, admin, super_admin. Leave empty for no filter.","name": "role","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}},"post": {"security": [{"BearerAuth": []}],"description": "Create a new user account by providing user details","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Create Single User","parameters": [{"description": "Create User Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateUserRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/bulk": {"post": {"security": [{"BearerAuth": []}],"description": "Create multiple user accounts at once","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Bulk Create Users","parameters": [{"description": "Bulk Create User Requests","name": "requests","in": "body","required": true,"schema": {"type": "array","items": {"$ref": "#/definitions/dto.CreateUserRequest"}}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_CreateUserRequest"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/{id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update user information by ID","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Edit User","parameters": [{"type": "string","description": "User ID","name": "id","in": "path","required": true483 unmodified lines}}},"dto.AuditLogResponse": {"type": "object","properties": {"action": {"type": "string"},"actor_account_id": {"type": "string"},"created_at": {"type": "string"},"detail": {"type": "string"},"id": {"type": "string"},"target_id": {"type": "string"}}},"dto.AuthenticatedUser": {"type": "object","properties": {343 unmodified lines}}},"dto.CreateRoleRequest": {"type": "object","required": ["name"],"properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"name": {"type": "string"}}},"dto.CreateUserRequest": {"type": "object","required": [269 unmodified lines}}},"dto.Privileges": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"}}},"dto.ProblemSetInjectResponse": {"type": "object","properties": {251 unmodified lines}}},"dto.RoleResponse": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"id": {"type": "string"},"is_system": {"type": "boolean"},"name": {"type": "string"}}},"dto.SetUserRoleRequest": {"type": "object","required": ["privileges","role_name"],"properties": {"privileges": {"$ref": "#/definitions/dto.Privileges"},"role_name": {"type": "string"}}},"dto.SetUserRoleResponseData": {"type": "object","properties": {"account_id": {"type": "string"},"privileges": {"$ref": "#/definitions/dto.Privileges"},"role_name": {"type": "string"}}},"dto.SignInRequest": {"type": "object","required": [74 unmodified lines}}},"dto.SuccessResponse-array_dto_AuditLogResponse": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.AuditLogResponse"}},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-array_dto_EventScoreboardItem": {"type": "object","properties": {26 unmodified lines}}},"dto.SuccessResponse-array_dto_RoleResponse": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.RoleResponse"}},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-array_dto_UserResponse": {"type": "object","properties": {390 unmodified lines}}},"dto.SuccessResponse-dto_RoleResponse": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.RoleResponse"},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-dto_SetUserRoleResponseData": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.SetUserRoleResponseData"},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-dto_UserResponse": {"type": "object","properties": {369 unmodified lines}}},"dto.UpdateRoleRequest": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"name": {"type": "string"}}},"dto.UpdateUserRequest": {"type": "object","properties": {11 unmodified lines}}},"dto.UserResponse": {"type": "object","properties": {420 unmodified lines"models.Account": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"created_at": {"type": "string"},"email": {"type": "string"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"full_name": {"type": "string"},9 unmodified lines"role": {"type": "string"},"role_id": {"type": "string"},"role_name": {"type": "string"},"token_version": {"type": "integer"},"username": {"type": "string"}
1759 unmodified lines17601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618174282 unmodified lines610061016102610361046105134 unmodified lines624062416242624362446245103 unmodified lines634963506351635263536354635563566357635863596360636163621 unmodified line636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640316 unmodified lines64206421642264236424642564261 unmodified line642864296430643164326433643464356436643764386439644064416442644364441 unmodified line644664476448644964506451645213 unmodified lines6466646764686469647064716472647364746475647664776478647964806481648264831 unmodified line648564866487648864896490649164926493649464956496649764986499650065016502650365041 unmodified line650665076508650965106511651215 unmodified lines65286529653065316532653365346535653665376538653965406541654265431 unmodified line6545654665476548654965506551655265536554655565566557483 unmodified lines704170427043704470457046343 unmodified lines739073917392739373947395269 unmodified lines766576667667766876697670251 unmodified lines79227923792479257926792774 unmodified lines80028003800480058006800726 unmodified lines803480358036803780388039390 unmodified lines843084318432843384348435369 unmodified lines88058806880788088809881011 unmodified lines88228823882488258826882788288829883088318832883388348835883688378838420 unmodified lines9259926092619262926392649265926692679268926992709 unmodified lines9280928192829283928492851759 unmodified lines}}},"/api/v1/admin/authentication/{account_id}/assign": {"put": {"security": [{"BearerAuth": []}],"description": "Update the role of a user account","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Authentication"],"summary": "Update User Role","parameters": [{"type": "string","description": "Account ID","name": "accountId","in": "path","required": true},{"description": "Update User Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateUserRoleRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-models_Account"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/admin/events": {"get": {"security": [4282 unmodified lines}}},"/api/v1/super-admin/inject/probset": {"post": {"security": [134 unmodified lines}}},"/api/v1/super-admin/repair/problemset/naming/migrate": {"post": {"security": [103 unmodified lines}}},"/api/v1/super-admin/users": {"get": {"security": [{"BearerAuth": []}],"description": "Retrieve a paginated list of all users with optional role filter. Supports pagination parameters (page, limit) and can filter by user role.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "List All Users with Pagination","parameters": [{"type": "integer","description": "Page number for pagination. Minimum value is 1. Default is 1.","name": "page","in": "query"},{"type": "integer","description": "Number of items per page. Minimum 1, Maximum 50. Default is 10.","name": "limit","in": "query"},{"type": "string","description": "Filter users by role. Allowed values: user, admin, super_admin. Leave empty for no filter.","name": "role","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {16 unmodified lines"BearerAuth": []}],"description": "Create a new user account by providing user details","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Create Single User","parameters": [{"description": "Create User Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateUserRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_UserResponse"}},"400": {13 unmodified lines"schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/bulk": {"post": {"security": [{"BearerAuth": []}],"description": "Create multiple user accounts at once","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Bulk Create Users","parameters": [{"description": "Bulk Create User Requests","name": "requests","in": "body","required": true,"schema": {"type": "array","items": {"$ref": "#/definitions/dto.CreateUserRequest"}}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_CreateUserRequest"}},"400": {15 unmodified lines}}}}},"/api/v1/super-admin/users/{id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update user information by ID","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Users Management"],"summary": "Edit User","parameters": [{"type": "string","description": "User ID","name": "id","in": "path","required": true483 unmodified lines}}},"dto.AuthenticatedUser": {"type": "object","properties": {343 unmodified lines}}},"dto.CreateUserRequest": {"type": "object","required": [269 unmodified lines}}},"dto.ProblemSetInjectResponse": {"type": "object","properties": {251 unmodified lines}}},"dto.SignInRequest": {"type": "object","required": [74 unmodified lines}}},"dto.SuccessResponse-array_dto_EventScoreboardItem": {"type": "object","properties": {26 unmodified lines}}},"dto.SuccessResponse-array_dto_UserResponse": {"type": "object","properties": {390 unmodified lines}}},"dto.SuccessResponse-dto_UserResponse": {"type": "object","properties": {369 unmodified lines}}},"dto.UpdateUserRequest": {"type": "object","properties": {11 unmodified lines}}},"dto.UpdateUserRoleRequest": {"type": "object","required": ["role"],"properties": {"role": {"type": "string"}}},"dto.UserResponse": {"type": "object","properties": {420 unmodified lines"models.Account": {"type": "object","properties": {"created_at": {"type": "string"},"email": {"type": "string"},"full_name": {"type": "string"},9 unmodified lines"role": {"type": "string"},"username": {"type": "string"}1759 unmodified lines1760176117621763176417654282 unmodified lines6048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135134 unmodified lines627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353103 unmodified lines645764586459646064616462646364646465646664676468646964701 unmodified line6472647364746475647664776478647964806481648264836484648516 unmodified lines65026503650465056506650765081 unmodified line651065116512651365146515651665176518651965206521652265236524652565261 unmodified line652865296530653165326533653413 unmodified lines6548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065711 unmodified line6573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565961 unmodified line659865996600660166026603660415 unmodified lines662066216622662366246625662666276628662966306631663266331 unmodified line663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883483 unmodified lines73677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395343 unmodified lines77397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767269 unmodified lines80378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059251 unmodified lines831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837174 unmodified lines844684478448844984508451845284538454845584568457845884598460846184628463846484658466846726 unmodified lines8494849584968497849884998500850185028503850485058506850785088509851085118512851385148515390 unmodified lines89068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937369 unmodified lines9307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933211 unmodified lines934493459346934793489349420 unmodified lines9770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939 unmodified lines9803980498059806980798089809981098119812981398149815981698171759 unmodified lines}}},"/api/v1/admin/events": {"get": {"security": [4282 unmodified lines}}},"/api/v1/super-admin/accounts/{account_id}/role": {"put": {"security": [{"BearerAuth": []}],"description": "Set the role and privileges of a user account. Supports system roles, named custom roles, or \"custom\" with explicit flags.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Accounts"],"summary": "Set User Role","parameters": [{"type": "string","description": "Account ID","name": "account_id","in": "path","required": true},{"description": "Set User Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.SetUserRoleRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_SetUserRoleResponseData"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"404": {"description": "Not Found","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"422": {"description": "Unprocessable Entity","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/inject/probset": {"post": {"security": [134 unmodified lines}}},"/api/v1/super-admin/logs": {"get": {"security": [{"BearerAuth": []}],"description": "Get paginated audit logs with optional filters. Superadmin only.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Audit"],"summary": "List Audit Logs","parameters": [{"type": "integer","description": "Page number (default 1)","name": "page","in": "query"},{"type": "integer","description": "Items per page (default 10, max 50)","name": "limit","in": "query"},{"type": "string","description": "Filter by action","name": "action","in": "query"},{"type": "string","description": "Filter by actor account ID","name": "actor_account_id","in": "query"},{"type": "string","description": "Start time (RFC3339)","name": "from","in": "query"},{"type": "string","description": "End time (RFC3339)","name": "to","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_AuditLogResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/repair/problemset/naming/migrate": {"post": {"security": [103 unmodified lines}}},"/api/v1/super-admin/roles": {"get": {"security": [{"BearerAuth": []}],"description": "Get all system and named custom roles with their privilege flags","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "List All Roles","responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_RoleResponse"}},"401": {16 unmodified lines"BearerAuth": []}],"description": "Create a new named custom role with privilege flags. Superadmin only.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Create Named Role","parameters": [{"description": "Create Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateRoleRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_RoleResponse"}},"400": {13 unmodified lines"schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/roles/{role_id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update a named custom role's privilege flags. System roles are immutable.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Update Named Role","parameters": [{"type": "string","description": "Role ID","name": "role_id","in": "path","required": true},{"description": "Update Role Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.UpdateRoleRequest"}}],1 unmodified line"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_RoleResponse"}},"400": {15 unmodified lines}}}},"delete": {"security": [{"BearerAuth": []}],"description": "Delete a named custom role. System roles are immutable. Cannot delete if assigned to any account.","consumes": ["application/json"],1 unmodified line"application/json"],"tags": ["Super Admin Roles"],"summary": "Delete Named Role","parameters": [{"type": "string","description": "Role ID","name": "role_id","in": "path","required": true}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-any"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"409": {"description": "Conflict","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users": {"get": {"security": [{"BearerAuth": []}],"description": "Retrieve a paginated list of all users with optional role filter. Supports pagination parameters (page, limit) and can filter by user role.","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "List All Users with Pagination","parameters": [{"type": "integer","description": "Page number for pagination. Minimum value is 1. Default is 1.","name": "page","in": "query"},{"type": "integer","description": "Number of items per page. Minimum 1, Maximum 50. Default is 10.","name": "limit","in": "query"},{"type": "string","description": "Filter users by role. Allowed values: user, admin, super_admin. Leave empty for no filter.","name": "role","in": "query"}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-array_dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}},"post": {"security": [{"BearerAuth": []}],"description": "Create a new user account by providing user details","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Create Single User","parameters": [{"description": "Create User Request","name": "request","in": "body","required": true,"schema": {"$ref": "#/definitions/dto.CreateUserRequest"}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_UserResponse"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/bulk": {"post": {"security": [{"BearerAuth": []}],"description": "Create multiple user accounts at once","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Bulk Create Users","parameters": [{"description": "Bulk Create User Requests","name": "requests","in": "body","required": true,"schema": {"type": "array","items": {"$ref": "#/definitions/dto.CreateUserRequest"}}}],"responses": {"200": {"description": "OK","schema": {"$ref": "#/definitions/dto.SuccessResponse-dto_CreateUserRequest"}},"400": {"description": "Bad Request","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"401": {"description": "Unauthorized","schema": {"$ref": "#/definitions/dto.ErrorResponse"}},"403": {"description": "Forbidden","schema": {"$ref": "#/definitions/dto.ErrorResponse"}}}}},"/api/v1/super-admin/users/{id}": {"put": {"security": [{"BearerAuth": []}],"description": "Update user information by ID","consumes": ["application/json"],"produces": ["application/json"],"tags": ["Super Admin Users Management"],"summary": "Edit User","parameters": [{"type": "string","description": "User ID","name": "id","in": "path","required": true483 unmodified lines}}},"dto.AuditLogResponse": {"type": "object","properties": {"action": {"type": "string"},"actor_account_id": {"type": "string"},"created_at": {"type": "string"},"detail": {"type": "string"},"id": {"type": "string"},"target_id": {"type": "string"}}},"dto.AuthenticatedUser": {"type": "object","properties": {343 unmodified lines}}},"dto.CreateRoleRequest": {"type": "object","required": ["name"],"properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"name": {"type": "string"}}},"dto.CreateUserRequest": {"type": "object","required": [269 unmodified lines}}},"dto.Privileges": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"}}},"dto.ProblemSetInjectResponse": {"type": "object","properties": {251 unmodified lines}}},"dto.RoleResponse": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"id": {"type": "string"},"is_system": {"type": "boolean"},"name": {"type": "string"}}},"dto.SetUserRoleRequest": {"type": "object","required": ["privileges","role_name"],"properties": {"privileges": {"$ref": "#/definitions/dto.Privileges"},"role_name": {"type": "string"}}},"dto.SetUserRoleResponseData": {"type": "object","properties": {"account_id": {"type": "string"},"privileges": {"$ref": "#/definitions/dto.Privileges"},"role_name": {"type": "string"}}},"dto.SignInRequest": {"type": "object","required": [74 unmodified lines}}},"dto.SuccessResponse-array_dto_AuditLogResponse": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.AuditLogResponse"}},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-array_dto_EventScoreboardItem": {"type": "object","properties": {26 unmodified lines}}},"dto.SuccessResponse-array_dto_RoleResponse": {"type": "object","properties": {"data": {"type": "array","items": {"$ref": "#/definitions/dto.RoleResponse"}},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-array_dto_UserResponse": {"type": "object","properties": {390 unmodified lines}}},"dto.SuccessResponse-dto_RoleResponse": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.RoleResponse"},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-dto_SetUserRoleResponseData": {"type": "object","properties": {"data": {"$ref": "#/definitions/dto.SetUserRoleResponseData"},"message": {},"meta_data": {},"status": {"type": "string"}}},"dto.SuccessResponse-dto_UserResponse": {"type": "object","properties": {369 unmodified lines}}},"dto.UpdateRoleRequest": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"name": {"type": "string"}}},"dto.UpdateUserRequest": {"type": "object","properties": {11 unmodified lines}}},"dto.UserResponse": {"type": "object","properties": {420 unmodified lines"models.Account": {"type": "object","properties": {"academy_management": {"type": "boolean"},"content_management": {"type": "boolean"},"created_at": {"type": "string"},"email": {"type": "string"},"event_management": {"type": "boolean"},"exam_management": {"type": "boolean"},"full_name": {"type": "string"},9 unmodified lines"role": {"type": "string"},"role_id": {"type": "string"},"role_name": {"type": "string"},"token_version": {"type": "integer"},"username": {"type": "string"}
249 unmodified lines250251252253254255225 unmodified lines481482483484485486175 unmodified lines662663664665666667161 unmodified lines82983083183283383449 unmodified lines88488588688788888916 unmodified lines906907908909910911267 unmodified lines117911801181118211831184247 unmodified lines1432143314341435143614375 unmodified lines1443144414451446144714481449145014511452145314541455274 unmodified lines17301731173217331734173517361737173817394 unmodified lines1744174517461747174817491464 unmodified lines3214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132522796 unmodified lines60496050605160526053605485 unmodified lines61406141614261436144614565 unmodified lines621162126213621462156216249 unmodified linesaccount_id:type: stringtype: objectdto.AuthenticatedUser:properties:account:225 unmodified lines- question- typetype: objectdto.CreateUserRequest:properties:email:175 unmodified lines- option_name- option_valuestype: objectdto.ProblemSetInjectResponse:properties:file:161 unmodified linesrequired:- question_idstype: objectdto.SignInRequest:properties:email_or_username:49 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-array_dto_EventScoreboardItem:properties:data:16 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-array_dto_UserResponse:properties:data:267 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-dto_UserResponse:properties:data:247 unmodified linesrequired:- final_scoretype: objectdto.UpdateUserRequest:properties:email:5 unmodified linesusername:type: stringtype: objectdto.UpdateUserRoleRequest:properties:role:type: stringrequired:- roletype: objectdto.UserResponse:properties:created_at: {}274 unmodified linestype: objectmodels.Account:properties:created_at:type: stringemail:type: stringfull_name:type: stringid:4 unmodified linestype: booleanrole:type: stringusername:type: stringtype: object1464 unmodified linessummary: 'Admin: List Academy Participants'tags:- Admin Academy/api/v1/admin/authentication/{account_id}/assign:put:consumes:- application/jsondescription: Update the role of a user accountparameters:- description: Account IDin: pathname: accountIdrequired: truetype: string- description: Update User Role Requestin: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.UpdateUserRoleRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-models_Account'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Update User Roletags:- Authentication/api/v1/admin/events:get:consumes:2796 unmodified linessummary: Seed Provincestags:- Region/api/v1/super-admin/inject/probset:post:consumes:85 unmodified linessummary: 'Super Admin: Inject Zip to Storage'tags:- Super Admin Inject/api/v1/super-admin/repair/problemset/naming/migrate:post:consumes:65 unmodified linessummary: 'Super Admin: Repair Question Storage Path'tags:- Super Admin Repair/api/v1/super-admin/users:get:consumes:249 unmodified lines250251252253254255256257258259260261262263264265266267268269270225 unmodified lines496497498499500501502503504505506507508509510511512513514515516175 unmodified lines692693694695696697698699700701702703704705706707708161 unmodified lines87087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091149 unmodified lines96196296396496596696796896997097197297397497597697716 unmodified lines99499599699799899910001001100210031004100510061007100810091010267 unmodified lines127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301247 unmodified lines15491550155115521553155415551556155715581559156015611562156315641565156615675 unmodified lines157315741575157615771578274 unmodified lines1853185418551856185718581859186018611862186318641865186618671868186918704 unmodified lines1875187618771878187918801881188218831884188518861464 unmodified lines3351335233533354335533562796 unmodified lines61536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621285 unmodified lines6298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635365 unmodified lines6419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566249 unmodified linesaccount_id:type: stringtype: objectdto.AuditLogResponse:properties:action:type: stringactor_account_id:type: stringcreated_at:type: stringdetail:type: stringid:type: stringtarget_id:type: stringtype: objectdto.AuthenticatedUser:properties:account:225 unmodified lines- question- typetype: objectdto.CreateRoleRequest:properties:academy_management:type: booleancontent_management:type: booleanevent_management:type: booleanexam_management:type: booleanname:type: stringrequired:- nametype: objectdto.CreateUserRequest:properties:email:175 unmodified lines- option_name- option_valuestype: objectdto.Privileges:properties:academy_management:type: booleancontent_management:type: booleanevent_management:type: booleanexam_management:type: booleantype: objectdto.ProblemSetInjectResponse:properties:file:161 unmodified linesrequired:- question_idstype: objectdto.RoleResponse:properties:academy_management:type: booleancontent_management:type: booleanevent_management:type: booleanexam_management:type: booleanid:type: stringis_system:type: booleanname:type: stringtype: objectdto.SetUserRoleRequest:properties:privileges:$ref: '#/definitions/dto.Privileges'role_name:type: stringrequired:- privileges- role_nametype: objectdto.SetUserRoleResponseData:properties:account_id:type: stringprivileges:$ref: '#/definitions/dto.Privileges'role_name:type: stringtype: objectdto.SignInRequest:properties:email_or_username:49 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-array_dto_AuditLogResponse:properties:data:items:$ref: '#/definitions/dto.AuditLogResponse'type: arraymessage: {}meta_data: {}status:type: stringtype: objectdto.SuccessResponse-array_dto_EventScoreboardItem:properties:data:16 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-array_dto_RoleResponse:properties:data:items:$ref: '#/definitions/dto.RoleResponse'type: arraymessage: {}meta_data: {}status:type: stringtype: objectdto.SuccessResponse-array_dto_UserResponse:properties:data:267 unmodified linesstatus:type: stringtype: objectdto.SuccessResponse-dto_RoleResponse:properties:data:$ref: '#/definitions/dto.RoleResponse'message: {}meta_data: {}status:type: stringtype: objectdto.SuccessResponse-dto_SetUserRoleResponseData:properties:data:$ref: '#/definitions/dto.SetUserRoleResponseData'message: {}meta_data: {}status:type: stringtype: objectdto.SuccessResponse-dto_UserResponse:properties:data:247 unmodified linesrequired:- final_scoretype: objectdto.UpdateRoleRequest:properties:academy_management:type: booleancontent_management:type: booleanevent_management:type: booleanexam_management:type: booleanname:type: stringtype: objectdto.UpdateUserRequest:properties:email:5 unmodified linesusername:type: stringtype: objectdto.UserResponse:properties:created_at: {}274 unmodified linestype: objectmodels.Account:properties:academy_management:type: booleancontent_management:type: booleancreated_at:type: stringemail:type: stringevent_management:type: booleanexam_management:type: booleanfull_name:type: stringid:4 unmodified linestype: booleanrole:type: stringrole_id:type: stringrole_name:type: stringtoken_version:type: integerusername:type: stringtype: object1464 unmodified linessummary: 'Admin: List Academy Participants'tags:- Admin Academy/api/v1/admin/events:get:consumes:2796 unmodified linessummary: Seed Provincestags:- Region/api/v1/super-admin/accounts/{account_id}/role:put:consumes:- application/jsondescription: Set the role and privileges of a user account. Supports systemroles, named custom roles, or "custom" with explicit flags.parameters:- description: Account IDin: pathname: account_idrequired: truetype: string- description: Set User Role Requestin: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.SetUserRoleRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-dto_SetUserRoleResponseData'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'"404":description: Not Foundschema:$ref: '#/definitions/dto.ErrorResponse'"409":description: Conflictschema:$ref: '#/definitions/dto.ErrorResponse'"422":description: Unprocessable Entityschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Set User Roletags:- Super Admin Accounts/api/v1/super-admin/inject/probset:post:consumes:85 unmodified linessummary: 'Super Admin: Inject Zip to Storage'tags:- Super Admin Inject/api/v1/super-admin/logs:get:consumes:- application/jsondescription: Get paginated audit logs with optional filters. Superadmin only.parameters:- description: Page number (default 1)in: queryname: pagetype: integer- description: Items per page (default 10, max 50)in: queryname: limittype: integer- description: Filter by actionin: queryname: actiontype: string- description: Filter by actor account IDin: queryname: actor_account_idtype: string- description: Start time (RFC3339)in: queryname: fromtype: string- description: End time (RFC3339)in: queryname: totype: stringproduces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-array_dto_AuditLogResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: List Audit Logstags:- Super Admin Audit/api/v1/super-admin/repair/problemset/naming/migrate:post:consumes:65 unmodified linessummary: 'Super Admin: Repair Question Storage Path'tags:- Super Admin Repair/api/v1/super-admin/roles:get:consumes:- application/jsondescription: Get all system and named custom roles with their privilege flagsproduces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-array_dto_RoleResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: List All Rolestags:- Super Admin Rolespost:consumes:- application/jsondescription: Create a new named custom role with privilege flags. Superadminonly.parameters:- description: Create Role Requestin: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.CreateRoleRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-dto_RoleResponse'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'"409":description: Conflictschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Create Named Roletags:- Super Admin Roles/api/v1/super-admin/roles/{role_id}:delete:consumes:- application/jsondescription: Delete a named custom role. System roles are immutable. Cannotdelete if assigned to any account.parameters:- description: Role IDin: pathname: role_idrequired: truetype: stringproduces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-any'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'"409":description: Conflictschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Delete Named Roletags:- Super Admin Rolesput:consumes:- application/jsondescription: Update a named custom role's privilege flags. System roles areimmutable.parameters:- description: Role IDin: pathname: role_idrequired: truetype: string- description: Update Role Requestin: bodyname: requestrequired: trueschema:$ref: '#/definitions/dto.UpdateRoleRequest'produces:- application/jsonresponses:"200":description: OKschema:$ref: '#/definitions/dto.SuccessResponse-dto_RoleResponse'"400":description: Bad Requestschema:$ref: '#/definitions/dto.ErrorResponse'"401":description: Unauthorizedschema:$ref: '#/definitions/dto.ErrorResponse'"403":description: Forbiddenschema:$ref: '#/definitions/dto.ErrorResponse'security:- BearerAuth: []summary: Update Named Roletags:- Super Admin Roles/api/v1/super-admin/users:get:consumes:
docs/docs.go+652-120
docs/swagger.json+652-120
docs/swagger.yaml+390-40
swagger/docs/docs.go+652-120
swagger/docs/swagger.json+652-120
swagger/docs/swagger.yaml+390-40