{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mcpgate/main/json-schema/mcpgate-refresh-response-schema.json",
  "title": "RefreshResponse",
  "description": "Returned by `/subscription/refresh` when the calling gateway has a\nvalid binding. The gateway overwrites its stored token with `token`.",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mcpgate-api-openapi.json#/components/schemas/RefreshResponse",
  "properties": {
    "jti": {
      "type": "string",
      "title": "Jti"
    },
    "tier": {
      "type": "string",
      "enum": [
        "team",
        "enterprise"
      ],
      "title": "Tier"
    },
    "issued_to": {
      "type": "string",
      "title": "Issued To"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
    },
    "kid": {
      "type": "string",
      "title": "Kid"
    },
    "token": {
      "type": "string",
      "title": "Token"
    },
    "refreshed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Refreshed At"
    }
  },
  "type": "object",
  "required": [
    "jti",
    "tier",
    "issued_to",
    "expires_at",
    "kid",
    "token",
    "refreshed_at"
  ]
}