{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helena-bio/json-schema/helena-bio-backup-list-response-schema.json",
  "title": "BackupListResponse",
  "description": "Response listing all backups.",
  "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/BackupListResponse",
  "properties": {
    "backups": {
      "items": {
        "$ref": "#/$defs/BackupSummary"
      },
      "type": "array",
      "title": "Backups"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    }
  },
  "type": "object",
  "required": [
    "backups",
    "total"
  ],
  "$defs": {
    "BackupSummary": {
      "properties": {
        "backup_id": {
          "type": "string",
          "title": "Backup Id"
        },
        "level": {
          "type": "string",
          "title": "Level"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completed At"
        },
        "duration_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Duration Seconds"
        },
        "total_size_bytes": {
          "type": "integer",
          "title": "Total Size Bytes",
          "default": 0
        }
      },
      "type": "object",
      "required": [
        "backup_id",
        "level",
        "status"
      ],
      "title": "BackupSummary",
      "description": "Summary of a single backup."
    }
  }
}