{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phoenixlabs-space/json-schema/phoenixlabs-space-restore-job-schema.json",
  "title": "RestoreJob",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phoenixlabs-space-openapi.json#/components/schemas/RestoreJob",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending_payment",
        "awaiting_upload",
        "queued",
        "processing",
        "done",
        "failed",
        "refunded",
        "cancelled",
        "expired"
      ]
    },
    "quality": {
      "type": "string",
      "enum": [
        "faithful",
        "enhanced",
        "enhanced_max"
      ]
    },
    "amount_cents": {
      "type": "integer"
    },
    "duration_sec": {
      "type": "number"
    },
    "download_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}