{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mcpgate/main/json-schema/mcpgate-subscription-row-schema.json",
  "title": "SubscriptionRow",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mcpgate-api-openapi.json#/components/schemas/SubscriptionRow",
  "properties": {
    "jti": {
      "type": "string",
      "title": "Jti"
    },
    "customer_id": {
      "type": "string",
      "title": "Customer Id"
    },
    "owner_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Id"
    },
    "customer_name": {
      "type": "string",
      "title": "Customer Name"
    },
    "customer_email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Customer Email"
    },
    "tier": {
      "type": "string",
      "enum": [
        "team",
        "enterprise"
      ],
      "title": "Tier"
    },
    "kid": {
      "type": "string",
      "title": "Kid"
    },
    "issued_at": {
      "type": "string",
      "format": "date-time",
      "title": "Issued At"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
    },
    "issued_by": {
      "type": "string",
      "title": "Issued By"
    },
    "revoked_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Revoked At"
    },
    "notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes"
    }
  },
  "type": "object",
  "required": [
    "jti",
    "customer_id",
    "customer_name",
    "tier",
    "kid",
    "issued_at",
    "expires_at",
    "issued_by",
    "revoked_at",
    "notes"
  ]
}