{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://theloopbreaker.com/schemas/v3-x402/challenge-status.v1.schema.json",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "schemaVersion",
    "protocolVersion",
    "challengeAvailable",
    "paymentAccepted",
    "settlementEnabled",
    "reason",
    "capabilityGate",
    "bazaar"
  ],
  "properties": {
    "schema": {
      "const": "vaultfire.v3.x402.challenge-status.v1"
    },
    "schemaVersion": {
      "const": "1.0.0"
    },
    "protocolVersion": {
      "const": "3.0.0"
    },
    "challengeAvailable": {
      "const": false
    },
    "paymentAccepted": {
      "const": false
    },
    "settlementEnabled": {
      "const": false
    },
    "reason": {
      "const": "no-real-v3-address-or-durable-route-bound-settlement-evidence"
    },
    "capabilityGate": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "durableReceiptStore",
        "deploymentVerified",
        "payeeVerified",
        "finalityVerifier",
        "auditIntegrity",
        "publicationEvidence",
        "coherentBundle",
        "authenticatedBundleCount",
        "satisfied"
      ],
      "properties": {
        "durableReceiptStore": {
          "const": false
        },
        "deploymentVerified": {
          "const": false
        },
        "payeeVerified": {
          "const": false
        },
        "finalityVerifier": {
          "const": false
        },
        "auditIntegrity": {
          "const": false
        },
        "publicationEvidence": {
          "const": false
        },
        "coherentBundle": {
          "const": false
        },
        "satisfied": {
          "const": false
        },
        "authenticatedBundleCount": {
          "const": 0
        }
      }
    },
    "bazaar": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "publicationState",
        "listingReceiptIds",
        "indexingVerified"
      ],
      "properties": {
        "publicationState": {
          "const": "not-published"
        },
        "listingReceiptIds": {
          "type": "array",
          "maxItems": 0
        },
        "indexingVerified": {
          "const": false
        }
      }
    }
  }
}
