surge refill

This commit is contained in:
Mateusz Gruszczyński
2026-05-31 23:09:24 +02:00
parent 91e91e7e47
commit 68d8ddc8d7
8 changed files with 217 additions and 198 deletions
+46
View File
@@ -1359,6 +1359,9 @@
},
"settings": {
"$ref": "#/components/schemas/SmartQueueSettings"
},
"surge_refill_remaining_seconds": {
"type": "integer"
}
},
"type": "object"
@@ -1422,6 +1425,17 @@
"stop_batch_size": {
"minimum": 1,
"type": "integer"
},
"surge_refill_enabled": {
"type": "boolean"
},
"surge_refill_interval_minutes": {
"type": "integer",
"minimum": 1
},
"surge_refill_batch_size": {
"type": "integer",
"minimum": 1
}
},
"type": "object"
@@ -7479,6 +7493,38 @@
}
}
}
},
"/api/static_hash": {
"get": {
"tags": [
"System"
],
"summary": "Get static asset version hash",
"description": "Returns the current hash for app static assets. Clients can compare it with window.PYTORRENT.staticHash and reload when it changes.",
"responses": {
"200": {
"description": "Static asset hash",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"static_hash": {
"type": "string"
},
"version": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}