{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendly-now/json-schema/sendly-now-slack-connection-schema.json",
  "title": "SlackConnection",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendly-now-connections-api-openapi.yml#/components/schemas/SlackConnection",
  "properties": {
    "data": {
      "properties": {
        "configured": {
          "type": "boolean"
        },
        "eventKinds": {
          "items": {
            "properties": {
              "description": {
                "type": "string"
              },
              "kind": {
                "enum": [
                  "bounce_spike",
                  "complaint_spike",
                  "delivery_failures",
                  "campaign_sent",
                  "domain_verified",
                  "domain_failed",
                  "suppression_added",
                  "billing_limit_warning",
                  "billing_limit_exceeded"
                ],
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "label",
              "description"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "installation": {
          "properties": {
            "channelId": {
              "type": "string"
            },
            "channelName": {
              "type": "string"
            },
            "createdAt": {
              "format": "date-time",
              "type": "string"
            },
            "eventKinds": {
              "items": {
                "enum": [
                  "bounce_spike",
                  "complaint_spike",
                  "delivery_failures",
                  "campaign_sent",
                  "domain_verified",
                  "domain_failed",
                  "suppression_added",
                  "billing_limit_warning",
                  "billing_limit_exceeded"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "scopes": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "teamId": {
              "type": "string"
            },
            "teamName": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "teamId",
            "teamName",
            "channelId",
            "channelName",
            "scopes",
            "eventKinds",
            "createdAt"
          ],
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "configured",
        "installation",
        "eventKinds"
      ],
      "type": "object"
    },
    "success": {
      "enum": [
        true
      ],
      "type": "boolean"
    }
  },
  "required": [
    "success",
    "data"
  ],
  "type": "object"
}