# MCP tool reference

1 callable tools.

Use tools/call at https://mcp.schedulerzero.com/mcp with the exact tool name and arguments below. The /tools/ paths in this view are documentation identifiers, not HTTP endpoints. Request execution is disabled for this reference.

Inputs are shown for personal API keys (bound) and for OAuth/delegated agents. Output schemas describe MCP structuredContent: native objects pass through; arrays, scalars and null use a data wrapper. Text content retains the native JSON result.

[Connect a client](/mcp/connect) · [Authentication and authorization](/authentication) · [Generated auth guide](/auth.md) · [Download tool catalog](/mcp-catalog.json) · [Agent documentation](/llms.txt)

## manage_webhooks

Manage Workspace webhooks, exact custom headers, campaign/tag/folder/name inclusion and exclusions, label scope, sample tests, server-filtered delivery history and explicit retries. campaignScope modes: all, campaigns, tags (match any/all selected tags), folders (any selected subtree), names (terms, match any/all), rules (nested AND/OR/NOT). In rules mode, match all/any joins conditions; each rule has field campaigns/folders/tags with ids, names with terms, tagged/filed with boolean value, or group with rules. Tags/names accept match any/all; groups default to all. Every rule accepts exclude for NOT. A campaign has many tags but one folder. All modes support excludeCampaignIds, excludeTagIds, excludeFolderIds, excludeNameContains, taggedOnly and filedOnly. Global exclusions win. Deleted references fail closed even inside NOT/OR; folder membership follows live moves.

Use to manage event subscriptions and to fire a test delivery after the target URL is configured.

Deletion is a separate confirmed capability; the signing secret is write-only and never returned after creation.

Obtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.

Scopes: webhook:read, webhook:create, webhook:update

Risk: write; confirmation: explicit; idempotency: supported.

### Input schema (personal API key)

```json
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid"
    },
    "action": {
      "type": "string",
      "enum": [
        "list",
        "create",
        "update",
        "test",
        "deliveries",
        "delivery",
        "retry"
      ]
    },
    "cursor": {
      "$ref": "#/$defs/Cursor"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "webhookId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid"
    },
    "deliveryId": {
      "type": "string"
    },
    "query": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "order": {
              "type": "string",
              "enum": [
                "newest",
                "oldest"
              ]
            },
            "cursor": {
              "$ref": "#/$defs/Cursor"
            },
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "enabled": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            },
            "eventType": {
              "type": "string",
              "enum": [
                "first_email_reply",
                "all_email_replies",
                "all_positive_replies",
                "all_emails_sent",
                "all_bounced_emails",
                "all_delivery_updates",
                "campaign_auto_paused",
                "marked_interested",
                "marked_not_interested",
                "marked_out_of_office",
                "marked_automatic_reply",
                "marked_meeting_booked",
                "marked_meeting_completed",
                "marked_wrong_person",
                "marked_closed",
                "marked_same_company_lead",
                "label_applied",
                "label_removed",
                "reminder_created",
                "reminder_due",
                "reminder_cancelled",
                "unibox_email_sent"
              ]
            },
            "search": {
              "$ref": "#/$defs/ShortText"
            }
          },
          "patternProperties": {
            "^(?!(?:order|cursor|limit|enabled|eventType|search)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "order",
              "cursor",
              "limit",
              "enabled",
              "eventType",
              "search"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "cursor": {
              "$ref": "#/$defs/Cursor"
            },
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "webhookId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "search": {
              "$ref": "#/$defs/ShortText"
            },
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "sending",
                "delivered",
                "failed",
                "uncertain",
                "cancelled"
              ]
            },
            "eventType": {
              "type": "string",
              "enum": [
                "first_email_reply",
                "all_email_replies",
                "all_positive_replies",
                "all_emails_sent",
                "all_bounced_emails",
                "all_delivery_updates",
                "campaign_auto_paused",
                "marked_interested",
                "marked_not_interested",
                "marked_out_of_office",
                "marked_automatic_reply",
                "marked_meeting_booked",
                "marked_meeting_completed",
                "marked_wrong_person",
                "marked_closed",
                "marked_same_company_lead",
                "label_applied",
                "label_removed",
                "reminder_created",
                "reminder_due",
                "reminder_cancelled",
                "unibox_email_sent"
              ]
            },
            "mode": {
              "type": "string",
              "enum": [
                "live",
                "test"
              ]
            },
            "from": {
              "$ref": "#/$defs/UtcDateTimeEncoded"
            },
            "to": {
              "$ref": "#/$defs/UtcDateTimeEncoded"
            },
            "order": {
              "type": "string",
              "enum": [
                "newest",
                "oldest"
              ]
            }
          },
          "patternProperties": {
            "^(?!(?:cursor|limit|webhookId|search|status|eventType|mode|from|to|order)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "cursor",
              "limit",
              "webhookId",
              "search",
              "status",
              "eventType",
              "mode",
              "from",
              "to",
              "order"
            ]
          }
        }
      ]
    },
    "input": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "url": {
              "type": "string",
              "maxLength": 2048
            },
            "campaignId": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ]
            },
            "campaignScope": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "campaigns"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "tags"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "folders"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "names"
                      ]
                    },
                    "terms": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "terms"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "terms",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "rules"
                      ]
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "campaigns"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "folders"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "tags"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "match",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "names"
                                ]
                              },
                              "terms": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "terms"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "terms",
                                "match",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "tagged"
                                ]
                              },
                              "value": {
                                "type": "boolean"
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "value",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "filed"
                                ]
                              },
                              "value": {
                                "type": "boolean"
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "value",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "group"
                                ]
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "campaigns"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "folders"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tags"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "names"
                                          ]
                                        },
                                        "terms": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 100
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "terms"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "terms",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tagged"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "filed"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "group"
                                          ]
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "rules": {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "campaigns"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "folders"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tags"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "names"
                                                    ]
                                                  },
                                                  "terms": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 100
                                                    },
                                                    "maxItems": 20,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "terms"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "terms",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tagged"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "filed"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "rules"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "match",
                                          "rules",
                                          "exclude"
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "rules"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "match",
                                "rules",
                                "exclude"
                              ]
                            }
                          }
                        ]
                      },
                      "maxItems": 20,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "rules"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "rules",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                }
              ]
            },
            "labelIds": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "maxItems": 100
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096,
                        "pattern": "^[\\x20-\\x7e]*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": true
              },
              "maxItems": 20
            },
            "eventTypes": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "first_email_reply",
                  "all_email_replies",
                  "all_positive_replies",
                  "all_emails_sent",
                  "all_bounced_emails",
                  "all_delivery_updates",
                  "campaign_auto_paused",
                  "marked_interested",
                  "marked_not_interested",
                  "marked_out_of_office",
                  "marked_automatic_reply",
                  "marked_meeting_booked",
                  "marked_meeting_completed",
                  "marked_wrong_person",
                  "marked_closed",
                  "marked_same_company_lead",
                  "label_applied",
                  "label_removed",
                  "reminder_created",
                  "reminder_due",
                  "reminder_cancelled",
                  "unibox_email_sent"
                ]
              },
              "minItems": 1,
              "maxItems": 64
            },
            "isSlackWebhook": {
              "type": "boolean"
            },
            "signing": {
              "type": "string",
              "enum": [
                "unsigned",
                "generate"
              ]
            }
          },
          "required": [
            "name",
            "url",
            "eventTypes"
          ],
          "patternProperties": {
            "^(?!(?:name|url|campaignId|campaignScope|labelIds|headers|eventTypes|isSlackWebhook|signing)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "name",
              "url",
              "campaignId",
              "campaignScope",
              "labelIds",
              "headers",
              "eventTypes",
              "isSlackWebhook",
              "signing"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "expectedRevision": {
              "type": "integer"
            },
            "campaignScope": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "campaigns"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "tags"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "folders"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "names"
                      ]
                    },
                    "terms": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "terms"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "terms",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "rules"
                      ]
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "campaigns"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "folders"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "tags"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "match",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "names"
                                ]
                              },
                              "terms": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "terms"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "terms",
                                "match",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "tagged"
                                ]
                              },
                              "value": {
                                "type": "boolean"
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "value",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "filed"
                                ]
                              },
                              "value": {
                                "type": "boolean"
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "value",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "group"
                                ]
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "campaigns"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "folders"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tags"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "names"
                                          ]
                                        },
                                        "terms": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 100
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "terms"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "terms",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tagged"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "filed"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "group"
                                          ]
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "rules": {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "campaigns"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "folders"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tags"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "names"
                                                    ]
                                                  },
                                                  "terms": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 100
                                                    },
                                                    "maxItems": 20,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "terms"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "terms",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tagged"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "filed"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "rules"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "match",
                                          "rules",
                                          "exclude"
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "rules"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "match",
                                "rules",
                                "exclude"
                              ]
                            }
                          }
                        ]
                      },
                      "maxItems": 20,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "rules"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "rules",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                }
              ]
            },
            "labelIds": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "maxItems": 100
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096,
                        "pattern": "^[\\x20-\\x7e]*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": true
              },
              "maxItems": 20
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "url": {
              "type": "string",
              "maxLength": 2048
            },
            "campaignId": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ]
            },
            "eventTypes": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "first_email_reply",
                  "all_email_replies",
                  "all_positive_replies",
                  "all_emails_sent",
                  "all_bounced_emails",
                  "all_delivery_updates",
                  "campaign_auto_paused",
                  "marked_interested",
                  "marked_not_interested",
                  "marked_out_of_office",
                  "marked_automatic_reply",
                  "marked_meeting_booked",
                  "marked_meeting_completed",
                  "marked_wrong_person",
                  "marked_closed",
                  "marked_same_company_lead",
                  "label_applied",
                  "label_removed",
                  "reminder_created",
                  "reminder_due",
                  "reminder_cancelled",
                  "unibox_email_sent"
                ]
              },
              "minItems": 1,
              "maxItems": 64
            },
            "isSlackWebhook": {
              "type": "boolean"
            },
            "enabled": {
              "type": "boolean"
            },
            "signing": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "clear"
                  ]
                }
              ]
            }
          },
          "patternProperties": {
            "^(?!(?:expectedRevision|campaignScope|labelIds|headers|name|url|campaignId|eventTypes|isSlackWebhook|enabled|signing)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "expectedRevision",
              "campaignScope",
              "labelIds",
              "headers",
              "name",
              "url",
              "campaignId",
              "eventTypes",
              "isSlackWebhook",
              "enabled",
              "signing"
            ]
          },
          "minProperties": 1,
          "maxProperties": 11
        },
        {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "webhookId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "expectedRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "eventType": {
                  "type": "string",
                  "enum": [
                    "first_email_reply",
                    "all_email_replies",
                    "all_positive_replies",
                    "all_emails_sent",
                    "all_bounced_emails",
                    "all_delivery_updates",
                    "campaign_auto_paused",
                    "marked_interested",
                    "marked_not_interested",
                    "marked_out_of_office",
                    "marked_automatic_reply",
                    "marked_meeting_booked",
                    "marked_meeting_completed",
                    "marked_wrong_person",
                    "marked_closed",
                    "marked_same_company_lead",
                    "label_applied",
                    "label_removed",
                    "reminder_created",
                    "reminder_due",
                    "reminder_cancelled",
                    "unibox_email_sent"
                  ]
                }
              },
              "required": [
                "webhookId"
              ],
              "patternProperties": {
                "^(?!(?:webhookId|expectedRevision|eventType)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "webhookId",
                  "expectedRevision",
                  "eventType"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "maxLength": 2048
                },
                "secret": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "campaignId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "eventTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "first_email_reply",
                      "all_email_replies",
                      "all_positive_replies",
                      "all_emails_sent",
                      "all_bounced_emails",
                      "all_delivery_updates",
                      "campaign_auto_paused",
                      "marked_interested",
                      "marked_not_interested",
                      "marked_out_of_office",
                      "marked_automatic_reply",
                      "marked_meeting_booked",
                      "marked_meeting_completed",
                      "marked_wrong_person",
                      "marked_closed",
                      "marked_same_company_lead",
                      "label_applied",
                      "label_removed",
                      "reminder_created",
                      "reminder_due",
                      "reminder_cancelled",
                      "unibox_email_sent"
                    ]
                  },
                  "minItems": 1,
                  "maxItems": 64
                },
                "isSlackWebhook": {
                  "type": "boolean"
                }
              },
              "required": [
                "url",
                "eventTypes"
              ],
              "patternProperties": {
                "^(?!(?:url|secret|campaignId|eventTypes|isSlackWebhook)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "url",
                  "secret",
                  "campaignId",
                  "eventTypes",
                  "isSlackWebhook"
                ]
              }
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "expectedRevision": {
              "type": "integer"
            },
            "acknowledgeDuplicateRisk": {
              "type": "boolean"
            }
          },
          "required": [
            "expectedRevision",
            "acknowledgeDuplicateRisk"
          ],
          "patternProperties": {
            "^(?!(?:expectedRevision|acknowledgeDuplicateRisk)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "expectedRevision",
              "acknowledgeDuplicateRisk"
            ]
          }
        }
      ]
    }
  },
  "required": [
    "workspaceId",
    "action"
  ],
  "patternProperties": {
    "^(?!(?:workspaceId|action|cursor|limit|webhookId|deliveryId|query|input)$)[\\s\\S]*$": false
  },
  "additionalProperties": true,
  "propertyNames": {
    "type": "string",
    "enum": [
      "workspaceId",
      "action",
      "cursor",
      "limit",
      "webhookId",
      "deliveryId",
      "query",
      "input"
    ]
  },
  "$defs": {
    "Cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "ShortText": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "UtcDateTimeEncoded": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
    },
    "NonEmptyString": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096
    }
  }
}
```

### Input schema (OAuth / delegated agent)

