{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cadencz-com/json-schema/cadencz-com-channel-read-schema.json",
  "title": "ChannelRead",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cadencz-com-channels-api-openapi.yml#/components/schemas/ChannelRead",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "workspace_id": {
      "type": "string",
      "title": "Workspace Id"
    },
    "platform": {
      "type": "string",
      "title": "Platform"
    },
    "handle": {
      "type": "string",
      "title": "Handle"
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name"
    },
    "avatar_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avatar Url"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "byo_app": {
      "type": "boolean",
      "title": "Byo App"
    },
    "token_expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Token Expires At"
    },
    "followers": {
      "type": "integer",
      "title": "Followers"
    },
    "capabilities": {
      "additionalProperties": true,
      "type": "object",
      "title": "Capabilities"
    },
    "plan_entitled": {
      "type": "boolean",
      "title": "Plan Entitled",
      "default": true
    },
    "entitlement_status": {
      "type": "string",
      "enum": [
        "available",
        "plan_paused",
        "disconnected"
      ],
      "title": "Entitlement Status",
      "default": "available"
    },
    "plan_pause_reason": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "plan_required",
            "workspace_limit",
            "platform_limit"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Plan Pause Reason"
    }
  },
  "type": "object",
  "required": [
    "id",
    "workspace_id",
    "platform",
    "handle",
    "display_name",
    "avatar_url",
    "status",
    "byo_app",
    "token_expires_at",
    "followers"
  ]
}