{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-premium-membership-out-schema.json",
  "title": "PremiumMembershipOut",
  "description": "A single membership-history row. Excludes payment_request /\nexternal_ref — those live only on the live invoice response.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-premium-api-openapi.yml#/components/schemas/PremiumMembershipOut",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "period": {
      "type": "string",
      "title": "Period"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "payment_method": {
      "type": "string",
      "title": "Payment Method"
    },
    "amount_paid": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Amount Paid"
    },
    "currency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Currency"
    },
    "started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Started At"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
    },
    "paid_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Paid At"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "period",
    "status",
    "payment_method",
    "amount_paid",
    "currency",
    "started_at",
    "expires_at",
    "paid_at",
    "created_at"
  ]
}