```json
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid"
    },
    "action": {
      "type": "string",
      "enum": [
        "list",
        "create",
        "update",
        "test",
        "deliveries",
        "delivery",
        "retry"
      ]
    },
    "cursor": {
      "$ref": "#/$defs/Cursor"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "webhookId": {
      "type": "string",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
      "format": "uuid"
    },
    "deliveryId": {
      "type": "string"
    },
    "query": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "order": {
              "type": "string",
              "enum": [
                "newest",
                "oldest"
              ]
            },
            "cursor": {
              "$ref": "#/$defs/Cursor"
            },
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "enabled": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            },
            "eventType": {
              "type": "string",
              "enum": [
                "first_email_reply",
                "all_email_replies",
                "all_positive_replies",
                "all_emails_sent",
                "all_bounced_emails",
                "all_delivery_updates",
                "campaign_auto_paused",
                "marked_interested",
                "marked_not_interested",
                "marked_out_of_office",
                "marked_automatic_reply",
                "marked_meeting_booked",
                "marked_meeting_completed",
                "marked_wrong_person",
                "marked_closed",
                "marked_same_company_lead",
                "label_applied",
                "label_removed",
                "reminder_created",
                "reminder_due",
                "reminder_cancelled",
                "unibox_email_sent"
              ]
            },
            "search": {
              "$ref": "#/$defs/ShortText"
            }
          },
          "patternProperties": {
            "^(?!(?:order|cursor|limit|enabled|eventType|search)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "order",
              "cursor",
              "limit",
              "enabled",
              "eventType",
              "search"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "cursor": {
              "$ref": "#/$defs/Cursor"
            },
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "webhookId": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "search": {
              "$ref": "#/$defs/ShortText"
            },
            "status": {
              "type": "string",
              "enum": [
                "pending",
                "sending",
                "delivered",
                "failed",
                "uncertain",
                "cancelled"
              ]
            },
            "eventType": {
              "type": "string",
              "enum": [
                "first_email_reply",
                "all_email_replies",
                "all_positive_replies",
                "all_emails_sent",
                "all_bounced_emails",
                "all_delivery_updates",
                "campaign_auto_paused",
                "marked_interested",
                "marked_not_interested",
                "marked_out_of_office",
                "marked_automatic_reply",
                "marked_meeting_booked",
                "marked_meeting_completed",
                "marked_wrong_person",
                "marked_closed",
                "marked_same_company_lead",
                "label_applied",
                "label_removed",
                "reminder_created",
                "reminder_due",
                "reminder_cancelled",
                "unibox_email_sent"
              ]
            },
            "mode": {
              "type": "string",
              "enum": [
                "live",
                "test"
              ]
            },
            "from": {
              "$ref": "#/$defs/UtcDateTimeEncoded"
            },
            "to": {
              "$ref": "#/$defs/UtcDateTimeEncoded"
            },
            "order": {
              "type": "string",
              "enum": [
                "newest",
                "oldest"
              ]
            }
          },
          "patternProperties": {
            "^(?!(?:cursor|limit|webhookId|search|status|eventType|mode|from|to|order)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "cursor",
              "limit",
              "webhookId",
              "search",
              "status",
              "eventType",
              "mode",
              "from",
              "to",
              "order"
            ]
          }
        }
      ]
    },
    "input": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "url": {
              "type": "string",
              "maxLength": 2048
            },
            "campaignId": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ]
            },
            "campaignScope": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "campaigns"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "tags"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "folders"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "names"
                      ]
                    },
                    "terms": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "terms"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "terms",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "rules"
                      ]
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "campaigns"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "folders"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "tags"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "match",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "names"
                                ]
                              },
                              "terms": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "terms"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "terms",
                                "match",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "tagged"
                                ]
                              },
                              "value": {
                                "type": "boolean"
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "value",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "filed"
                                ]
                              },
                              "value": {
                                "type": "boolean"
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "value",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "group"
                                ]
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "campaigns"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "folders"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tags"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "names"
                                          ]
                                        },
                                        "terms": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 100
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "terms"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "terms",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tagged"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "filed"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "group"
                                          ]
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "rules": {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "campaigns"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "folders"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tags"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "names"
                                                    ]
                                                  },
                                                  "terms": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 100
                                                    },
                                                    "maxItems": 20,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "terms"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "terms",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tagged"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "filed"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "rules"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "match",
                                          "rules",
                                          "exclude"
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "rules"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "match",
                                "rules",
                                "exclude"
                              ]
                            }
                          }
                        ]
                      },
                      "maxItems": 20,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "rules"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "rules",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                }
              ]
            },
            "labelIds": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "maxItems": 100
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096,
                        "pattern": "^[\\x20-\\x7e]*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": true
              },
              "maxItems": 20
            },
            "eventTypes": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "first_email_reply",
                  "all_email_replies",
                  "all_positive_replies",
                  "all_emails_sent",
                  "all_bounced_emails",
                  "all_delivery_updates",
                  "campaign_auto_paused",
                  "marked_interested",
                  "marked_not_interested",
                  "marked_out_of_office",
                  "marked_automatic_reply",
                  "marked_meeting_booked",
                  "marked_meeting_completed",
                  "marked_wrong_person",
                  "marked_closed",
                  "marked_same_company_lead",
                  "label_applied",
                  "label_removed",
                  "reminder_created",
                  "reminder_due",
                  "reminder_cancelled",
                  "unibox_email_sent"
                ]
              },
              "minItems": 1,
              "maxItems": 64
            },
            "isSlackWebhook": {
              "type": "boolean"
            },
            "signing": {
              "type": "string",
              "enum": [
                "unsigned",
                "generate"
              ]
            }
          },
          "required": [
            "name",
            "url",
            "eventTypes"
          ],
          "patternProperties": {
            "^(?!(?:name|url|campaignId|campaignScope|labelIds|headers|eventTypes|isSlackWebhook|signing)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "name",
              "url",
              "campaignId",
              "campaignScope",
              "labelIds",
              "headers",
              "eventTypes",
              "isSlackWebhook",
              "signing"
            ]
          }
        },
        {
          "type": "object",
          "properties": {
            "expectedRevision": {
              "type": "integer"
            },
            "campaignScope": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "campaigns"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "tags"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "folders"
                      ]
                    },
                    "ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100,
                      "minItems": 1
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "ids"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "ids",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "names"
                      ]
                    },
                    "terms": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "terms"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "terms",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "rules"
                      ]
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "campaigns"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "folders"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "tags"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "ids",
                                "match",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "names"
                                ]
                              },
                              "terms": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "terms"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "terms",
                                "match",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "tagged"
                                ]
                              },
                              "value": {
                                "type": "boolean"
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "value",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "filed"
                                ]
                              },
                              "value": {
                                "type": "boolean"
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "value",
                                "exclude"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string",
                                "enum": [
                                  "group"
                                ]
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "campaigns"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "folders"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tags"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "names"
                                          ]
                                        },
                                        "terms": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 100
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "terms"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "terms",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tagged"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "filed"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "group"
                                          ]
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "rules": {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "campaigns"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "folders"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tags"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "names"
                                                    ]
                                                  },
                                                  "terms": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 100
                                                    },
                                                    "maxItems": 20,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "terms"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "terms",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tagged"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "filed"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "rules"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "match",
                                          "rules",
                                          "exclude"
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "exclude": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "field",
                              "rules"
                            ],
                            "patternProperties": {
                              "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "field",
                                "match",
                                "rules",
                                "exclude"
                              ]
                            }
                          }
                        ]
                      },
                      "maxItems": 20,
                      "minItems": 1
                    },
                    "match": {
                      "type": "string",
                      "enum": [
                        "any",
                        "all"
                      ]
                    },
                    "excludeCampaignIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeTagIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeFolderIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "maxItems": 100
                    },
                    "excludeNameContains": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "maxItems": 20
                    },
                    "taggedOnly": {
                      "type": "boolean"
                    },
                    "filedOnly": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "mode",
                    "rules"
                  ],
                  "patternProperties": {
                    "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "mode",
                      "rules",
                      "match",
                      "excludeCampaignIds",
                      "excludeTagIds",
                      "excludeFolderIds",
                      "excludeNameContains",
                      "taggedOnly",
                      "filedOnly"
                    ]
                  }
                }
              ]
            },
            "labelIds": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                "format": "uuid"
              },
              "maxItems": 100
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096,
                        "pattern": "^[\\x20-\\x7e]*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": true
              },
              "maxItems": 20
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "url": {
              "type": "string",
              "maxLength": 2048
            },
            "campaignId": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ]
            },
            "eventTypes": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "first_email_reply",
                  "all_email_replies",
                  "all_positive_replies",
                  "all_emails_sent",
                  "all_bounced_emails",
                  "all_delivery_updates",
                  "campaign_auto_paused",
                  "marked_interested",
                  "marked_not_interested",
                  "marked_out_of_office",
                  "marked_automatic_reply",
                  "marked_meeting_booked",
                  "marked_meeting_completed",
                  "marked_wrong_person",
                  "marked_closed",
                  "marked_same_company_lead",
                  "label_applied",
                  "label_removed",
                  "reminder_created",
                  "reminder_due",
                  "reminder_cancelled",
                  "unibox_email_sent"
                ]
              },
              "minItems": 1,
              "maxItems": 64
            },
            "isSlackWebhook": {
              "type": "boolean"
            },
            "enabled": {
              "type": "boolean"
            },
            "signing": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "clear"
                  ]
                }
              ]
            }
          },
          "patternProperties": {
            "^(?!(?:expectedRevision|campaignScope|labelIds|headers|name|url|campaignId|eventTypes|isSlackWebhook|enabled|signing)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "expectedRevision",
              "campaignScope",
              "labelIds",
              "headers",
              "name",
              "url",
              "campaignId",
              "eventTypes",
              "isSlackWebhook",
              "enabled",
              "signing"
            ]
          },
          "minProperties": 1,
          "maxProperties": 11
        },
        {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "webhookId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "expectedRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "eventType": {
                  "type": "string",
                  "enum": [
                    "first_email_reply",
                    "all_email_replies",
                    "all_positive_replies",
                    "all_emails_sent",
                    "all_bounced_emails",
                    "all_delivery_updates",
                    "campaign_auto_paused",
                    "marked_interested",
                    "marked_not_interested",
                    "marked_out_of_office",
                    "marked_automatic_reply",
                    "marked_meeting_booked",
                    "marked_meeting_completed",
                    "marked_wrong_person",
                    "marked_closed",
                    "marked_same_company_lead",
                    "label_applied",
                    "label_removed",
                    "reminder_created",
                    "reminder_due",
                    "reminder_cancelled",
                    "unibox_email_sent"
                  ]
                }
              },
              "required": [
                "webhookId"
              ],
              "patternProperties": {
                "^(?!(?:webhookId|expectedRevision|eventType)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "webhookId",
                  "expectedRevision",
                  "eventType"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "maxLength": 2048
                },
                "secret": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "campaignId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "eventTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "first_email_reply",
                      "all_email_replies",
                      "all_positive_replies",
                      "all_emails_sent",
                      "all_bounced_emails",
                      "all_delivery_updates",
                      "campaign_auto_paused",
                      "marked_interested",
                      "marked_not_interested",
                      "marked_out_of_office",
                      "marked_automatic_reply",
                      "marked_meeting_booked",
                      "marked_meeting_completed",
                      "marked_wrong_person",
                      "marked_closed",
                      "marked_same_company_lead",
                      "label_applied",
                      "label_removed",
                      "reminder_created",
                      "reminder_due",
                      "reminder_cancelled",
                      "unibox_email_sent"
                    ]
                  },
                  "minItems": 1,
                  "maxItems": 64
                },
                "isSlackWebhook": {
                  "type": "boolean"
                }
              },
              "required": [
                "url",
                "eventTypes"
              ],
              "patternProperties": {
                "^(?!(?:url|secret|campaignId|eventTypes|isSlackWebhook)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "url",
                  "secret",
                  "campaignId",
                  "eventTypes",
                  "isSlackWebhook"
                ]
              }
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "expectedRevision": {
              "type": "integer"
            },
            "acknowledgeDuplicateRisk": {
              "type": "boolean"
            }
          },
          "required": [
            "expectedRevision",
            "acknowledgeDuplicateRisk"
          ],
          "patternProperties": {
            "^(?!(?:expectedRevision|acknowledgeDuplicateRisk)$)[\\s\\S]*$": false
          },
          "additionalProperties": true,
          "propertyNames": {
            "type": "string",
            "enum": [
              "expectedRevision",
              "acknowledgeDuplicateRisk"
            ]
          }
        }
      ]
    }
  },
  "required": [
    "workspaceId",
    "action"
  ],
  "patternProperties": {
    "^(?!(?:workspaceId|action|cursor|limit|webhookId|deliveryId|query|input)$)[\\s\\S]*$": false
  },
  "additionalProperties": true,
  "propertyNames": {
    "type": "string",
    "enum": [
      "workspaceId",
      "action",
      "cursor",
      "limit",
      "webhookId",
      "deliveryId",
      "query",
      "input"
    ]
  },
  "$defs": {
    "Cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "ShortText": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "UtcDateTimeEncoded": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
    },
    "NonEmptyString": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096
    }
  }
}
```

### Output schema (structuredContent)

