{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dialogbrain-com/json-schema/dialogbrain-com-src-api-billing-subscription-response-schema.json",
  "title": "SubscriptionResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dialogbrain-com-billing-api-openapi.yml#/components/schemas/src__api__billing__SubscriptionResponse",
  "properties": {
    "id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Id"
    },
    "plan_id": {
      "type": "string",
      "title": "Plan Id"
    },
    "plan_name": {
      "type": "string",
      "title": "Plan Name"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "price_cents": {
      "type": "integer",
      "title": "Price Cents"
    },
    "ai_actions_monthly": {
      "type": "integer",
      "title": "Ai Actions Monthly"
    },
    "ai_credits_used": {
      "type": "integer",
      "title": "Ai Credits Used"
    },
    "storage_gb": {
      "type": "integer",
      "title": "Storage Gb"
    },
    "storage_used_bytes": {
      "type": "integer",
      "title": "Storage Used Bytes"
    },
    "max_channels": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Channels"
    },
    "features": {
      "items": {},
      "type": "array",
      "title": "Features"
    },
    "current_period_end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Current Period End"
    },
    "cancel_at_period_end": {
      "type": "boolean",
      "title": "Cancel At Period End"
    },
    "trial_end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trial End"
    }
  },
  "type": "object",
  "required": [
    "id",
    "plan_id",
    "plan_name",
    "status",
    "price_cents",
    "ai_actions_monthly",
    "ai_credits_used",
    "storage_gb",
    "storage_used_bytes",
    "max_channels",
    "features",
    "current_period_end",
    "cancel_at_period_end",
    "trial_end"
  ]
}