{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cohereon-io/json-schema/cohereon-io-tier-response-schema.json",
  "title": "TierResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cohereon-io-openapi.yml#/components/schemas/TierResponse",
  "type": "object",
  "properties": {
    "npub": {
      "type": "string"
    },
    "tier": {
      "type": "string"
    },
    "traversals": {
      "type": "integer"
    },
    "sats": {
      "type": "integer",
      "description": "Current price per component"
    },
    "declared": {
      "type": "boolean",
      "description": "FUND-declaration status: an on-chain Bitcoin commitment via POST /fund/declare, verified against a block explorer. This is the Citizen qualifier. It is NOT intent declaration (POST /declare), which is free and confers no economic standing. Retained under this name for backward compatibility; see fund_declared."
    },
    "fund_declared": {
      "type": "boolean",
      "description": "Unambiguous alias of `declared` — verified on-chain fund declaration. Citizen qualifier."
    },
    "intent_declared": {
      "type": "boolean",
      "description": "Whether POST /declare has been completed for this npub. Free; does not affect tier or pricing."
    },
    "manifold_id": {
      "type": "string",
      "description": "Agent identifier, present only when the npub is registered via POST /identify or POST /ride-the-lightning. Matches the manifold_id returned by those endpoints."
    },
    "tier_table": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "_manifold": {
      "$ref": "#/$defs/ManifoldEnvelope"
    }
  },
  "$defs": {
    "FreeComponentEntry": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "case_study",
            "overview",
            "declaration",
            "reference",
            "disclaimer"
          ]
        },
        "url": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "ManifoldEnvelope": {
      "type": "object",
      "description": "Present in every JSON response. Contains the complete traversal map for autonomous agent orientation.",
      "properties": {
        "case_studies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FreeComponentEntry"
          }
        },
        "free_layer": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FreeComponentEntry"
          }
        },
        "free_index": {
          "type": "string"
        },
        "gated_index": {
          "type": "string"
        },
        "root": {
          "type": "string"
        },
        "agent_onboarding": {
          "type": "string"
        },
        "mcp": {
          "type": "string"
        },
        "agent_discovery": {
          "type": "string"
        },
        "instruction": {
          "type": "string"
        }
      }
    }
  }
}