{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-live-chat-ban-schema.json",
  "title": "LiveChatBan",
  "description": "A `__liveChatBan__` resource represents a ban for a YouTube live chat.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtube-youtube-live-chat-bans-api-openapi.yml#/components/schemas/LiveChatBan",
  "type": "object",
  "properties": {
    "kind": {
      "description": "Identifies what kind of resource this is. Value: the fixed string `\"youtube#liveChatBan\"`.",
      "default": "youtube#liveChatBan",
      "type": "string"
    },
    "etag": {
      "type": "string",
      "description": "Etag of this resource."
    },
    "id": {
      "description": "The ID that YouTube assigns to uniquely identify the ban.",
      "type": "string"
    },
    "snippet": {
      "$ref": "#/$defs/LiveChatBanSnippet",
      "description": "The `snippet` object contains basic details about the ban."
    }
  },
  "$defs": {
    "ChannelProfileDetails": {
      "properties": {
        "channelId": {
          "description": "The YouTube channel ID.",
          "type": "string"
        },
        "displayName": {
          "description": "The channel's display name.",
          "type": "string"
        },
        "channelUrl": {
          "description": "The channel's URL.",
          "type": "string"
        },
        "profileImageUrl": {
          "type": "string",
          "description": "The channels's avatar URL."
        }
      },
      "type": "object"
    },
    "LiveChatBanSnippet": {
      "type": "object",
      "properties": {
        "liveChatId": {
          "description": "The chat this ban is pertinent to.",
          "type": "string"
        },
        "banDurationSeconds": {
          "description": "The duration of a ban, only filled if the ban has type TEMPORARY.",
          "type": "string",
          "format": "uint64"
        },
        "bannedUserDetails": {
          "$ref": "#/$defs/ChannelProfileDetails"
        },
        "type": {
          "description": "The type of ban.",
          "enum": [
            "liveChatBanTypeUnspecified",
            "permanent",
            "temporary"
          ],
          "type": "string"
        }
      }
    }
  }
}