{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-backup-list-response-schema.json",
  "title": "BackupListResponse",
  "description": "Response model for backup list.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robosystems-ai-backup-api-openapi.yml#/components/schemas/BackupListResponse",
  "properties": {
    "backups": {
      "items": {
        "$ref": "#/$defs/BackupResponse"
      },
      "type": "array",
      "title": "Backups"
    },
    "total_count": {
      "type": "integer",
      "title": "Total Count"
    },
    "graph_id": {
      "type": "string",
      "title": "Graph Id"
    },
    "is_shared_repository": {
      "type": "boolean",
      "title": "Is Shared Repository",
      "description": "Whether this is a shared repository (limits apply)",
      "default": false
    },
    "download_quota": {
      "anyOf": [
        {
          "$ref": "#/$defs/DownloadQuota"
        },
        {
          "type": "null"
        }
      ],
      "description": "Download quota for shared repositories"
    }
  },
  "type": "object",
  "required": [
    "backups",
    "total_count",
    "graph_id"
  ],
  "$defs": {
    "BackupResponse": {
      "properties": {
        "backup_id": {
          "type": "string",
          "title": "Backup Id"
        },
        "graph_id": {
          "type": "string",
          "title": "Graph Id"
        },
        "backup_format": {
          "type": "string",
          "title": "Backup Format"
        },
        "backup_type": {
          "type": "string",
          "title": "Backup Type"
        },
        "initiated_by": {
          "type": "string",
          "title": "Initiated By",
          "description": "Who started this backup. 'user' is one you requested and it counts against the tier's daily backup limit; 'scheduled' is taken nightly on your behalf and does not; 'final' is the copy taken when a graph is deprovisioned, so you can still retrieve your data afterwards.",
          "default": "user"
        },
        "memory_included": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Memory Included",
          "description": "Whether the archive carries this graph's semantic memory store. Null for backups taken before memory was included, which make no claim either way — distinct from false, which means the graph had none."
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "original_size_bytes": {
          "type": "integer",
          "title": "Original Size Bytes"
        },
        "compressed_size_bytes": {
          "type": "integer",
          "title": "Compressed Size Bytes"
        },
        "compression_ratio": {
          "type": "number",
          "title": "Compression Ratio"
        },
        "node_count": {
          "type": "integer",
          "title": "Node Count"
        },
        "relationship_count": {
          "type": "integer",
          "title": "Relationship Count"
        },
        "backup_duration_seconds": {
          "type": "number",
          "title": "Backup Duration Seconds"
        },
        "compression_enabled": {
          "type": "boolean",
          "title": "Compression Enabled"
        },
        "download_extension": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Extension",
          "description": "Extension the download will carry, and therefore how to unpack it: '.lbdb.zip' is a ZIP holding the LadybugDB database file, '.lbdb.zst' is zstd-compressed (`zstd -d`). Null only when the backup has no stored object yet."
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completed At"
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expires At"
        }
      },
      "type": "object",
      "required": [
        "backup_id",
        "graph_id",
        "backup_format",
        "backup_type",
        "status",
        "original_size_bytes",
        "compressed_size_bytes",
        "compression_ratio",
        "node_count",
        "relationship_count",
        "backup_duration_seconds",
        "compression_enabled",
        "created_at",
        "completed_at",
        "expires_at"
      ],
      "title": "BackupResponse",
      "description": "Response model for backup information."
    },
    "DownloadQuota": {
      "properties": {
        "limit_per_month": {
          "type": "integer",
          "title": "Limit Per Month",
          "description": "Maximum downloads allowed per month"
        },
        "used_this_month": {
          "type": "integer",
          "title": "Used This Month",
          "description": "Number of downloads used this month"
        },
        "remaining": {
          "type": "integer",
          "title": "Remaining",
          "description": "Downloads remaining this month"
        },
        "resets_at": {
          "type": "string",
          "format": "date-time",
          "title": "Resets At",
          "description": "When the monthly limit resets (UTC)"
        }
      },
      "type": "object",
      "required": [
        "limit_per_month",
        "used_this_month",
        "remaining",
        "resets_at"
      ],
      "title": "DownloadQuota",
      "description": "Download quota information for shared repository backups."
    }
  }
}