{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gen-pro/json-schema/gen-pro-proof-of-genesis-backup-schema.json",
  "title": "ProofOfGenesisBackup",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gen-pro-openapi.yaml#/components/schemas/ProofOfGenesisBackup",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "agent_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "uploading",
        "synced",
        "failed",
        "billing_failed"
      ]
    },
    "source_event": {
      "type": "string",
      "enum": [
        "manual",
        "generated",
        "uploaded",
        "downloaded",
        "published"
      ]
    },
    "source_url": {
      "type": "string"
    },
    "asset_type": {
      "type": "string",
      "enum": [
        "video",
        "image"
      ]
    },
    "visibility": {
      "type": "string",
      "enum": [
        "private",
        "public"
      ]
    },
    "encrypted": {
      "type": "boolean"
    },
    "encryption_scheme": {
      "type": [
        "string",
        "null"
      ]
    },
    "encryption_key_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner_sui_address": {
      "type": [
        "string",
        "null"
      ]
    },
    "custody_mode": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "gen_custody",
        "customer_wallet",
        null
      ],
      "description": "Whether GEN or the customer's Sui wallet owns the Walrus object."
    },
    "walrus_object_recipient_address": {
      "type": [
        "string",
        "null"
      ],
      "description": "Sui address passed to Walrus send_object_to for customer-owned object transfer."
    },
    "content_sha256": {
      "type": [
        "string",
        "null"
      ]
    },
    "size_bytes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "content_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "walrus_blob_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "walrus_blob_object_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "walrus_storage_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "walrus_start_epoch": {
      "type": [
        "integer",
        "null"
      ]
    },
    "walrus_end_epoch": {
      "type": [
        "integer",
        "null"
      ]
    },
    "walrus_encoded_length_bytes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "walrus_cost_wal": {
      "type": [
        "integer",
        "null"
      ]
    },
    "verification_status": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "verified",
        "skipped",
        null
      ]
    },
    "billing_operation": {
      "type": "string"
    },
    "billing_charge_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "billing_amount_charged": {
      "type": [
        "string",
        "null"
      ]
    },
    "billing_new_balance": {
      "type": [
        "string",
        "null"
      ]
    },
    "billing_outboxed": {
      "type": "boolean"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Approximate Walrus expiry for the current monthly storage period."
    },
    "renewal_due_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When Agent Core should attempt monthly renewal, currently three days before expires_at."
    },
    "renewal_status": {
      "type": "string",
      "description": "Monthly renewal state for this backup.",
      "enum": [
        "not_due",
        "due",
        "renewing",
        "renewed",
        "renewal_blocked",
        "renewal_failed"
      ]
    },
    "renewal_attempts": {
      "type": "integer",
      "description": "Number of renewal attempts recorded by Agent Core."
    },
    "last_renewed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "failure_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "failure_message": {
      "type": [
        "string",
        "null"
      ]
    },
    "removed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}