{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-boost-invoice-out-schema.json",
  "title": "BoostInvoiceOut",
  "description": "Response for a freshly-minted (or idempotently-reused) boost.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-posts-api-openapi.yml#/components/schemas/BoostInvoiceOut",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "post_id": {
      "type": "string",
      "format": "uuid",
      "title": "Post Id"
    },
    "tier": {
      "type": "string",
      "title": "Tier"
    },
    "amount_sats": {
      "type": "integer",
      "title": "Amount Sats"
    },
    "duration_days": {
      "type": "integer",
      "title": "Duration Days"
    },
    "payment_hash": {
      "type": "string",
      "title": "Payment Hash"
    },
    "payment_request": {
      "type": "string",
      "title": "Payment Request",
      "description": "BOLT11 Lightning invoice to pay."
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "expires_at": {
      "type": "string",
      "title": "Expires At",
      "description": "ISO-8601 invoice expiry (NOT the boost window)."
    }
  },
  "type": "object",
  "required": [
    "id",
    "post_id",
    "tier",
    "amount_sats",
    "duration_days",
    "payment_hash",
    "payment_request",
    "status",
    "expires_at"
  ]
}