{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/blueconic/json-schema/channel.json",
  "title": "channel",
  "type": "object",
  "properties": {
    "aliases": {
      "type": "array",
      "description": "The aliases of the channel. Alternative hostnames, only applicable to web channels. For example, an alias of the hostname `www.blueconic.com` could be `blueconic.com`.",
      "items": {
        "type": "string",
        "description": "The aliases of the channel. Alternative hostnames, only applicable to web channels. For example, an alias of the hostname `www.blueconic.com` could be `blueconic.com`."
      },
      "uniqueItems": true
    },
    "creationDate": {
      "type": "string",
      "format": "date-time",
      "description": "The creation date of the object. Datetime in UTC in the https://www.ietf.org/rfc/rfc3339.txt format, example = \"2025-01-22T11:21:33.872Z\".",
      "readOnly": true
    },
    "creator": {
      "$ref": "#/components/schemas/UserBean"
    },
    "description": {
      "type": "string",
      "description": "The description."
    },
    "domain": {
      "$ref": "#/components/schemas/simpleDomain"
    },
    "hostname": {
      "type": "string",
      "description": "The hostname of the channel. For web channels, the hostname of the website, excluding the protocol (e.g. `https://`) and path (e.g. `/`). For mobile channels, the App ID. For email channels, the hostname is empty."
    },
    "id": {
      "type": "string",
      "description": "The object ID."
    },
    "lastModifiedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The last modified date of the object. Datetime in UTC in the https://www.ietf.org/rfc/rfc3339.txt format, example = \"2025-01-22T11:21:33.872Z\".",
      "readOnly": true
    },
    "lastModifiedUser": {
      "$ref": "#/components/schemas/UserBean"
    },
    "lastVisitedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the channel was last visited."
    },
    "logo": {
      "type": "string",
      "description": "The channel logo link."
    },
    "name": {
      "type": "string",
      "description": "The object name."
    },
    "tags": {
      "type": "array",
      "description": "The tags (i.e. labels).",
      "example": "Address",
      "items": {
        "type": "string",
        "description": "The tags (i.e. labels).",
        "example": "Address"
      }
    },
    "type": {
      "type": "string",
      "description": "The type of the channel.",
      "enum": [
        "EMAIL",
        "MOBILE",
        "WEBSITE",
        "CTV"
      ]
    },
    "visitorCount": {
      "type": "integer",
      "format": "int32",
      "description": "The visitor count of the channel."
    }
  }
}