{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kunkafa-com/json-schema/kunkafa-com-plans-schema.json",
  "title": "Plans",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kunkafa-com-openapi.json#/components/schemas/Plans",
  "type": "object",
  "properties": {
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "currency": {
      "type": "string"
    },
    "trialDays": {
      "type": "integer"
    },
    "plans": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "descriptor": {
            "type": "string"
          },
          "priceCents": {
            "type": "integer"
          },
          "priceMonthly": {
            "type": "number"
          },
          "trialDays": {
            "type": "integer"
          },
          "bullets": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "onboardingCall": {
            "type": "string"
          },
          "integrations": {
            "type": "object",
            "required": [
              "mcp",
              "restApi",
              "marketsPerRequest",
              "connections",
              "requestsPerMinute",
              "burst",
              "summaries",
              "setupUrl",
              "limitsUrl"
            ],
            "properties": {
              "mcp": {
                "type": "boolean"
              },
              "restApi": {
                "type": "boolean"
              },
              "marketsPerRequest": {
                "type": "integer",
                "minimum": 1
              },
              "connections": {
                "type": "integer",
                "minimum": 1
              },
              "requestsPerMinute": {
                "type": "integer",
                "minimum": 1
              },
              "burst": {
                "type": "integer",
                "minimum": 1
              },
              "summaries": {
                "type": "object",
                "description": "New market summaries across rolling periods; shared API and MCP account usage.",
                "required": [
                  "rolling24Hours",
                  "rolling7Days",
                  "rolling30Days"
                ],
                "properties": {
                  "rolling24Hours": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "rolling7Days": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "rolling30Days": {
                    "type": "integer",
                    "minimum": 1
                  }
                }
              },
              "setupUrl": {
                "type": "string",
                "format": "uri"
              },
              "limitsUrl": {
                "type": "string",
                "format": "uri"
              },
              "mcpAvailability": {
                "type": "string",
                "enum": [
                  "available"
                ],
                "description": "MCP is available on this plan. Account permissions and usage limits still apply."
              }
            }
          }
        }
      }
    },
    "enterprise": {
      "type": "object",
      "required": [
        "name",
        "pricing",
        "description",
        "quoteUrl"
      ],
      "properties": {
        "name": {
          "const": "Enterprise"
        },
        "pricing": {
          "const": "contact"
        },
        "description": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string"
            },
            "ar": {
              "type": "string"
            }
          },
          "required": [
            "en",
            "ar"
          ]
        },
        "quoteUrl": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}