{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/converly-io/json-schema/converly-io-trigger-types-response-schema.json",
  "title": "TriggerTypesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/converly-io-trigger-types-api-openapi.yml#/components/schemas/TriggerTypesResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TriggerTypeItem"
      }
    }
  },
  "required": [
    "data"
  ],
  "$defs": {
    "TriggerTypeItem": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "form_submission",
            "chat_started",
            "meeting_booked",
            "purchase_completed",
            "custom_event"
          ]
        },
        "name": {
          "type": "string"
        },
        "display_label": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "providers_meta": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "display_label": {
                "type": "string"
              },
              "icon_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "display_label",
              "icon_url",
              "category"
            ]
          }
        },
        "supports_filters": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "filters": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "string",
                  "object"
                ]
              },
              "required": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "key",
              "type",
              "required",
              "label"
            ]
          }
        },
        "at_least_one_filter_required": {
          "type": "boolean"
        }
      },
      "required": [
        "type",
        "name",
        "display_label",
        "category",
        "providers",
        "providers_meta",
        "supports_filters",
        "filters"
      ]
    }
  }
}