```json
{
  "$defs": {
    "HttpUrl": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
    },
    "ShortText": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "NonEmptyString": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096
    },
    "UtcDateTimeEncoded": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
    },
    "Cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "OpaqueId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    }
  },
  "type": "object",
  "anyOf": [
    {
      "allOf": [
        {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "url": {
                        "$ref": "#/$defs/HttpUrl"
                      },
                      "campaignId": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "campaignName": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/ShortText"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "eventTypes": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "first_email_reply",
                            "all_email_replies",
                            "all_positive_replies",
                            "all_emails_sent",
                            "all_bounced_emails",
                            "all_delivery_updates",
                            "campaign_auto_paused",
                            "marked_interested",
                            "marked_not_interested",
                            "marked_out_of_office",
                            "marked_automatic_reply",
                            "marked_meeting_booked",
                            "marked_meeting_completed",
                            "marked_wrong_person",
                            "marked_closed",
                            "marked_same_company_lead",
                            "label_applied",
                            "label_removed",
                            "reminder_created",
                            "reminder_due",
                            "reminder_cancelled",
                            "unibox_email_sent"
                          ]
                        },
                        "minItems": 1,
                        "maxItems": 64
                      },
                      "isSlackWebhook": {
                        "type": "boolean"
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "revision": {
                        "type": "integer"
                      },
                      "headerNames": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "campaignScope": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "all"
                                ]
                              },
                              "excludeCampaignIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeTagIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeFolderIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeNameContains": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20
                              },
                              "taggedOnly": {
                                "type": "boolean"
                              },
                              "filedOnly": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "mode"
                            ],
                            "patternProperties": {
                              "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "mode",
                                "excludeCampaignIds",
                                "excludeTagIds",
                                "excludeFolderIds",
                                "excludeNameContains",
                                "taggedOnly",
                                "filedOnly"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "campaigns"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "excludeCampaignIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeTagIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeFolderIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeNameContains": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20
                              },
                              "taggedOnly": {
                                "type": "boolean"
                              },
                              "filedOnly": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "mode",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "mode",
                                "ids",
                                "excludeCampaignIds",
                                "excludeTagIds",
                                "excludeFolderIds",
                                "excludeNameContains",
                                "taggedOnly",
                                "filedOnly"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "tags"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "excludeCampaignIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeTagIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeFolderIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeNameContains": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20
                              },
                              "taggedOnly": {
                                "type": "boolean"
                              },
                              "filedOnly": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "mode",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "mode",
                                "ids",
                                "match",
                                "excludeCampaignIds",
                                "excludeTagIds",
                                "excludeFolderIds",
                                "excludeNameContains",
                                "taggedOnly",
                                "filedOnly"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "folders"
                                ]
                              },
                              "ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100,
                                "minItems": 1
                              },
                              "excludeCampaignIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeTagIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeFolderIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeNameContains": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20
                              },
                              "taggedOnly": {
                                "type": "boolean"
                              },
                              "filedOnly": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "mode",
                              "ids"
                            ],
                            "patternProperties": {
                              "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "mode",
                                "ids",
                                "excludeCampaignIds",
                                "excludeTagIds",
                                "excludeFolderIds",
                                "excludeNameContains",
                                "taggedOnly",
                                "filedOnly"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "names"
                                ]
                              },
                              "terms": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "excludeCampaignIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeTagIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeFolderIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeNameContains": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20
                              },
                              "taggedOnly": {
                                "type": "boolean"
                              },
                              "filedOnly": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "mode",
                              "terms"
                            ],
                            "patternProperties": {
                              "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "mode",
                                "terms",
                                "match",
                                "excludeCampaignIds",
                                "excludeTagIds",
                                "excludeFolderIds",
                                "excludeNameContains",
                                "taggedOnly",
                                "filedOnly"
                              ]
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "rules"
                                ]
                              },
                              "rules": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "campaigns"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "folders"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tags"
                                          ]
                                        },
                                        "ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                            "format": "uuid"
                                          },
                                          "maxItems": 100,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "ids"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "ids",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "names"
                                          ]
                                        },
                                        "terms": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 100
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "terms"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "terms",
                                          "match",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "tagged"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "filed"
                                          ]
                                        },
                                        "value": {
                                          "type": "boolean"
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "value",
                                          "exclude"
                                        ]
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string",
                                          "enum": [
                                            "group"
                                          ]
                                        },
                                        "match": {
                                          "type": "string",
                                          "enum": [
                                            "any",
                                            "all"
                                          ]
                                        },
                                        "rules": {
                                          "type": "array",
                                          "items": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "campaigns"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "folders"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tags"
                                                    ]
                                                  },
                                                  "ids": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                      "format": "uuid"
                                                    },
                                                    "maxItems": 100,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "ids"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "ids",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "names"
                                                    ]
                                                  },
                                                  "terms": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 100
                                                    },
                                                    "maxItems": 20,
                                                    "minItems": 1
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "terms"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "terms",
                                                    "match",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "tagged"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "filed"
                                                    ]
                                                  },
                                                  "value": {
                                                    "type": "boolean"
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "value"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "value",
                                                    "exclude"
                                                  ]
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "field": {
                                                    "type": "string",
                                                    "enum": [
                                                      "group"
                                                    ]
                                                  },
                                                  "match": {
                                                    "type": "string",
                                                    "enum": [
                                                      "any",
                                                      "all"
                                                    ]
                                                  },
                                                  "rules": {
                                                    "type": "array",
                                                    "items": {
                                                      "anyOf": [
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "field": {
                                                              "type": "string",
                                                              "enum": [
                                                                "campaigns"
                                                              ]
                                                            },
                                                            "ids": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string",
                                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                                "format": "uuid"
                                                              },
                                                              "maxItems": 100,
                                                              "minItems": 1
                                                            },
                                                            "exclude": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "field",
                                                            "ids"
                                                          ],
                                                          "patternProperties": {
                                                            "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                          },
                                                          "additionalProperties": true,
                                                          "propertyNames": {
                                                            "type": "string",
                                                            "enum": [
                                                              "field",
                                                              "ids",
                                                              "exclude"
                                                            ]
                                                          }
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "field": {
                                                              "type": "string",
                                                              "enum": [
                                                                "folders"
                                                              ]
                                                            },
                                                            "ids": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string",
                                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                                "format": "uuid"
                                                              },
                                                              "maxItems": 100,
                                                              "minItems": 1
                                                            },
                                                            "exclude": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "field",
                                                            "ids"
                                                          ],
                                                          "patternProperties": {
                                                            "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                          },
                                                          "additionalProperties": true,
                                                          "propertyNames": {
                                                            "type": "string",
                                                            "enum": [
                                                              "field",
                                                              "ids",
                                                              "exclude"
                                                            ]
                                                          }
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "field": {
                                                              "type": "string",
                                                              "enum": [
                                                                "tags"
                                                              ]
                                                            },
                                                            "ids": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string",
                                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                                "format": "uuid"
                                                              },
                                                              "maxItems": 100,
                                                              "minItems": 1
                                                            },
                                                            "match": {
                                                              "type": "string",
                                                              "enum": [
                                                                "any",
                                                                "all"
                                                              ]
                                                            },
                                                            "exclude": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "field",
                                                            "ids"
                                                          ],
                                                          "patternProperties": {
                                                            "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                          },
                                                          "additionalProperties": true,
                                                          "propertyNames": {
                                                            "type": "string",
                                                            "enum": [
                                                              "field",
                                                              "ids",
                                                              "match",
                                                              "exclude"
                                                            ]
                                                          }
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "field": {
                                                              "type": "string",
                                                              "enum": [
                                                                "names"
                                                              ]
                                                            },
                                                            "terms": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string",
                                                                "minLength": 1,
                                                                "maxLength": 100
                                                              },
                                                              "maxItems": 20,
                                                              "minItems": 1
                                                            },
                                                            "match": {
                                                              "type": "string",
                                                              "enum": [
                                                                "any",
                                                                "all"
                                                              ]
                                                            },
                                                            "exclude": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "field",
                                                            "terms"
                                                          ],
                                                          "patternProperties": {
                                                            "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                          },
                                                          "additionalProperties": true,
                                                          "propertyNames": {
                                                            "type": "string",
                                                            "enum": [
                                                              "field",
                                                              "terms",
                                                              "match",
                                                              "exclude"
                                                            ]
                                                          }
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "field": {
                                                              "type": "string",
                                                              "enum": [
                                                                "tagged"
                                                              ]
                                                            },
                                                            "value": {
                                                              "type": "boolean"
                                                            },
                                                            "exclude": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "field",
                                                            "value"
                                                          ],
                                                          "patternProperties": {
                                                            "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                          },
                                                          "additionalProperties": true,
                                                          "propertyNames": {
                                                            "type": "string",
                                                            "enum": [
                                                              "field",
                                                              "value",
                                                              "exclude"
                                                            ]
                                                          }
                                                        },
                                                        {
                                                          "type": "object",
                                                          "properties": {
                                                            "field": {
                                                              "type": "string",
                                                              "enum": [
                                                                "filed"
                                                              ]
                                                            },
                                                            "value": {
                                                              "type": "boolean"
                                                            },
                                                            "exclude": {
                                                              "type": "boolean"
                                                            }
                                                          },
                                                          "required": [
                                                            "field",
                                                            "value"
                                                          ],
                                                          "patternProperties": {
                                                            "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                          },
                                                          "additionalProperties": true,
                                                          "propertyNames": {
                                                            "type": "string",
                                                            "enum": [
                                                              "field",
                                                              "value",
                                                              "exclude"
                                                            ]
                                                          }
                                                        }
                                                      ]
                                                    },
                                                    "maxItems": 20,
                                                    "minItems": 1
                                                  },
                                                  "exclude": {
                                                    "type": "boolean"
                                                  }
                                                },
                                                "required": [
                                                  "field",
                                                  "rules"
                                                ],
                                                "patternProperties": {
                                                  "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                                },
                                                "additionalProperties": true,
                                                "propertyNames": {
                                                  "type": "string",
                                                  "enum": [
                                                    "field",
                                                    "match",
                                                    "rules",
                                                    "exclude"
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "maxItems": 20,
                                          "minItems": 1
                                        },
                                        "exclude": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "rules"
                                      ],
                                      "patternProperties": {
                                        "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                      },
                                      "additionalProperties": true,
                                      "propertyNames": {
                                        "type": "string",
                                        "enum": [
                                          "field",
                                          "match",
                                          "rules",
                                          "exclude"
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "maxItems": 20,
                                "minItems": 1
                              },
                              "match": {
                                "type": "string",
                                "enum": [
                                  "any",
                                  "all"
                                ]
                              },
                              "excludeCampaignIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeTagIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeFolderIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                  "format": "uuid"
                                },
                                "maxItems": 100
                              },
                              "excludeNameContains": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                "maxItems": 20
                              },
                              "taggedOnly": {
                                "type": "boolean"
                              },
                              "filedOnly": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "mode",
                              "rules"
                            ],
                            "patternProperties": {
                              "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                            },
                            "additionalProperties": true,
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "mode",
                                "rules",
                                "match",
                                "excludeCampaignIds",
                                "excludeTagIds",
                                "excludeFolderIds",
                                "excludeNameContains",
                                "taggedOnly",
                                "filedOnly"
                              ]
                            }
                          }
                        ]
                      },
                      "labelIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "secretFingerprint": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/NonEmptyString"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "secretRotatedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "url",
                      "campaignId",
                      "campaignName",
                      "eventTypes",
                      "isSlackWebhook",
                      "enabled",
                      "revision",
                      "headerNames",
                      "campaignScope",
                      "labelIds",
                      "secretFingerprint",
                      "secretRotatedAt",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|name|url|campaignId|campaignName|eventTypes|isSlackWebhook|enabled|revision|headerNames|campaignScope|labelIds|secretFingerprint|secretRotatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "name",
                        "url",
                        "campaignId",
                        "campaignName",
                        "eventTypes",
                        "isSlackWebhook",
                        "enabled",
                        "revision",
                        "headerNames",
                        "campaignScope",
                        "labelIds",
                        "secretFingerprint",
                        "secretRotatedAt",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  }
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/Cursor"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "nextCursor"
              ],
              "patternProperties": {
                "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "items",
                  "nextCursor"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "url": {
                  "$ref": "#/$defs/HttpUrl"
                },
                "campaignId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "campaignName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "eventTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "first_email_reply",
                      "all_email_replies",
                      "all_positive_replies",
                      "all_emails_sent",
                      "all_bounced_emails",
                      "all_delivery_updates",
                      "campaign_auto_paused",
                      "marked_interested",
                      "marked_not_interested",
                      "marked_out_of_office",
                      "marked_automatic_reply",
                      "marked_meeting_booked",
                      "marked_meeting_completed",
                      "marked_wrong_person",
                      "marked_closed",
                      "marked_same_company_lead",
                      "label_applied",
                      "label_removed",
                      "reminder_created",
                      "reminder_due",
                      "reminder_cancelled",
                      "unibox_email_sent"
                    ]
                  },
                  "minItems": 1,
                  "maxItems": 64
                },
                "isSlackWebhook": {
                  "type": "boolean"
                },
                "enabled": {
                  "type": "boolean"
                },
                "revision": {
                  "type": "integer"
                },
                "headerNames": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "campaignScope": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "all"
                          ]
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "campaigns"
                          ]
                        },
                        "ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100,
                          "minItems": 1
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "ids"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "ids",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "tags"
                          ]
                        },
                        "ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100,
                          "minItems": 1
                        },
                        "match": {
                          "type": "string",
                          "enum": [
                            "any",
                            "all"
                          ]
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "ids"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "ids",
                          "match",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "folders"
                          ]
                        },
                        "ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100,
                          "minItems": 1
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "ids"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "ids",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "names"
                          ]
                        },
                        "terms": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20,
                          "minItems": 1
                        },
                        "match": {
                          "type": "string",
                          "enum": [
                            "any",
                            "all"
                          ]
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "terms"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "terms",
                          "match",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "rules"
                          ]
                        },
                        "rules": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "campaigns"
                                    ]
                                  },
                                  "ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100,
                                    "minItems": 1
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "ids"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "ids",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "folders"
                                    ]
                                  },
                                  "ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100,
                                    "minItems": 1
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "ids"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "ids",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "tags"
                                    ]
                                  },
                                  "ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100,
                                    "minItems": 1
                                  },
                                  "match": {
                                    "type": "string",
                                    "enum": [
                                      "any",
                                      "all"
                                    ]
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "ids"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "ids",
                                    "match",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "names"
                                    ]
                                  },
                                  "terms": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "maxItems": 20,
                                    "minItems": 1
                                  },
                                  "match": {
                                    "type": "string",
                                    "enum": [
                                      "any",
                                      "all"
                                    ]
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "terms"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "terms",
                                    "match",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "tagged"
                                    ]
                                  },
                                  "value": {
                                    "type": "boolean"
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "value"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "value",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "filed"
                                    ]
                                  },
                                  "value": {
                                    "type": "boolean"
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "value"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "value",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "group"
                                    ]
                                  },
                                  "match": {
                                    "type": "string",
                                    "enum": [
                                      "any",
                                      "all"
                                    ]
                                  },
                                  "rules": {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "campaigns"
                                              ]
                                            },
                                            "ids": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "maxItems": 100,
                                              "minItems": 1
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "ids"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "ids",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "folders"
                                              ]
                                            },
                                            "ids": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "maxItems": 100,
                                              "minItems": 1
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "ids"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "ids",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "tags"
                                              ]
                                            },
                                            "ids": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "maxItems": 100,
                                              "minItems": 1
                                            },
                                            "match": {
                                              "type": "string",
                                              "enum": [
                                                "any",
                                                "all"
                                              ]
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "ids"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "ids",
                                              "match",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "names"
                                              ]
                                            },
                                            "terms": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 100
                                              },
                                              "maxItems": 20,
                                              "minItems": 1
                                            },
                                            "match": {
                                              "type": "string",
                                              "enum": [
                                                "any",
                                                "all"
                                              ]
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "terms"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "terms",
                                              "match",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "tagged"
                                              ]
                                            },
                                            "value": {
                                              "type": "boolean"
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "value"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "value",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "filed"
                                              ]
                                            },
                                            "value": {
                                              "type": "boolean"
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "value"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "value",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "group"
                                              ]
                                            },
                                            "match": {
                                              "type": "string",
                                              "enum": [
                                                "any",
                                                "all"
                                              ]
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "campaigns"
                                                        ]
                                                      },
                                                      "ids": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                          "format": "uuid"
                                                        },
                                                        "maxItems": 100,
                                                        "minItems": 1
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "ids"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "ids",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "folders"
                                                        ]
                                                      },
                                                      "ids": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                          "format": "uuid"
                                                        },
                                                        "maxItems": 100,
                                                        "minItems": 1
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "ids"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "ids",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "tags"
                                                        ]
                                                      },
                                                      "ids": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                          "format": "uuid"
                                                        },
                                                        "maxItems": 100,
                                                        "minItems": 1
                                                      },
                                                      "match": {
                                                        "type": "string",
                                                        "enum": [
                                                          "any",
                                                          "all"
                                                        ]
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "ids"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "ids",
                                                        "match",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "names"
                                                        ]
                                                      },
                                                      "terms": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        },
                                                        "maxItems": 20,
                                                        "minItems": 1
                                                      },
                                                      "match": {
                                                        "type": "string",
                                                        "enum": [
                                                          "any",
                                                          "all"
                                                        ]
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "terms"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "terms",
                                                        "match",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "tagged"
                                                        ]
                                                      },
                                                      "value": {
                                                        "type": "boolean"
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "value"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "value",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "filed"
                                                        ]
                                                      },
                                                      "value": {
                                                        "type": "boolean"
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "value"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "value",
                                                        "exclude"
                                                      ]
                                                    }
                                                  }
                                                ]
                                              },
                                              "maxItems": 20,
                                              "minItems": 1
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "rules"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "match",
                                              "rules",
                                              "exclude"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    "maxItems": 20,
                                    "minItems": 1
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "rules"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "match",
                                    "rules",
                                    "exclude"
                                  ]
                                }
                              }
                            ]
                          },
                          "maxItems": 20,
                          "minItems": 1
                        },
                        "match": {
                          "type": "string",
                          "enum": [
                            "any",
                            "all"
                          ]
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "rules"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "rules",
                          "match",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    }
                  ]
                },
                "labelIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "secretFingerprint": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "secretRotatedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "id",
                "name",
                "url",
                "campaignId",
                "campaignName",
                "eventTypes",
                "isSlackWebhook",
                "enabled",
                "revision",
                "headerNames",
                "campaignScope",
                "labelIds",
                "secretFingerprint",
                "secretRotatedAt",
                "createdAt",
                "updatedAt"
              ],
              "patternProperties": {
                "^(?!(?:id|name|url|campaignId|campaignName|eventTypes|isSlackWebhook|enabled|revision|headerNames|campaignScope|labelIds|secretFingerprint|secretRotatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "name",
                  "url",
                  "campaignId",
                  "campaignName",
                  "eventTypes",
                  "isSlackWebhook",
                  "enabled",
                  "revision",
                  "headerNames",
                  "campaignScope",
                  "labelIds",
                  "secretFingerprint",
                  "secretRotatedAt",
                  "createdAt",
                  "updatedAt"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "url": {
                  "$ref": "#/$defs/HttpUrl"
                },
                "campaignId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "campaignName": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/ShortText"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "eventTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "first_email_reply",
                      "all_email_replies",
                      "all_positive_replies",
                      "all_emails_sent",
                      "all_bounced_emails",
                      "all_delivery_updates",
                      "campaign_auto_paused",
                      "marked_interested",
                      "marked_not_interested",
                      "marked_out_of_office",
                      "marked_automatic_reply",
                      "marked_meeting_booked",
                      "marked_meeting_completed",
                      "marked_wrong_person",
                      "marked_closed",
                      "marked_same_company_lead",
                      "label_applied",
                      "label_removed",
                      "reminder_created",
                      "reminder_due",
                      "reminder_cancelled",
                      "unibox_email_sent"
                    ]
                  },
                  "minItems": 1,
                  "maxItems": 64
                },
                "isSlackWebhook": {
                  "type": "boolean"
                },
                "enabled": {
                  "type": "boolean"
                },
                "revision": {
                  "type": "integer"
                },
                "headerNames": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "campaignScope": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "all"
                          ]
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "campaigns"
                          ]
                        },
                        "ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100,
                          "minItems": 1
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "ids"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "ids",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "tags"
                          ]
                        },
                        "ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100,
                          "minItems": 1
                        },
                        "match": {
                          "type": "string",
                          "enum": [
                            "any",
                            "all"
                          ]
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "ids"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "ids",
                          "match",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "folders"
                          ]
                        },
                        "ids": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100,
                          "minItems": 1
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "ids"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "ids",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "names"
                          ]
                        },
                        "terms": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20,
                          "minItems": 1
                        },
                        "match": {
                          "type": "string",
                          "enum": [
                            "any",
                            "all"
                          ]
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "terms"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "terms",
                          "match",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "rules"
                          ]
                        },
                        "rules": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "campaigns"
                                    ]
                                  },
                                  "ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100,
                                    "minItems": 1
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "ids"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "ids",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "folders"
                                    ]
                                  },
                                  "ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100,
                                    "minItems": 1
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "ids"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "ids",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "tags"
                                    ]
                                  },
                                  "ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100,
                                    "minItems": 1
                                  },
                                  "match": {
                                    "type": "string",
                                    "enum": [
                                      "any",
                                      "all"
                                    ]
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "ids"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "ids",
                                    "match",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "names"
                                    ]
                                  },
                                  "terms": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "maxItems": 20,
                                    "minItems": 1
                                  },
                                  "match": {
                                    "type": "string",
                                    "enum": [
                                      "any",
                                      "all"
                                    ]
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "terms"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "terms",
                                    "match",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "tagged"
                                    ]
                                  },
                                  "value": {
                                    "type": "boolean"
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "value"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "value",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "filed"
                                    ]
                                  },
                                  "value": {
                                    "type": "boolean"
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "value"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "value",
                                    "exclude"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "field": {
                                    "type": "string",
                                    "enum": [
                                      "group"
                                    ]
                                  },
                                  "match": {
                                    "type": "string",
                                    "enum": [
                                      "any",
                                      "all"
                                    ]
                                  },
                                  "rules": {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "campaigns"
                                              ]
                                            },
                                            "ids": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "maxItems": 100,
                                              "minItems": 1
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "ids"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "ids",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "folders"
                                              ]
                                            },
                                            "ids": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "maxItems": 100,
                                              "minItems": 1
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "ids"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "ids",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "tags"
                                              ]
                                            },
                                            "ids": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "maxItems": 100,
                                              "minItems": 1
                                            },
                                            "match": {
                                              "type": "string",
                                              "enum": [
                                                "any",
                                                "all"
                                              ]
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "ids"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "ids",
                                              "match",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "names"
                                              ]
                                            },
                                            "terms": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 100
                                              },
                                              "maxItems": 20,
                                              "minItems": 1
                                            },
                                            "match": {
                                              "type": "string",
                                              "enum": [
                                                "any",
                                                "all"
                                              ]
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "terms"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "terms",
                                              "match",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "tagged"
                                              ]
                                            },
                                            "value": {
                                              "type": "boolean"
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "value"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "value",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "filed"
                                              ]
                                            },
                                            "value": {
                                              "type": "boolean"
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "value"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "value",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "group"
                                              ]
                                            },
                                            "match": {
                                              "type": "string",
                                              "enum": [
                                                "any",
                                                "all"
                                              ]
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "campaigns"
                                                        ]
                                                      },
                                                      "ids": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                          "format": "uuid"
                                                        },
                                                        "maxItems": 100,
                                                        "minItems": 1
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "ids"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "ids",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "folders"
                                                        ]
                                                      },
                                                      "ids": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                          "format": "uuid"
                                                        },
                                                        "maxItems": 100,
                                                        "minItems": 1
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "ids"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "ids",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "tags"
                                                        ]
                                                      },
                                                      "ids": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                          "format": "uuid"
                                                        },
                                                        "maxItems": 100,
                                                        "minItems": 1
                                                      },
                                                      "match": {
                                                        "type": "string",
                                                        "enum": [
                                                          "any",
                                                          "all"
                                                        ]
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "ids"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "ids",
                                                        "match",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "names"
                                                        ]
                                                      },
                                                      "terms": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        },
                                                        "maxItems": 20,
                                                        "minItems": 1
                                                      },
                                                      "match": {
                                                        "type": "string",
                                                        "enum": [
                                                          "any",
                                                          "all"
                                                        ]
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "terms"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "terms",
                                                        "match",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "tagged"
                                                        ]
                                                      },
                                                      "value": {
                                                        "type": "boolean"
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "value"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "value",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "filed"
                                                        ]
                                                      },
                                                      "value": {
                                                        "type": "boolean"
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "value"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "value",
                                                        "exclude"
                                                      ]
                                                    }
                                                  }
                                                ]
                                              },
                                              "maxItems": 20,
                                              "minItems": 1
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "rules"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "match",
                                              "rules",
                                              "exclude"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    "maxItems": 20,
                                    "minItems": 1
                                  },
                                  "exclude": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "field",
                                  "rules"
                                ],
                                "patternProperties": {
                                  "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "match",
                                    "rules",
                                    "exclude"
                                  ]
                                }
                              }
                            ]
                          },
                          "maxItems": 20,
                          "minItems": 1
                        },
                        "match": {
                          "type": "string",
                          "enum": [
                            "any",
                            "all"
                          ]
                        },
                        "excludeCampaignIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeTagIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeFolderIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "maxItems": 100
                        },
                        "excludeNameContains": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "maxItems": 20
                        },
                        "taggedOnly": {
                          "type": "boolean"
                        },
                        "filedOnly": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "mode",
                        "rules"
                      ],
                      "patternProperties": {
                        "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "mode",
                          "rules",
                          "match",
                          "excludeCampaignIds",
                          "excludeTagIds",
                          "excludeFolderIds",
                          "excludeNameContains",
                          "taggedOnly",
                          "filedOnly"
                        ]
                      }
                    }
                  ]
                },
                "labelIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "secretFingerprint": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "secretRotatedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "signingSecret": {
                  "$ref": "#/$defs/NonEmptyString"
                }
              },
              "required": [
                "id",
                "name",
                "url",
                "campaignId",
                "campaignName",
                "eventTypes",
                "isSlackWebhook",
                "enabled",
                "revision",
                "headerNames",
                "campaignScope",
                "labelIds",
                "secretFingerprint",
                "secretRotatedAt",
                "createdAt",
                "updatedAt"
              ],
              "patternProperties": {
                "^(?!(?:id|name|url|campaignId|campaignName|eventTypes|isSlackWebhook|enabled|revision|headerNames|campaignScope|labelIds|secretFingerprint|secretRotatedAt|createdAt|updatedAt|signingSecret)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "name",
                  "url",
                  "campaignId",
                  "campaignName",
                  "eventTypes",
                  "isSlackWebhook",
                  "enabled",
                  "revision",
                  "headerNames",
                  "campaignScope",
                  "labelIds",
                  "secretFingerprint",
                  "secretRotatedAt",
                  "createdAt",
                  "updatedAt",
                  "signingSecret"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "cursor": {
                  "$ref": "#/$defs/Cursor"
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                },
                "webhookId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "search": {
                  "$ref": "#/$defs/ShortText"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "sending",
                    "delivered",
                    "failed",
                    "uncertain",
                    "cancelled"
                  ]
                },
                "eventType": {
                  "type": "string",
                  "enum": [
                    "first_email_reply",
                    "all_email_replies",
                    "all_positive_replies",
                    "all_emails_sent",
                    "all_bounced_emails",
                    "all_delivery_updates",
                    "campaign_auto_paused",
                    "marked_interested",
                    "marked_not_interested",
                    "marked_out_of_office",
                    "marked_automatic_reply",
                    "marked_meeting_booked",
                    "marked_meeting_completed",
                    "marked_wrong_person",
                    "marked_closed",
                    "marked_same_company_lead",
                    "label_applied",
                    "label_removed",
                    "reminder_created",
                    "reminder_due",
                    "reminder_cancelled",
                    "unibox_email_sent"
                  ]
                },
                "mode": {
                  "type": "string",
                  "enum": [
                    "live",
                    "test"
                  ]
                },
                "from": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "to": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "order": {
                  "type": "string",
                  "enum": [
                    "newest",
                    "oldest"
                  ]
                }
              },
              "patternProperties": {
                "^(?!(?:cursor|limit|webhookId|search|status|eventType|mode|from|to|order)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "cursor",
                  "limit",
                  "webhookId",
                  "search",
                  "status",
                  "eventType",
                  "mode",
                  "from",
                  "to",
                  "order"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "expectedRevision": {
                  "type": "integer"
                },
                "acknowledgeDuplicateRisk": {
                  "type": "boolean"
                }
              },
              "required": [
                "expectedRevision",
                "acknowledgeDuplicateRisk"
              ],
              "patternProperties": {
                "^(?!(?:expectedRevision|acknowledgeDuplicateRisk)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "expectedRevision",
                  "acknowledgeDuplicateRisk"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "success": {
                  "type": "boolean"
                },
                "statusCode": {
                  "type": "integer"
                },
                "statusText": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "responseTimeMs": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "error": {
                  "$ref": "#/$defs/NonEmptyString"
                },
                "eventType": {
                  "type": "string",
                  "enum": [
                    "first_email_reply",
                    "all_email_replies",
                    "all_positive_replies",
                    "all_emails_sent",
                    "all_bounced_emails",
                    "all_delivery_updates",
                    "campaign_auto_paused",
                    "marked_interested",
                    "marked_not_interested",
                    "marked_out_of_office",
                    "marked_automatic_reply",
                    "marked_meeting_booked",
                    "marked_meeting_completed",
                    "marked_wrong_person",
                    "marked_closed",
                    "marked_same_company_lead",
                    "label_applied",
                    "label_removed",
                    "reminder_created",
                    "reminder_due",
                    "reminder_cancelled",
                    "unibox_email_sent"
                  ]
                }
              },
              "required": [
                "success",
                "responseTimeMs",
                "eventType"
              ],
              "patternProperties": {
                "^(?!(?:success|statusCode|statusText|responseTimeMs|error|eventType)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "success",
                  "statusCode",
                  "statusText",
                  "responseTimeMs",
                  "error",
                  "eventType"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "webhookId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "webhookName": {
                        "type": "string"
                      },
                      "eventId": {
                        "type": "string"
                      },
                      "eventType": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "sending",
                          "delivered",
                          "failed",
                          "uncertain",
                          "cancelled"
                        ]
                      },
                      "isTest": {
                        "type": "boolean"
                      },
                      "revision": {
                        "type": "integer"
                      },
                      "attempts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "statusCode": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "durationMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "failureCategory": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "nextAttemptAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "webhookId",
                      "webhookName",
                      "eventId",
                      "eventType",
                      "status",
                      "isTest",
                      "revision",
                      "attempts",
                      "statusCode",
                      "durationMs",
                      "failureCategory",
                      "nextAttemptAt",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "webhookId",
                        "webhookName",
                        "eventId",
                        "eventType",
                        "status",
                        "isTest",
                        "revision",
                        "attempts",
                        "statusCode",
                        "durationMs",
                        "failureCategory",
                        "nextAttemptAt",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  }
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/Cursor"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "nextCursor"
              ],
              "patternProperties": {
                "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "items",
                  "nextCursor"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/OpaqueId"
                      },
                      "webhookId": {
                        "type": "string",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                        "format": "uuid"
                      },
                      "webhookName": {
                        "type": "string"
                      },
                      "eventId": {
                        "type": "string"
                      },
                      "eventType": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "sending",
                          "delivered",
                          "failed",
                          "uncertain",
                          "cancelled"
                        ]
                      },
                      "isTest": {
                        "type": "boolean"
                      },
                      "revision": {
                        "type": "integer"
                      },
                      "attempts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "statusCode": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "durationMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "failureCategory": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "nextAttemptAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      }
                    },
                    "required": [
                      "id",
                      "webhookId",
                      "webhookName",
                      "eventId",
                      "eventType",
                      "status",
                      "isTest",
                      "revision",
                      "attempts",
                      "statusCode",
                      "durationMs",
                      "failureCategory",
                      "nextAttemptAt",
                      "createdAt",
                      "updatedAt"
                    ],
                    "patternProperties": {
                      "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "id",
                        "webhookId",
                        "webhookName",
                        "eventId",
                        "eventType",
                        "status",
                        "isTest",
                        "revision",
                        "attempts",
                        "statusCode",
                        "durationMs",
                        "failureCategory",
                        "nextAttemptAt",
                        "createdAt",
                        "updatedAt"
                      ]
                    }
                  }
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/Cursor"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "nextCursor"
              ],
              "patternProperties": {
                "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "items",
                  "nextCursor"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "delivery": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/$defs/OpaqueId"
                    },
                    "webhookId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "webhookName": {
                      "type": "string"
                    },
                    "eventId": {
                      "type": "string"
                    },
                    "eventType": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "sending",
                        "delivered",
                        "failed",
                        "uncertain",
                        "cancelled"
                      ]
                    },
                    "isTest": {
                      "type": "boolean"
                    },
                    "revision": {
                      "type": "integer"
                    },
                    "attempts": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "statusCode": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "durationMs": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failureCategory": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nextAttemptAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    }
                  },
                  "required": [
                    "id",
                    "webhookId",
                    "webhookName",
                    "eventId",
                    "eventType",
                    "status",
                    "isTest",
                    "revision",
                    "attempts",
                    "statusCode",
                    "durationMs",
                    "failureCategory",
                    "nextAttemptAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "webhookId",
                      "webhookName",
                      "eventId",
                      "eventType",
                      "status",
                      "isTest",
                      "revision",
                      "attempts",
                      "statusCode",
                      "durationMs",
                      "failureCategory",
                      "nextAttemptAt",
                      "createdAt",
                      "updatedAt"
                    ]
                  }
                },
                "attempts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "attempt": {
                        "type": "integer"
                      },
                      "startedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "finishedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "statusCode": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "durationMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "failureCategory": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "attempt",
                      "startedAt",
                      "finishedAt",
                      "statusCode",
                      "durationMs",
                      "failureCategory"
                    ],
                    "patternProperties": {
                      "^(?!(?:attempt|startedAt|finishedAt|statusCode|durationMs|failureCategory)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "attempt",
                        "startedAt",
                        "finishedAt",
                        "statusCode",
                        "durationMs",
                        "failureCategory"
                      ]
                    }
                  }
                }
              },
              "required": [
                "delivery",
                "attempts"
              ],
              "patternProperties": {
                "^(?!(?:delivery|attempts)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "delivery",
                  "attempts"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "delivery": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/$defs/OpaqueId"
                    },
                    "webhookId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "webhookName": {
                      "type": "string"
                    },
                    "eventId": {
                      "type": "string"
                    },
                    "eventType": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "sending",
                        "delivered",
                        "failed",
                        "uncertain",
                        "cancelled"
                      ]
                    },
                    "isTest": {
                      "type": "boolean"
                    },
                    "revision": {
                      "type": "integer"
                    },
                    "attempts": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "statusCode": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "durationMs": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failureCategory": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nextAttemptAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    }
                  },
                  "required": [
                    "id",
                    "webhookId",
                    "webhookName",
                    "eventId",
                    "eventType",
                    "status",
                    "isTest",
                    "revision",
                    "attempts",
                    "statusCode",
                    "durationMs",
                    "failureCategory",
                    "nextAttemptAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "webhookId",
                      "webhookName",
                      "eventId",
                      "eventType",
                      "status",
                      "isTest",
                      "revision",
                      "attempts",
                      "statusCode",
                      "durationMs",
                      "failureCategory",
                      "nextAttemptAt",
                      "createdAt",
                      "updatedAt"
                    ]
                  }
                },
                "attempts": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "attempt": {
                        "type": "integer"
                      },
                      "startedAt": {
                        "$ref": "#/$defs/UtcDateTimeEncoded"
                      },
                      "finishedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "statusCode": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "durationMs": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "failureCategory": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "attempt",
                      "startedAt",
                      "finishedAt",
                      "statusCode",
                      "durationMs",
                      "failureCategory"
                    ],
                    "patternProperties": {
                      "^(?!(?:attempt|startedAt|finishedAt|statusCode|durationMs|failureCategory)$)[\\s\\S]*$": false
                    },
                    "additionalProperties": true,
                    "propertyNames": {
                      "type": "string",
                      "enum": [
                        "attempt",
                        "startedAt",
                        "finishedAt",
                        "statusCode",
                        "durationMs",
                        "failureCategory"
                      ]
                    }
                  }
                }
              },
              "required": [
                "delivery",
                "attempts"
              ],
              "patternProperties": {
                "^(?!(?:delivery|attempts)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "delivery",
                  "attempts"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/$defs/OpaqueId"
                },
                "webhookId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "webhookName": {
                  "type": "string"
                },
                "eventId": {
                  "type": "string"
                },
                "eventType": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "sending",
                    "delivered",
                    "failed",
                    "uncertain",
                    "cancelled"
                  ]
                },
                "isTest": {
                  "type": "boolean"
                },
                "revision": {
                  "type": "integer"
                },
                "attempts": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "statusCode": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "durationMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "failureCategory": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "nextAttemptAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "createdAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "id",
                "webhookId",
                "webhookName",
                "eventId",
                "eventType",
                "status",
                "isTest",
                "revision",
                "attempts",
                "statusCode",
                "durationMs",
                "failureCategory",
                "nextAttemptAt",
                "createdAt",
                "updatedAt"
              ],
              "patternProperties": {
                "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "webhookId",
                  "webhookName",
                  "eventId",
                  "eventType",
                  "status",
                  "isTest",
                  "revision",
                  "attempts",
                  "statusCode",
                  "durationMs",
                  "failureCategory",
                  "nextAttemptAt",
                  "createdAt",
                  "updatedAt"
                ]
              }
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/$defs/OpaqueId"
                },
                "webhookId": {
                  "type": "string",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                  "format": "uuid"
                },
                "webhookName": {
                  "type": "string"
                },
                "eventId": {
                  "type": "string"
                },
                "eventType": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "sending",
                    "delivered",
                    "failed",
                    "uncertain",
                    "cancelled"
                  ]
                },
                "isTest": {
                  "type": "boolean"
                },
                "revision": {
                  "type": "integer"
                },
                "attempts": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "statusCode": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "durationMs": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "failureCategory": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "nextAttemptAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "createdAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                },
                "updatedAt": {
                  "$ref": "#/$defs/UtcDateTimeEncoded"
                }
              },
              "required": [
                "id",
                "webhookId",
                "webhookName",
                "eventId",
                "eventType",
                "status",
                "isTest",
                "revision",
                "attempts",
                "statusCode",
                "durationMs",
                "failureCategory",
                "nextAttemptAt",
                "createdAt",
                "updatedAt"
              ],
              "patternProperties": {
                "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
              },
              "additionalProperties": true,
              "propertyNames": {
                "type": "string",
                "enum": [
                  "id",
                  "webhookId",
                  "webhookName",
                  "eventId",
                  "eventType",
                  "status",
                  "isTest",
                  "revision",
                  "attempts",
                  "statusCode",
                  "durationMs",
                  "failureCategory",
                  "nextAttemptAt",
                  "createdAt",
                  "updatedAt"
                ]
              }
            }
          ]
        },
        {
          "type": "object"
        }
      ]
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "allOf": [
            {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "url": {
                            "$ref": "#/$defs/HttpUrl"
                          },
                          "campaignId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "campaignName": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/ShortText"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "eventTypes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "first_email_reply",
                                "all_email_replies",
                                "all_positive_replies",
                                "all_emails_sent",
                                "all_bounced_emails",
                                "all_delivery_updates",
                                "campaign_auto_paused",
                                "marked_interested",
                                "marked_not_interested",
                                "marked_out_of_office",
                                "marked_automatic_reply",
                                "marked_meeting_booked",
                                "marked_meeting_completed",
                                "marked_wrong_person",
                                "marked_closed",
                                "marked_same_company_lead",
                                "label_applied",
                                "label_removed",
                                "reminder_created",
                                "reminder_due",
                                "reminder_cancelled",
                                "unibox_email_sent"
                              ]
                            },
                            "minItems": 1,
                            "maxItems": 64
                          },
                          "isSlackWebhook": {
                            "type": "boolean"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "revision": {
                            "type": "integer"
                          },
                          "headerNames": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "campaignScope": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "mode": {
                                    "type": "string",
                                    "enum": [
                                      "all"
                                    ]
                                  },
                                  "excludeCampaignIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeTagIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeFolderIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeNameContains": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "maxItems": 20
                                  },
                                  "taggedOnly": {
                                    "type": "boolean"
                                  },
                                  "filedOnly": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "mode"
                                ],
                                "patternProperties": {
                                  "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "mode",
                                    "excludeCampaignIds",
                                    "excludeTagIds",
                                    "excludeFolderIds",
                                    "excludeNameContains",
                                    "taggedOnly",
                                    "filedOnly"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "mode": {
                                    "type": "string",
                                    "enum": [
                                      "campaigns"
                                    ]
                                  },
                                  "ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100,
                                    "minItems": 1
                                  },
                                  "excludeCampaignIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeTagIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeFolderIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeNameContains": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "maxItems": 20
                                  },
                                  "taggedOnly": {
                                    "type": "boolean"
                                  },
                                  "filedOnly": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "mode",
                                  "ids"
                                ],
                                "patternProperties": {
                                  "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "mode",
                                    "ids",
                                    "excludeCampaignIds",
                                    "excludeTagIds",
                                    "excludeFolderIds",
                                    "excludeNameContains",
                                    "taggedOnly",
                                    "filedOnly"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "mode": {
                                    "type": "string",
                                    "enum": [
                                      "tags"
                                    ]
                                  },
                                  "ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100,
                                    "minItems": 1
                                  },
                                  "match": {
                                    "type": "string",
                                    "enum": [
                                      "any",
                                      "all"
                                    ]
                                  },
                                  "excludeCampaignIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeTagIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeFolderIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeNameContains": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "maxItems": 20
                                  },
                                  "taggedOnly": {
                                    "type": "boolean"
                                  },
                                  "filedOnly": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "mode",
                                  "ids"
                                ],
                                "patternProperties": {
                                  "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "mode",
                                    "ids",
                                    "match",
                                    "excludeCampaignIds",
                                    "excludeTagIds",
                                    "excludeFolderIds",
                                    "excludeNameContains",
                                    "taggedOnly",
                                    "filedOnly"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "mode": {
                                    "type": "string",
                                    "enum": [
                                      "folders"
                                    ]
                                  },
                                  "ids": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100,
                                    "minItems": 1
                                  },
                                  "excludeCampaignIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeTagIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeFolderIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeNameContains": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "maxItems": 20
                                  },
                                  "taggedOnly": {
                                    "type": "boolean"
                                  },
                                  "filedOnly": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "mode",
                                  "ids"
                                ],
                                "patternProperties": {
                                  "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "mode",
                                    "ids",
                                    "excludeCampaignIds",
                                    "excludeTagIds",
                                    "excludeFolderIds",
                                    "excludeNameContains",
                                    "taggedOnly",
                                    "filedOnly"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "mode": {
                                    "type": "string",
                                    "enum": [
                                      "names"
                                    ]
                                  },
                                  "terms": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "maxItems": 20,
                                    "minItems": 1
                                  },
                                  "match": {
                                    "type": "string",
                                    "enum": [
                                      "any",
                                      "all"
                                    ]
                                  },
                                  "excludeCampaignIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeTagIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeFolderIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeNameContains": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "maxItems": 20
                                  },
                                  "taggedOnly": {
                                    "type": "boolean"
                                  },
                                  "filedOnly": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "mode",
                                  "terms"
                                ],
                                "patternProperties": {
                                  "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "mode",
                                    "terms",
                                    "match",
                                    "excludeCampaignIds",
                                    "excludeTagIds",
                                    "excludeFolderIds",
                                    "excludeNameContains",
                                    "taggedOnly",
                                    "filedOnly"
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "mode": {
                                    "type": "string",
                                    "enum": [
                                      "rules"
                                    ]
                                  },
                                  "rules": {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "campaigns"
                                              ]
                                            },
                                            "ids": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "maxItems": 100,
                                              "minItems": 1
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "ids"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "ids",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "folders"
                                              ]
                                            },
                                            "ids": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "maxItems": 100,
                                              "minItems": 1
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "ids"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "ids",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "tags"
                                              ]
                                            },
                                            "ids": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                "format": "uuid"
                                              },
                                              "maxItems": 100,
                                              "minItems": 1
                                            },
                                            "match": {
                                              "type": "string",
                                              "enum": [
                                                "any",
                                                "all"
                                              ]
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "ids"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "ids",
                                              "match",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "names"
                                              ]
                                            },
                                            "terms": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 100
                                              },
                                              "maxItems": 20,
                                              "minItems": 1
                                            },
                                            "match": {
                                              "type": "string",
                                              "enum": [
                                                "any",
                                                "all"
                                              ]
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "terms"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "terms",
                                              "match",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "tagged"
                                              ]
                                            },
                                            "value": {
                                              "type": "boolean"
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "value"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "value",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "filed"
                                              ]
                                            },
                                            "value": {
                                              "type": "boolean"
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "value"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "value",
                                              "exclude"
                                            ]
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "field": {
                                              "type": "string",
                                              "enum": [
                                                "group"
                                              ]
                                            },
                                            "match": {
                                              "type": "string",
                                              "enum": [
                                                "any",
                                                "all"
                                              ]
                                            },
                                            "rules": {
                                              "type": "array",
                                              "items": {
                                                "anyOf": [
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "campaigns"
                                                        ]
                                                      },
                                                      "ids": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                          "format": "uuid"
                                                        },
                                                        "maxItems": 100,
                                                        "minItems": 1
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "ids"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "ids",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "folders"
                                                        ]
                                                      },
                                                      "ids": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                          "format": "uuid"
                                                        },
                                                        "maxItems": 100,
                                                        "minItems": 1
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "ids"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "ids",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "tags"
                                                        ]
                                                      },
                                                      "ids": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                          "format": "uuid"
                                                        },
                                                        "maxItems": 100,
                                                        "minItems": 1
                                                      },
                                                      "match": {
                                                        "type": "string",
                                                        "enum": [
                                                          "any",
                                                          "all"
                                                        ]
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "ids"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "ids",
                                                        "match",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "names"
                                                        ]
                                                      },
                                                      "terms": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        },
                                                        "maxItems": 20,
                                                        "minItems": 1
                                                      },
                                                      "match": {
                                                        "type": "string",
                                                        "enum": [
                                                          "any",
                                                          "all"
                                                        ]
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "terms"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "terms",
                                                        "match",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "tagged"
                                                        ]
                                                      },
                                                      "value": {
                                                        "type": "boolean"
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "value"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "value",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "filed"
                                                        ]
                                                      },
                                                      "value": {
                                                        "type": "boolean"
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "value"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "value",
                                                        "exclude"
                                                      ]
                                                    }
                                                  },
                                                  {
                                                    "type": "object",
                                                    "properties": {
                                                      "field": {
                                                        "type": "string",
                                                        "enum": [
                                                          "group"
                                                        ]
                                                      },
                                                      "match": {
                                                        "type": "string",
                                                        "enum": [
                                                          "any",
                                                          "all"
                                                        ]
                                                      },
                                                      "rules": {
                                                        "type": "array",
                                                        "items": {
                                                          "anyOf": [
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "field": {
                                                                  "type": "string",
                                                                  "enum": [
                                                                    "campaigns"
                                                                  ]
                                                                },
                                                                "ids": {
                                                                  "type": "array",
                                                                  "items": {
                                                                    "type": "string",
                                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                                    "format": "uuid"
                                                                  },
                                                                  "maxItems": 100,
                                                                  "minItems": 1
                                                                },
                                                                "exclude": {
                                                                  "type": "boolean"
                                                                }
                                                              },
                                                              "required": [
                                                                "field",
                                                                "ids"
                                                              ],
                                                              "patternProperties": {
                                                                "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                              },
                                                              "additionalProperties": true,
                                                              "propertyNames": {
                                                                "type": "string",
                                                                "enum": [
                                                                  "field",
                                                                  "ids",
                                                                  "exclude"
                                                                ]
                                                              }
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "field": {
                                                                  "type": "string",
                                                                  "enum": [
                                                                    "folders"
                                                                  ]
                                                                },
                                                                "ids": {
                                                                  "type": "array",
                                                                  "items": {
                                                                    "type": "string",
                                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                                    "format": "uuid"
                                                                  },
                                                                  "maxItems": 100,
                                                                  "minItems": 1
                                                                },
                                                                "exclude": {
                                                                  "type": "boolean"
                                                                }
                                                              },
                                                              "required": [
                                                                "field",
                                                                "ids"
                                                              ],
                                                              "patternProperties": {
                                                                "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                              },
                                                              "additionalProperties": true,
                                                              "propertyNames": {
                                                                "type": "string",
                                                                "enum": [
                                                                  "field",
                                                                  "ids",
                                                                  "exclude"
                                                                ]
                                                              }
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "field": {
                                                                  "type": "string",
                                                                  "enum": [
                                                                    "tags"
                                                                  ]
                                                                },
                                                                "ids": {
                                                                  "type": "array",
                                                                  "items": {
                                                                    "type": "string",
                                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                                    "format": "uuid"
                                                                  },
                                                                  "maxItems": 100,
                                                                  "minItems": 1
                                                                },
                                                                "match": {
                                                                  "type": "string",
                                                                  "enum": [
                                                                    "any",
                                                                    "all"
                                                                  ]
                                                                },
                                                                "exclude": {
                                                                  "type": "boolean"
                                                                }
                                                              },
                                                              "required": [
                                                                "field",
                                                                "ids"
                                                              ],
                                                              "patternProperties": {
                                                                "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                              },
                                                              "additionalProperties": true,
                                                              "propertyNames": {
                                                                "type": "string",
                                                                "enum": [
                                                                  "field",
                                                                  "ids",
                                                                  "match",
                                                                  "exclude"
                                                                ]
                                                              }
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "field": {
                                                                  "type": "string",
                                                                  "enum": [
                                                                    "names"
                                                                  ]
                                                                },
                                                                "terms": {
                                                                  "type": "array",
                                                                  "items": {
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "maxLength": 100
                                                                  },
                                                                  "maxItems": 20,
                                                                  "minItems": 1
                                                                },
                                                                "match": {
                                                                  "type": "string",
                                                                  "enum": [
                                                                    "any",
                                                                    "all"
                                                                  ]
                                                                },
                                                                "exclude": {
                                                                  "type": "boolean"
                                                                }
                                                              },
                                                              "required": [
                                                                "field",
                                                                "terms"
                                                              ],
                                                              "patternProperties": {
                                                                "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                              },
                                                              "additionalProperties": true,
                                                              "propertyNames": {
                                                                "type": "string",
                                                                "enum": [
                                                                  "field",
                                                                  "terms",
                                                                  "match",
                                                                  "exclude"
                                                                ]
                                                              }
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "field": {
                                                                  "type": "string",
                                                                  "enum": [
                                                                    "tagged"
                                                                  ]
                                                                },
                                                                "value": {
                                                                  "type": "boolean"
                                                                },
                                                                "exclude": {
                                                                  "type": "boolean"
                                                                }
                                                              },
                                                              "required": [
                                                                "field",
                                                                "value"
                                                              ],
                                                              "patternProperties": {
                                                                "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                              },
                                                              "additionalProperties": true,
                                                              "propertyNames": {
                                                                "type": "string",
                                                                "enum": [
                                                                  "field",
                                                                  "value",
                                                                  "exclude"
                                                                ]
                                                              }
                                                            },
                                                            {
                                                              "type": "object",
                                                              "properties": {
                                                                "field": {
                                                                  "type": "string",
                                                                  "enum": [
                                                                    "filed"
                                                                  ]
                                                                },
                                                                "value": {
                                                                  "type": "boolean"
                                                                },
                                                                "exclude": {
                                                                  "type": "boolean"
                                                                }
                                                              },
                                                              "required": [
                                                                "field",
                                                                "value"
                                                              ],
                                                              "patternProperties": {
                                                                "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                              },
                                                              "additionalProperties": true,
                                                              "propertyNames": {
                                                                "type": "string",
                                                                "enum": [
                                                                  "field",
                                                                  "value",
                                                                  "exclude"
                                                                ]
                                                              }
                                                            }
                                                          ]
                                                        },
                                                        "maxItems": 20,
                                                        "minItems": 1
                                                      },
                                                      "exclude": {
                                                        "type": "boolean"
                                                      }
                                                    },
                                                    "required": [
                                                      "field",
                                                      "rules"
                                                    ],
                                                    "patternProperties": {
                                                      "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                                    },
                                                    "additionalProperties": true,
                                                    "propertyNames": {
                                                      "type": "string",
                                                      "enum": [
                                                        "field",
                                                        "match",
                                                        "rules",
                                                        "exclude"
                                                      ]
                                                    }
                                                  }
                                                ]
                                              },
                                              "maxItems": 20,
                                              "minItems": 1
                                            },
                                            "exclude": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "field",
                                            "rules"
                                          ],
                                          "patternProperties": {
                                            "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                          },
                                          "additionalProperties": true,
                                          "propertyNames": {
                                            "type": "string",
                                            "enum": [
                                              "field",
                                              "match",
                                              "rules",
                                              "exclude"
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    "maxItems": 20,
                                    "minItems": 1
                                  },
                                  "match": {
                                    "type": "string",
                                    "enum": [
                                      "any",
                                      "all"
                                    ]
                                  },
                                  "excludeCampaignIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeTagIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeFolderIds": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                      "format": "uuid"
                                    },
                                    "maxItems": 100
                                  },
                                  "excludeNameContains": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100
                                    },
                                    "maxItems": 20
                                  },
                                  "taggedOnly": {
                                    "type": "boolean"
                                  },
                                  "filedOnly": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "mode",
                                  "rules"
                                ],
                                "patternProperties": {
                                  "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                                },
                                "additionalProperties": true,
                                "propertyNames": {
                                  "type": "string",
                                  "enum": [
                                    "mode",
                                    "rules",
                                    "match",
                                    "excludeCampaignIds",
                                    "excludeTagIds",
                                    "excludeFolderIds",
                                    "excludeNameContains",
                                    "taggedOnly",
                                    "filedOnly"
                                  ]
                                }
                              }
                            ]
                          },
                          "labelIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "secretFingerprint": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/NonEmptyString"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "secretRotatedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "url",
                          "campaignId",
                          "campaignName",
                          "eventTypes",
                          "isSlackWebhook",
                          "enabled",
                          "revision",
                          "headerNames",
                          "campaignScope",
                          "labelIds",
                          "secretFingerprint",
                          "secretRotatedAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|name|url|campaignId|campaignName|eventTypes|isSlackWebhook|enabled|revision|headerNames|campaignScope|labelIds|secretFingerprint|secretRotatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "name",
                            "url",
                            "campaignId",
                            "campaignName",
                            "eventTypes",
                            "isSlackWebhook",
                            "enabled",
                            "revision",
                            "headerNames",
                            "campaignScope",
                            "labelIds",
                            "secretFingerprint",
                            "secretRotatedAt",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/Cursor"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "patternProperties": {
                    "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "items",
                      "nextCursor"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "url": {
                      "$ref": "#/$defs/HttpUrl"
                    },
                    "campaignId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "campaignName": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/ShortText"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "eventTypes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "first_email_reply",
                          "all_email_replies",
                          "all_positive_replies",
                          "all_emails_sent",
                          "all_bounced_emails",
                          "all_delivery_updates",
                          "campaign_auto_paused",
                          "marked_interested",
                          "marked_not_interested",
                          "marked_out_of_office",
                          "marked_automatic_reply",
                          "marked_meeting_booked",
                          "marked_meeting_completed",
                          "marked_wrong_person",
                          "marked_closed",
                          "marked_same_company_lead",
                          "label_applied",
                          "label_removed",
                          "reminder_created",
                          "reminder_due",
                          "reminder_cancelled",
                          "unibox_email_sent"
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 64
                    },
                    "isSlackWebhook": {
                      "type": "boolean"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "revision": {
                      "type": "integer"
                    },
                    "headerNames": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "campaignScope": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "all"
                              ]
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "campaigns"
                              ]
                            },
                            "ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100,
                              "minItems": 1
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "ids"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "ids",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "tags"
                              ]
                            },
                            "ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100,
                              "minItems": 1
                            },
                            "match": {
                              "type": "string",
                              "enum": [
                                "any",
                                "all"
                              ]
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "ids"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "ids",
                              "match",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "folders"
                              ]
                            },
                            "ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100,
                              "minItems": 1
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "ids"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "ids",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "names"
                              ]
                            },
                            "terms": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20,
                              "minItems": 1
                            },
                            "match": {
                              "type": "string",
                              "enum": [
                                "any",
                                "all"
                              ]
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "terms"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "terms",
                              "match",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "rules"
                              ]
                            },
                            "rules": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "campaigns"
                                        ]
                                      },
                                      "ids": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "maxItems": 100,
                                        "minItems": 1
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "ids"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "ids",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "folders"
                                        ]
                                      },
                                      "ids": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "maxItems": 100,
                                        "minItems": 1
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "ids"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "ids",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "tags"
                                        ]
                                      },
                                      "ids": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "maxItems": 100,
                                        "minItems": 1
                                      },
                                      "match": {
                                        "type": "string",
                                        "enum": [
                                          "any",
                                          "all"
                                        ]
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "ids"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "ids",
                                        "match",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "names"
                                        ]
                                      },
                                      "terms": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100
                                        },
                                        "maxItems": 20,
                                        "minItems": 1
                                      },
                                      "match": {
                                        "type": "string",
                                        "enum": [
                                          "any",
                                          "all"
                                        ]
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "terms"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "terms",
                                        "match",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "tagged"
                                        ]
                                      },
                                      "value": {
                                        "type": "boolean"
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "value"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "value",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "filed"
                                        ]
                                      },
                                      "value": {
                                        "type": "boolean"
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "value"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "value",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "group"
                                        ]
                                      },
                                      "match": {
                                        "type": "string",
                                        "enum": [
                                          "any",
                                          "all"
                                        ]
                                      },
                                      "rules": {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "campaigns"
                                                  ]
                                                },
                                                "ids": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                    "format": "uuid"
                                                  },
                                                  "maxItems": 100,
                                                  "minItems": 1
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "ids"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "ids",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "folders"
                                                  ]
                                                },
                                                "ids": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                    "format": "uuid"
                                                  },
                                                  "maxItems": 100,
                                                  "minItems": 1
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "ids"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "ids",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "tags"
                                                  ]
                                                },
                                                "ids": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                    "format": "uuid"
                                                  },
                                                  "maxItems": 100,
                                                  "minItems": 1
                                                },
                                                "match": {
                                                  "type": "string",
                                                  "enum": [
                                                    "any",
                                                    "all"
                                                  ]
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "ids"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "ids",
                                                  "match",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "names"
                                                  ]
                                                },
                                                "terms": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  },
                                                  "maxItems": 20,
                                                  "minItems": 1
                                                },
                                                "match": {
                                                  "type": "string",
                                                  "enum": [
                                                    "any",
                                                    "all"
                                                  ]
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "terms"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "terms",
                                                  "match",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "tagged"
                                                  ]
                                                },
                                                "value": {
                                                  "type": "boolean"
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "value"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "value",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "filed"
                                                  ]
                                                },
                                                "value": {
                                                  "type": "boolean"
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "value"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "value",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "group"
                                                  ]
                                                },
                                                "match": {
                                                  "type": "string",
                                                  "enum": [
                                                    "any",
                                                    "all"
                                                  ]
                                                },
                                                "rules": {
                                                  "type": "array",
                                                  "items": {
                                                    "anyOf": [
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "campaigns"
                                                            ]
                                                          },
                                                          "ids": {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "string",
                                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                              "format": "uuid"
                                                            },
                                                            "maxItems": 100,
                                                            "minItems": 1
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "ids"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "ids",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "folders"
                                                            ]
                                                          },
                                                          "ids": {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "string",
                                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                              "format": "uuid"
                                                            },
                                                            "maxItems": 100,
                                                            "minItems": 1
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "ids"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "ids",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "tags"
                                                            ]
                                                          },
                                                          "ids": {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "string",
                                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                              "format": "uuid"
                                                            },
                                                            "maxItems": 100,
                                                            "minItems": 1
                                                          },
                                                          "match": {
                                                            "type": "string",
                                                            "enum": [
                                                              "any",
                                                              "all"
                                                            ]
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "ids"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "ids",
                                                            "match",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "names"
                                                            ]
                                                          },
                                                          "terms": {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "string",
                                                              "minLength": 1,
                                                              "maxLength": 100
                                                            },
                                                            "maxItems": 20,
                                                            "minItems": 1
                                                          },
                                                          "match": {
                                                            "type": "string",
                                                            "enum": [
                                                              "any",
                                                              "all"
                                                            ]
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "terms"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "terms",
                                                            "match",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "tagged"
                                                            ]
                                                          },
                                                          "value": {
                                                            "type": "boolean"
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "value"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "value",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "filed"
                                                            ]
                                                          },
                                                          "value": {
                                                            "type": "boolean"
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "value"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "value",
                                                            "exclude"
                                                          ]
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  "maxItems": 20,
                                                  "minItems": 1
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "rules"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "match",
                                                  "rules",
                                                  "exclude"
                                                ]
                                              }
                                            }
                                          ]
                                        },
                                        "maxItems": 20,
                                        "minItems": 1
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "rules"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "match",
                                        "rules",
                                        "exclude"
                                      ]
                                    }
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 1
                            },
                            "match": {
                              "type": "string",
                              "enum": [
                                "any",
                                "all"
                              ]
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "rules"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "rules",
                              "match",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        }
                      ]
                    },
                    "labelIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "secretFingerprint": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "secretRotatedAt": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "url",
                    "campaignId",
                    "campaignName",
                    "eventTypes",
                    "isSlackWebhook",
                    "enabled",
                    "revision",
                    "headerNames",
                    "campaignScope",
                    "labelIds",
                    "secretFingerprint",
                    "secretRotatedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|name|url|campaignId|campaignName|eventTypes|isSlackWebhook|enabled|revision|headerNames|campaignScope|labelIds|secretFingerprint|secretRotatedAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "name",
                      "url",
                      "campaignId",
                      "campaignName",
                      "eventTypes",
                      "isSlackWebhook",
                      "enabled",
                      "revision",
                      "headerNames",
                      "campaignScope",
                      "labelIds",
                      "secretFingerprint",
                      "secretRotatedAt",
                      "createdAt",
                      "updatedAt"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "url": {
                      "$ref": "#/$defs/HttpUrl"
                    },
                    "campaignId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "campaignName": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/ShortText"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "eventTypes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "first_email_reply",
                          "all_email_replies",
                          "all_positive_replies",
                          "all_emails_sent",
                          "all_bounced_emails",
                          "all_delivery_updates",
                          "campaign_auto_paused",
                          "marked_interested",
                          "marked_not_interested",
                          "marked_out_of_office",
                          "marked_automatic_reply",
                          "marked_meeting_booked",
                          "marked_meeting_completed",
                          "marked_wrong_person",
                          "marked_closed",
                          "marked_same_company_lead",
                          "label_applied",
                          "label_removed",
                          "reminder_created",
                          "reminder_due",
                          "reminder_cancelled",
                          "unibox_email_sent"
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 64
                    },
                    "isSlackWebhook": {
                      "type": "boolean"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "revision": {
                      "type": "integer"
                    },
                    "headerNames": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "campaignScope": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "all"
                              ]
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "campaigns"
                              ]
                            },
                            "ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100,
                              "minItems": 1
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "ids"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "ids",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "tags"
                              ]
                            },
                            "ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100,
                              "minItems": 1
                            },
                            "match": {
                              "type": "string",
                              "enum": [
                                "any",
                                "all"
                              ]
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "ids"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|ids|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "ids",
                              "match",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "folders"
                              ]
                            },
                            "ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100,
                              "minItems": 1
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "ids"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|ids|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "ids",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "names"
                              ]
                            },
                            "terms": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20,
                              "minItems": 1
                            },
                            "match": {
                              "type": "string",
                              "enum": [
                                "any",
                                "all"
                              ]
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "terms"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|terms|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "terms",
                              "match",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "rules"
                              ]
                            },
                            "rules": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "campaigns"
                                        ]
                                      },
                                      "ids": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "maxItems": 100,
                                        "minItems": 1
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "ids"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "ids",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "folders"
                                        ]
                                      },
                                      "ids": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "maxItems": 100,
                                        "minItems": 1
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "ids"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "ids",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "tags"
                                        ]
                                      },
                                      "ids": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                          "format": "uuid"
                                        },
                                        "maxItems": 100,
                                        "minItems": 1
                                      },
                                      "match": {
                                        "type": "string",
                                        "enum": [
                                          "any",
                                          "all"
                                        ]
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "ids"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "ids",
                                        "match",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "names"
                                        ]
                                      },
                                      "terms": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100
                                        },
                                        "maxItems": 20,
                                        "minItems": 1
                                      },
                                      "match": {
                                        "type": "string",
                                        "enum": [
                                          "any",
                                          "all"
                                        ]
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "terms"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "terms",
                                        "match",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "tagged"
                                        ]
                                      },
                                      "value": {
                                        "type": "boolean"
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "value"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "value",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "filed"
                                        ]
                                      },
                                      "value": {
                                        "type": "boolean"
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "value"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "value",
                                        "exclude"
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "enum": [
                                          "group"
                                        ]
                                      },
                                      "match": {
                                        "type": "string",
                                        "enum": [
                                          "any",
                                          "all"
                                        ]
                                      },
                                      "rules": {
                                        "type": "array",
                                        "items": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "campaigns"
                                                  ]
                                                },
                                                "ids": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                    "format": "uuid"
                                                  },
                                                  "maxItems": 100,
                                                  "minItems": 1
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "ids"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "ids",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "folders"
                                                  ]
                                                },
                                                "ids": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                    "format": "uuid"
                                                  },
                                                  "maxItems": 100,
                                                  "minItems": 1
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "ids"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "ids",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "tags"
                                                  ]
                                                },
                                                "ids": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                    "format": "uuid"
                                                  },
                                                  "maxItems": 100,
                                                  "minItems": 1
                                                },
                                                "match": {
                                                  "type": "string",
                                                  "enum": [
                                                    "any",
                                                    "all"
                                                  ]
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "ids"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "ids",
                                                  "match",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "names"
                                                  ]
                                                },
                                                "terms": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  },
                                                  "maxItems": 20,
                                                  "minItems": 1
                                                },
                                                "match": {
                                                  "type": "string",
                                                  "enum": [
                                                    "any",
                                                    "all"
                                                  ]
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "terms"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "terms",
                                                  "match",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "tagged"
                                                  ]
                                                },
                                                "value": {
                                                  "type": "boolean"
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "value"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "value",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "filed"
                                                  ]
                                                },
                                                "value": {
                                                  "type": "boolean"
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "value"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "value",
                                                  "exclude"
                                                ]
                                              }
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "field": {
                                                  "type": "string",
                                                  "enum": [
                                                    "group"
                                                  ]
                                                },
                                                "match": {
                                                  "type": "string",
                                                  "enum": [
                                                    "any",
                                                    "all"
                                                  ]
                                                },
                                                "rules": {
                                                  "type": "array",
                                                  "items": {
                                                    "anyOf": [
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "campaigns"
                                                            ]
                                                          },
                                                          "ids": {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "string",
                                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                              "format": "uuid"
                                                            },
                                                            "maxItems": 100,
                                                            "minItems": 1
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "ids"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "ids",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "folders"
                                                            ]
                                                          },
                                                          "ids": {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "string",
                                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                              "format": "uuid"
                                                            },
                                                            "maxItems": 100,
                                                            "minItems": 1
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "ids"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|ids|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "ids",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "tags"
                                                            ]
                                                          },
                                                          "ids": {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "string",
                                                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                                              "format": "uuid"
                                                            },
                                                            "maxItems": 100,
                                                            "minItems": 1
                                                          },
                                                          "match": {
                                                            "type": "string",
                                                            "enum": [
                                                              "any",
                                                              "all"
                                                            ]
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "ids"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|ids|match|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "ids",
                                                            "match",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "names"
                                                            ]
                                                          },
                                                          "terms": {
                                                            "type": "array",
                                                            "items": {
                                                              "type": "string",
                                                              "minLength": 1,
                                                              "maxLength": 100
                                                            },
                                                            "maxItems": 20,
                                                            "minItems": 1
                                                          },
                                                          "match": {
                                                            "type": "string",
                                                            "enum": [
                                                              "any",
                                                              "all"
                                                            ]
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "terms"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|terms|match|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "terms",
                                                            "match",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "tagged"
                                                            ]
                                                          },
                                                          "value": {
                                                            "type": "boolean"
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "value"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "value",
                                                            "exclude"
                                                          ]
                                                        }
                                                      },
                                                      {
                                                        "type": "object",
                                                        "properties": {
                                                          "field": {
                                                            "type": "string",
                                                            "enum": [
                                                              "filed"
                                                            ]
                                                          },
                                                          "value": {
                                                            "type": "boolean"
                                                          },
                                                          "exclude": {
                                                            "type": "boolean"
                                                          }
                                                        },
                                                        "required": [
                                                          "field",
                                                          "value"
                                                        ],
                                                        "patternProperties": {
                                                          "^(?!(?:field|value|exclude)$)[\\s\\S]*$": false
                                                        },
                                                        "additionalProperties": true,
                                                        "propertyNames": {
                                                          "type": "string",
                                                          "enum": [
                                                            "field",
                                                            "value",
                                                            "exclude"
                                                          ]
                                                        }
                                                      }
                                                    ]
                                                  },
                                                  "maxItems": 20,
                                                  "minItems": 1
                                                },
                                                "exclude": {
                                                  "type": "boolean"
                                                }
                                              },
                                              "required": [
                                                "field",
                                                "rules"
                                              ],
                                              "patternProperties": {
                                                "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                              },
                                              "additionalProperties": true,
                                              "propertyNames": {
                                                "type": "string",
                                                "enum": [
                                                  "field",
                                                  "match",
                                                  "rules",
                                                  "exclude"
                                                ]
                                              }
                                            }
                                          ]
                                        },
                                        "maxItems": 20,
                                        "minItems": 1
                                      },
                                      "exclude": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "rules"
                                    ],
                                    "patternProperties": {
                                      "^(?!(?:field|match|rules|exclude)$)[\\s\\S]*$": false
                                    },
                                    "additionalProperties": true,
                                    "propertyNames": {
                                      "type": "string",
                                      "enum": [
                                        "field",
                                        "match",
                                        "rules",
                                        "exclude"
                                      ]
                                    }
                                  }
                                ]
                              },
                              "maxItems": 20,
                              "minItems": 1
                            },
                            "match": {
                              "type": "string",
                              "enum": [
                                "any",
                                "all"
                              ]
                            },
                            "excludeCampaignIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeTagIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeFolderIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                                "format": "uuid"
                              },
                              "maxItems": 100
                            },
                            "excludeNameContains": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "maxItems": 20
                            },
                            "taggedOnly": {
                              "type": "boolean"
                            },
                            "filedOnly": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "mode",
                            "rules"
                          ],
                          "patternProperties": {
                            "^(?!(?:mode|rules|match|excludeCampaignIds|excludeTagIds|excludeFolderIds|excludeNameContains|taggedOnly|filedOnly)$)[\\s\\S]*$": false
                          },
                          "additionalProperties": true,
                          "propertyNames": {
                            "type": "string",
                            "enum": [
                              "mode",
                              "rules",
                              "match",
                              "excludeCampaignIds",
                              "excludeTagIds",
                              "excludeFolderIds",
                              "excludeNameContains",
                              "taggedOnly",
                              "filedOnly"
                            ]
                          }
                        }
                      ]
                    },
                    "labelIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "secretFingerprint": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/NonEmptyString"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "secretRotatedAt": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "signingSecret": {
                      "$ref": "#/$defs/NonEmptyString"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "url",
                    "campaignId",
                    "campaignName",
                    "eventTypes",
                    "isSlackWebhook",
                    "enabled",
                    "revision",
                    "headerNames",
                    "campaignScope",
                    "labelIds",
                    "secretFingerprint",
                    "secretRotatedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|name|url|campaignId|campaignName|eventTypes|isSlackWebhook|enabled|revision|headerNames|campaignScope|labelIds|secretFingerprint|secretRotatedAt|createdAt|updatedAt|signingSecret)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "name",
                      "url",
                      "campaignId",
                      "campaignName",
                      "eventTypes",
                      "isSlackWebhook",
                      "enabled",
                      "revision",
                      "headerNames",
                      "campaignScope",
                      "labelIds",
                      "secretFingerprint",
                      "secretRotatedAt",
                      "createdAt",
                      "updatedAt",
                      "signingSecret"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "cursor": {
                      "$ref": "#/$defs/Cursor"
                    },
                    "limit": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 100
                    },
                    "webhookId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "search": {
                      "$ref": "#/$defs/ShortText"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "sending",
                        "delivered",
                        "failed",
                        "uncertain",
                        "cancelled"
                      ]
                    },
                    "eventType": {
                      "type": "string",
                      "enum": [
                        "first_email_reply",
                        "all_email_replies",
                        "all_positive_replies",
                        "all_emails_sent",
                        "all_bounced_emails",
                        "all_delivery_updates",
                        "campaign_auto_paused",
                        "marked_interested",
                        "marked_not_interested",
                        "marked_out_of_office",
                        "marked_automatic_reply",
                        "marked_meeting_booked",
                        "marked_meeting_completed",
                        "marked_wrong_person",
                        "marked_closed",
                        "marked_same_company_lead",
                        "label_applied",
                        "label_removed",
                        "reminder_created",
                        "reminder_due",
                        "reminder_cancelled",
                        "unibox_email_sent"
                      ]
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "live",
                        "test"
                      ]
                    },
                    "from": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "to": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "order": {
                      "type": "string",
                      "enum": [
                        "newest",
                        "oldest"
                      ]
                    }
                  },
                  "patternProperties": {
                    "^(?!(?:cursor|limit|webhookId|search|status|eventType|mode|from|to|order)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "cursor",
                      "limit",
                      "webhookId",
                      "search",
                      "status",
                      "eventType",
                      "mode",
                      "from",
                      "to",
                      "order"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "expectedRevision": {
                      "type": "integer"
                    },
                    "acknowledgeDuplicateRisk": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "expectedRevision",
                    "acknowledgeDuplicateRisk"
                  ],
                  "patternProperties": {
                    "^(?!(?:expectedRevision|acknowledgeDuplicateRisk)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "expectedRevision",
                      "acknowledgeDuplicateRisk"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "statusCode": {
                      "type": "integer"
                    },
                    "statusText": {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    "responseTimeMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "error": {
                      "$ref": "#/$defs/NonEmptyString"
                    },
                    "eventType": {
                      "type": "string",
                      "enum": [
                        "first_email_reply",
                        "all_email_replies",
                        "all_positive_replies",
                        "all_emails_sent",
                        "all_bounced_emails",
                        "all_delivery_updates",
                        "campaign_auto_paused",
                        "marked_interested",
                        "marked_not_interested",
                        "marked_out_of_office",
                        "marked_automatic_reply",
                        "marked_meeting_booked",
                        "marked_meeting_completed",
                        "marked_wrong_person",
                        "marked_closed",
                        "marked_same_company_lead",
                        "label_applied",
                        "label_removed",
                        "reminder_created",
                        "reminder_due",
                        "reminder_cancelled",
                        "unibox_email_sent"
                      ]
                    }
                  },
                  "required": [
                    "success",
                    "responseTimeMs",
                    "eventType"
                  ],
                  "patternProperties": {
                    "^(?!(?:success|statusCode|statusText|responseTimeMs|error|eventType)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "success",
                      "statusCode",
                      "statusText",
                      "responseTimeMs",
                      "error",
                      "eventType"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "webhookId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "webhookName": {
                            "type": "string"
                          },
                          "eventId": {
                            "type": "string"
                          },
                          "eventType": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "sending",
                              "delivered",
                              "failed",
                              "uncertain",
                              "cancelled"
                            ]
                          },
                          "isTest": {
                            "type": "boolean"
                          },
                          "revision": {
                            "type": "integer"
                          },
                          "attempts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "statusCode": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "durationMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "failureCategory": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "nextAttemptAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "webhookId",
                          "webhookName",
                          "eventId",
                          "eventType",
                          "status",
                          "isTest",
                          "revision",
                          "attempts",
                          "statusCode",
                          "durationMs",
                          "failureCategory",
                          "nextAttemptAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "webhookId",
                            "webhookName",
                            "eventId",
                            "eventType",
                            "status",
                            "isTest",
                            "revision",
                            "attempts",
                            "statusCode",
                            "durationMs",
                            "failureCategory",
                            "nextAttemptAt",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/Cursor"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "patternProperties": {
                    "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "items",
                      "nextCursor"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/OpaqueId"
                          },
                          "webhookId": {
                            "type": "string",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                            "format": "uuid"
                          },
                          "webhookName": {
                            "type": "string"
                          },
                          "eventId": {
                            "type": "string"
                          },
                          "eventType": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "sending",
                              "delivered",
                              "failed",
                              "uncertain",
                              "cancelled"
                            ]
                          },
                          "isTest": {
                            "type": "boolean"
                          },
                          "revision": {
                            "type": "integer"
                          },
                          "attempts": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "statusCode": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "durationMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "failureCategory": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "nextAttemptAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          }
                        },
                        "required": [
                          "id",
                          "webhookId",
                          "webhookName",
                          "eventId",
                          "eventType",
                          "status",
                          "isTest",
                          "revision",
                          "attempts",
                          "statusCode",
                          "durationMs",
                          "failureCategory",
                          "nextAttemptAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "patternProperties": {
                          "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "id",
                            "webhookId",
                            "webhookName",
                            "eventId",
                            "eventType",
                            "status",
                            "isTest",
                            "revision",
                            "attempts",
                            "statusCode",
                            "durationMs",
                            "failureCategory",
                            "nextAttemptAt",
                            "createdAt",
                            "updatedAt"
                          ]
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/Cursor"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "patternProperties": {
                    "^(?!(?:items|nextCursor)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "items",
                      "nextCursor"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "delivery": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/$defs/OpaqueId"
                        },
                        "webhookId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "webhookName": {
                          "type": "string"
                        },
                        "eventId": {
                          "type": "string"
                        },
                        "eventType": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "sending",
                            "delivered",
                            "failed",
                            "uncertain",
                            "cancelled"
                          ]
                        },
                        "isTest": {
                          "type": "boolean"
                        },
                        "revision": {
                          "type": "integer"
                        },
                        "attempts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "statusCode": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "durationMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "failureCategory": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "nextAttemptAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        }
                      },
                      "required": [
                        "id",
                        "webhookId",
                        "webhookName",
                        "eventId",
                        "eventType",
                        "status",
                        "isTest",
                        "revision",
                        "attempts",
                        "statusCode",
                        "durationMs",
                        "failureCategory",
                        "nextAttemptAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "webhookId",
                          "webhookName",
                          "eventId",
                          "eventType",
                          "status",
                          "isTest",
                          "revision",
                          "attempts",
                          "statusCode",
                          "durationMs",
                          "failureCategory",
                          "nextAttemptAt",
                          "createdAt",
                          "updatedAt"
                        ]
                      }
                    },
                    "attempts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "attempt": {
                            "type": "integer"
                          },
                          "startedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "finishedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "statusCode": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "durationMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "failureCategory": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "attempt",
                          "startedAt",
                          "finishedAt",
                          "statusCode",
                          "durationMs",
                          "failureCategory"
                        ],
                        "patternProperties": {
                          "^(?!(?:attempt|startedAt|finishedAt|statusCode|durationMs|failureCategory)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "attempt",
                            "startedAt",
                            "finishedAt",
                            "statusCode",
                            "durationMs",
                            "failureCategory"
                          ]
                        }
                      }
                    }
                  },
                  "required": [
                    "delivery",
                    "attempts"
                  ],
                  "patternProperties": {
                    "^(?!(?:delivery|attempts)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "delivery",
                      "attempts"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "delivery": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/$defs/OpaqueId"
                        },
                        "webhookId": {
                          "type": "string",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                          "format": "uuid"
                        },
                        "webhookName": {
                          "type": "string"
                        },
                        "eventId": {
                          "type": "string"
                        },
                        "eventType": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "sending",
                            "delivered",
                            "failed",
                            "uncertain",
                            "cancelled"
                          ]
                        },
                        "isTest": {
                          "type": "boolean"
                        },
                        "revision": {
                          "type": "integer"
                        },
                        "attempts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "statusCode": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "durationMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "failureCategory": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "nextAttemptAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "createdAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/UtcDateTimeEncoded"
                        }
                      },
                      "required": [
                        "id",
                        "webhookId",
                        "webhookName",
                        "eventId",
                        "eventType",
                        "status",
                        "isTest",
                        "revision",
                        "attempts",
                        "statusCode",
                        "durationMs",
                        "failureCategory",
                        "nextAttemptAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "patternProperties": {
                        "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                      },
                      "additionalProperties": true,
                      "propertyNames": {
                        "type": "string",
                        "enum": [
                          "id",
                          "webhookId",
                          "webhookName",
                          "eventId",
                          "eventType",
                          "status",
                          "isTest",
                          "revision",
                          "attempts",
                          "statusCode",
                          "durationMs",
                          "failureCategory",
                          "nextAttemptAt",
                          "createdAt",
                          "updatedAt"
                        ]
                      }
                    },
                    "attempts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "attempt": {
                            "type": "integer"
                          },
                          "startedAt": {
                            "$ref": "#/$defs/UtcDateTimeEncoded"
                          },
                          "finishedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/UtcDateTimeEncoded"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "statusCode": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "durationMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "failureCategory": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "attempt",
                          "startedAt",
                          "finishedAt",
                          "statusCode",
                          "durationMs",
                          "failureCategory"
                        ],
                        "patternProperties": {
                          "^(?!(?:attempt|startedAt|finishedAt|statusCode|durationMs|failureCategory)$)[\\s\\S]*$": false
                        },
                        "additionalProperties": true,
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "attempt",
                            "startedAt",
                            "finishedAt",
                            "statusCode",
                            "durationMs",
                            "failureCategory"
                          ]
                        }
                      }
                    }
                  },
                  "required": [
                    "delivery",
                    "attempts"
                  ],
                  "patternProperties": {
                    "^(?!(?:delivery|attempts)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "delivery",
                      "attempts"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/$defs/OpaqueId"
                    },
                    "webhookId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "webhookName": {
                      "type": "string"
                    },
                    "eventId": {
                      "type": "string"
                    },
                    "eventType": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "sending",
                        "delivered",
                        "failed",
                        "uncertain",
                        "cancelled"
                      ]
                    },
                    "isTest": {
                      "type": "boolean"
                    },
                    "revision": {
                      "type": "integer"
                    },
                    "attempts": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "statusCode": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "durationMs": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failureCategory": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nextAttemptAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    }
                  },
                  "required": [
                    "id",
                    "webhookId",
                    "webhookName",
                    "eventId",
                    "eventType",
                    "status",
                    "isTest",
                    "revision",
                    "attempts",
                    "statusCode",
                    "durationMs",
                    "failureCategory",
                    "nextAttemptAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "webhookId",
                      "webhookName",
                      "eventId",
                      "eventType",
                      "status",
                      "isTest",
                      "revision",
                      "attempts",
                      "statusCode",
                      "durationMs",
                      "failureCategory",
                      "nextAttemptAt",
                      "createdAt",
                      "updatedAt"
                    ]
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/$defs/OpaqueId"
                    },
                    "webhookId": {
                      "type": "string",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                      "format": "uuid"
                    },
                    "webhookName": {
                      "type": "string"
                    },
                    "eventId": {
                      "type": "string"
                    },
                    "eventType": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "sending",
                        "delivered",
                        "failed",
                        "uncertain",
                        "cancelled"
                      ]
                    },
                    "isTest": {
                      "type": "boolean"
                    },
                    "revision": {
                      "type": "integer"
                    },
                    "attempts": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "statusCode": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "durationMs": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failureCategory": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nextAttemptAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "createdAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/UtcDateTimeEncoded"
                    }
                  },
                  "required": [
                    "id",
                    "webhookId",
                    "webhookName",
                    "eventId",
                    "eventType",
                    "status",
                    "isTest",
                    "revision",
                    "attempts",
                    "statusCode",
                    "durationMs",
                    "failureCategory",
                    "nextAttemptAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "patternProperties": {
                    "^(?!(?:id|webhookId|webhookName|eventId|eventType|status|isTest|revision|attempts|statusCode|durationMs|failureCategory|nextAttemptAt|createdAt|updatedAt)$)[\\s\\S]*$": false
                  },
                  "additionalProperties": true,
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "id",
                      "webhookId",
                      "webhookName",
                      "eventId",
                      "eventType",
                      "status",
                      "isTest",
                      "revision",
                      "attempts",
                      "statusCode",
                      "durationMs",
                      "failureCategory",
                      "nextAttemptAt",
                      "createdAt",
                      "updatedAt"
                    ]
                  }
                }
              ]
            },
            {
              "not": {
                "type": "object"
              }
            }
          ]
        }
      },
      "required": [
        "data"
      ],
      "additionalProperties": false
    }
  ]
}
```

### Underlying API operations

- `webhooks.list`: `GET /v1/workspaces/:workspaceId/webhooks`
- `webhooks.create`: `POST /v1/workspaces/:workspaceId/webhooks`
- `webhooks.update`: `PATCH /v1/workspaces/:workspaceId/webhooks/:webhookId`
- `webhooks.test`: `POST /v1/workspaces/:workspaceId/webhooks/test-delivery`
- `webhooks.deliveries`: `GET /v1/workspaces/:workspaceId/webhook-deliveries`
- `webhooks.delivery`: `GET /v1/workspaces/:workspaceId/webhook-deliveries/:deliveryId`
- `webhooks.retry`: `POST /v1/workspaces/:workspaceId/webhook-deliveries/:deliveryId/retry`

