chore: merge the removal and backups from main

This commit is contained in:
Abdessamad Derraz committed 2026-11-11 15:35:44 +01:00
commit f218998f59
51 files changed
+5727 -110

No files matched your search

+215 -3
View File
@@ -39,6 +39,10 @@
"summary",
"app",
"record",
"removal_plan",
"removed",
"restored",
"backup",
"end"
]
}
@@ -131,6 +135,18 @@
{
"$ref": "#/$defs/record"
},
{
"$ref": "#/$defs/removal_plan"
},
{
"$ref": "#/$defs/removed"
},
{
"$ref": "#/$defs/restored"
},
{
"$ref": "#/$defs/backup"
},
{
"$ref": "#/$defs/end"
}
@@ -160,7 +176,9 @@
"install",
"check",
"dry-run",
"list"
"list",
"remove",
"restore"
]
}
}
@@ -1002,7 +1020,9 @@
"install",
"check",
"dry-run",
"list"
"list",
"remove",
"restore"
]
},
"installed": {
@@ -1127,7 +1147,11 @@
"applied",
"written",
"unreadable",
"not_written"
"not_written",
"listed",
"made",
"deleted",
"not_deleted"
]
},
"choice": {
@@ -1148,6 +1172,194 @@
}
}
},
"removal_plan": {
"type": "object",
"additionalProperties": false,
"required": [
"event",
"platform",
"folder",
"files",
"bytes",
"systems",
"dests",
"kept",
"gone",
"backup",
"message"
],
"properties": {
"event": {
"const": "removal_plan"
},
"platform": {
"type": "string"
},
"folder": {
"type": "string"
},
"files": {
"type": "integer",
"minimum": 0
},
"bytes": {
"type": "integer",
"minimum": 0
},
"systems": {
"type": "array",
"items": {
"type": "string"
}
},
"dests": {
"type": "array",
"items": {
"type": "string"
}
},
"kept": {
"type": "array",
"items": {
"type": "object"
}
},
"gone": {
"type": "integer",
"minimum": 0
},
"backup": {
"type": "boolean"
},
"message": {
"type": "string"
}
}
},
"removed": {
"type": "object",
"additionalProperties": false,
"required": [
"event",
"platform",
"dest",
"size",
"ok",
"reason",
"moved_to"
],
"properties": {
"event": {
"const": "removed"
},
"platform": {
"type": "string"
},
"dest": {
"type": "string"
},
"size": {
"type": "integer",
"minimum": 0
},
"ok": {
"type": "boolean"
},
"reason": {
"type": "string"
},
"moved_to": {
"type": "string"
}
}
},
"restored": {
"type": "object",
"additionalProperties": false,
"required": [
"event",
"folder",
"path",
"size",
"ok",
"reason"
],
"properties": {
"event": {
"const": "restored"
},
"folder": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer",
"minimum": 0
},
"ok": {
"type": "boolean"
},
"reason": {
"type": "string"
}
}
},
"backup": {
"type": "object",
"additionalProperties": false,
"required": [
"event",
"folder",
"date",
"files",
"bytes",
"source",
"status",
"message"
],
"properties": {
"event": {
"const": "backup"
},
"folder": {
"type": "string"
},
"date": {
"type": "string"
},
"files": {
"type": "integer",
"minimum": 0
},
"bytes": {
"type": "integer",
"minimum": 0
},
"source": {
"enum": [
"remove",
"install"
]
},
"status": {
"enum": [
"applied",
"written",
"unreadable",
"not_written",
"listed",
"made",
"deleted",
"not_deleted"
]
},
"message": {
"type": "string"
}
}
},
"end": {
"type": "object",
"additionalProperties": false,