{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rulebase/json-schema/rulebase-zendesk-brand-schema.json",
  "title": "ZendeskBrand",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rulebase-zendesk-brands-api-openapi.yml#/components/schemas/ZendeskBrand",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "subdomain": {
      "type": "string"
    },
    "external_id": {
      "type": "string"
    },
    "tracking_status": {
      "type": "string",
      "enum": [
        "active",
        "inactive"
      ]
    },
    "help_center_locales": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "avatar_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "teams_count": {
      "type": "integer"
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    },
    "organization_data_source": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "last_synced_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "reason_for_request_conversation_field": {
          "type": [
            "string",
            "null"
          ]
        },
        "import_conversations_enabled": {
          "type": "boolean"
        },
        "data_source": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "type": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "customer_interaction",
                "notification",
                "issue_tracking",
                "knowledge_base",
                "data_warehouse"
              ]
            },
            "customer_interaction_type": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "ticket",
                "sales_call"
              ]
            }
          },
          "required": [
            "id",
            "name",
            "type",
            "customer_interaction_type"
          ]
        },
        "slack_incoming_webhook": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "channel": {
              "type": "string"
            },
            "channel_id": {
              "type": "string"
            },
            "configuration_url": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "channel",
            "channel_id",
            "configuration_url"
          ]
        },
        "complaints_jira_request_type": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "external_id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "external_id",
            "name"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "last_synced_at",
        "reason_for_request_conversation_field",
        "import_conversations_enabled",
        "data_source",
        "slack_incoming_webhook",
        "complaints_jira_request_type"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "subdomain",
    "external_id",
    "tracking_status",
    "help_center_locales",
    "avatar_url",
    "teams_count",
    "created_at",
    "updated_at",
    "organization_data_source"
  ]
}