feat: draft controller entry

chore: lint & format
This commit is contained in:
izzy
2025-11-27 17:23:54 +00:00
parent 8db6132669
commit 0fdc7b4448
9 changed files with 154 additions and 19 deletions

View File

@@ -323,6 +323,51 @@
}
},
"/admin/maintenance": {
"get": {
"description": "...",
"operationId": "getIntegrityReport",
"parameters": [],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MaintenanceIntegrityReportResponseDto"
}
}
},
"description": ""
}
},
"security": [
{
"bearer": []
},
{
"cookie": []
},
{
"api_key": []
}
],
"summary": "Get integrity report",
"tags": [
"Maintenance (admin)"
],
"x-immich-admin-only": true,
"x-immich-history": [
{
"version": "v9.9.9",
"state": "Added"
},
{
"version": "v9.9.9",
"state": "Alpha"
}
],
"x-immich-permission": "maintenance",
"x-immich-state": "Alpha"
},
"post": {
"description": "Put Immich into or take it out of maintenance mode",
"operationId": "setMaintenanceMode",
@@ -16920,6 +16965,40 @@
],
"type": "object"
},
"MaintenanceIntegrityReportDto": {
"properties": {
"path": {
"type": "string"
},
"type": {
"enum": [
"orphan_file",
"missing_file",
"checksum_mismatch"
],
"type": "string"
}
},
"required": [
"path",
"type"
],
"type": "object"
},
"MaintenanceIntegrityReportResponseDto": {
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/MaintenanceIntegrityReportDto"
},
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"MaintenanceLoginDto": {
"properties": {
"token": {