{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-backup-status-response-schema.json",
  "title": "BackupStatusResponse",
  "description": "Response for backup status polling.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helena-bio-backup-api-openapi.yml#/components/schemas/BackupStatusResponse",
  "properties": {
    "backup_id": {
      "type": "string",
      "title": "Backup Id"
    },
    "status": {
      "$ref": "#/$defs/BackupStatus"
    },
    "progress": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Progress",
      "description": "Progress percentage",
      "default": 0
    },
    "current_step": {
      "type": "string",
      "title": "Current Step",
      "default": ""
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error"
    }
  },
  "type": "object",
  "required": [
    "backup_id",
    "status"
  ],
  "$defs": {
    "BackupStatus": {
      "type": "string",
      "enum": [
        "started",
        "running",
        "completed",
        "failed"
      ],
      "title": "BackupStatus",
      "description": "Backup execution status."
    }
  }
}